-
Notifications
You must be signed in to change notification settings - Fork 0
/
quemsomos.php
128 lines (110 loc) · 3.65 KB
/
quemsomos.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
125
126
127
128
<?php
// Inicia uma sessão.
session_start();
// Cria conexão com o banco.
include("config.php");
// Chama função de conexão do arquivo 'config.php' acima.
$con=cnt();
// Chama função que direciona para a página restrita se já estiver logado (com uma SESSION aberta).
//$stay=in();
$catg = $_GET["catg"];
$subcatg = $_GET["subcatg"];
$prod = $_GET["prod"];
?>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=1300px,initial-scale=-3">
<title>Loja Exemplo - Sobre a Empresa</title>
<link rel="stylesheet" href="<?php echo $url; ?>/css/body.css"/>
<link href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
<!-- jQuery library (served from Google) -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<!-- bxSlider Javascript file -->
<script src="<?php echo $url; ?>/js/jquery.bxslider.min.js"></script>
<!-- bxSlider CSS file -->
<link rel="stylesheet" href="<?php echo $url; ?>/css/jquery.bxslider.css"/>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- CSS ====================================================== -->
<link rel="stylesheet" href="<?php echo $url; ?>/css/smoothproducts.css">
<!-- Demo CSS (don't use) -->
<script type="text/jscript">
$(document).ready(function(){
$('.bxslider').bxSlider({
auto: true,
captions: true,
adaptiveHeight: true,
autoControls: true
});
});
</script>
<?php
if(!empty($catg)):
?>
<style>
#menu_catg li a#<?php echo $catg ?>{background:#999 !important;}
</style>
<?php
endif;
if(!empty($subcatg)):
?>
<style>
#menu_subcatg li a#<?php echo $subcatg ?>{color:#000 !important;font-weight: bold !important;}
</style>
<?php
endif;
?>
</head>
<body>
<?php include_once("analyticstracking.php") ?>
<header>
<?php include("settings/header.php"); ?>
</header>
<section>
<div class="container">
<ul id="menu_subcatg">
<?php
$categorias = $con->prepare("SELECT * FROM categorias ORDER BY name ASC");
$categorias->execute();
while($catgf = $categorias->fetch(PDO::FETCH_ASSOC)):
echo'<li style="margin-top:15px;"><a href="'.$url.'/'.$catgf["catg"].'" style="color:#be3190;">'.$catgf["name"].'</a></li>';
$catgf = $catgf["catg"];
if(!empty($catgf)):
$subcategorias = $con->prepare("SELECT * FROM subcategorias WHERE catg='$catgf' ORDER BY subcatg ASC");
$subcategorias->execute();
while($subcatgf = $subcategorias->fetch(PDO::FETCH_ASSOC)):
echo'<li><a id="'.$subcatgf["subcatg"].'" href="'.$url.'/'.$subcatgf["catg"].'/'.$subcatgf["subcatg"].'">'.$subcatgf["name"].'</a></li>';
endwhile;
endif;
endwhile;
?>
</ul>
<div id="produtos" style="margin:40px 0;">
<h2>Quem Somos</h2><br><br>
<?php
$estatics = $con->prepare("SELECT * FROM estaticas ORDER BY id DESC LIMIT 1");
$estatics->execute();
$estatic = $estatics->fetch(PDO::FETCH_ASSOC);
echo '<p style="text-align:justify;">'.$estatic["quemsomos"].'</p>';
?>
</div>
</div>
</section>
<footer>
<div class="container">
<?php include("settings/footer.php"); ?>
</div>
</footer>
<!-- JS ======================================================= -->
<script type="text/javascript" src="<?php echo $url; ?>/js/smoothproducts.min.js"></script>
<script type="text/javascript">
/* wait for images to load */
$(window).load(function() {
$('.sp-wrap').smoothproducts();
});
</script>
</body>
</html>