diff options
author | Natanael Copa <natanael.copa@gmail.com> | 2008-07-28 06:48:16 +0000 |
---|---|---|
committer | Natanael Copa <natanael.copa@gmail.com> | 2008-07-28 06:48:16 +0000 |
commit | 834f515c5b54997c68adce139ba56b1dc132b123 (patch) | |
tree | cad7befbbfd3a1dd592e27b1919c5e8f9a24e04e | |
parent | dba7285654a0e2b918c203c200bc0ebd75482f59 (diff) | |
download | acf-dnscache-834f515c5b54997c68adce139ba56b1dc132b123.tar.bz2 acf-dnscache-834f515c5b54997c68adce139ba56b1dc132b123.tar.xz |
use <% %> instead of <? ?>
git-svn-id: svn://svn.alpinelinux.org/acf/dnscache/trunk@1323 ab2d0c66-481e-0410-8bed-d214d4d58bed
-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 %> |