<div id="edit_form">
<form name="group_admin_list" method="post">
<table>
<tr>
<td colspan="5"><h3><?php print _("Group administrators"); ?></h3></td>
</tr>
<tr>
<td colspan="5"> </td>
</tr>
<tr class="theader">
<td nowrap>
<?php print _("Group name"); ?>
</td>
<td>
<?php print _("Group description"); ?>
</td>
<td>
<?php print _("Administrator"); ?>
</td>
<td>
<?php print _("Right"); ?>
</td>
<td width="10">
</td>
<td>
<?php print _("Action"); ?>
</td>
<td> </td>
</tr>
<?php
foreach( $tGroups as $entry ) {
if( ($rightAllowed == "edit") or
($rightAllowed == "delete" ) ) {
$edit = "<a href=\"workOnGroupAccessRight.php?id=".htmlentities($entry['id'])."&task=change\" title=\""._("Change")."\" alt=\""._("Change")."\"><img src=\"./images/edit.png\" border=\"0\" /></a>";
} else {
$edit = "";
}
if( $rightAllowed == "delete" ) {
$delete = "<a href=\"deleteGroupAccessRight.php?id=".htmlentities($entry['id'])."&task=delete\" title=\""._("delete")."\" alt=\""._("Delete")."\"><img src=\"./images/edittrash.png\" border=\"0\" /></a>";
} else {
$delete = "";
}
$action = $edit." ".$delete;
$admin = $entry['userid'];
print "\t\t\t\t\t<tr>\n";
print "\t\t\t\t\t\t<td>".$entry['groupname']."</td>\n";
print "\t\t\t\t\t\t<td>".$entry['description']."</td>\n";
print "\t\t\t\t\t\t<td>".$admin."</td>\n";
print "\t\t\t\t\t\t<td>".$entry['allowed']."</td>\n";
print "\t\t\t\t\t\t<td> </td>\n";
print "\t\t\t\t\t\t<td>".$action."</td>\n";
print "\t\t\t\t\t\t<td> </td>\n";
print "\t\t\t\t\t</tr>\n";
}
?>
<tr>
<td colspan="5"> </td>
</tr>
<tr>
<td colspan="5" class="hlp_center">
<?php
if( ($rightAllowed == "add") or
($rightAllowed == "edit") or
($rightAllowed == "delete") ) {
print "<input type=\"image\" name=\"fSubmit_new\" src=\"./images/add_group.png\" value=\""._("New group")."\" title=\""._("New group")."\" /> ";
}
?>
<input type="image" name="fSubmit_back" src="./images/button_cancel.png" value="<?php print _("Back"); ?>" title="<?php print _("Back"); ?>" />
<?php
if( $tPrevDisabled != "disabled" ) {
print "\t\t\t\t\t\t<input type='image' name='fSubmit_f' src='./images/first.png' value='"._("<<")."' /> \n";
print "\t\t\t\t\t\t<input type='image' name='fSubmit_p' src='./images/previous.png' value='"._("<")."' /> \n";
} else {
print "\t\t\t\t\t\t<img src='./images/clear.gif' width='24' height='24'> \n";
print "\t\t\t\t\t\t<img src='./images/clear.gif' width='24' height='24'> \n";
}
if( $tNextDisabled != "disabled" ) {
print "\t\t\t\t\t\t<input type='image' name='fSubmit_n' src='./images/next.png' value='"._(">")."' /> \n";
print "\t\t\t\t\t\t<input type='image' name='fSubmit_l' src='./images/last.png' value='"._(">>")."' />\n";
} else {
print "\t\t\t\t\t\t<img src='./images/clear.gif' width='24' height='24'> \n";
print "\t\t\t\t\t\t<img src='./images/clear.gif' width='24' height='24'>\n";
}
?>
</td>
</tr>
<tr>
<td colspan="5" class="standout">
<?php print $tMessage; ?>
</td>
</tr>
</table>
</form>
</div>