diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-08-25 11:59:53 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-08-25 11:59:53 +0000 |
commit | e5c610f887196986183d11cda9ced7735c355a37 (patch) | |
tree | 020633c78a1b80b1de7ba64e08efc9235e36960d /dhcp-listfiles-html.lsp | |
parent | 0ab4dcf45f28de3fca8fe35b7513da33da97b20d (diff) | |
download | acf-dhcp-e5c610f887196986183d11cda9ced7735c355a37.tar.bz2 acf-dhcp-e5c610f887196986183d11cda9ced7735c355a37.tar.xz |
Added ability to edit conf.d file, bumped to 0.4.2v0.4.2
Diffstat (limited to 'dhcp-listfiles-html.lsp')
-rw-r--r-- | dhcp-listfiles-html.lsp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/dhcp-listfiles-html.lsp b/dhcp-listfiles-html.lsp new file mode 100644 index 0000000..ef5687f --- /dev/null +++ b/dhcp-listfiles-html.lsp @@ -0,0 +1,32 @@ +<% local data, viewlibrary, page_info, session = ... +require("viewfunctions") +%> + +<% displaycommandresults({"expert", "startstop"}, session) %> + +<% if viewlibrary and viewlibrary.dispatch_component then + viewlibrary.dispatch_component("status") +end %> + +<h1><%= html.html_escape(data.label) %></h1> +<TABLE> + <TR style="background:#eee;font-weight:bold;"> + <TD style="padding-right:20px;white-space:nowrap;text-align:left;" class="header">File</TD> + <TD style="padding-right:20px;white-space:nowrap;text-align:left;" class="header">Size</TD> + <TD style="white-space:nowrap;text-align:left;" class="header">Last Modified</TD> + </TR> + +<% for i,file in ipairs(data.value) do %> + <TR> + <TD style="padding-right:20px;white-space:nowrap;"> + <%= html.link{value = "expert?filename=" .. file.filename.."&redir="..page_info.orig_action, label=file.filename} %> + </TD> + <TD style="padding-right:20px;white-space:nowrap;"><%= html.html_escape(file.filesize) %></TD> + <TD style="white-space:nowrap;" width="90%"><%= html.html_escape(file.mtime) %></TD> + </TR> +<% end %> +</TABLE> + +<% if viewlibrary and viewlibrary.dispatch_component then + viewlibrary.dispatch_component("startstop") +end %> |