diff options
Diffstat (limited to 'vmail-listusers-html.lsp')
-rw-r--r-- | vmail-listusers-html.lsp | 57 |
1 files changed, 32 insertions, 25 deletions
diff --git a/vmail-listusers-html.lsp b/vmail-listusers-html.lsp index 22e2499..1204570 100644 --- a/vmail-listusers-html.lsp +++ b/vmail-listusers-html.lsp @@ -25,31 +25,31 @@ html = require("acf.html") <% htmlviewfunctions.displaycommandresults({"createuser", "deleteuser", "editusersettings"}, session) %> <h1>Users</h1> -<DL><TABLE id="list" class="tablesorter"><THEAD> - <TR> - <TH>Action</TH> - <TH>Extension</TH> - <TH>First Name</TH> - <TH>Last Name</TH> - </TR> -</THEAD><TBODY> +<table id="list" class="tablesorter"><thead> + <tr> + <th>Action</th> + <th>Extension</th> + <th>First Name</th> + <th>Last Name</th> + </tr> +</thead><tbody> <% for k,v in ipairs( view.value ) do %> - <TR> - <TD> + <tr> + <td> <% if viewlibrary.check_permission("editusersettings") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/editusersettings?username="..v.username, label="Edit "} %> <% end %> <% if viewlibrary.check_permission("deleteuser") then %> <%= html.link{value=page_info.script..page_info.prefix..page_info.controller.."/deleteuser?username="..v.username.."&submit=true", label="Delete ", class="deleteuser"} %> <% end %> - </TD> - <TD><%= html.html_escape(v.username) %></TD> - <TD><%= html.html_escape(v.firstname) %></TD> - <TD><%= html.html_escape(v.lastname) %></TD> - </TR> + </td> + <td><%= html.html_escape(v.username) %></td> + <td><%= html.html_escape(v.firstname) %></td> + <td><%= html.html_escape(v.lastname) %></td> + </tr> <% end %> -</TBODY> -</TABLE> +</tbody> +</table> <% if view.errtxt then %> <p class="error"><%= html.html_escape(view.errtxt) %></p> @@ -59,16 +59,23 @@ html = require("acf.html") <% end %> <% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createuser") then %> -<H2>Create New User</H2> -<form action="<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller) %>/createuser" method="POST"> +<h2>Create New User</h2> +<form action="<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller) %>/createuser" method="post"> <input class="hidden" type="hidden" name="redir" value="<%= html.html_escape(page_info.orig_action) %>" > -<dl><dt></dt><dd><input class="submit" type="submit" value="Create"></dd> +<div class='item'><p class='left'></p> +<div class='right'> +<input class="submit" type="submit" value="Create"> +</div></div><!-- end .item --> </form> -<form action="<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller) %>/createmanyusers" method="POST"> +<% end %> + +<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("createmanyusers") then %> +<h2>Create Multiple Users</h2> +<form action="<%= html.html_escape(page_info.script .. page_info.prefix .. page_info.controller) %>/createmanyusers" method="post"> <input class="hidden" type="hidden" name="redir" value="<%= html.html_escape(page_info.orig_action) %>" > -<dt></dt><dd><input class="submit" type="submit" value="Create Many"></dd></dl> +<div class='item'><p class='left'></p> +<div class='right'> +<input class="submit" type="submit" value="Create"> +</div></div><!-- end .item --> </form> - <% end %> - -</DL> |