diff --git a/pandora_console/CHANGELOG b/pandora_console/CHANGELOG index 76fd4d3792..3dda21fc7c 100644 --- a/pandora_console/CHANGELOG +++ b/pandora_console/CHANGELOG @@ -1,8 +1,10 @@ 2006-07-17 Raul Mateos + * view_server.php. Add different colors between rows (cosmetic changes) + * Some headers changed to show the "official" GPL Header info - * modificar_server.php. Add highlights. Add line before the submit button. Add help. + * modificar_server.php. Add different colors between rows (cosmetic changes). Add line before the submit button. Add help. * configurar_agente.php. Solved small bug that only show the last alert when creating alert in an agent, but the alert was created into database. diff --git a/pandora_console/operation/servers/view_server.php b/pandora_console/operation/servers/view_server.php index 4382b59a67..e5db1560d4 100644 --- a/pandora_console/operation/servers/view_server.php +++ b/pandora_console/operation/servers/view_server.php @@ -31,7 +31,6 @@ if (comprueba_login() == 0) { // Connect DataBase $result=mysql_query($sql); if (mysql_num_rows($result)){ - echo "
"; echo ""; echo "
".$lang_label["name"]; echo "".$lang_label['status']; @@ -44,7 +43,16 @@ if (comprueba_login() == 0) { echo "".$lang_label['checksum']; echo "".$lang_label['laststart']; echo "".$lang_label['lastupdate']; + $color=1; while ($row=mysql_fetch_array($result)){ + if ($color == 1){ + $tdcolor = "datos"; + $color = 0; + } + else { + $tdcolor = "datos2"; + $color = 1; + } $name = $row["name"]; $address = $row["ip_address"]; $status = $row["status"]; @@ -57,39 +65,39 @@ if (comprueba_login() == 0) { $checksum = $row["checksum"]; $description = $row["description"]; - echo "
"; + echo "
"; echo "$name"; - echo ""; + echo ""; if ($status ==0){ echo ""; } else { echo ""; } - echo ""; + echo ""; echo "$address"; - echo "".substr($description,0,25); - echo ""; + echo "".substr($description,0,25); + echo ""; if ($network_server == 1){ echo ""; } - echo ""; + echo ""; if ($data_server == 1){ echo ""; } - echo ""; + echo ""; if ($snmp_server == 1){ echo ""; } - echo ""; + echo ""; if ($master == 1){ echo ""; } - echo ""; + echo ""; if ($checksum == 1){ echo ""; } - echo "".substr($laststart,0,25); - echo "".substr($keepalive,0,25); + echo "".substr($laststart,0,25); + echo "".substr($keepalive,0,25); } echo '
'; }