<?php if (!defined('IN_PHPBB')) exit; $this->_tpl_include('overall_header.html'); ?>


<a name="maincontent"></a>

<a href="<?php echo (isset($this->_rootref['U_BACK'])) ? $this->_rootref['U_BACK'] : ''; ?>" style="float: <?php echo (isset($this->_rootref['S_CONTENT_FLOW_END'])) ? $this->_rootref['S_CONTENT_FLOW_END'] : ''; ?>;">&laquo; <?php echo ((isset($this->_rootref['L_BACK'])) ? $this->_rootref['L_BACK'] : ((isset($user->lang['BACK'])) ? $user->lang['BACK'] : '{ BACK }')); ?></a>

<h1><?php echo ((isset($this->_rootref['L_TITLE'])) ? $this->_rootref['L_TITLE'] : ((isset($user->lang['TITLE'])) ? $user->lang['TITLE'] : '{ TITLE }')); ?></h1>

<table cellspacing="1">
	<col class="row1" /><col class="row2" />
<thead>
<tr>
	<th><?php echo ((isset($this->_rootref['L_STATS_ADDONS'])) ? $this->_rootref['L_STATS_ADDONS'] : ((isset($user->lang['STATS_ADDONS'])) ? $user->lang['STATS_ADDONS'] : '{ STATS_ADDONS }')); ?></th>
	<th><?php echo ((isset($this->_rootref['L_ACTIONS'])) ? $this->_rootref['L_ACTIONS'] : ((isset($user->lang['ACTIONS'])) ? $user->lang['ACTIONS'] : '{ ACTIONS }')); ?></th>
	<th></th>
</tr>
</thead>
<tbody>
<tr>
	<td class="row3" colspan="3"><strong><?php echo ((isset($this->_rootref['L_INSTALLED_ADDONS'])) ? $this->_rootref['L_INSTALLED_ADDONS'] : ((isset($user->lang['INSTALLED_ADDONS'])) ? $user->lang['INSTALLED_ADDONS'] : '{ INSTALLED_ADDONS }')); ?></strong></td>
</tr>
<?php $_addons_row_count = (isset($this->_tpldata['addons_row'])) ? sizeof($this->_tpldata['addons_row']) : 0;if ($_addons_row_count) {for ($_addons_row_i = 0; $_addons_row_i < $_addons_row_count; ++$_addons_row_i){$_addons_row_val = &$this->_tpldata['addons_row'][$_addons_row_i]; ?>

<tr>
	<td><strong><?php echo $_addons_row_val['NAME']; ?></strong></td>
	<td style="text-align: center;"><?php echo $_addons_row_val['S_ACTIONS']; ?></td>
	<td style="vertical-align: top; width: 100px; text-align: right; white-space: nowrap;">
		<?php if ($_addons_row_val['S_FIRST_ROW'] && ! $_addons_row_val['S_LAST_ROW']) {  ?>

			<?php echo (isset($this->_rootref['ICON_MOVE_UP_DISABLED'])) ? $this->_rootref['ICON_MOVE_UP_DISABLED'] : ''; ?>

			<a href="<?php echo $_addons_row_val['U_MOVE_DOWN']; ?>"><?php echo (isset($this->_rootref['ICON_MOVE_DOWN'])) ? $this->_rootref['ICON_MOVE_DOWN'] : ''; ?></a>
		<?php } else if (! $_addons_row_val['S_FIRST_ROW'] && ! $_addons_row_val['S_LAST_ROW']) {  ?>

			<a href="<?php echo $_addons_row_val['U_MOVE_UP']; ?>"><?php echo (isset($this->_rootref['ICON_MOVE_UP'])) ? $this->_rootref['ICON_MOVE_UP'] : ''; ?></a>
			<a href="<?php echo $_addons_row_val['U_MOVE_DOWN']; ?>"><?php echo (isset($this->_rootref['ICON_MOVE_DOWN'])) ? $this->_rootref['ICON_MOVE_DOWN'] : ''; ?></a>
		<?php } else if ($_addons_row_val['S_LAST_ROW'] && ! $_addons_row_val['S_FIRST_ROW']) {  ?>

			<a href="<?php echo $_addons_row_val['U_MOVE_UP']; ?>"><?php echo (isset($this->_rootref['ICON_MOVE_UP'])) ? $this->_rootref['ICON_MOVE_UP'] : ''; ?></a>
			<?php echo (isset($this->_rootref['ICON_MOVE_DOWN_DISABLED'])) ? $this->_rootref['ICON_MOVE_DOWN_DISABLED'] : ''; ?>

		<?php } else { ?>

			<?php echo (isset($this->_rootref['ICON_MOVE_UP_DISABLED'])) ? $this->_rootref['ICON_MOVE_UP_DISABLED'] : ''; ?>

			<?php echo (isset($this->_rootref['ICON_MOVE_DOWN_DISABLED'])) ? $this->_rootref['ICON_MOVE_DOWN_DISABLED'] : ''; ?>

		<?php } if ($_addons_row_val['S_EDIT']) {  ?><a href="<?php echo $_addons_row_val['U_EDIT']; ?>"><?php echo (isset($this->_rootref['ICON_EDIT'])) ? $this->_rootref['ICON_EDIT'] : ''; ?></a><?php } else { ?>&nbsp;&nbsp;&nbsp;&nbsp;<?php } ?>

	</td>
</tr>
<?php }} else { ?>

<tr>
	<td><strong><?php echo ((isset($this->_rootref['L_NO_ADDONS'])) ? $this->_rootref['L_NO_ADDONS'] : ((isset($user->lang['NO_ADDONS'])) ? $user->lang['NO_ADDONS'] : '{ NO_ADDONS }')); ?></strong></td>
	<td style="text-align: center;">&nbsp;</td>
</tr>
<?php } if ($this->_rootref['S_UNINSTALLED_ADDONS']) {  ?>

<tr>
	<td class="row3" colspan="2"><strong><?php echo ((isset($this->_rootref['L_UNINSTALLED_ADDONS'])) ? $this->_rootref['L_UNINSTALLED_ADDONS'] : ((isset($user->lang['UNINSTALLED_ADDONS'])) ? $user->lang['UNINSTALLED_ADDONS'] : '{ UNINSTALLED_ADDONS }')); ?></strong></td>
</tr>
<?php } $_addons_urow_count = (isset($this->_tpldata['addons_urow'])) ? sizeof($this->_tpldata['addons_urow']) : 0;if ($_addons_urow_count) {for ($_addons_urow_i = 0; $_addons_urow_i < $_addons_urow_count; ++$_addons_urow_i){$_addons_urow_val = &$this->_tpldata['addons_urow'][$_addons_urow_i]; ?>

<tr>
	<td><strong><?php echo $_addons_urow_val['NAME']; ?></strong></td>
	<td style="text-align: center;"><?php echo $_addons_urow_val['U_INSTALL']; ?></td>
</tr>
<?php }} ?>

</tbody>
</table>

<?php $this->_tpl_include('overall_footer.html'); ?>