summaryrefslogtreecommitdiffstats
path: root/tinydns-edit-html.lsp
diff options
context:
space:
mode:
authorNatanael Copa <natanael.copa@gmail.com>2008-07-28 06:48:16 +0000
committerNatanael Copa <natanael.copa@gmail.com>2008-07-28 06:48:16 +0000
commit7eb0c7fa04e72496e07d25b21bf6a1f2b8f3ac41 (patch)
treeb20168e9e5bccceaf7f00ce94fdf7e2b3532706a /tinydns-edit-html.lsp
parentc796a251db813fcb96953a6c355b21d15a829c1a (diff)
downloadacf-tinydns-7eb0c7fa04e72496e07d25b21bf6a1f2b8f3ac41.tar.bz2
acf-tinydns-7eb0c7fa04e72496e07d25b21bf6a1f2b8f3ac41.tar.xz
use <% %> instead of <? ?>
git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1323 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'tinydns-edit-html.lsp')
-rw-r--r--tinydns-edit-html.lsp40
1 files changed, 20 insertions, 20 deletions
diff --git a/tinydns-edit-html.lsp b/tinydns-edit-html.lsp
index 44cf642..a100c27 100644
--- a/tinydns-edit-html.lsp
+++ b/tinydns-edit-html.lsp
@@ -1,6 +1,6 @@
-<? local form, viewlibrary, page_info = ... ?>
-<? require("viewfunctions") ?>
-<? form = viewlibrary.dispatch_component(page_info.prefix .. page_info.controller .. "/editfile", form, true) ?>
+<% local form, viewlibrary, page_info = ... %>
+<% require("viewfunctions") %>
+<% form = viewlibrary.dispatch_component(page_info.prefix .. page_info.controller .. "/editfile", form, true) %>
<script type="text/javascript" src="/js/jquery-latest.js"></script>
<script type="text/javascript">
@@ -115,46 +115,46 @@
$(function(){
addLinks($("#entries").find("tr"));
$("input.submit").click(submitFile);
- <? if form.value.filecontent.linenumber then ?>
- $("#entries tr:eq(<?= form.value.filecontent.linenumber - 1 ?>)").find("a:eq(2)").click().parent().next().focus();
- <? end ?>
+ <% if form.value.filecontent.linenumber then %>
+ $("#entries tr:eq(<%= form.value.filecontent.linenumber - 1 %>)").find("a:eq(2)").click().parent().next().focus();
+ <% end %>
});
</script>
-<?
+<%
--[[ 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>Configuration</H1>
<H2>Expert Configuration</H2>
<H3>File Details</H3>
<DL>
-<?
+<%
displayitem(form.value.filename)
displayitem(form.value.filesize)
displayitem(form.value.mtime)
-?>
+%>
</DL>
<H3>File Entries</H3>
-<? if form.descr then ?><P CLASS='descr'><?= string.gsub(form.descr, "\n", "<BR>") ?></P><? end ?>
-<? if form.errtxt then ?><P CLASS='error'><?= string.gsub(form.errtxt, "\n", "<BR>") ?></P><? end ?>
+<% if form.descr then %><P CLASS='descr'><%= string.gsub(form.descr, "\n", "<BR>") %></P><% end %>
+<% if form.errtxt then %><P CLASS='error'><%= string.gsub(form.errtxt, "\n", "<BR>") %></P><% end %>
<TABLE id="entries">
-<? for line in string.gmatch(form.value.filecontent.value.."\n", "([^\n]*)\n") do ?>
+<% for line in string.gmatch(form.value.filecontent.value.."\n", "([^\n]*)\n") do %>
<TR>
- <TD><?= line ?></TD>
+ <TD><%= line %></TD>
</TR>
-<? end ?>
+<% end %>
</TABLE>
-<? if form.value.filecontent.errtxt then ?><P CLASS='error'><?= string.gsub(form.value.filecontent.errtxt, "\n", "<BR>") ?></P><? end ?>
+<% if form.value.filecontent.errtxt then %><P CLASS='error'><%= string.gsub(form.value.filecontent.errtxt, "\n", "<BR>") %></P><% end %>
-<form action="<?= page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action ?>" method="POST">
-<input type="hidden" name="filename" value="<?= form.value.filename.value ?>">
-<input type="hidden" name="filecontent" value="<?= form.value.filecontent.value ?>">
+<form action="<%= page_info.script .. page_info.prefix .. page_info.controller .. "/" .. page_info.action %>" method="POST">
+<input type="hidden" name="filename" value="<%= form.value.filename.value %>">
+<input type="hidden" name="filecontent" value="<%= form.value.filecontent.value %>">
<H2>Save and Apply Above Settings</H2>
-<DL><DT></DT><DD><input class="submit" type="submit" name="<?= form.option ?>" value="<?= form.option ?>"></DD></DL>
+<DL><DT></DT><DD><input class="submit" type="submit" name="<%= form.option %>" value="<%= form.option %>"></DD></DL>
</form>