summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2010-02-16 09:03:50 +0000
committerTed Trask <ttrask01@yahoo.com>2010-02-16 09:03:50 +0000
commit004064c01f0c1f208e870b7679903c6934998fc3 (patch)
tree59a5e54414685674792f0e2ea4fe12eaa3d8c1a9
parent0411f64c1efbccae2856c4332190863e801723bc (diff)
downloadacf-tinydns-004064c01f0c1f208e870b7679903c6934998fc3.tar.bz2
acf-tinydns-004064c01f0c1f208e870b7679903c6934998fc3.tar.xz
Added wwwprefix to web path.
-rw-r--r--tinydns-edit-html.lsp10
-rw-r--r--tinydns-view-html.lsp8
2 files changed, 9 insertions, 9 deletions
diff --git a/tinydns-edit-html.lsp b/tinydns-edit-html.lsp
index 9bc1d01..55fe7aa 100644
--- a/tinydns-edit-html.lsp
+++ b/tinydns-edit-html.lsp
@@ -2,15 +2,15 @@
<% require("viewfunctions") %>
<% local domain = string.gsub(form.value.filename.value, "^.*/", "") %>
-<script type="text/javascript" src="/js/jquery-latest.js"></script>
+<script type="text/javascript" src="<%= html.html_escape(page_info.wwwprefix) %>/js/jquery-latest.js"></script>
<script type="text/javascript">
var editEntry = '<td> \
- <a href="javascript:;"><img src="<%= html.html_escape(page_info.staticdir) %>/tango/16x16/actions/list-add.png" width="16" height="16" title="Insert record"></a> \
- <a href="javascript:;"><img src="<%= html.html_escape(page_info.staticdir) %>/tango/16x16/actions/list-remove.png" width="16" height="16" title="Remove record"></a> \
- <a href="javascript:;"><img src="<%= html.html_escape(page_info.staticdir) %>/tango/16x16/actions/document-properties.png" width="16" height="16" title="Edit record"></a> \
+ <a href="javascript:;"><img src="<%= html.html_escape(page_info.wwwprefix..page_info.staticdir) %>/tango/16x16/actions/list-add.png" width="16" height="16" title="Insert record"></a> \
+ <a href="javascript:;"><img src="<%= html.html_escape(page_info.wwwprefix..page_info.staticdir) %>/tango/16x16/actions/list-remove.png" width="16" height="16" title="Remove record"></a> \
+ <a href="javascript:;"><img src="<%= html.html_escape(page_info.wwwprefix..page_info.staticdir) %>/tango/16x16/actions/document-properties.png" width="16" height="16" title="Edit record"></a> \
</td>';
var addEntry = '<tr><td> \
- <a href="javascript:;"><img src="<%= html.html_escape(page_info.staticdir) %>/tango/16x16/actions/list-add.png" width="16" height="16" title="Insert record"></a> \
+ <a href="javascript:;"><img src="<%= html.html_escape(page_info.wwwprefix..page_info.staticdir) %>/tango/16x16/actions/list-add.png" width="16" height="16" title="Insert record"></a> \
</td></tr>';
function Entry(entryType,descr,num,descr0,descr1,descr2,descr3,descr4,descr5,descr6,descr7,descr8,descr9,descr10){
diff --git a/tinydns-view-html.lsp b/tinydns-view-html.lsp
index 217a2ae..b0cce74 100644
--- a/tinydns-view-html.lsp
+++ b/tinydns-view-html.lsp
@@ -1,8 +1,8 @@
-<% local view, viewlibrary = ...
+<% local view, viewlibrary, page_info = ...
require("viewfunctions")
%>
-<script type="text/javascript" src="/js/jquery-latest.js"></script>
+<script type="text/javascript" src="<%= html.html_escape(page_info.wwwprefix) %>/js/jquery-latest.js"></script>
<script type="text/javascript">
var last_phrase = "";
function filterPage(){
@@ -55,7 +55,7 @@ for i,loc in ipairs(view.value) do
if currentloc ~= "" then %>
</ul>
<% end %>
- <li><IMG SRC='<%= html.html_escape(page_info.staticdir) %>/tango/16x16/places/start-here.png' width='16' height='16' alt> <B><%= html.html_escape(loc[1]) %></B></li>
+ <li><IMG SRC='<%= html.html_escape(page_info.wwwprefix..page_info.staticdir) %>/tango/16x16/places/start-here.png' width='16' height='16' alt> <B><%= html.html_escape(loc[1]) %></B></li>
<ul STYLE='margin-left:30px';>
<% end
currentloc = loc[1] %>
@@ -110,7 +110,7 @@ for j,entry in ipairs(view.value) do
if entry.type ~= '%' then
indent = doListIndents(entry[1], indent) %>
<ul><li STYLE='margin-left:10px;' id='filename=<%= html.html_escape(entry.filename) %>;linenumber=<%= html.html_escape(entry.linenumber) %>'>
- <IMG SRC='<%= html.html_escape(page_info.staticdir) %>/tango/16x16/devices/computer.png' width='16' height='16'><%= html.html_escape(entry.label) %><BR>
+ <IMG SRC='<%= html.html_escape(page_info.wwwprefix..page_info.staticdir) %>/tango/16x16/devices/computer.png' width='16' height='16'><%= html.html_escape(entry.label) %><BR>
<pre><%= html.html_escape(entry.configline) %></pre>
<TABLE STYLE='margin-left:<%= html.html_escape(tostring(7-#indent)) %>0px;'>
<% for k=2,#entry do