diff options
-rw-r--r-- | dnscache-config-html.lsp | 20 | ||||
-rw-r--r-- | dnscache-editdomain-html.lsp | 14 | ||||
-rw-r--r-- | dnscache-listdomains-html.lsp | 26 |
3 files changed, 30 insertions, 30 deletions
diff --git a/dnscache-config-html.lsp b/dnscache-config-html.lsp index d079d72..d18dd79 100644 --- a/dnscache-config-html.lsp +++ b/dnscache-config-html.lsp @@ -1,24 +1,24 @@ -<? local form, viewlibrary, page_info = ... +<% local form, viewlibrary, page_info = ... require("viewfunctions") -?> -<? +%> +<% --[[ DEBUG INFORMATION io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>") io.write(html.cfe_unpack(form)) io.write("</span>") --]] -?> +%> -<? if viewlibrary and viewlibrary.dispatch_component then +<% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("status") -end ?> +end %> <H1>Config</H1> -<? +<% form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action displayform(form) -?> +%> -<? if viewlibrary and viewlibrary.dispatch_component then +<% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("startstop") -end ?> +end %> diff --git a/dnscache-editdomain-html.lsp b/dnscache-editdomain-html.lsp index e04fd66..500d1a2 100644 --- a/dnscache-editdomain-html.lsp +++ b/dnscache-editdomain-html.lsp @@ -1,18 +1,18 @@ -<? local form, viewlibrary, page_info = ... +<% local form, viewlibrary, page_info = ... require("viewfunctions") -?> -<? +%> +<% --[[ DEBUG INFORMATION io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>") io.write(html.cfe_unpack(form)) io.write("</span>") --]] -?> +%> -<H1><?= form.label ?></H1> -<? +<H1><%= form.label %></H1> +<% form.action = page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action form.value.domain.contenteditable = false local order = { "domain", "iplist" } displayform(form, order) -?> +%> diff --git a/dnscache-listdomains-html.lsp b/dnscache-listdomains-html.lsp index 5e4517b..d208ec2 100644 --- a/dnscache-listdomains-html.lsp +++ b/dnscache-listdomains-html.lsp @@ -1,15 +1,15 @@ -<? local data, viewlibrary, page_info, session = ... +<% local data, viewlibrary, page_info, session = ... require("viewfunctions") -?> -<? +%> +<% --[[ DEBUG INFORMATION io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>") io.write(html.cfe_unpack(data)) io.write("</span>") --]] -?> +%> -<? displaycommandresults({"deletedomain"}, session) ?> +<% displaycommandresults({"deletedomain"}, session) %> <h1>Configuration</h1> <h2>Edit/View DNS server entries</h2> @@ -18,19 +18,19 @@ io.write("</span>") <TD style="padding-right:20px;white-space:nowrap;text-align:left;" class="header">Action</TD> <TD style="white-space:nowrap;text-align:left;" class="header">Domain</TD> </TR> -<? for i,domain in ipairs(data.value) do ?> +<% for i,domain in ipairs(data.value) do %> <TR> <TD style="padding-right:20px;white-space:nowrap;"> - <? io.write(html.link{value = "editdomain?domain=" .. domain, label="Edit " }) ?> - <? if domain ~= "@" then + <% io.write(html.link{value = "editdomain?domain=" .. domain, label="Edit " }) %> + <% if domain ~= "@" then io.write(html.link{value = "deletedomain?domain=" .. domain, label="Delete " }) - end ?> + end %> </TD> - <TD style="white-space:nowrap;" width="90%"><?= domain ?></TD> + <TD style="white-space:nowrap;" width="90%"><%= domain %></TD> </TR> -<? end ?> +<% end %> </TABLE> -<? if viewlibrary and viewlibrary.dispatch_component then +<% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("createdomain") -end ?> +end %> |