Location: PHPKode > projects > MyDB > webide/submenu1_inc.php
<?  
/*************************************************************
 * The MyDB librairy and applications are product of SQLFusion
 * It may be used and/or distributed under the terms of the Q Public
 * License (QPL) version 1.0, enclosed in the file licence.txt.
 ****************************************************************/
/** MyDB IDE Version 0.4    **/ 
/** Author Philippe Lewicki **/
 

   /* Getting information from the registry for the hidden tables */
$rregistry= mysql_db_query($conx->db, "select rtable, rdata from registry where rtype='hidetable'") ; 
if ($rregistry >0) {
     while (list($rtable, $rdata) = mysql_fetch_row($rregistry)) {
        $hidetable[$rtable]=$rdata ; 
   }
} 
   ?>
   <table width="100%" border="0" cellspacing="0" cellpadding="3"> 
   <?php
   $tables = mysql_list_tables($conx->db);
   $num_tables = @mysql_numrows($tables);
   for ($j=0; $j<$num_tables; $j++)
       {
       $table = mysql_tablename($tables, $j);
      if (!$hidetable[$table]) {       
         if (!isset($tablename)) { 
    $tablename = $table; 
	session_register("tablename") ; 
	}
     ?>  
<tr> 
          <td>
                 <img src="images/puce1.gif" width="15" height="10" hspace="3">
          </td> 
          <td>
               <a class="menu" HREF="formbuilder.php?newtablename=<? echo $table ?>"><?php echo $table;?></a><br>
         </td> 
</tr>   
 <?php
      } 
       }
echo "</table>" ;     
   ?>
      <DIV align="left"> <img src="images/puce2.gif" width="149" height="9"><br> 
        <br> 
   <table width="100%" border="0" cellspacing="0" cellpadding="3"> 
<tr> 
          <td>
                 <img src="images/puce1.gif" width="15" height="10" hspace="3">
          </td> 
          <td>
               <a class="menu" HREF="addtable.php"><?php echo $strAddTable;?></a><br>
         </td> 
</tr> 
  <tr> 
          <td>
                 <img src="images/puce1.gif" width="15" height="10" hspace="3">
          </td> 
          <td>
               <a class="menu" HREF="deltable.php?deltablename=<? echo $tablename; ?>"><?php echo $strDeleteThisTable;?></a><br>
         </td> 
</tr>   

</table>

Return current item: MyDB