<?php if($_userform_count = count($d['userform'])) {for ($_userform_i = 0; $_userform_i < $_userform_count; $_userform_i++){ ?>
<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>
<tr>
<td class="row1"><span class="gen"><b><?php $this->_echo($d['.'][0]['L_USERNAME']); ?></b></span></td>
<td class="row2"><span class="gen">
<input type="text" class="post" name="username" value="<?php $this->_echo($d['.'][0]['USERNAME']); ?>" maxlength="50" size="20" />&nbsp;<input type="image" src="<?php $this->_echo($d['.'][0]['I_SEARCH_USER']); ?>" name="searchuser" alt="<?php $this->_echo($d['.'][0]['L_FIND_USERNAME']); ?>" align="top" onClick="window.open('<?php $this->_echo($d['.'][0]['U_SEARCH_USER']); ?>', '_phpbbsearch', 'HEIGHT=250,resizable=yes,WIDTH=400');return false;" />
</span></td>
</tr>
<tr>
<td class="catBottom" colspan="2" align="center"><?php $this->_echo($d['.'][0]['S_HIDDEN_FIELDS']); ?><span class="genmed">&nbsp;
<input type="image" src="<?php $this->_echo($d['.'][0]['I_LOOK_UP']); ?>" name="submituser" alt="<?php $this->_echo($d['.'][0]['L_LOOK_UP']); ?>" />&nbsp;
</span></td>
</tr>
</table>
<br style="font-size: 2px" />
<?php }} ?>

