Файл: MysqlIManager/MysqlIManager/leftup.php
Строк: 51
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<STYLE>
#divContent {position:absolute; top:0; left:0; width:165px; height: 200px}
</STYLE>
<script language="javascript" src="js/scrollbar2.js"></script>
<link rel="stylesheet" href="settings.css" type="text/css">
<script language="JavaScript">
function Open_Win(location) {
var winl = (screen.width - 400) / 2;
var wint = (screen.height - 200) / 2;
win = window.open(location, '', 'width=400, height=200, top='+wint+', left='+winl+', scrollbars=yes')
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
</script>
</head>
<body onload="initScroller();">
<div id="divContent">
<?php
include("common.inc");
$query = "SHOW DATABASES";
$result = mysql_query($query) or die("ERROR");
$num_db = mysql_num_rows($result);
print("<font color=#FF0000>$num_db</font> current databases<br><br>");
print("<table border=0>");
while(list($DATABASES) = mysql_fetch_row($result)) {
print("<tr><td><a href="showtables.php?DB=$DATABASES" target="middleup">$DATABASES</td><td><a href="javascript: Open_Win('addtable.php?DB=$DATABASES');"><img src="images/add.gif" border=0 alt="Add a new table to this database"></a></td></tr>");
}
print("</table>");
?>
</div>
</body>
</html>