* if you click on a database it shows a list of database objects in that
* database.
*
- * $Id: browser.php,v 1.44.2.1 2005/03/01 10:47:03 jollytoad Exp $
+ * $Id: browser.php,v 1.44.2.2 2005/03/03 14:52:56 jollytoad Exp $
*/
// Include application functions
include_once('./libraries/lib.inc.php');
// Output header
- $misc->printHeader('', "<script src=\"xloadtree/xtree.js\" type=\"text/javascript\"></script>\n<script src=\"xloadtree/xmlextras.js\" type=\"text/javascript\"></script>\n<script src=\"xloadtree/xloadtree.js\" type=\"text/javascript\"></script>");
+ $misc->printHeader('', "<script src=\"xloadtree/xmlextras.js\" type=\"text/javascript\"></script>\n<script src=\"xloadtree/xtree2.js\" type=\"text/javascript\"></script>\n<script src=\"xloadtree/xloadtree2.js\" type=\"text/javascript\"></script>");
$misc->printBody('browser');
?>
- <div class="logo"><a href="intro.php" target="detail"><img src="images/themes/<?php echo $conf['theme'] ?>/title.png" width="200" height="50" alt="<?php echo htmlspecialchars($appName) ?>" title="<?php echo htmlspecialchars($appName) ?>" /></a></div>
+ <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>
+<style type="text/css">
+.webfx-tree-children {
+ background-image: url("<?php echo $misc->icon('I') ?>");
+}
+</style>
<script type="text/javascript">
webFXTreeConfig.rootIcon = "<?php echo $misc->icon('root') ?>";
webFXTreeConfig.tMinusIcon = "<?php echo $misc->icon('Tminus') ?>";
webFXTreeConfig.tPlusIcon = "<?php echo $misc->icon('Tplus') ?>";
webFXTreeConfig.blankIcon = "<?php echo $misc->icon('blank') ?>";
+webFXTreeConfig.loadingIcon = "<?php echo $misc->icon('loading') ?>";
+webFXTreeConfig.loadingText = "<?php echo $lang['strloading']; ?>";
var tree = new WebFXLoadTree("<?php echo $lang['strservers']; ?>", "servers.php?action=tree", "servers.php");
-tree.target = 'detail';
+tree.target = "detail";
-document.write(tree);
+tree.write();
</script>
/**
* Default style sheet
*
- * $Id: global.css,v 1.31.4.1 2005/03/01 10:43:10 jollytoad Exp $
+ * $Id: global.css,v 1.31.4.2 2005/03/03 14:52:18 jollytoad Exp $
*/
/** ELEMENTS */
.keyword {color: #FF8000}
.literal {color: #808080}
-/* Browser Tree */
-.webfx-tree-container {
- margin: 0px;
- padding: 0px;
- font: arial, tahoma, verdana, helvetica, sans-serif, serif;
+/* Browser Tree using XLoadTree 2 */
+.webfx-tree-row {
white-space: nowrap;
+ font: arial, tahoma, verdana, helvetica, sans-serif, serif;
}
-.webfx-tree-item {
- padding: 0px;
- margin: 0px;
- font: arial, tahoma, verdana, helvetica, sans-serif, serif;
- white-space: nowrap;
- height: 20px;
+.webfx-tree-children {
+ background-repeat: repeat-y;
+ background-position-y: 1px !important; /* IE only */
}
-.webfx-tree-item img {
+.webfx-tree-row img {
vertical-align: middle;
- border: 0px;
+ height: 20px;
}
.webfx-tree-icon {
width: 20px;
- height: 20px;
+ cursor: hand;
+ cursor: pointer;
+}
+
+.webfx-tree-expand-icon {
+ width: 20px;
+}
+
+.webfx-tree-hide-root {
+ display: none;
}