diff options
author | Ted Trask <ttrask01@yahoo.com> | 2011-08-18 15:18:15 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2011-08-18 15:18:15 +0000 |
commit | a12257762adb07cc1f708baed0724921e6dbbf20 (patch) | |
tree | 34ac7400beb610ed0e3a318531030deddb4c81d5 /weblog-editfile-html.lsp | |
parent | 28804449df1f28067b9eba8475452b5c97b2a1ac (diff) | |
download | acf-weblog-a12257762adb07cc1f708baed0724921e6dbbf20.tar.bz2 acf-weblog-a12257762adb07cc1f708baed0724921e6dbbf20.tar.xz |
Started cleanup, not complete
Diffstat (limited to 'weblog-editfile-html.lsp')
-rw-r--r--[l---------] | weblog-editfile-html.lsp | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/weblog-editfile-html.lsp b/weblog-editfile-html.lsp index 15b1930..6b5a2f3 120000..100644 --- a/weblog-editfile-html.lsp +++ b/weblog-editfile-html.lsp @@ -1 +1,37 @@ -../filedetails-html.lsp
\ No newline at end of file +<% local form, viewlibrary, page_info = ... %> +<% require("viewfunctions") %> + +<% if form.type == "form" then %> +<H1>Configuration</H1> +<H2>Expert Configuration</H2> +<% else %> +<H1>View File</H1> +<% end %> +<H3>File Details</H3> +<DL> +<% +displayitem(form.value.filename) +displayitem(form.value.filesize) +displayitem(form.value.mtime) +%> +</DL> + +<H3>File Content</H3> +<% if form.type == "form" then %> +<% form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %> +<% displayformstart(form) %> +<input type="hidden" name="filename" value="<%= html.html_escape(form.value.filename.value) %>"> +<% else %> +<DL> +<% end %> +<textarea name="filecontent"> +<%= html.html_escape(form.value.filecontent.value) %> +</textarea> +<% if form.value.filecontent.errtxt then %><P CLASS='error'><%= string.gsub(html.html_escape(form.value.filecontent.errtxt), "\n", "<BR>") %></P><% end %> +<% if form.value.filecontent.descr then %><P CLASS='descr'><%= string.gsub(html.html_escape(form.value.filecontent.descr), "\n", "<BR>") %></P><% end %> + +<% if form.type == "form" then %> +<% displayformend(form) %> +<% else %> +</DL> +<% end %> |