<?php if($_auths_count = count($d['auths'])) {for ($_auths_i = 0; $_auths_i < $_auths_count; $_auths_i++){ ?>
<table cellpadding="4" cellspacing="1" border="0" width="100%" class="forumline">
<tr>
<th class="thCornerL" width="100%"><?php $this->_echo($d['auths'][$_auths_i]['L_CATEGORY']); ?></th>
<th class="thCornerR"><input type="submit" value="X" name="close_window" class="mainoption" title="<?php $this->_echo($d['auths'][$_auths_i]['L_CLOSE_WINDOW']); ?>" /></th>
</tr>
<tr>
<td class="row2" colspan="2"><span class="gensmall"><?php $this->_echo($d['auths'][$_auths_i]['L_CATEGORY_EXPLAIN']); ?>
</span></td>
</tr>
<tr>
<td class="catHead" align="center" colspan="2"><span class="cattitle"><?php $this->_echo($d['auths'][$_auths_i]['L_ALLOWED_FORUMS']); ?></span></td>
</tr>
<tr>
<td class="row1" align="center" colspan="2"><span class="gen">
<select name="allowed_ids[]" size="7" style="width: 450px;" multiple="multiple">
<?php if($_allowed_count = count($d['auths'][$_auths_i]['allowed'])) {for ($_allowed_i = 0; $_allowed_i < $_allowed_count; $_allowed_i++){if($_opt_count = count($d['auths'][$_auths_i]['allowed'][$_allowed_i]['opt'])) {for ($_opt_i = 0; $_opt_i < $_opt_count; $_opt_i++){ ?><option value="<?php $this->_echo($d['auths'][$_auths_i]['allowed'][$_allowed_i]['opt'][$_opt_i]['FORUM_ID']); ?>"<?php if($_disabled_count = count($d['auths'][$_auths_i]['allowed'][$_allowed_i]['opt'][$_opt_i]['disabled'])) {for ($_disabled_i = 0; $_disabled_i < $_disabled_count; $_disabled_i++){ ?> disabled="disabled" style="font-color: #808080; font-style: italic;"<?php }} ?>><?php $this->_echo($d['auths'][$_auths_i]['allowed'][$_allowed_i]['opt'][$_opt_i]['FORUM_NAME']); ?></option><?php }}}} ?>
</select>
</span></td>
</tr>
<tr>
<td class="catBottom" align="center" colspan="2"><span class="genmed">&nbsp;
<input name="remove_forum" type="image" src="<?php $this->_echo($d['auths'][$_auths_i]['I_REMOVE_FORUM']); ?>" alt="<?php $this->_echo($d['auths'][$_auths_i]['L_REMOVE_FORUM']); ?>" title="<?php $this->_echo($d['auths'][$_auths_i]['L_REMOVE_FORUM']); ?>" border="0" />&nbsp;
</span></td>
</tr>
<tr>
<td class="spaceRow" colspan="2"><img src="<?php $this->_echo($d['.'][0]['I_SPACER']); ?>" height="2px" border="0" alt="" /></td>
</tr>
<tr>
<td class="catHead" align="center" colspan="2"><span class="cattitle"><?php $this->_echo($d['auths'][$_auths_i]['L_ADD_FORUMS']); ?></span></td>
</tr>
<tr>
<td class="row1" align="center" colspan="2"><span class="gen">
<select name="forum_ids[]" size="7" style="width: 450px;" multiple="multiple">
<?php if($_forum_count = count($d['auths'][$_auths_i]['forum'])) {for ($_forum_i = 0; $_forum_i < $_forum_count; $_forum_i++){if($_opt_count = count($d['auths'][$_auths_i]['forum'][$_forum_i]['opt'])) {for ($_opt_i = 0; $_opt_i < $_opt_count; $_opt_i++){ ?><option value="<?php $this->_echo($d['auths'][$_auths_i]['forum'][$_forum_i]['opt'][$_opt_i]['FORUM_ID']); ?>"<?php if($_disabled_count = count($d['auths'][$_auths_i]['forum'][$_forum_i]['opt'][$_opt_i]['disabled'])) {for ($_disabled_i = 0; $_disabled_i < $_disabled_count; $_disabled_i++){ ?> disabled="disabled" style="font-color: #808080; font-style: italic;"<?php }} ?>><?php $this->_echo($d['auths'][$_auths_i]['forum'][$_forum_i]['opt'][$_opt_i]['FORUM_NAME']); ?></option><?php }}}} ?>
</select>
</span></td>
</tr>
<tr>
<td class="catBottom" align="center" colspan="2"><span class="genmed">&nbsp;
<input name="add_forum" type="image" src="<?php $this->_echo($d['auths'][$_auths_i]['I_ADD_FORUM']); ?>" alt="<?php $this->_echo($d['auths'][$_auths_i]['L_ADD_FORUM']); ?>" title="<?php $this->_echo($d['auths'][$_auths_i]['L_ADD_FORUM']); ?>" border="0" />&nbsp;
</span></td>
</tr>
</table>
<br clear="all" />
<?php }} ?>

