-
Notifications
You must be signed in to change notification settings - Fork 0
/
Acessorios02.php
276 lines (250 loc) · 8.99 KB
/
Acessorios02.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
<?php
session_start();
// verifica se a variavel existir
if(isset($_SESSION['login_usuario']) and isset($_SESSION['senha_usuario'])) {
// se existie as sessões coloca os valores em uma varivel
$login_usuario = $_SESSION['login_usuario'];
$senha_usuario = $_SESSION['senha_usuario'];
} else {
$erro = urlencode("Você não esta logado!");
header("Location:index.php");
exit;
}
//include "validar_session.php";
include "Config/config_sistema.php";
// faz consulta no banco
$consulta = mysql_query("select * from dados_usuarios where Login = '$login_usuario'");
?>
<center>
<title>Densetsu</title>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="styles.css" type="text/css" />
<style type="text/css">
a {display:block; text-decoration:none}
dl { width: 100%; }
dl,dd { margin: 0; }
dt { background: #CCC; font-size: 18px; padding: 5px; margin: 2px; }
dt a { color: #000; }
dd a { color: #000; }
ul { list-style: none; padding: 5px; }
.style2 {
color: #000000;
font-family: Calibri;
font-size: 16px;
}
.style3 {font-family: Calibri}
.style5 {font-family: Calibri; color: #666666; }
.style6 {font-size: 18px; font-family: Calibri;}
.style7 {
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 24px;
color: #000000;
}
.style9 {
font-family: Calibri;
font-weight: bold;
font-size: 18px;
}
.style10 {color: #FFFFFF}
.style16 {font-size: 16px}
.style18 {font-family: Calibri; font-size: 14px; }
.style21 {color: #FFFFFF; font-size: 24px; }
.style22 {font-size: 16px; font-family: Calibri; }
</style>
<script type="text/javascript" src="default.js" charset="utf-8"></script>
<script type="text/javascript">
$(document).ready(function(){
//Definimos que todos as tags dd terão display:none menos o primeiro filho
$('dd:not(:first)').hide();
//Ao clicar no link, executamos a funcao
$('dt a').click(function(){
//As tags dd's visíveis agora ficam com display:none
$("dd:visible").slideUp("slow");
//Apos, a funcao é transferida para seu pai, que procura o proximo irmao no codigo o tonando visível
$(this).parent().next().slideDown("slow");
return false;
});
});
</script>
<?php
include "inc_topo.php";
?>
</head></center>
<body background=""></div></div>
<table width="1000">
<tr>
<td width="182"><img src="images/bt_login.jpg" alt="" width="160" height="35" /></td>
<td width="623" valign="top" background="images/back_titulos.jpg">
<div align="center" class="style7"><span class="style10">Acessórios em Destaques </span></div></td>
<td width="179"><div align="right"><img src="images/bt_enquete.jpg" alt="" width="160" height="35" align="top" /></div></td>
</tr>
<tr>
<td>
<td>
<td> </tr>
<tr>
<td height="200" valign="top"><form action="logar.php" method="post" enctype="multipart/form-data" name="formlogin">
<table width="182" height="197" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td height="82"> </td>
<td colspan="6" valign="top"><div align="left"><span class="style3">Usuário: </span>
<input name="login" type="text" id="login" maxlength="200" />
<span class="style3">Senha: </span>
<input name="senha" type="password" id="label" maxlength="15" />
</div></td>
</tr>
<tr>
<td height="35"> </td>
<td><a href="cadastro.php" class="style3">
<input type="submit" name="Entrar" value="Entrar" id="logar" />
</a></td>
</tr>
<tr>
<td height="25"> </td>
<td colspan="5" valign="top"><a href="cadastro.php" class="style5">Cadastre-se</a></td>
</tr>
<tr>
<td height="24"></td>
<td><a href="Senha/lembrar_senha.php" class="style5">Esqueceu a senha?</a></td>
<td> </td>
<td valign="top"><label for="Submit"></label></td>
</tr>
<tr>
<td height="23"></td>
<td valign="middle"><a href="cadastro.php" class="style3"> </a><?php
while($linha = mysql_fetch_object($consulta)) {
echo "<b>Olá ".$linha->Login."!</b>";
}
?>
<br>
<a href="logout.php" class="style3">Logout</a>
</td>
<td> </td>
<td colspan="2" valign="middle"><a href="Senha/lembrar_senha.php" class="style3"></a> </td>
</tr>
</table>
</form> </td>
<td valign="top"><div align="left">
<table width="100%" border="0">
<tr>
<td width="34%"><img src="images/ace01.jpg" width="190" height="190"></td>
<td width="66%"><img src="images/ace02.jpg" width="190" height="190"></td>
<td width="66%"><img src="images/ace03.jpg" width="190" height="190"></td>
</tr>
<tr>
<td valign="top"><h2 class="style16">Capa Silicone para Nokia E71</h2>
<div class="style16">R$20,00</div>
<h2 align="left" class="style18"> </h2>
<div>
<br></td>
<td valign="top" class="style16"><h2><span class="style18">Hub USB e Aquecedor de Café</span></h2>
<div class="style18"><span id="product-price-1051">R$22,50</span></div></td>
<td valign="top"><div align="left">
<h2 class="style18">Mini Controle Remoto Espião Universal</h2>
<div class="style18">R$19,50</div>
</div></td>
</tr>
</table>
</div></td>
<td valign="top">
<div align="right"><span class="style2">Vot</span><span class="style22">e no m</span><span class="style2">elhor anime! </span>
<table width="100%" border="0">
<tr>
<td><div align="right">
<form>
<left>
<div align="left">
<input type=radio name="time" value="Naruto" checked>
<span class="style3">Naruto<br>
<input type=radio name="time" value="Bleach" >
Bleach <br>
<input type=radio name="time" value="Pokémom" >
Pokémom <br>
<input type=radio name="time" value="Dragon Ball" >
Dragon Ball <br>
<input type=radio name="time" value="Hunter x Hunter" >
Hunter x Hunter</span><br>
<input name="submit" type=submit value=Votar>
<br>
<br>
</div>
</left>
</form>
</div></td>
</tr>
</table>
<a href="cadastro.php" class="style3">
</a></div></td>
</tr>
</table>
<table width="1000" border="0">
<tr>
<td width="185" valign="top"><div align="left"><img src="images/bt_categoria.jpg" alt="" width="160" height="35" align="top" /> <br>
</div>
<p class="style6">>Animes </a> <br />
>Camisetas </a> <br />
>Mangás </a> <br />
>Seriados </p>
<p></a></p></td>
<td width="623"><div align="center"><?php
$produto = $_REQUEST['descricao'];
$conexao = mysql_connect('localhost', 'root', '') or die('Erro ao conectar');
mysql_select_db('densetsu', $conexao) or die('Erro ao selecionar');
$sql = " SELECT nome, descricao, valor FROM produtos
WHERE produtos.descricao LIKE '%".$produto."%' ";
$resultado = mysql_query($sql) or die(mysql_error());
if(mysql_num_rows($resultado) > 0){
print '<table width="150" height="0" border="0" align="center">';
while($linha = mysql_fetch_array($resultado)) {
print '<tr>';
print '<td>'; print $linha['nome']; print '</td>';
print '</tr>';
print '<tr>';
print '<td>'; print $linha['descricao']; print '</td>';
print '</tr>';
print '<tr>';
print '<td>'; print $linha['valor']; print '</td>';
print '</tr>';
}
print '</table>';
} else {
print $sql;
//outro comando
}
?></div>
<div align="center"><br>
</div></td>
<td width="178" valign="top"><div align="right"><img src="images/bt-carrinho.jpg" width="160" height="35" align="top"><br>
<br>
<img src="images/carrrinho.jpg" width="140" height="93"><br>
<br>
<br>
<br>
</div></td>
</tr>
</table>
<table width="1000" border="0">
<tr>
<td>
</td>
</tr>
</table>
<table width="1000" height="113" border="0">
<tr>
<td valign="top" background="images/rodape.jpg"><div align="left"><img src="images/formas_pag.png" width="805" height="66">
<table width="100%" border="0">
<tr>
<td><div align="center" class="style3"> Copyright © 2012 Geek Sistemas </div></td>
</tr>
</table>
</div></td>
</tr>
</table>
<table width="995">
<tr>
</tr>
</table>
</body></center>
</html>