1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/swat/esptest/registry.esp
Deryck Hodge c6b592a5b7 r9635: Seperate window logic from registry js file.
This allows for flexibility in display format,
which will make more sense when I start working
on windows, tabs, etc.

Add the beginnings of a document.js object that allows
us to add and remove scripts as we use them, which will
ensure we only load what we need.  A desktop GUI runs
from a single page, so we can't load js files by changing
pages.

deryck
(This used to be commit b4f6f81d7b)
2007-10-10 13:34:36 -05:00

51 lines
1.4 KiB
Plaintext

<%
page_header("columns", "ESP registry edit", "esptest");
%>
<script type="text/javascript" src="/scripting/client/encoder.js"></script>
<script type="text/javascript" src="/scripting/client/call.js"></script>
<script type="text/javascript" src="/scripting/client/regedit.js"></script>
<h1>Registry Editor</h1>
<script type="text/javascript">
/*** init the page for qooxdoo ***/
window.application.main = function()
{
var doc = this.getClientWindow().getDocument();
var inlineWidget = new QxInline;
var qwidget = new QxWidget;
qwidget.setHeight(800);
qwidget.setWidth("100%");
qwidget.setBorder(QxBorder.presets.groove);
var btn1 = new QxButton("Registry Editor");
btn1.set({ top: 20, left : 30 });
btn1.addEventListener("click", function() {
var regWindow = new QxWindow("Registry Editor");
with(regWindow) {
setTop(50);
setLeft(50);
setMinWidth(600);
setMinHeight(600);
setResizeMethod("frame");
}
var regedit = regedit_widget("ncalrpc:");
regWindow.add(regedit);
qwidget.add(regWindow);
regWindow.setVisible(true);
});
qwidget.add(btn1);
inlineWidget.add(qwidget);
doc.add(inlineWidget, "canvas");
}
</script>
<div id="canvas" style="overflow:hidden;position:static;margin-top:38px;margin-left:10px;margin-right:700px;width:700px"></div>
<% page_footer(); %>