<table cellpadding="4" cellspacing="1" border="0" class="forumline" align="center" width="100%">
<tr>
<th colspan="2" nowrap="nowrap" class="thCornerL">&nbsp;<?php $this->_echo($d['.'][0]['L_FORM']); ?>&nbsp;</th>
<?php if($_data_count = count($d['data'])) {for ($_data_i = 0; $_data_i < $_data_count; $_data_i++){ ?>
<th nowrap="nowrap" class="thTop">&nbsp;<?php $this->_echo($d['data'][$_data_i]['L_TOTAL']); ?>&nbsp;</th>
<?php }} ?>
<th nowrap="nowrap" class="thCornerR">&nbsp;<?php $this->_echo($d['.'][0]['L_TOTAL']); ?>&nbsp;</th>
</tr>
<?php if($_row_count = count($d['row'])) {for ($_row_i = 0; $_row_i < $_row_count; $_row_i++){ ?>
<tr>
<td class="row1" nowrap="nowrap">
<span class="gen"><?php if($_link_count = count($d['row'][$_row_i]['link'])) {for ($_link_i = 0; $_link_i < $_link_count; $_link_i++){ ?><a href="<?php $this->_echo($d['row'][$_row_i]['U_LEGEND']); ?>" class="gen"><?php }}$this->_echo($d['row'][$_row_i]['LEGEND']);if($_link_count = count($d['row'][$_row_i]['link'])) {for ($_link_i = 0; $_link_i < $_link_count; $_link_i++){ ?></a><?php }} ?></span>
</td>
<td class="row1" valign="middle" width="100%">
<?php if($_data_count = count($d['row'][$_row_i]['data'])) {for ($_data_i = 0; $_data_i < $_data_count; $_data_i++){if($_left_count = count($d['row'][$_row_i]['data'][$_data_i]['left'])) {for ($_left_i = 0; $_left_i < $_left_count; $_left_i++){ ?>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><img src="<?php $this->_echo($d['row'][$_row_i]['data'][$_data_i]['I_LEFT']); ?>" width="4" alt="" height="12" /></td>
<?php }}if($_middle_count = count($d['row'][$_row_i]['data'][$_data_i]['middle'])) {for ($_middle_i = 0; $_middle_i < $_middle_count; $_middle_i++){ ?>
<td><img src="<?php $this->_echo($d['row'][$_row_i]['data'][$_data_i]['I_MIDDLE']); ?>" width="<?php $this->_echo($d['row'][$_row_i]['data'][$_data_i]['S_WIDTH']); ?>" height="12" alt="<?php $this->_echo($d['row'][$_row_i]['data'][$_data_i]['PERCENT']); ?>" /></td>
<?php }}if($_right_count = count($d['row'][$_row_i]['data'][$_data_i]['right'])) {for ($_right_i = 0; $_right_i < $_right_count; $_right_i++){ ?>
<td><img src="<?php $this->_echo($d['row'][$_row_i]['data'][$_data_i]['I_RIGHT']); ?>" width="4" alt="" height="12" /></td>
</tr>
</table>
<?php }}}} ?>
</td>
<?php if($_data_count = count($d['row'][$_row_i]['data'])) {for ($_data_i = 0; $_data_i < $_data_count; $_data_i++){ ?>
<td class="row2"<?php if($_title_count = count($d['row'][$_row_i]['data'][$_data_i]['title'])) {for ($_title_i = 0; $_title_i < $_title_count; $_title_i++){ ?> valign="bottom"<?php }} ?>>
<table cellpadding="0" cellspacing="0" border="0" width="100%"><tr>
<?php if($_extra_count = count($d['row'][$_row_i]['data'][$_data_i]['extra'])) {for ($_extra_i = 0; $_extra_i < $_extra_count; $_extra_i++){ ?><td><a href="<?php $this->_echo($d['row'][$_row_i]['data'][$_data_i]['U_EXTRA']); ?>" title="<?php $this->_echo($d['.'][0]['L_EXTRA']); ?>"><img src="<?php $this->_echo($d['.'][0]['I_EXTRA']); ?>" border="0" alt="<?php $this->_echo($d['.'][0]['L_EXTRA']); ?>" /></a></td><?php }} ?>
<td><span class="gensmall"><?php $this->_echo($d['row'][$_row_i]['data'][$_data_i]['PERCENT']); ?>&nbsp;</span></td>
<td align="right"><span class="gen"><b>&nbsp;<?php $this->_echo($d['row'][$_row_i]['data'][$_data_i]['TOTAL']); ?></b></span></td>
</tr>
<?php if($_title_count = count($d['row'][$_row_i]['data'][$_data_i]['title'])) {for ($_title_i = 0; $_title_i < $_title_count; $_title_i++){ ?>
<tr>
<td colspan="<?php if($_extra_count = count($d['row'][$_row_i]['data'][$_data_i]['title'][$_title_i]['extra'])) {for ($_extra_i = 0; $_extra_i < $_extra_count; $_extra_i++){ ?>3<?php }} else { ?>2<?php } ?>"><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr>
<td><img src="<?php $this->_echo($d['row'][$_row_i]['data'][$_data_i]['I_LEFT']); ?>" width="4" alt="" height="12" /></td>
<td width="100%"><img src="<?php $this->_echo($d['row'][$_row_i]['data'][$_data_i]['I_MIDDLE']); ?>" width="100%" alt="" height="12" /></td>
<td><img src="<?php $this->_echo($d['row'][$_row_i]['data'][$_data_i]['I_RIGHT']); ?>" width="4" alt="" height="12" /></td>
</tr></table></td>
</tr>
<?php }} ?>
</table>
</td>
<?php }} ?>
<td class="row1"><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr>
<td><span class="gensmall"><?php $this->_echo($d['row'][$_row_i]['PERCENT']); ?>&nbsp;</span></td>
<td align="right"><span class="gen"><b>&nbsp;<?php $this->_echo($d['row'][$_row_i]['TOTAL']); ?></b></span></td>
</tr></table></td>
</tr>
<?php if($_title_count = count($d['row'][$_row_i]['title'])) {for ($_title_i = 0; $_title_i < $_title_count; $_title_i++){ ?>
<tr>
<td class="spaceRow" colspan="<?php $this->_echo($d['.'][0]['SPAN_ALL']); ?>"><img src="<?php $this->_echo($d['.'][0]['I_SPACER']); ?>" alt="" border="0" height="1" /></td>
</tr>
<?php }}}}if($_users_count = count($d['users'])) {for ($_users_i = 0; $_users_i < $_users_count; $_users_i++){ ?>
<tr>
<td class="row1" colspan="<?php $this->_echo($d['.'][0]['SPAN_ALL']); ?>"><span class="genmed">
<?php if($_connected_count = count($d['users'][$_users_i]['connected'])) {for ($_connected_i = 0; $_connected_i < $_connected_count; $_connected_i++){if($_first_count = count($d['users'][$_users_i]['connected'][$_connected_i]['first'])) {for ($_first_i = 0; $_first_i < $_first_count; $_first_i++){}} else { ?>, <?php }if($_link_count = count($d['users'][$_users_i]['connected'][$_connected_i]['link'])) {for ($_link_i = 0; $_link_i < $_link_count; $_link_i++){ ?><a href="<?php $this->_echo($d['users'][$_users_i]['connected'][$_connected_i]['U_USERNAME']); ?>" title="<?php $this->_echo($d['.'][0]['L_PROFILE_VISIT']); ?>" class="genmed"<?php $this->_echo($d['users'][$_users_i]['connected'][$_connected_i]['STYLE']); ?>><?php }} else { ?><b<?php $this->_echo($d['users'][$_users_i]['connected'][$_connected_i]['STYLE']); ?>><?php }$this->_echo($d['users'][$_users_i]['connected'][$_connected_i]['USERNAME']);if($_link_count = count($d['users'][$_users_i]['connected'][$_connected_i]['link'])) {for ($_link_i = 0; $_link_i < $_link_count; $_link_i++){ ?></a><?php }} else { ?></b><?php } ?>&nbsp;(<?php $this->_echo($d['users'][$_users_i]['connected'][$_connected_i]['USER_VISIT']); ?>)<?php }} else {$this->_echo($d['.'][0]['L_NO_CONNECTED']);} ?>
</span></td>
</tr>
<?php }} ?>
<tr>
<td class="catBottom" colspan="<?php $this->_echo($d['.'][0]['SPAN_ALL']); ?>" align="center"><span class="gensmall">&nbsp;
<?php if($_buttons_count = count($d['buttons'])) {for ($_buttons_i = 0; $_buttons_i < $_buttons_count; $_buttons_i++){ ?><a href="<?php $this->_echo($d['buttons'][$_buttons_i]['U_BUTTON']); ?>" title="<?php $this->_echo($d['buttons'][$_buttons_i]['L_BUTTON']); ?>" accesskey="<?php $this->_echo($d['buttons'][$_buttons_i]['S_BUTTON']); ?>"><img src="<?php $this->_echo($d['buttons'][$_buttons_i]['I_BUTTON']); ?>" border="0" alt="<?php $this->_echo($d['buttons'][$_buttons_i]['L_BUTTON']); ?>" /></a>&nbsp;<?php }} ?>
</span></td>
</tr>
</table>

<br clear="all" />