Update of /cvsroot/firebug/firebug/web
In directory sc8-pr-cvs1:/tmp/cvs-serv13062
Modified Files:
nav_footer.php
Added Files:
db_list.php
Removed Files:
list_db.php
Log Message:
Changed a file name to reduce confusion.
--- NEW FILE: db_list.php ---
<html>
<head>
<title>Example FireBug Client</title>
<link rel="SHORTCUT ICON" href="./images/favicon.ico">
<link type="text/css" rel="stylesheet" href="firebug.css">
</head>
<body>
<h1>FireBug web client database selection</h1>
<center>
<form action="db_select.php" method="post">
<table class="db_schema">
<tr>
<td>DataBase Name</td>
<td>Selected</td>
</tr>
<?php
$dblink=mysql_connect("localhost","root","") or die("Error: ".mysql_error()." in mysql_connect.");
$arr = array(1 => "mysql", 2 => "test");
$db_list = mysql_list_dbs($dblink);
while ($row = mysql_fetch_object($db_list)) {
$var=$row->Database;
$flag=false;
for ($i = 1; $i <= count($arr); $i++){
if ($arr[$i]==$var)
{ $flag=true;}
}
if($flag==false){
print ("<tr><td>");
print $var;
print ("</td>");
print ("<td>");
print ("<input type=radio name=db1 value=\"$var\">");
print ("</td>");
print ("</tr>");
}
}
?>
</table>
<input type="submit" value="Show tables">
</form>
</center>
<hr />
<?php
include("nav_footer.php");
?>
<hr />
<p>
Database data last updated:
<?php
echo date ("l dS F Y h:i:s A");
?>
</p>
</body>
</html>
Index: nav_footer.php
===================================================================
RCS file: /cvsroot/firebug/firebug/web/nav_footer.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** nav_footer.php 15 May 2003 00:02:58 -0000 1.4
--- nav_footer.php 22 Jul 2003 15:38:45 -0000 1.5
***************
*** 3,7 ****
<a href="./index.html">[FireBug home]</a>
<a href="./db_admin.php">[DB Admin]</a>
! <a href="./list_db.php">[DB List]</a>
<a href="./db_drop.php">[DB Drop]</a>
</center>
--- 3,7 ----
<a href="./index.html">[FireBug home]</a>
<a href="./db_admin.php">[DB Admin]</a>
! <a href="./db_list.php">[DB List]</a>
<a href="./db_drop.php">[DB Drop]</a>
</center>
--- list_db.php DELETED ---
|