<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="30%">
<col width="30%">
<col width="30%">
<col width="10%">
</colgroup>
<tr>
<th class="thCornerL"><?php $this->_echo($d['.'][0]['L_EXTENSION']); ?></th>
<th class="thTop"><?php $this->_echo($d['.'][0]['L_COMMENT']); ?></th>
<th class="thTop"><?php $this->_echo($d['.'][0]['L_GROUP']); ?></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++){if($_cat_count = count($d['row'][$_row_i]['cat'])) {for ($_cat_i = 0; $_cat_i < $_cat_count; $_cat_i++){ ?>
<tr>
<td class="catSides" align="center" colspan="4"><span class="cattitle"><?php $this->_echo($d['row'][$_row_i]['cat'][$_cat_i]['L_CATEGORY']); ?></span></td>
</tr>
<?php }} ?>
<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">
<b><?php $this->_echo($d['row'][$_row_i]['EXTENSION']); ?></b>
</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">
<input type="text" name="comments_list[]" value="<?php $this->_echo($d['row'][$_row_i]['COMMENT']); ?>" class="post" size="30" maxlength="100" />
</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="groups_list[]"><?php if($_option_count = count($d['row'][$_row_i]['option'])) {for ($_option_i = 0; $_option_i < $_option_count; $_option_i++){ ?><option value="<?php $this->_echo($d['row'][$_row_i]['option'][$_option_i]['GROUP_ID']); ?>"<?php if($_selected_count = count($d['row'][$_row_i]['option'][$_option_i]['selected'])) {for ($_selected_i = 0; $_selected_i < $_selected_count; $_selected_i++){ ?> selected="selected"<?php }} ?>><?php $this->_echo($d['row'][$_row_i]['option'][$_option_i]['GROUP_NAME']); ?></option><?php }} ?></select>
</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">
<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>
<?php }} else { ?>
<tr>
<td class="row1" colspan="4" align="center" height="45"><span class="gen"><?php $this->_echo($d['.'][0]['L_NO_EXTENSION']); ?></span></td>
</tr>
<?php } ?>
<tr>
<td class="catBottom" colspan="4" align="center"><?php if($_row_count = count($d['row'])) {for ($_row_i = 0; $_row_i < $_row_count; $_row_i++){ ?><input type="hidden" name="ext_ids[]" value="<?php $this->_echo($d['row'][$_row_i]['EXT_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" />