<tr>
<td width="100%" class="row1">
<?php $this->_include('pagination_box.tpl'); ?>
<table cellpadding="4" cellspacing="1" border="0" class="bodyline" width="100%">
<tr>
<td class="catHead" align="center"<?php if($_gallery_empty_count = count($d['gallery_empty'])) {for ($_gallery_empty_i = 0; $_gallery_empty_i < $_gallery_empty_count; $_gallery_empty_i++){}} else { ?> colspan="<?php $this->_echo($d['.'][0]['NB_COLS']); ?>"<?php } ?>><span class="cattitle">
<b><?php $this->_echo($d['.'][0]['L_OPTIONS']); ?>:</b>&nbsp;<select name="gallery" onChange="this.form.submit();"><?php $this->_echo($d['.'][0]['S_OPTIONS']); ?></select>&nbsp;<input type="image" name="<?php $this->_echo($d['.'][0]['gallery_select']); ?>" src="<?php $this->_echo($d['.'][0]['I_GO']); ?>" alt="<?php $this->_echo($d['.'][0]['L_GO']); ?>" align="top" />
</span></td>
</tr>
<?php if($_gallery_empty_count = count($d['gallery_empty'])) {for ($_gallery_empty_i = 0; $_gallery_empty_i < $_gallery_empty_count; $_gallery_empty_i++){ ?>
<tr>
<td class="row1" align="center" height="50"><span class="gen">
<?php $this->_echo($d['.'][0]['L_GALLERY_EMPTY']); ?>
</span></td>
</tr>
<?php }} else {if($_row_count = count($d['row'])) {for ($_row_i = 0; $_row_i < $_row_count; $_row_i++){ ?><tr>
<?php if($_cell_count = count($d['row'][$_row_i]['cell'])) {for ($_cell_i = 0; $_cell_i < $_cell_count; $_cell_i++){ ?><td class="row2" height="50" width="<?php $this->_echo($d['.'][0]['WIDTH']); ?>%"><table cellpadding="20" cellspacing="0" border="0" width="100%"><tr><td width="100%" valign="middle" align="center"><span class="gen">
<?php if($_filled_count = count($d['row'][$_row_i]['cell'][$_cell_i]['filled'])) {for ($_filled_i = 0; $_filled_i < $_filled_count; $_filled_i++){ ?>
<input type="image" name="select_avatar[<?php $this->_echo($d['row'][$_row_i]['cell'][$_cell_i]['AVATAR']); ?>]" src="<?php $this->_echo($d['row'][$_row_i]['cell'][$_cell_i]['I_AVATAR']); ?>" title="<?php $this->_echo($d['row'][$_row_i]['cell'][$_cell_i]['L_AVATAR']); ?>" /><br />
<?php $this->_echo($d['row'][$_row_i]['cell'][$_cell_i]['L_AVATAR']); ?>
<?php }} else { ?>
&nbsp;
<?php } ?>
</span></td></tr></table></td><?php }} ?>
</tr><?php }}} ?>
</table>
<?php $this->_include('pagination_box.tpl'); ?>
</td>
</tr>