Advertisement
Guest User

Untitled

a guest
Aug 17th, 2013
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.38 KB | None | 0 0
  1. <?php include('cms/conectar.php');
  2.  
  3.  
  4. ?>
  5.  
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  7. <html xmlns="http://www.w3.org/1999/xhtml">
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  10. <link rel="stylesheet" type="text/css" href="css/style.css"/>
  11. <link href='http://fonts.googleapis.com/css?family=Dosis' rel='stylesheet' type='text/css' />
  12. <link href="http://fonts.googleapis.com/css?family=PT+Sans" rel="stylesheet" type="text/css">
  13. <link href='http://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'>
  14. <title>Untitled Document</title>
  15. </head>
  16. <script type="text/javascript">
  17. function resizeElementHeight(element) {
  18. var height = 0;
  19. var body = window.document.body;
  20. if (window.innerHeight) {
  21. height = window.innerHeight;
  22. } else if (body.parentElement.clientHeight) {
  23. height = body.parentElement.clientHeight;
  24. } else if (body && body.clientHeight) {
  25. height = body.clientHeight;
  26. }
  27. element.style.height = ((height - element.offsetTop) + "px");
  28. }
  29. </script>
  30. <body>
  31.  
  32.  
  33.  
  34. <div class="cbc">
  35. <div id="redes">
  36. <div style="width:90%; solid #000;">
  37. <div style="float:left; width:33.3%;">
  38. <div align="right" class="rs">
  39. <div align="left"><img src="imagens/facebook.png" height="40" width="40" class="rede" align="left" />
  40. <img src="imagens/twitter.png" height="40" width="40" class="rede" align="center"/>
  41. <img src="imagens/g+.png" height="40" width="40" class="rede" align="center" />
  42.  
  43.  
  44. </div>
  45. </div>
  46. </div>
  47. <div id="header">
  48. <?php
  49. session_start();
  50.  
  51.  
  52.  
  53. if(isset($_SESSION['loggedInUser']))
  54. {
  55. $login = $_SESSION['loggedInUser'];
  56.  
  57.  
  58.  
  59.  
  60. echo '<div class="wrapper">
  61. <div class="column"><font color="#ff7c00" >Bem vindo '.$login.'! </font></div>
  62. <div class="column"><font color="#ff7c00" ><a href="cms/logout.php">Sair</a></font></div>
  63. <br>
  64. <div class="column"><font color="#ff7c00" >Ver o meu perfil</font></div>
  65. </div>';
  66.  
  67.  
  68. } else { ?>
  69. <form id="search" action="cms/login.php" method="POST">
  70. <label><font color="#ff7c00" face="Arial, Helvetica, sans-serif">Login</font><input type="text" name="login" id="s-user"></label>
  71. <label><font color="#ff7c00" face="Arial, Helvetica, sans-serif">Senha</font><input type="password" name="senha" id="s-pass"></label>
  72. <input type="submit" class="submit" value="Entrar">
  73. <a href="#dialog2" name="modal"><input type="submit" class="submit" value="Cadastrar"></a>
  74. </form>
  75.  
  76. <?php } ?>
  77. </div>
  78.  
  79. </div>
  80. </div>
  81. </div>
  82.  
  83.  
  84. <!-- Segundo cabeçalho com separadores -->
  85. </div>
  86. <div id="principal">
  87. <div class="centered-block">
  88. <a href="/" class="logo-lnk">
  89. <img src="imagens/logos.png"/>
  90. </a>
  91. <nav id="menu">
  92.  
  93. <ul>
  94. <li><a href="#"><font color="white">Ínicio</font></a></li>
  95. <li><a href="#"><font color="white">Categorias</font></a></li>
  96. <li><a href="#"><font color="white">Notícias</font></a></li>
  97. <li><a href="#"><font color="white">Carrinho</font></a></li>
  98. <div id="divisoria"></div>
  99. </ul>
  100.  
  101. </nav>
  102. </div>
  103. <div class="subtitulo">
  104.  
  105. <p><font color="white">Vendemos Online, desde 2011, os melhores livros</p>
  106.  
  107. <p> do mercado em Angola, encomende já o seu.</font></p>
  108. </div>
  109.  
  110. <!-- Slideshow -->
  111.  
  112. <div id="slideshow">
  113.  
  114. <img name="slide" id="slide" alt ="my images" height="300" width="900" src="imagens/1.png" class="slide";/>
  115. <div id="mydiv"></div>
  116.  
  117. <!-- Descrição do Slideshow -->
  118.  
  119. <script>
  120. document.getElementById("mydiv").style.color="white";
  121. </script>
  122.  
  123. <!-- Searchbar !-->
  124.  
  125. <!-- Titulo -->
  126. <div id="titulo"><div class="categoria">
  127. <div style="width:900px; solid #000;">
  128. <div style="float:left; width:63.3%;">
  129. <div align="right" class="rs">
  130. <div align="left">
  131. Resultado:
  132.  
  133. </div>
  134. </div>
  135. </div>
  136.  
  137. <form id="form1" name="form1" method="post" action="">
  138.  
  139. <input id="namanyay-search-box" name="buscar" size="30" type="Text" placeholder=" Procurar... " class="sb"/>
  140. <input name="btbuscar" type="submit" id="namanyay-search-btn" value="Procurar"/>
  141.  
  142. </form>
  143. </div>
  144. </div></div>
  145.  
  146. </div>
  147. <div>
  148. <div fade2>
  149. <div id="produtos">
  150. <?php
  151. $consulta = mysql_query("SELECT *
  152. FROM `livros-desporto` ");
  153.  
  154. if(isset($_POST['buscar'])){
  155. $consulta = mysql_query("SELECT * FROM `livros-desporto` where name like '%".$_POST['buscar']."%'");
  156. }
  157.  
  158. $listadinamica = "";
  159.  
  160. while ($linha = mysql_fetch_array($consulta))
  161. {
  162. $id = $linha['ID'];
  163. $modelo = $linha['Model'];
  164. $nome = $linha['Name'];
  165. $categoria = $linha['Category'];
  166. $imagem = $linha['Image'];
  167. $manufactura = $linha['Manufacturer'];
  168. $preco = $linha['Price'];
  169. $quantidade = $linha['quantity']
  170. // $adicionar = '<a href="carrinho.php?id='.$linha['ID'].'"title="'.$linha['ID'].'">
  171. // Adicionar </a>'
  172.  
  173.  
  174.  
  175.  
  176. ?>
  177.  
  178. <div class="prodColuna">
  179.  
  180. <table width="200" height="300" border="0">
  181. <tr>
  182. <th height="39" colspan="2" bgcolor="#ff7c00" scope="col" class="prd"><font color="white" class="prd"><?php echo $nome ?></font><th width="0">
  183. </tr>
  184. <tr>
  185. <td height="35" colspan="2" bgcolor="#FFFFFF" class="prd"><?php echo $preco ?>€</td>
  186. </tr>
  187. <tr>
  188. <td height="184" colspan="2" bgcolor="#DCDCDC" class="prd"><img src="<?php echo $imagem; ?>" width="195" height="187"></font></td>
  189. </tr>
  190. <tr>
  191. <td width="83" bgcolor="#ff7c00" class="prd"><font color="white">Ver informação</font></td>
  192. <td width="103" height="30" bgcolor="#FFFFFF" class="prd">Carrinho</td>
  193. </tr>
  194. </table>
  195. <br/>
  196. <br/>
  197.  
  198. </div>
  199. <?php
  200. }
  201. ?>
  202.  
  203. </div>
  204.  
  205. <div><div class="fundorp">
  206.  
  207. <div class="empresa">
  208. <div style="width:80%; ; solid #000; position:relative;">
  209. <div style="float:left; width:25%;"><h1 align="justify"><font>Atendimento</font></h1>
  210. <div align="justify">
  211. <ul id="atendimento">
  212. <li>Contacte-nos</li>
  213. <li>Devoluções</li>
  214. <li>Mapa do site</li>
  215. </ul>
  216.  
  217. <ul id="atendimento">
  218. </ul>
  219. </div>
  220. </div>
  221. <div style="float:left; width:25%;"><h1 align="justify">Conta</h1>
  222. <div align="justify">
  223. <ul id="Conta">
  224. <li>A minha Conta</li>
  225. <li>Histórico de Pedidos</li>
  226. <li>Newsletter</li>
  227. </ul>
  228.  
  229. <ul id="Conta">
  230. </ul>
  231. </div>
  232. </div>
  233. <div style="float:left; width:25%;"><h1 align="justify">Extras</h1>
  234. <div align="justify">
  235. <ul id="Extras">
  236. <li>
  237. Fabricantes
  238.  
  239. </li>
  240. <li>
  241. Vale Presente
  242.  
  243. </li>
  244. <li>
  245. Promoções
  246. </li>
  247. </ul>
  248.  
  249. <ul id="Extras">
  250. </ul>
  251. </div>
  252. </div>
  253. <div style="float:left; width:25%;"><div class="informacao">
  254. <h1 align="justify">Informação</h1>
  255. <div align="justify">
  256. <ul id="info">
  257. <li>Sobre nós</li>
  258. <li>Sobre as Encomendas</li>
  259. <li>Termos e Condições</li>
  260. </ul>
  261. </div>
  262. </div>
  263. </div>
  264. </div>
  265. <img src="imagens/logo.png" alt="logo" width="98" height="72" align="texttop" class="rplogo"/> </div>
  266.  
  267. </div></div>
  268. </div>
  269.  
  270. </body>
  271. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement