%PDF- %PDF-
Direktori : /home/pantanal/www/ |
Current File : /home/pantanal/www/produto_view.php |
<?php session_start(); ob_start(); if ($_SERVER["HTTP_HOST"] <> 'localhost') { error_reporting(0);} if ($_SESSION['versao'] == '') { ob_end_clean(); header("Location: index.php"); exit(); } require_once('Connections/pantanal.php'); mysql_select_db($database_pantanal, $pantanal); include("_funcoes.php"); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: private, no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); ?> <?php require_once "Carrinho.php"; $carrinho = new Carrinho(); $_SESSION['Carrinho']['Produto']['Nulo'] = 'Nulo'; ?> <?php mysql_select_db($database_pantanal, $pantanal); $query_produtos = "SELECT * FROM produtos WHERE id = ".intval($_GET['id'])." ORDER BY id ASC"; $produtos = mysql_query($query_produtos, $pantanal) or die(mysql_error()); $row_produtos = mysql_fetch_assoc($produtos); $totalRows_produtos = mysql_num_rows($produtos); mysql_select_db($database_pantanal, $pantanal); $query_categoria = "SELECT * FROM categoria WHERE id = ".$row_produtos['id_categoria']." "; $categoria = mysql_query($query_categoria, $pantanal) or die(mysql_error()); $row_categoria = mysql_fetch_assoc($categoria); $totalRows_categoria = mysql_num_rows($categoria); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title><? echo $row_produtos['titulo_'.$_SESSION['versao']]; ?> - <? echo $row_categoria['categoria_'.$_SESSION['versao']]; ?> - Pantanal Travel</title> <meta name="title" content="<? echo $row_produtos['titulo_'.$_SESSION['versao']]; ?> - <? echo $row_categoria['categoria_'.$_SESSION['versao']]; ?> - Pantanal Travel"> <? include("inc_metatag.php"); ?> <link rel="shortcut icon" href="favicon.ico"> <style> @import url("css/estilo.css"); @import url("lightbox/lightbox.css"); </style> <script src="js/dw_event.js" type="text/javascript"></script> <script src="js/dw_scroll.js" type="text/javascript"></script> <script src="js/scroll_controls.js" type="text/javascript"></script> <script src="js/funcoes.js"></script> <script src="js/ajax.js"></script> <!-- LIGHTBOX --> <script type="text/javascript" src="lightbox/prototype.js"></script> <script type="text/javascript" src="lightbox/scriptaculous.js?load=effects"></script> <script type="text/javascript" src="lightbox/lightbox.js"></script> <!-- LIGHTBOX --> </head> <body> <div id="centro" style="display:none;"></div> <table width="778" border="0" align="center" cellpadding="0" cellspacing="0" id="layout"> <tr> <td><? include("inc_topo.php"); ?></td> </tr> <tr> <td align="center" id="texto"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="left"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="220" valign="top" style="font-size:11px;"><? include("inc_menu_produtos.php");?></td> <td valign="top"> <table width="689" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <table id="Table_01" width="699" height="99" border="0" cellpadding="0" cellspacing="0"> <tr> </tr> <tr> </tr> <tr> <td align="center"><? include("inc_exp.php");?></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> <td id="titulo_g3"> </td> </tr> <tr> <td width="45"><img src="images/title.jpg" alt="" width="34" height="29" /></td> <td id="titulo_g"><? echo Traducao($_SESSION['versao'],18,$pantanal); ?></td> </tr> <tr> <td> </td> <td id="titulo_g2"> </td> </tr> <? mysql_select_db($database_pantanal, $pantanal); $query_master = "SELECT * FROM master WHERE id = ".$row_categoria['id_master'].""; $master = mysql_query($query_master, $pantanal) or die(mysql_error()); $row_master = mysql_fetch_assoc($master); $totalRows_master = mysql_num_rows($master); ?> <tr> <td colspan="2" style="font-size:14px;"><a href="index.php"><? echo Traducao($_SESSION['versao'],1,$pantanal); ?></a>> <a href="produto_list.php?id=<? echo $row_categoria['id']; ?>"><? echo $row_categoria['categoria_'.$_SESSION['versao']]; ?></a> > <? echo $row_produtos['titulo_'.$_SESSION['versao']]; ?></td> </tr> <tr> <td colspan="2" style="font-size:13px;"> </td> </tr> </table> <? include("inc_produto_grd.php"); ?></td> </tr> </table> </td> </tr> <tr> <td width="220"> </td> <td valign="top"> </td> </tr> </table> </td> </tr> <tr> <td align="left"> </td> </tr> </table> </td> </tr> </table> <div id="rodape"> <? include("inc_rodape.php"); ?> </div> </body> </html>