* if you click on a database it shows a list of database objects in that
* database.
*
- * $Id: browser.php,v 1.57 2007/04/17 08:55:12 soranzo Exp $
+ * $Id: browser.php,v 1.58 2008/02/13 22:55:38 ioguix Exp $
*/
// Include application functions
WebFXTreeAbstractNode.prototype._ondblclick = function(){}
// Show tree XML on double click - for debugging purposes only
-/*
+
// UNCOMMENT THIS FOR DEBUGGING (SHOWS THE SOURCE XML)
WebFXTreeAbstractNode.prototype._ondblclick = function(e){
var el = e.target || e.srcElement;
window.open(this.src, this.target || "_self");
return false;
};
-*/
+
var tree = new WebFXLoadTree("<?php echo $lang['strservers']; ?>", "servers.php?action=tree", "servers.php");
tree.write();
(hideLines ? "-nolines" : "") + "\" style=\"" +
this.getLineStyle() +
(this.getExpanded() && this.hasChildren() ? "" : "display:none;") +
- "\">" +
+ "\">\n" +
sb.join("") +
- "</div>";
+ "</div>\n";
return "<div class=\"webfx-tree-item\" id=\"" +
- this.id + "\"" + this.getEventHandlersHtml() + ">" +
+ this.id + "\"" + this.getEventHandlersHtml() + ">\n" +
this.getRowHtml() +
childrenHtml +
- "</div>";
+ "</div>\n";
};
_p.getRowHtml = function () {
var t = this.getTree();
return "<div class=\"" + this.getRowClassName() + "\" style=\"padding-left:" +
- Math.max(0, (this.getDepth() - 1) * this.indentWidth) + "px\">" +
+ Math.max(0, (this.getDepth() - 1) * this.indentWidth) + "px\">\n" +
this.getExpandIconHtml() +
//"<span class=\"webfx-tree-icon-and-label\">" +
this.getIconHtml() +
this.getLabelHtml() +
//"</span>" +
- "</div>";
+ "</div>\n";
};
_p.getRowClassName = function () {
(toolTip ? " title=\"" + webFXTreeHandler.textToHtml(toolTip) + "\"" : "") +
(target ? " target=\"" + target + "\"" : "") +
" onfocus=\"webFXTreeHandler.handleEvent(event)\"" +
- " onblur=\"webFXTreeHandler.handleEvent(event)\">" +
- this.getHtml() + "</a>";
+ " onblur=\"webFXTreeHandler.handleEvent(event)\">\n" +
+ this.getHtml() + "\n</a>\n";
};
_p._getHref = function () {
// HTML...
var link = this._getIconHref();
if (link == '#')
- return "<img class=\"webfx-tree-icon\" src=\"" + this.getIconSrc() + "\"> ";
+ return "<img class=\"webfx-tree-icon\" src=\"" + this.getIconSrc() + "\">\n ";
return "<a href=\"" + webFXTreeHandler.textToHtml(link) +
- "\"><img class=\"webfx-tree-icon\" src=\"" + this.getIconSrc() + "\"></a>";
+ "\"><img class=\"webfx-tree-icon\" src=\"" + this.getIconSrc() + "\"></a>\n";
};
_p.getIconSrc = function () {
// here we are not using textToHtml since the file names rarerly contains
// HTML...
return "<img class=\"webfx-tree-expand-icon\" src=\"" +
- this.getExpandIconSrc() + "\">";
+ this.getExpandIconSrc() + "\">\n";
};