1
|
<?php
|
2
|
|
3
|
/**
|
4
|
* Main object browser. This page first shows a list of databases and then
|
5
|
* if you click on a database it shows a list of database objects in that
|
6
|
* database.
|
7
|
*
|
8
|
* $Id: browser.php,v 1.52 2005/11/09 09:08:37 jollytoad Exp $
|
9
|
*/
|
10
|
|
11
|
// Include application functions
|
12
|
$_no_db_connection = true;
|
13
|
include_once('./libraries/lib.inc.php');
|
14
|
|
15
|
// Output header
|
16
|
$misc->printHeader('', '
|
17
|
<script src="xloadtree/xtree2.js" type="text/javascript"></script>
|
18
|
<script src="xloadtree/xloadtree2.js" type="text/javascript"></script>
|
19
|
<style type="text/css">
|
20
|
.webfx-tree-children { background-image: url("' . $misc->icon('I') . '"); }
|
21
|
</style>');
|
22
|
|
23
|
$misc->printBody('browser');
|
24
|
echo "<div dir=\"ltr\">\n";
|
25
|
?>
|
26
|
|
27
|
<div class="logo"><a href="intro.php" target="detail"><img src="<?php echo $misc->icon('title') ?>" width="200" height="50" alt="<?php echo htmlspecialchars($appName) ?>" title="<?php echo htmlspecialchars($appName) ?>" /></a></div>
|
28
|
|
29
|
<script type="text/javascript">
|
30
|
|
31
|
webFXTreeConfig.rootIcon = "<?php echo $misc->icon('root') ?>";
|
32
|
webFXTreeConfig.openRootIcon = "<?php echo $misc->icon('root') ?>";
|
33
|
webFXTreeConfig.folderIcon = "<?php echo $misc->icon('folder') ?>";
|
34
|
webFXTreeConfig.openFolderIcon = "<?php echo $misc->icon('folderOpen') ?>";
|
35
|
webFXTreeConfig.fileIcon = "<?php echo $misc->icon('file') ?>";
|
36
|
webFXTreeConfig.iIcon = "<?php echo $misc->icon('I') ?>";
|
37
|
webFXTreeConfig.lIcon = "<?php echo $misc->icon('L') ?>";
|
38
|
webFXTreeConfig.lMinusIcon = "<?php echo $misc->icon('Lminus') ?>";
|
39
|
webFXTreeConfig.lPlusIcon = "<?php echo $misc->icon('Lplus') ?>";
|
40
|
webFXTreeConfig.tIcon = "<?php echo $misc->icon('T') ?>";
|
41
|
webFXTreeConfig.tMinusIcon = "<?php echo $misc->icon('Tminus') ?>";
|
42
|
webFXTreeConfig.tPlusIcon = "<?php echo $misc->icon('Tplus') ?>";
|
43
|
webFXTreeConfig.blankIcon = "<?php echo $misc->icon('blank') ?>";
|
44
|
webFXTreeConfig.loadingIcon = "<?php echo $misc->icon('loading') ?>";
|
45
|
webFXTreeConfig.loadingText = "<?php echo $lang['strloading'] ?>";
|
46
|
webFXTreeConfig.errorIcon = "<?php echo $misc->icon('error') ?>";
|
47
|
webFXTreeConfig.errorLoadingText = "<?php echo $lang['strerrorloading'] ?>";
|
48
|
webFXTreeConfig.reloadText = "<?php echo $lang['strclicktoreload'] ?>";
|
49
|
|
50
|
// Set default target frame:
|
51
|
WebFXTreeAbstractNode.prototype.target = 'detail';
|
52
|
|
53
|
// Disable double click:
|
54
|
WebFXTreeAbstractNode.prototype._ondblclick = function(){}
|
55
|
|
56
|
// Show tree XML on double click - for debugging purposes only
|
57
|
/*
|
58
|
// UNCOMMENT THIS FOR DEBUGGING (SHOWS THE SOURCE XML)
|
59
|
WebFXTreeAbstractNode.prototype._ondblclick = function(e){
|
60
|
var el = e.target || e.srcElement;
|
61
|
|
62
|
if (this.src != null)
|
63
|
window.open(this.src, this.target || "_self");
|
64
|
return false;
|
65
|
};
|
66
|
*/
|
67
|
var tree = new WebFXLoadTree("<?php echo $lang['strservers']; ?>", "servers.php?action=tree", "servers.php");
|
68
|
|
69
|
tree.write();
|
70
|
tree.setExpanded(true);
|
71
|
|
72
|
</script>
|
73
|
|
74
|
<?php
|
75
|
// Output footer
|
76
|
echo "</div>\n";
|
77
|
$misc->printFooter();
|
78
|
|
79
|
?>
|