source: trunk/templates/grpman.tmpl@ 249

Last change on this file since 249 was 178, checked in by Kris Deugau, 13 years ago

/trunk

Security review (See #30)

  • fix up ACL handling in group modification; as with user editing, the user may not make any change that includes access that user does not already have. This may mean removing a permission previously set but which the user doesn't have.
File size: 2.4 KB
RevLine 
[19]1<!-- <TMPL_VAR NAME=sid> -->
2<table class="wholepage"><tr>
3<TMPL_INCLUDE NAME="menu.tmpl">
4
[100]5<td align="center" valign="top">
[22]6
[147]7<TMPL_IF resultmsg>
8<div class="result"><TMPL_VAR NAME=resultmsg></div>
9</TMPL_IF>
[178]10<TMPL_IF warnmsg>
11<div class="warning">Warning: <TMPL_VAR NAME=warnmsg></div>
12</TMPL_IF>
[147]13<TMPL_IF errmsg>
[178]14<div class="errmsg"><TMPL_VAR NAME=errmsg></div>
[147]15</TMPL_IF>
[22]16
[19]17<table width="98%">
[140]18<tr><th colspan="3"><div class="center maintitle"><TMPL_IF chggrps>Manage<TMPL_ELSE>View</TMPL_IF> groups</div></th></tr>
[41]19<tr>
20<td class="leftthird"><TMPL_INCLUDE NAME="pgcount.tmpl"></td>
21<td align="center"><TMPL_INCLUDE NAME="fpnla.tmpl"></td>
22<td class="rightthird"><TMPL_INCLUDE NAME="sbox.tmpl"></td>
23</tr>
[40]24<tr><td colspan="3" align="center"><TMPL_INCLUDE NAME="lettsearch.tmpl"></td></tr>
[79]25<tr>
[140]26 <td colspan="2"><TMPL_IF edgrp><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=edgroup&amp;gid=<TMPL_VAR NAME=gid>">Edit Current Group</a></TMPL_IF></td>
27 <td align="right"><TMPL_IF addgrp><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=newgrp">New Group</a></TMPL_IF>
28</td>
[79]29</tr>
[19]30</table>
31
[41]32<table width="98%" border="0" cellspacing="4" cellpadding="3">
[19]33<tr>
[42]34<TMPL_LOOP NAME=colheads>
[44]35 <td class="datahead_<TMPL_IF firstcol>l<TMPL_ELSE>s</TMPL_IF>"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=<TMPL_VAR NAME=page><TMPL_IF NAME=offset>&amp;offset=<TMPL_VAR NAME=offset></TMPL_IF>&amp;sortby=<TMPL_VAR NAME=sortby>&amp;order=<TMPL_VAR NAME=order>"><TMPL_VAR NAME=colname></a><TMPL_IF NAME=sortorder>&nbsp;<img alt="<TMPL_VAR NAME=sortorder>" src="images/<TMPL_VAR NAME=sortorder>.png" /></TMPL_IF></td></TMPL_LOOP>
[140]36<TMPL_IF delgrp>
[41]37 <td class="datahead_s">Delete</td>
[140]38</TMPL_IF>
[19]39</tr>
[20]40<TMPL_IF name=grouptable>
41<TMPL_LOOP name=grouptable>
[19]42<tr class="row<TMPL_VAR name=bg>">
[140]43 <td align="left"><TMPL_IF edgrp><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=edgroup&amp;gid=<TMPL_VAR NAME=groupid>"><TMPL_VAR NAME=groupname></a><TMPL_ELSE><TMPL_VAR NAME=groupname></TMPL_IF></td>
[38]44 <td><TMPL_VAR name=pgroup></td>
45 <td><TMPL_VAR name=nusers></td>
46 <td><TMPL_VAR name=ndomains></td>
[140]47<TMPL_IF delgrp>
[38]48 <td align="center"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&amp;page=delgrp&amp;id=<TMPL_VAR NAME=groupid>"><img src="images/trash2.png" alt="[ Delete ]" /></a></td>
[140]49</TMPL_IF>
[19]50</tr>
51</TMPL_LOOP>
52<TMPL_ELSE>
[41]53<tr><td colspan="5" align="center">No groups found</td></tr>
[19]54</TMPL_IF>
55</table>
56
57</td>
[38]58</tr>
[19]59</table>
Note: See TracBrowser for help on using the repository browser.