codekasten/notiz-datenbank/navi.php

34 lines
794 B
PHP
Raw Permalink Normal View History

<DIV style="text-align:center">
<TABLE BORDER="0" WIDTH="100%" style="text-align:center">
<TR><TD><?PHP print hyperlink("zeige_alle_menschen.php","Liste der Eintr&auml;ge"); ?></TD>
<TD><?PHP print hyperlink("zeige_alle_menschen.php#neu","Neuer Mensch"); ?></TD></TR>
</TABLE>
<?php
$tabs = mysql_list_tables($dbName);
echo '<TABLE BORDER="0" style="text-align:center" WIDTH="100%">';
print '<COLGROUP ';
print 'WIDTH="' . (100/mysql_num_rows($tabs)) . '" ';
print 'SPAN="' . mysql_num_rows($tabs) . '" ';
print '</COLGROUP>';
print "<TR>";
// die Tabellen anzeigen
$i=0; while ($i < mysql_num_rows($tabs))
{
$tabName = mysql_tablename($tabs,$i);
echo "<TD>";
print hyperlink("zeige_tabelle.php?tab=$tabName",$tabName);
echo "</TD>";
$i++;
}
?>
</TR></TABLE>
</DIV>
<HR>