Changeset 67 for trunk/templates
- Timestamp:
- 11/30/10 18:01:27 (14 years ago)
- Location:
- trunk/templates
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/templates/permlist.tmpl
r66 r67 1 1 <tr> 2 2 <td align="right">Group:</td> 3 <td<TMPL_UNLESS may_group_edit> class=" noaccess"</TMPL_UNLESS>><input type="checkbox" name="group_edit"<TMPL_IF group_edit> checked="checked"</TMPL_IF><TMPL_UNLESS may_group_edit> disabled="disabled"</TMPL_UNLESS> /> Edit</td>4 <td<TMPL_UNLESS may_group_create> class=" noaccess"</TMPL_UNLESS>><input type="checkbox" name="group_create"<TMPL_IF group_create> checked="checked"</TMPL_IF><TMPL_UNLESS may_group_create> disabled="disabled"</TMPL_UNLESS> /> Create</td>5 <td<TMPL_UNLESS may_group_delete> class=" noaccess"</TMPL_UNLESS>><input type="checkbox" name="group_delete"<TMPL_IF group_delete> checked="checked"</TMPL_IF><TMPL_UNLESS may_group_delete> disabled="disabled"</TMPL_UNLESS> /> Delete</td> </tr>3 <td<TMPL_UNLESS may_group_edit> class="<TMPL_UNLESS info>noaccess<TMPL_ELSE>info</TMPL_UNLESS>"</TMPL_UNLESS>><input type="checkbox"<TMPL_UNLESS info> name="group_edit"</TMPL_UNLESS><TMPL_IF group_edit> checked="checked"</TMPL_IF><TMPL_UNLESS may_group_edit> disabled="disabled"</TMPL_UNLESS> /> Edit</td> 4 <td<TMPL_UNLESS may_group_create> class="<TMPL_UNLESS info>noaccess<TMPL_ELSE>info</TMPL_UNLESS>"</TMPL_UNLESS>><input type="checkbox"<TMPL_UNLESS info> name="group_create"</TMPL_UNLESS><TMPL_IF group_create> checked="checked"</TMPL_IF><TMPL_UNLESS may_group_create> disabled="disabled"</TMPL_UNLESS> /> Create</td> 5 <td<TMPL_UNLESS may_group_delete> class="<TMPL_UNLESS info>noaccess<TMPL_ELSE>info</TMPL_UNLESS>"</TMPL_UNLESS>><input type="checkbox"<TMPL_UNLESS info> name="group_delete"</TMPL_UNLESS><TMPL_IF group_delete> checked="checked"</TMPL_IF><TMPL_UNLESS may_group_delete> disabled="disabled"</TMPL_UNLESS> /> Delete</td> </tr> 6 6 <tr> 7 7 <td align="right">User:</td> 8 <td<TMPL_UNLESS may_user_edit> class=" noaccess"</TMPL_UNLESS>><input type="checkbox" name="user_edit"<TMPL_IF user_edit> checked="checked"</TMPL_IF><TMPL_UNLESS may_user_edit> disabled="disabled"</TMPL_UNLESS> /> Edit</td>9 <td<TMPL_UNLESS may_user_create> class=" noaccess"</TMPL_UNLESS>><input type="checkbox" name="user_create"<TMPL_IF user_create> checked="checked"</TMPL_IF><TMPL_UNLESS may_user_create> disabled="disabled"</TMPL_UNLESS> /> Create</td>10 <td<TMPL_UNLESS may_user_delete> class=" noaccess"</TMPL_UNLESS>><input type="checkbox" name="user_delete"<TMPL_IF user_delete> checked="checked"</TMPL_IF><TMPL_UNLESS may_user_delete> disabled="disabled"</TMPL_UNLESS> /> Delete</td>8 <td<TMPL_UNLESS may_user_edit> class="<TMPL_UNLESS info>noaccess<TMPL_ELSE>info</TMPL_UNLESS>"</TMPL_UNLESS>><input type="checkbox"<TMPL_UNLESS info> name="user_edit"</TMPL_UNLESS><TMPL_IF user_edit> checked="checked"</TMPL_IF><TMPL_UNLESS may_user_edit> disabled="disabled"</TMPL_UNLESS> /> Edit</td> 9 <td<TMPL_UNLESS may_user_create> class="<TMPL_UNLESS info>noaccess<TMPL_ELSE>info</TMPL_UNLESS>"</TMPL_UNLESS>><input type="checkbox"<TMPL_UNLESS info> name="user_create"</TMPL_UNLESS><TMPL_IF user_create> checked="checked"</TMPL_IF><TMPL_UNLESS may_user_create> disabled="disabled"</TMPL_UNLESS> /> Create</td> 10 <td<TMPL_UNLESS may_user_delete> class="<TMPL_UNLESS info>noaccess<TMPL_ELSE>info</TMPL_UNLESS>"</TMPL_UNLESS>><input type="checkbox"<TMPL_UNLESS info> name="user_delete"</TMPL_UNLESS><TMPL_IF user_delete> checked="checked"</TMPL_IF><TMPL_UNLESS may_user_delete> disabled="disabled"</TMPL_UNLESS> /> Delete</td> 11 11 </tr> 12 12 <tr> 13 13 <td align="right">Domain:</td> 14 <td<TMPL_UNLESS may_domain_edit> class=" noaccess"</TMPL_UNLESS>><input type="checkbox" name="domain_edit"<TMPL_IF domain_edit> checked="checked"</TMPL_IF><TMPL_UNLESS may_domain_edit> disabled="disabled"</TMPL_UNLESS> /> Edit</td>15 <td<TMPL_UNLESS may_domain_create> class=" noaccess"</TMPL_UNLESS>><input type="checkbox" name="domain_create"<TMPL_IF domain_create> checked="checked"</TMPL_IF><TMPL_UNLESS may_domain_create> disabled="disabled"</TMPL_UNLESS> /> Create</td>16 <td<TMPL_UNLESS may_domain_delete> class=" noaccess"</TMPL_UNLESS>><input type="checkbox" name="domain_delete"<TMPL_IF domain_delete> checked="checked"</TMPL_IF><TMPL_UNLESS may_domain_delete> disabled="disabled"</TMPL_UNLESS> /> Delete</td>14 <td<TMPL_UNLESS may_domain_edit> class="<TMPL_UNLESS info>noaccess<TMPL_ELSE>info</TMPL_UNLESS>"</TMPL_UNLESS>><input type="checkbox"<TMPL_UNLESS info> name="domain_edit"</TMPL_UNLESS><TMPL_IF domain_edit> checked="checked"</TMPL_IF><TMPL_UNLESS may_domain_edit> disabled="disabled"</TMPL_UNLESS> /> Edit</td> 15 <td<TMPL_UNLESS may_domain_create> class="<TMPL_UNLESS info>noaccess<TMPL_ELSE>info</TMPL_UNLESS>"</TMPL_UNLESS>><input type="checkbox"<TMPL_UNLESS info> name="domain_create"</TMPL_UNLESS><TMPL_IF domain_create> checked="checked"</TMPL_IF><TMPL_UNLESS may_domain_create> disabled="disabled"</TMPL_UNLESS> /> Create</td> 16 <td<TMPL_UNLESS may_domain_delete> class="<TMPL_UNLESS info>noaccess<TMPL_ELSE>info</TMPL_UNLESS>"</TMPL_UNLESS>><input type="checkbox"<TMPL_UNLESS info> name="domain_delete"</TMPL_UNLESS><TMPL_IF domain_delete> checked="checked"</TMPL_IF><TMPL_UNLESS may_domain_delete> disabled="disabled"</TMPL_UNLESS> /> Delete</td> 17 17 <!-- td class="noaccess"> - Delegate [fixme: WTF?]</td --> 18 18 </tr> 19 19 <tr> 20 20 <td align="right">Domain Record:</td> 21 <td<TMPL_UNLESS may_record_edit> class=" noaccess"</TMPL_UNLESS>><input type="checkbox" name="record_edit"<TMPL_IF record_edit> checked="checked"</TMPL_IF><TMPL_UNLESS may_record_edit> disabled="disabled"</TMPL_UNLESS> /> Edit</td>22 <td<TMPL_UNLESS may_record_create> class=" noaccess"</TMPL_UNLESS>><input type="checkbox" name="record_create"<TMPL_IF record_create> checked="checked"</TMPL_IF><TMPL_UNLESS may_record_create> disabled="disabled"</TMPL_UNLESS> /> Create</td>23 <td<TMPL_UNLESS may_record_delete> class=" noaccess"</TMPL_UNLESS>><input type="checkbox" name="record_delete"<TMPL_IF record_delete> checked="checked"</TMPL_IF><TMPL_UNLESS may_record_delete> disabled="disabled"</TMPL_UNLESS> /> Delete</td>21 <td<TMPL_UNLESS may_record_edit> class="<TMPL_UNLESS info>noaccess<TMPL_ELSE>info</TMPL_UNLESS>"</TMPL_UNLESS>><input type="checkbox"<TMPL_UNLESS info> name="record_edit"</TMPL_UNLESS><TMPL_IF record_edit> checked="checked"</TMPL_IF><TMPL_UNLESS may_record_edit> disabled="disabled"</TMPL_UNLESS> /> Edit</td> 22 <td<TMPL_UNLESS may_record_create> class="<TMPL_UNLESS info>noaccess<TMPL_ELSE>info</TMPL_UNLESS>"</TMPL_UNLESS>><input type="checkbox"<TMPL_UNLESS info> name="record_create"</TMPL_UNLESS><TMPL_IF record_create> checked="checked"</TMPL_IF><TMPL_UNLESS may_record_create> disabled="disabled"</TMPL_UNLESS> /> Create</td> 23 <td<TMPL_UNLESS may_record_delete> class="<TMPL_UNLESS info>noaccess<TMPL_ELSE>info</TMPL_UNLESS>"</TMPL_UNLESS>><input type="checkbox"<TMPL_UNLESS info> name="record_delete"</TMPL_UNLESS><TMPL_IF record_delete> checked="checked"</TMPL_IF><TMPL_UNLESS may_record_delete> disabled="disabled"</TMPL_UNLESS> /> Delete</td> 24 24 <!-- td class="noaccess"> - Delegate</td --> 25 25 </tr> 26 26 <tr> 27 27 <td align="right">Self:</td> 28 <td<TMPL_UNLESS may_self_edit> class=" noaccess"</TMPL_UNLESS>><input type="checkbox" name="self_edit"<TMPL_IF self_edit> checked="checked"</TMPL_IF><TMPL_UNLESS may_self_edit> disabled="disabled"</TMPL_UNLESS> /> Edit</td>28 <td<TMPL_UNLESS may_self_edit> class="<TMPL_UNLESS info>noaccess<TMPL_ELSE>info</TMPL_UNLESS>"</TMPL_UNLESS>><input type="checkbox"<TMPL_UNLESS info> name="self_edit"</TMPL_UNLESS><TMPL_IF self_edit> checked="checked"</TMPL_IF><TMPL_UNLESS may_self_edit> disabled="disabled"</TMPL_UNLESS> /> Edit</td> 29 29 <!-- <TMPL_IF may_admin><TMPL_VAR NAME=admin></TMPL_IF> --> 30 30 </tr> -
trunk/templates/user.tmpl
r66 r67 9 9 10 10 <input type="hidden" name="sid" value="<TMPL_VAR NAME=sid>" /> 11 <input type="hidden" name="page" value=" adduser" />12 <input type="hidden" name=" newuser" value="yes" />11 <input type="hidden" name="page" value="user" /> 12 <input type="hidden" name="action" value="<TMPL_VAR NAME=action>" /> 13 13 14 14 <table border="0" cellspacing="2" cellpadding="2" width="450"> 15 15 <TMPL_IF add_failed> <tr> 16 <td class="errhead" colspan="2">Error addinguser <TMPL_VAR NAME=uname>: <TMPL_VAR NAME=errmsg></td>16 <td class="errhead" colspan="2">Error <TMPL_IF add>adding<TMPL_ELSE>updating</TMPL_IF> user <TMPL_VAR NAME=uname>: <TMPL_VAR NAME=errmsg></td> 17 17 </tr></TMPL_IF> 18 18 <tr class="darkrowheader"><td colspan="2" align="center">Add User</td></tr> … … 40 40 <tr class="datalinelight"> 41 41 <td>Account Type:</td> 42 <TMPL_IF is_admin> 42 43 <td align="left"><select name="accttype"> 43 44 <TMPL_LOOP name=actypelist> <option value="<TMPL_VAR NAME=actypeval>"<TMPL_IF typesel> selected="selected"</TMPL_IF>><TMPL_VAR NAME=actypename></option> 44 45 </TMPL_LOOP> </select></td> 45 </tr> 46 <tr class="datalinelight"> 47 <td>Add user in group:</td> 48 <td><select name="group"> 49 <TMPL_LOOP name=grouplist> <option value="<TMPL_VAR NAME=groupval>"<TMPL_IF groupactive> selected="selected"</TMPL_IF>><TMPL_VAR name=groupname></option> 50 </TMPL_LOOP> </select></td> 46 <TMPL_ELSE> 47 <td>User</td> 48 </TMPL_IF> 51 49 </tr> 52 50 <tr class="datalinelight"> … … 63 61 </td> 64 62 </tr> 65 <tr> 66 <td align="right">Group:</td> 67 <td><input type="checkbox"<TMPL_IF i_grped> checked="checked"</TMPL_IF> disabled="disabled" /> Edit</td> 68 <td><input type="checkbox"<TMPL_IF i_grpcreate> checked="checked"</TMPL_IF> disabled="disabled" /> Create</td> 69 <td><input type="checkbox"<TMPL_IF i_grpdel> checked="checked"</TMPL_IF> disabled="disabled" /> Delete</td> 70 </tr> 71 <tr> 72 <td align="right">User:</td> 73 <td><input type="checkbox"<TMPL_IF i_usered> checked="checked"</TMPL_IF> disabled="disabled" /> Edit</td> 74 <td><input type="checkbox"<TMPL_IF i_usercreate> checked="checked"</TMPL_IF> disabled="disabled" /> Create</td> 75 <td><input type="checkbox"<TMPL_IF i_userdel> checked="checked"</TMPL_IF> disabled="disabled" /> Delete</td> 76 </tr> 77 <tr> 78 <td align="right">Domain:</td> 79 <td><input type="checkbox"<TMPL_IF i_domed> checked="checked"</TMPL_IF> disabled="disabled" /> Edit</td> 80 <td><input type="checkbox"<TMPL_IF i_domcreate> checked="checked"</TMPL_IF> disabled="disabled" /> Create</td> 81 <td><input type="checkbox"<TMPL_IF i_domdel> checked="checked"</TMPL_IF> disabled="disabled" /> Delete</td> 82 <!-- td>+ Delegate</td --> 83 </tr> 84 <tr> 85 <td align="right">Domain Record:</td> 86 <td><input type="checkbox"<TMPL_IF i_reced> checked="checked"</TMPL_IF> disabled="disabled" /> Edit</td> 87 <td><input type="checkbox"<TMPL_IF i_reccreate> checked="checked"</TMPL_IF> disabled="disabled" /> Create</td> 88 <td><input type="checkbox"<TMPL_IF i_recdel> checked="checked"</TMPL_IF> disabled="disabled" /> Delete</td> 89 <!-- td>+ Delegate</td --> 90 </tr> 91 <tr> 92 <td align="right">Self:</td> 93 <td><input type="checkbox"<TMPL_IF i_edself> checked="checked"</TMPL_IF> disabled="disabled" /> Edit</td> 94 </tr> 63 <TMPL_VAR NAME=grpperms> 95 64 65 <TMPL_IF is_admin> 96 66 <tr class="tableheader"> 97 67 <td align="center" colspan="5"> … … 108 78 </td> 109 79 </tr> 80 </TMPL_IF> 81 110 82 <tr class="tableheader"> 111 83 <td align="center" colspan="5"> … … 113 85 </td> 114 86 </tr> 115 <TMPL_INCLUDE name="permlist _enabled.tmpl">87 <TMPL_INCLUDE name="permlist.tmpl"> 116 88 117 89 </table> -
trunk/templates/useradmin.tmpl
r65 r67 5 5 <td align="center"> 6 6 7 <TMPL_IF warnmsg> 8 <div class="warning">Warning: <TMPL_VAR NAME=warnmsg></div> 9 </TMPL_IF> 7 10 <TMPL_IF del_failed> 8 11 <div class='errmsg'>Error deleting user <TMPL_VAR NAME=delusername>: <TMPL_VAR NAME=errmsg></div> … … 19 22 </tr> 20 23 <tr><td colspan="3" align="center"><TMPL_INCLUDE NAME="lettsearch.tmpl"></td></tr> 21 <tr><td colspan="3" align="right"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page= newuser">New User</a></td></tr>24 <tr><td colspan="3" align="right"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=user">New User</a></td></tr> 22 25 </table> 23 26 … … 31 34 <TMPL_LOOP name=usertable> 32 35 <tr class="row<TMPL_VAR name=bg>"> 33 <td align="left"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page= edituser&user=<TMPL_VAR NAME=userid>"><TMPL_VAR NAME=username></a></td>36 <td align="left"><a href="dns.cgi?sid=<TMPL_VAR NAME=sid>&page=user&action=edit&user=<TMPL_VAR NAME=userid>"><TMPL_VAR NAME=username></a></td> 34 37 <td class="data_nowrap"><TMPL_VAR name=userfull></td> 35 38 <td><TMPL_VAR name=usertype></td>
Note:
See TracChangeset
for help on using the changeset viewer.