diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-04-18 02:02:10 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-04-18 02:02:10 +0000 |
commit | 68a8022f6bebd4df4f4e737ba110615ba849b8dc (patch) | |
tree | 755ea9b377c3d4553de6f406434eac3bf4edad5a /weblog-adhocquery-html.lsp | |
parent | d9fa806c3744755c76ab914ac54ce137456c0193 (diff) | |
download | acf-weblog-68a8022f6bebd4df4f4e737ba110615ba849b8dc.tar.bz2 acf-weblog-68a8022f6bebd4df4f4e737ba110615ba849b8dc.tar.xz |
Started work on updating for acf-core-0.15
Removed controllerfunctions library (still needs more work and corresponding work in model)
Updated for viewfunctions to htmlviewfunctions and modified require statements for acf libraries
Diffstat (limited to 'weblog-adhocquery-html.lsp')
-rw-r--r-- | weblog-adhocquery-html.lsp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/weblog-adhocquery-html.lsp b/weblog-adhocquery-html.lsp index 2923005..fde57d5 100644 --- a/weblog-adhocquery-html.lsp +++ b/weblog-adhocquery-html.lsp @@ -1,5 +1,5 @@ <% local form, viewlibrary, page_info = ... -require("viewfunctions") +require("htmlviewfunctions") %> <style type="text/css"> @@ -45,7 +45,7 @@ require("viewfunctions") <% end %> <H1><%= html.html_escape(form.label) %></H1> -<% displayformstart(form, page_info) %> +<% htmlviewfunctions.displayformstart(form, page_info) %> This form accepts a Postgresql SELECT statement and displays the results. Examples: <ul> <li>This statement will return the total bytes transferred by each user for the pre-purge weblog history<pre>SELECT clientuserid, sum(bytes) AS total FROM pubweblog GROUP BY clientuserid ORDER BY total DESC</pre> @@ -53,8 +53,8 @@ This form accepts a Postgresql SELECT statement and displays the results. Exampl <li>This statement will return the number of requests and blocks by hour over the course of the entire usage history<pre>SELECT extract(hour from date) AS hour, sum(numrequest) AS numrequest, sum(numblock) AS numblock FROM usagestat GROUP BY extract(hour from date) ORDER BY hour</pre> </ul> The available database tables and descriptions are listed below. -<% displayformitem(form.value.query, "query") %> -<% displayformend(form) %> +<% htmlviewfunctions.displayformitem(form.value.query, "query") %> +<% htmlviewfunctions.displayformend(form) %> <H2>Available Database Tables</H2> <H3>pubweblog and pubweblog_history</H3> |