From d9c4ff9ef044b04ec52cea99b8005e71f632ce3e Mon Sep 17 00:00:00 2001 From: Deryck Hodge Date: Fri, 19 Aug 2005 12:02:30 +0000 Subject: r9397: Playing with qooxdoo a bit and saving my work, so I can get to it later today at work. Not much to see yet, and not linked to from SWAT yet. Playing with the idea of a web-based desktop, and just seeing how widgets can be used. deryck (This used to be commit 435467f90d809899c3d0efeaf991fb659d97202d) --- swat/desktop/index.esp | 168 ++++++++++++++++++++++++++++++++++++++ swat/scripting/footer_desktop.esp | 6 ++ swat/scripting/header_desktop.esp | 34 ++++++++ 3 files changed, 208 insertions(+) create mode 100644 swat/desktop/index.esp create mode 100644 swat/scripting/footer_desktop.esp create mode 100644 swat/scripting/header_desktop.esp (limited to 'swat') diff --git a/swat/desktop/index.esp b/swat/desktop/index.esp new file mode 100644 index 0000000000..8fe45ed4a0 --- /dev/null +++ b/swat/desktop/index.esp @@ -0,0 +1,168 @@ +<% +/*** Reg stuff ***/ +libinclude("base.js"); +libinclude("winreg.js"); +libinclude("server_call.js"); + +/* + server side call to return a listing of elements in a winreg path +*/ +function enum_path(binding, path) { + printf("enum_path(%s, %s)\n", binding, path); + var reg = winreg_init(); + security_init(reg); + + reg.credentials = session.authinfo.credentials; + + var status = reg.connect(binding); + if (status.is_ok != true) { + printVars(status); + return undefined; + } + var list = winreg_enum_path(reg, path); + return list; +} + +/* register a call for clients to make */ +var call = servCallObj(); +call.add('enum_path', enum_path); + +/* run the function that was asked for */ +call.run(); +/** endReg stuff *****/ + + page_header("desktop", "Virtual Desktop Design Test", "desktop"); +%> + + + + + + +
+ +
+

SWAT (Start)

+
+ +<% page_footer(); %> diff --git a/swat/scripting/footer_desktop.esp b/swat/scripting/footer_desktop.esp new file mode 100644 index 0000000000..5e563dab88 --- /dev/null +++ b/swat/scripting/footer_desktop.esp @@ -0,0 +1,6 @@ +<% + /* footer for desktop page type */ +%> + + + diff --git a/swat/scripting/header_desktop.esp b/swat/scripting/header_desktop.esp new file mode 100644 index 0000000000..a21ee733bb --- /dev/null +++ b/swat/scripting/header_desktop.esp @@ -0,0 +1,34 @@ + + + + + + + + @@global.page.title + + + + + + + + + + + + -- cgit