Commit 834f515c authored by Natanael Copa's avatar Natanael Copa
Browse files

use <% %> instead of <? ?>

git-svn-id: svn://svn.alpinelinux.org/acf/dnscache/trunk@1323 ab2d0c66-481e-0410-8bed-d214d4d58bed
parent dba72856
<? 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 %>
<? 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)
?>
%>
<? 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 %>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment