##include templates\lheader.htm##

{BEGIN savebuttons_block}
<div id="savebuttons_block" style="margin:5px 0">
<input type=submit style="width:100pt" class="button" value="##message SAVE##" {$savebutton_attrs}>
<input type=reset style="width:100pt" class="button" value="##message RESET##" {$resetbutton_attrs}>
</div>
{END savebuttons_block}

{BEGIN rights_block}
<!--Permissions-->
<table border="0" cellpadding="0" cellspacing="0">
 <tr>
 <td class="headerlist" width=200px valign="top" aling="center">
  ##message AA_USERGROUP##:<br><br>
  <input class="button" type="button" value="##message AA_ADDGROUP##" {$addgroup_attrs}>
  <input class="button" type="button" value="##message AA_DELGROUP##" {$delgroup_attrs} >
  <input class="button" type="button" id="rengroup" value="##message AA_RENAME##" {$rengroup_attrs}>
  <div style="display:none;margin:5px;margin-top:15px;margin-bottom:15px;border:solid white 1px" id=addarea>
   <br><span id="gmessage">##message AA_ADD_NEW_GROUP##:</span><br>
   <input type="text" id="groupname" size=20 maxsize=50 {$groupname_attrs} ><br>
   <input type="button" class="button" value="##message SAVE##" {$savegroup_attrs}>
   <input type="button" class="button" value="##message CANCEL##" {$cancelgroup_attrs}><br><br>
  </div>
  <br><br><br>
  <select class=shade style="width:120pt" {$grouplist_attrs}>
   {BEGIN groups}
    <option {$group_attrs}>{$groupname}</option>
   {END groups}
  </select><br><br>
 </td>
 <td align="center" valign="top">
  {BEGIN grid_block}
   <table name="maintable" align="center" class="data" cellspacing=0 cellpadding=5 border=0>
    <colgroup><col align=left><col width="90pt" span=7 align=center></colgroup>
    <!-- table header -->
	<tr  valign="top">
	 <td style="width:100pt" class="headerlist">##message AA_TABLES##</td>
	 <td class="headerlist">
	  ##message AA_P_ADD##
	  <br><br><input type=checkbox {$add_headcheckbox}>
     </td>
     <td class="headerlist">
      ##message AA_P_EDIT##<br><br>
	  <input type=checkbox {$edt_headcheckbox}>
     </td>
     <td class="headerlist">
      ##message AA_P_DELETE##
      <br><br><input type=checkbox {$del_headcheckbox}>
     </td>
     <td class="headerlist">
      ##message AA_P_LISTVIEW##
      <br><br><input type=checkbox {$lst_headcheckbox}>
     </td>
     <td class="headerlist">
      ##message AA_P_EXPORTPRINT##
      <br><br><input type=checkbox {$exp_headcheckbox}>
     </td>
     <td class="headerlist">
      ##message AA_P_IMPORT##
      <br><br><input type=checkbox {$imp_headcheckbox}>
     </td>
     <td class="headerlist" style="white-space:nowrap">
      ##message AA_P_ADMIN##<br>(##message AA_P_ADMIN_ACCESS##)
      <br><input type=checkbox {$adm_headcheckbox}>
     </td>
    </tr>
    {BEGIN grid_row}
    <tr valign="top" {$rowattrs}>
     <td style="text-align:left" valign="middle" class="headerlist">
	  <input type="checkbox" {$tablecheckbox_attrs} align="absmiddle">&nbsp;{$tablename}
     </td>
     <td align="center" valign="middle">
	  {BEGIN add_groupboxes}
	   <input type=checkbox {$add_checkbox}>
	  {END add_groupboxes}
	 </td>
     <td align="center" valign="middle">
	  {BEGIN edt_groupboxes}
	   <input type=checkbox {$edt_checkbox}>
	  {END edt_groupboxes}
	 </td>
	 <td align="center" valign="middle">
	  {BEGIN del_groupboxes}
	   <input type=checkbox {$del_checkbox}>
	  {END del_groupboxes}
	 </td>
	 <td align="center" valign="middle">
      {BEGIN lst_groupboxes}
	   <input type=checkbox {$lst_checkbox}>
	  {END lst_groupboxes}
	 </td>
     <td align="center" valign="middle">
	  {BEGIN exp_groupboxes}
	   <input type=checkbox {$exp_checkbox}>
	  {END exp_groupboxes}
     </td>
     <td align="center" valign="middle">
	  {BEGIN imp_groupboxes}
	   <input type=checkbox {$imp_checkbox}>
	  {END imp_groupboxes}
	 </td>
	 <td align="center" valign="middle">
	  {BEGIN adm_groupboxes}
	   <input type=checkbox {$adm_checkbox}>
	  {END adm_groupboxes}
	 </td>
    </tr>
    {END grid_row}
   </table>
  {END grid_block}
  </td>
 </tr>
</table>
{END rights_block}

##include templates\lfooter.htm##
