<?php /* Smarty version 2.6.31, created on 2024-05-24 17:43:58
         compiled from db:d3downloads_main_topten.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'db:d3downloads_main_topten.html', 10, false),)), $this); ?>
<?php if ($this->_tpl_vars['mod_config']['show_breadcrumbs']): ?>
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "db:".($this->_tpl_vars['mydirname'])."_inc_breadcrumbs.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php endif; ?>
<table width="100%" border="0" cellspacing="5" cellpadding="0" align="center">
	<tr valign="top" align="left">
		<td class="d3downloads_head">
			<form name="cid_select" action="<?php echo $this->_tpl_vars['mod_url']; ?>
/index.php?page=<?php echo $this->_tpl_vars['page']; ?>
" method="get" style="margin:0px;text-align:center;">
				<select name="cid" onchange="submit();">
					<option value=""><?php echo $this->_tpl_vars['lang_directcatsel']; ?>
</option>
					<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['category']), $this);?>
<br />
				</select> &nbsp; &nbsp;
				<?php echo $this->_tpl_vars['download_total_num']; ?>

			</form>
		</td>
	</tr>
</table>
<br />
<!-- Start ranking loop -->
<?php $_from = $this->_tpl_vars['rankings']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['ranking']):
?>
	<table class="d3downloads_outer">
		<tr>
			<th colspan="6" align="center">
				<?php echo $this->_tpl_vars['ranking']['title']; ?>
 (<?php echo $this->_tpl_vars['lang_sortby']; ?>
)
			</th>
		</tr>
		<tr>
			<td width="5%" class="d3downloads_head" style="text-align:center;">
				<?php echo $this->_tpl_vars['lang_rank']; ?>

			</td>
			<td width="40%" class="d3downloads_head" style="text-align:center;">
				<?php echo $this->_tpl_vars['lang_title']; ?>

			</td>
			<td width="28%" class="d3downloads_head" style="text-align:center;">
				<?php echo $this->_tpl_vars['lang_category']; ?>

			</td>
			<td width="10%" class="d3downloads_head" style="text-align:center;">
				<?php echo $this->_tpl_vars['lang_hits']; ?>

			</td>
			<td width="9%" class="d3downloads_head" style="text-align:center;">
				<?php echo $this->_tpl_vars['lang_rating']; ?>

			</td>
			<td width="8%" class="d3downloads_head" style="text-align:center;">
				<?php echo $this->_tpl_vars['lang_vote']; ?>

			</td>
		</tr>

		<!-- Start files loop -->
		<?php $_from = $this->_tpl_vars['ranking']['file']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['file']):
?>
			<tr>
				<td class="d3downloads_even" style="text-align:center;">
					<?php echo $this->_tpl_vars['file']['rank']; ?>

				</td>
				<td class="d3downloads_odd">
					<a href="<?php echo $this->_tpl_vars['mod_url']; ?>
/index.php?page=singlefile&amp;cid=<?php echo $this->_tpl_vars['file']['cid']; ?>
&amp;lid=<?php echo $this->_tpl_vars['file']['id']; ?>
"><?php echo $this->_tpl_vars['file']['title']; ?>
</a>
				</td>
				<td class="d3downloads_even">
					<?php $_from = $this->_tpl_vars['file']['category']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['category'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['category']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['count'] => $this->_tpl_vars['category']):
        $this->_foreach['category']['iteration']++;
?>
						<?php echo $this->_tpl_vars['category']; ?>

						<?php if (( $this->_tpl_vars['count'] + 1 ) < $this->_foreach['category']['total']): ?>
							<span class="fg2">&raquo;&raquo;</span>
						<?php endif; ?>
					<?php endforeach; endif; unset($_from); ?>
				</td>
				<td class="d3downloads_odd" align="center">
					<?php echo $this->_tpl_vars['file']['hits']; ?>

				</td>
				<td class="d3downloads_even" align="center">
					<?php echo $this->_tpl_vars['file']['rating']; ?>

				</td>
				<td  style="text-align:center;">
					<?php echo $this->_tpl_vars['file']['votes']; ?>

				</td>
			</tr>
		<?php endforeach; endif; unset($_from); ?>
		<!-- End links loop-->

	</table>
	<br />
<?php endforeach; endif; unset($_from); ?>
<!-- End ranking loop -->