<table cellpadding="4" cellspacing="1" border="0" width="100%" class="forumline">
<colgroup>
<col width="40%">
<col width="60%">
</colgroup>
<tr>
<th colspan="2" class="thHead"><?php $this->_echo($d['.'][0]['L_FORM']); ?></th>
</tr>
<?php $this->_echo($d['.'][0]['ADD_FORM']); ?>
<tr>
<td class="catBottom" colspan="2" align="center"><span class="gensmall">&nbsp;
<?php if($_buttons_count = count($d['buttons'])) {for ($_buttons_i = 0; $_buttons_i < $_buttons_count; $_buttons_i++){ ?><input type="image" src="<?php $this->_echo($d['buttons'][$_buttons_i]['I_BUTTON']); ?>" name="<?php $this->_echo($d['buttons'][$_buttons_i]['BUTTON']); ?>" title="<?php $this->_echo($d['buttons'][$_buttons_i]['L_BUTTON']); ?>" <?php if($_accesskey_count = count($d['buttons'][$_buttons_i]['accesskey'])) {for ($_accesskey_i = 0; $_accesskey_i < $_accesskey_count; $_accesskey_i++){ ?>accesskey="<?php $this->_echo($d['buttons'][$_buttons_i]['S_BUTTON']); ?>"<?php }} ?> />&nbsp;<?php }} ?>
</span></td>
</tr>
</table>
<br style="font-size: 2px" />

