[Firebug-cvs] firebug/web db_list.php,1.2,1.3 firebug.css,1.12,1.13
Brought to you by:
doolin
From: David M. D. <do...@us...> - 2004-05-11 23:23:47
|
Update of /cvsroot/firebug/firebug/web In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3947 Modified Files: db_list.php firebug.css Log Message: Refactored more code. Index: db_list.php =================================================================== RCS file: /cvsroot/firebug/firebug/web/db_list.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** db_list.php 30 Jul 2003 21:49:39 -0000 1.2 --- db_list.php 11 May 2004 23:23:38 -0000 1.3 *************** *** 21,61 **** <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> --- 21,26 ---- <form action="db_select.php" method="post"> ! <?php include "db_list_databases.php" ?> <input type="submit" value="Show tables"> </form> Index: firebug.css =================================================================== RCS file: /cvsroot/firebug/firebug/web/firebug.css,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** firebug.css 16 Feb 2004 02:03:16 -0000 1.12 --- firebug.css 11 May 2004 23:23:38 -0000 1.13 *************** *** 17,22 **** --- 17,24 ---- background-color:#ffff66; border:solid; + /* width:80%; font-size:75%; + */ } |