PHP Classes

File: leftup.php

Recommend this page to a friend!
  Classes of Marius   dbFile   leftup.php   Download  
File: leftup.php
Role: Application script
Content type: text/plain
Description: leftup.php
Class: dbFile
file based web database and Administrator
Author: By
Last change:
Date: 20 years ago
Size: 1,547 bytes
 

Contents

Class file image Download
<!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 = "LIST DATABASES";
$result = $dbf->query($query) or die("ERROR");
$num_db = count($result);

print(
"<table border=0><tr><td><a>User admin</td><td><a href=\"javascript: Open_Win('adduser.php?DB=$DATABASES');\"><img src=\"images/user.jpg\" border=0 alt=\"Add a new user to this database\"></a></td></tr></table>");
print(
"<hr>");
print(
"<font color=#FF0000>$num_db</font> current databases<br><br>");
while(list(
$key,$DATABASES) = each($result)) {
print(
"<table><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>