<?php /* Smarty version 2.6.31, created on 2024-05-24 17:43:58
         compiled from db:d3downloads_main_viewcontent.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_viewcontent.html', 7, false),)), $this); ?>
<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?cid=<?php echo $this->_tpl_vars['cid']; ?>
" 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']; ?>

				<?php if ($this->_tpl_vars['module_admin'] && $this->_tpl_vars['invisible_num']): ?>
					<?php echo $this->_tpl_vars['invisible_link']; ?>

				<?php endif; ?>
				<?php if ($this->_tpl_vars['module_admin'] && $this->_tpl_vars['broken_num']): ?>
					<?php echo $this->_tpl_vars['broken_link']; ?>

				<?php endif; ?>
				<?php if ($this->_tpl_vars['module_admin'] && $this->_tpl_vars['unapproval_num']): ?>
					<?php echo $this->_tpl_vars['unapproval_link']; ?>

				<?php endif; ?>
			</form>
		</td>
	</tr>
</table>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "db:".($this->_tpl_vars['mydirname'])."_inc_viewcat.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php if ($this->_tpl_vars['mod_config']['top_message']): ?>
	<div class="d3downloads_top_message">
		<?php echo $this->_tpl_vars['mod_config']['top_message']; ?>

	</div>
<?php endif; ?>

<?php if ($this->_tpl_vars['module_admin'] || $this->_tpl_vars['category_for_post']): ?>
<br />
	<form name="for_admin" action="<?php echo $this->_tpl_vars['mod_url']; ?>
/index.php" method="post">
		<table width="100%" cellspacing="0" cellpadding="10" border="0">
			<tr>
				<td class="d3downloads_admin_link">
					<?php if ($this->_tpl_vars['module_admin']): ?>
						[<a href="<?php echo $this->_tpl_vars['mod_url']; ?>
/admin/index.php?page=categoryedit&amp;cid=0"><?php echo @_MD_D3DOWNLOADS_ADMIN_NEWCATEGORY; ?>
</a>]&nbsp;&nbsp;
					<?php endif; ?>
					<?php if ($this->_tpl_vars['module_admin'] || $this->_tpl_vars['category_for_post']): ?>
						<select name="category_select" id="category_select">
							<option value=""><?php echo $this->_tpl_vars['lang_directcatsel']; ?>
</option>
							<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['category_for_post']), $this);?>

						</select>
						<input type="submit" class="d3downloads_submit" name="file_post" value="<?php echo @_MD_D3DOWNLOADS_NEWSUBMIT; ?>
" />
					<?php endif; ?>
					<?php if ($this->_tpl_vars['module_admin']): ?>
						<input type="submit" class="d3downloads_submit" name="cat_edit" value="<?php echo @_MD_D3DOWNLOADS_CAT_EDIT; ?>
" />
						<input type="submit" class="d3downloads_submit" name="brokencheck" value="<?php echo @_MD_D3DOWNLOADS_BROKENCHECK; ?>
" onclick="return confirm('<?php echo @_MD_D3DOWNLOADS_CONFIRM_BROKENCHECK; ?>
')" />
					<?php endif; ?>
				</td>
		</table>
	</form>
<?php endif; ?>

<?php if ($this->_tpl_vars['file']): ?>
	<h4><?php echo @_MD_D3DOWNLOADS_LATESTLIST; ?>
</h4>
<?php endif; ?>
<table width="100%" cellspacing="0" cellpadding="10" border="0">
<tr>
	<td width="100%" align="center" valign="top">
		<?php if ($this->_tpl_vars['file']): ?>
			<!-- Start new link loop -->
			<?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['file']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
				<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "db:".($this->_tpl_vars['mydirname'])."_inc_download.html", 'smarty_include_vars' => array('down' => $this->_tpl_vars['file'][$this->_sections['i']['index']])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
			<?php endfor; endif; ?>
			<!-- End new link loop -->
		<?php else: ?>
			<?php echo @_MD_D3DOWNLOADS_NOMATCH; ?>

		<?php endif; ?>
	</td>
</tr>
</table>
<br />
<hr class="notification" />

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'db:system_notification_select.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>