%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/pantanal/www/
Upload File :
Create Path :
Current File : /home/pantanal/www/inc_menu_produtos.php

<?

mysql_select_db($database_pantanal, $pantanal);

$query_mcategoria = "SELECT * FROM master ORDER BY ordem ASC, master_".$_SESSION['versao']." ASC";

$mcategoria = mysql_query($query_mcategoria, $pantanal) or die(mysql_error());

$row_mcategoria = mysql_fetch_assoc($mcategoria);

$totalRows_mcategoria = mysql_num_rows($mcategoria);

?>



<div id="menu_lateral">

  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">

    <tr>

      <td><table width="100%" border="0" cellspacing="0" cellpadding="0">

        <tr>

          <td>&nbsp;</td>

          <td id="titulo_g3">&nbsp;</td>

        </tr>

        <tr>

          <td width="36"><img src="images/title.jpg" alt="" width="34" height="29" /></td>

          <td id="titulo_g"><? echo Traducao($_SESSION['versao'],7,$pantanal); ?></td>

        </tr>

        <tr>

          <td>&nbsp;</td>

          <td id="titulo_g2">&nbsp;</td>

        </tr>

      </table></td>

    </tr>

    <tr>

      <td align="left"><div style="width:220px; line-height:12px; text-align:left;">

          <?php do { ?>


            <div style="font-size:14px;">&nbsp;&nbsp;&nbsp;<strong>-</strong>&nbsp;&nbsp;<a href="produto_cat.php?id_cat=<?php echo $row_mcategoria['id']; ?>" style="color:#333333; text-decoration:none;" title="<?php echo $row_mcategoria['master_'.$_SESSION['versao']]; ?>"> <?php echo $row_mcategoria['master_'.$_SESSION['versao']]; ?></a></div>
            
          <?
			if ($_GET['id_cat'] <> '' and $_GET['id_cat'] == $row_mcategoria['id']) {
            $query_submcategoria = "SELECT * FROM categoria WHERE id_master = ".$_GET['id_cat']." ORDER BY ordem ASC, categoria_".$_SESSION['versao']." ASC";
            $submcategoria = mysql_query($query_submcategoria, $pantanal) or die(mysql_error());
            $row_submcategoria = mysql_fetch_assoc($submcategoria);
            $totalRows_submcategoria = mysql_num_rows($submcategoria);
          ?>

          <? if ($totalRows_submcategoria > 0) { do { ?>

            <div style="font-size:14px; margin-top:10px;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>-</strong>&nbsp;&nbsp;<a href="produto_list.php?id=<?php echo $row_submcategoria['id']; ?>&id_cat=<?php echo $row_mcategoria['id']; ?>" style="color:#333333; text-decoration:none;" title="<?php echo $row_submcategoria['categoria_'.$_SESSION['versao']]; ?>"> <?php echo $row_submcategoria['categoria_'.$_SESSION['versao']]; ?></a></div>

            <?php }while ($row_submcategoria = mysql_fetch_assoc($submcategoria)); }} ?>
            

            <div style="font-size:14px; color:#9a9a9a; margin-bottom:8px;">.....................................................</div>

            <?php } while ($row_mcategoria = mysql_fetch_assoc($mcategoria)); ?>

          <?

           mysql_free_result($mcategoria);

		   ?>

        </div></td>

    </tr>

  </table>

</div>


Zerion Mini Shell 1.0