-
Notifications
You must be signed in to change notification settings - Fork 1
/
urunler.php
124 lines (106 loc) · 5.01 KB
/
urunler.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?php
include('db.php'); error_reporting(0);
$id = $_GET['urunler'];
$al = $bag->query("select * from urun_kategoriler where ustkat_sefurl='$id'")->fetch(PDO::FETCH_ASSOC);
$ki = $al['urunkategori_id'];
?>
<?php include('db.php'); $ayar=$bag->query("select * from ayarlar where ayar_id=1")->fetch(PDO::FETCH_ASSOC); ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- PAGE TITLE -->
<title><?php echo $ayar['firmaadi']; ?> - Ürünler</title>
<base href="<?php echo $ayar['siteurl']; ?>">
<!-- MAKE IT RESPONSIVE -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- SEO -->
<meta name="description" content="">
<meta name="author" content="<?php echo $ayar['firmaadi']; ?>">
<meta name="keywords" content="<?php echo $ayar['keywords']; ?>">
<!-- FAVICON -->
<!--<link rel="shortcut icon" href="images/favicon.png" />-->
<!-- STYLESHEETS -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="css/animate.min.css" rel="stylesheet" media="screen">
<link href="css/font-awesome.min.css" rel="stylesheet" media="screen">
<link href="style.css" rel="stylesheet" media="screen">
<link href="css/options.css" rel="stylesheet" media="screen">
<link href="css/responsive.css" rel="stylesheet" media="screen">
<!-- FONTS -->
<link href='http://fonts.googleapis.com/css?family=Droid+Serif:400,400italic' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Raleway:900,300,400,200,800' rel='stylesheet' type='text/css'>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<script src="js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">var switchTo5x=true;</script>
<script type="text/javascript" id="st_insights_js" src="http://w.sharethis.com/button/buttons.js?publisher=8234a0ff-5822-45f5-92a9-2460ac3c5ca8"></script>
<script type="text/javascript" src="http://s.sharethis.com/loader.js"></script>
</head>
<!-- START BODY -->
<body>
<div id="page">
<?php include('header.php'); ?>
<!-- SHADOW -->
<div id="shade2"></div>
<!-- HEADER SLIDER -->
<div class="flexslider" id="header-slider">
<ul class="slides">
<li><img src="images/backgrounds/bg2.jpg" alt="SLider Image"></li>
</ul>
</div>
</header>
<!-- END HEADER -->
<!-- START MAIN CONTAINER -->
<div class="main-container">
<div class="container">
<!--PORTFOLIO -->
<h2 class="with-breaker animate-me fadeInUp">
Ürünlerimiz <span>Kalite Güven Getirir!</span>
</h2>
<div id="portfolio-filters" class="animate-me fadeIn">
<button class="btn btn-default" data-filter="*"><i class="fa fa-tags"></i> HEPSİ</button>
<?php include ('db.php');
$kat = $bag->query("select * from urun_altkategori where ustkategori_id='$ki'")->fetchAll(PDO::FETCH_ASSOC);
foreach($kat as $key){
?>
<button class="btn btn-default" data-filter=".<?php echo $key['altkategori_id']; ?>"><i class="fa fa-tag"></i> <?php echo $key['altkategori_adi']; ?></button>
<?php } ?>
</div>
</div>
<div id="portfolio-container" class="with-separation-bottom with-separation-top">
<?php
include('db.php');
$albak = $bag->query("select * from urunler inner join urun_altkategori on urun_altkategori.altkategori_id = urunler.urun_kat where urun_kat =altkategori_id and ustkategori_id = $ki")->fetchAll(PDO::FETCH_ASSOC);
foreach($albak as $verbak){
?>
<figure class="portfolio-item effect-sadie <?php echo $verbak['altkategori_id']; ?>">
<img src="images/urunler/<?php echo $verbak['urunresim']; ?>" alt="Image portfolio"/>
<figcaption>
<h4><b><?php echo $verbak['urunbaslik']; ?></b></h4>
<a href="urun/<?php echo $verbak['urunsefurl']; ?>">Detaylar</a>
</figcaption>
</figure>
<?php } ?>
</div>
<div class="portfolio-button center animate-me zoomIn">
</div>
</div>
<!-- END MAIN CONTAINER -->
<?php include('footer.php'); ?>
<!-- SCROLL TOP -->
<a href="#" id="scroll-top" class="fadeInRight animate-me"><i class="fa fa-angle-double-up"></i></a>
</div>
<!-- SCRIPTS -->
<!-- <script>
var options={ "publisher": "8234a0ff-5822-45f5-92a9-2460ac3c5ca8", "position": "left", "ad": { "visible": false, "openDelay": 5, "closeDelay": 0}, "chicklets": { "items": ["facebook", "twitter", "linkedin", "pinterest", "googleplus", "delicious", "mail_ru"]}};
var st_hover_widget = new sharethis.widgets.hoverbuttons(options);
</script> -->
<script src="js/jquery-1.11.1.min.js"></script>
<script src="js/plugins.js"></script>
<script src="js/custom.js"></script>
</body>
<!-- END BODY -->
</html>