change table style

This commit is contained in:
Angelo Cuccato 2010-11-08 23:42:21 +01:00
parent 0059fd16dd
commit 3b6e2b24b1
1 changed files with 5 additions and 4 deletions

View File

@ -12,9 +12,10 @@ function funktion_db_list($Table_Name)
$Anzahl_Felder = mysql_num_fields($Erg); $Anzahl_Felder = mysql_num_fields($Erg);
echo "<table border=1>"; echo "<table class=\"border\" cellpadding=\"2\" cellspacing=\"1\">";
echo "<caption>DB: $Table_Name</caption>";
echo "<tr>"; echo "<tr class=\"contenttopic\">";
for ($m = 0 ; $m < $Anzahl_Felder ; $m++) for ($m = 0 ; $m < $Anzahl_Felder ; $m++)
{ {
echo "<th>". mysql_field_name($Erg, $m). "</th>"; echo "<th>". mysql_field_name($Erg, $m). "</th>";
@ -23,7 +24,7 @@ function funktion_db_list($Table_Name)
for ($n = 0 ; $n < $Zeilen ; $n++) for ($n = 0 ; $n < $Zeilen ; $n++)
{ {
echo "<tr>"; echo "<tr class=\"content\">";
for ($m = 0 ; $m < $Anzahl_Felder ; $m++) for ($m = 0 ; $m < $Anzahl_Felder ; $m++)
{ {
echo "<td>".mysql_result($Erg, $n, $m). "</td>"; echo "<td>".mysql_result($Erg, $n, $m). "</td>";
@ -44,7 +45,7 @@ function funktion_db_element_list_2row( $TopicName, $SQL)
$Erg = mysql_query($SQL, $con); $Erg = mysql_query($SQL, $con);
echo mysql_error($con); echo mysql_error($con);
echo "<tr class=\"contenttopic\">"; echo "<tr class=\"contenttopic\">";
for ($m = 0 ; $m < mysql_num_fields($Erg) ; $m++) for ($m = 0 ; $m < mysql_num_fields($Erg) ; $m++)
{ {
echo "<th>". mysql_field_name($Erg, $m). "</th>"; echo "<th>". mysql_field_name($Erg, $m). "</th>";