<table cellpadding="4" cellspacing="1" border="0" width="100%" class="forumline">
<colgroup>
<col width="20%">
<col width="20%">
<col width="40%">
<col width="15%">
<col width="5%">
</colgroup>
<tr>
<th class="thCornerL"><?php $this->_echo($d['.'][0]['L_GROUP']); ?></th>
<th class="thTop"><?php $this->_echo($d['.'][0]['L_CATEGORY']); ?></th>
<th class="thTop"><?php $this->_echo($d['.'][0]['L_ALLOWED']); ?></th>
<th class="thTop"><?php $this->_echo($d['.'][0]['L_ATTRIBUTS']); ?></th>
<th class="thCornerR"><?php $this->_echo($d['.'][0]['L_ACTION']); ?></th>
</tr>
<?php if($_row_count = count($d['row'])) {for ($_row_i = 0; $_row_i < $_row_count; $_row_i++){ ?>
<tr>
<td class="<?php if($_light_count = count($d['row'][$_row_i]['light'])) {for ($_light_i = 0; $_light_i < $_light_count; $_light_i++){ ?>row1<?php }} else { ?>row2<?php } ?>" align="center"><span class="gen">
<input type="text" class="post" size="20" maxlength="20" name="group_names[]" value="<?php $this->_echo($d['row'][$_row_i]['GROUP_NAME']); ?>" />
</span></td>
<td class="<?php if($_light_count = count($d['row'][$_row_i]['light'])) {for ($_light_i = 0; $_light_i < $_light_count; $_light_i++){ ?>row1<?php }} else { ?>row2<?php } ?>" align="center"><span class="gen">
<select name="cat_ids[]"><?php if($_cat_opt_count = count($d['row'][$_row_i]['cat_opt'])) {for ($_cat_opt_i = 0; $_cat_opt_i < $_cat_opt_count; $_cat_opt_i++){ ?><option value="<?php $this->_echo($d['row'][$_row_i]['cat_opt'][$_cat_opt_i]['KEY']); ?>"<?php if($_selected_count = count($d['row'][$_row_i]['cat_opt'][$_cat_opt_i]['selected'])) {for ($_selected_i = 0; $_selected_i < $_selected_count; $_selected_i++){ ?> selected="selected"<?php }} ?>><?php $this->_echo($d['row'][$_row_i]['cat_opt'][$_cat_opt_i]['NAME']); ?></option><?php }} ?></select>
</span></td>
<td rowspan="2" class="<?php if($_light_count = count($d['row'][$_row_i]['light'])) {for ($_light_i = 0; $_light_i < $_light_count; $_light_i++){ ?>row1<?php }} else { ?>row2<?php } ?>" align="center"><span class="gensmall">
<input type="checkbox" name="allow_groups[<?php $this->_echo($d['row'][$_row_i]['ROW_NUMBER']); ?>]" value="1"<?php if($_disabled_count = count($d['row'][$_row_i]['disabled'])) {for ($_disabled_i = 0; $_disabled_i < $_disabled_count; $_disabled_i++){ ?> disabled="disabled"<?php }}if($_allow_group_checked_count = count($d['row'][$_row_i]['allow_group_checked'])) {for ($_allow_group_checked_i = 0; $_allow_group_checked_i < $_allow_group_checked_count; $_allow_group_checked_i++){ ?> checked="checked"<?php }} ?> /><br />
<?php if($_disabled_count = count($d['row'][$_row_i]['disabled'])) {for ($_disabled_i = 0; $_disabled_i < $_disabled_count; $_disabled_i++){}} else { ?><a href="<?php $this->_echo($d['row'][$_row_i]['U_GROUP_AUTH']); ?>" title="<?php $this->_echo($d['.'][0]['L_GROUP_AUTH']); ?>" class="gensmall"><?php $this->_echo($d['.'][0]['L_GROUP_AUTH']); ?></a><?php } ?>
</span></td>
<td rowspan="2" class="<?php if($_light_count = count($d['row'][$_row_i]['light'])) {for ($_light_i = 0; $_light_i < $_light_count; $_light_i++){ ?>row1<?php }} else { ?>row2<?php } ?>" align="center"><table cellpadding="2" cellspacing="0" width="100%" border="0">
<tr>
<td nowrap="nowrap"><span class="genmed"><?php $this->_echo($d['.'][0]['L_DOWNLOAD_MODE']); ?>:&nbsp;</span></td>
<td><span class="genmed"><select name="download_modes[]"><?php if($_download_opt_count = count($d['row'][$_row_i]['download_opt'])) {for ($_download_opt_i = 0; $_download_opt_i < $_download_opt_count; $_download_opt_i++){ ?><option value="<?php $this->_echo($d['row'][$_row_i]['download_opt'][$_download_opt_i]['KEY']); ?>"<?php if($_selected_count = count($d['row'][$_row_i]['download_opt'][$_download_opt_i]['selected'])) {for ($_selected_i = 0; $_selected_i < $_selected_count; $_selected_i++){ ?> selected="selected"<?php }} ?>><?php $this->_echo($d['row'][$_row_i]['download_opt'][$_download_opt_i]['NAME']); ?></option><?php }} ?></select></span></td>
</tr>
<tr>
<td nowrap="nowrap"><span class="genmed"><?php $this->_echo($d['.'][0]['L_UPLOAD_ICON']); ?>:&nbsp;</span></td>
<td><span class="genmed"><input type="text" class="post" size="20" maxlength="100" name="upload_icons[]" value="<?php $this->_echo($d['row'][$_row_i]['UPLOAD_ICON']); ?>" /></span></td>
</tr>
<tr>
<td nowrap="nowrap"><span class="genmed"><?php $this->_echo($d['.'][0]['L_MAX_FILESIZE']); ?>:&nbsp;</span></td>
<td><span class="genmed"><input type="text" class="post" size="5" name="max_filesize_values[]" value="<?php $this->_echo($d['row'][$_row_i]['MAX_FILESIZE_VALUE']); ?>" />&nbsp;<select name="max_filesize_units[]"><?php if($_unit_opt_count = count($d['row'][$_row_i]['unit_opt'])) {for ($_unit_opt_i = 0; $_unit_opt_i < $_unit_opt_count; $_unit_opt_i++){ ?><option value="<?php $this->_echo($d['row'][$_row_i]['unit_opt'][$_unit_opt_i]['KEY']); ?>"<?php if($_selected_count = count($d['row'][$_row_i]['unit_opt'][$_unit_opt_i]['selected'])) {for ($_selected_i = 0; $_selected_i < $_selected_count; $_selected_i++){ ?> selected="selected"<?php }} ?>><?php $this->_echo($d['row'][$_row_i]['unit_opt'][$_unit_opt_i]['NAME']); ?></option><?php }} ?></select></span></td>
</tr>
</table></td>
<td rowspan="2" class="<?php if($_light_count = count($d['row'][$_row_i]['light'])) {for ($_light_i = 0; $_light_i < $_light_count; $_light_i++){ ?>row1<?php }} else { ?>row2<?php } ?>" align="center"><span class="gen">
<a href="<?php $this->_echo($d['row'][$_row_i]['U_DELETE']); ?>" title="<?php $this->_echo($d['.'][0]['L_DELETE']); ?>"><img src="<?php $this->_echo($d['.'][0]['I_DELETE']); ?>" alt="<?php $this->_echo($d['.'][0]['L_DELETE']); ?>" border="0" /></a>
</span></td>
</tr>
<tr>
<td height="1%" colspan="2" class="<?php if($_light_count = count($d['row'][$_row_i]['light'])) {for ($_light_i = 0; $_light_i < $_light_count; $_light_i++){ ?>row1<?php }} else { ?>row2<?php } ?>" valign="top"><span class="gensmall">
<b><?php $this->_echo($d['.'][0]['L_EXTENSIONS']); ?>:</b>&nbsp;<?php if($_extension_count = count($d['row'][$_row_i]['extension'])) {for ($_extension_i = 0; $_extension_i < $_extension_count; $_extension_i++){if($_first_count = count($d['row'][$_row_i]['extension'][$_extension_i]['first'])) {for ($_first_i = 0; $_first_i < $_first_count; $_first_i++){}} else { ?>, <?php }$this->_echo($d['row'][$_row_i]['extension'][$_extension_i]['EXTENSION']);}} ?>
</span></td>
</tr>
<?php }} else { ?>
<tr>
<td class="row1" colspan="5" align="center" height="45"><span class="gen"><?php $this->_echo($d['.'][0]['L_NO_GROUPS']); ?></span></td>
</tr>
<?php } ?>
<tr>
<td class="catBottom" colspan="5" align="center"><?php if($_row_count = count($d['row'])) {for ($_row_i = 0; $_row_i < $_row_count; $_row_i++){ ?><input type="hidden" name="group_ids[]" value="<?php $this->_echo($d['row'][$_row_i]['GROUP_ID']); ?>" /><?php }} ?><span class="gensmall">&nbsp;<?php if($_details_count = count($d['details'])) {for ($_details_i = 0; $_details_i < $_details_count; $_details_i++){if($_buttons_count = count($d['details'][$_details_i]['buttons'])) {for ($_buttons_i = 0; $_buttons_i < $_buttons_count; $_buttons_i++){ ?><input type="image" src="<?php $this->_echo($d['details'][$_details_i]['buttons'][$_buttons_i]['I_BUTTON']); ?>" name="<?php $this->_echo($d['details'][$_details_i]['buttons'][$_buttons_i]['BUTTON']); ?>" title="<?php $this->_echo($d['details'][$_details_i]['buttons'][$_buttons_i]['L_BUTTON']); ?>" <?php if($_accesskey_count = count($d['details'][$_details_i]['buttons'][$_buttons_i]['accesskey'])) {for ($_accesskey_i = 0; $_accesskey_i < $_accesskey_count; $_accesskey_i++){ ?>accesskey="<?php $this->_echo($d['buttons'][$_buttons_i]['S_BUTTON']); ?>"<?php }} ?> />&nbsp;<?php }}}} ?></span></td>
</tr>
</table>
<br style="font-size: 2px" clear="all" />