<?php /* Smarty version 2.6.31, created on 2024-05-24 17:43:58
         compiled from db:d3downloads_main_viewcat.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_viewcat.html', 12, 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?cid=<?php echo $this->_tpl_vars['category_id']; ?>
" method="get" style="margin:0px;text-align:center;">
				<input name="orderby" value="<?php echo $this->_tpl_vars['orderby']; ?>
" type="hidden">
				<?php if (! $this->_tpl_vars['mypost']): ?>
					<select name="cid" onchange="submit();">
						<?php if ($this->_tpl_vars['mylink']): ?><option value=""><?php echo $this->_tpl_vars['lang_directcatsel']; ?>
</option><?php endif; ?>
						<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['category'],'selected' => $this->_tpl_vars['category_id']), $this);?>
<br />
					</select>
				<?php else: ?>
					<select name="submitter" onchange="submit();">
						<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['submitter_select'],'selected' => $this->_tpl_vars['submitter']), $this);?>
<br />
					</select>
				<?php endif; ?>
				&nbsp;<?php echo $this->_tpl_vars['download_total_num']; ?>
 
				<?php if ($this->_tpl_vars['module_admin'] && $this->_tpl_vars['invisible_num'] && ! $this->_tpl_vars['mypost']): ?>
					<?php echo $this->_tpl_vars['invisible_link']; ?>

				<?php endif; ?>
				&nbsp;| &nbsp;<?php echo @_MD_D3DOWNLOADS_LABEL_PERPAGE; ?>
&nbsp;
				<select name="perpage" onchange="submit();">
					<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['perpage'],'selected' => $this->_tpl_vars['select_perpage']), $this);?>

				</select>
				<?php if ($this->_tpl_vars['category_id']): ?>
					&nbsp;| &nbsp;
					<select name="intree" onchange="submit();">
						<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['select_intree'],'selected' => $this->_tpl_vars['intree']), $this);?>

					</select>
				<?php endif; ?>
				<?php if ($this->_tpl_vars['mylink']): ?>
					<input name="page" value="mylink" type="hidden">
				<?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);
 ?>

<div class="d3downloads_sortedby">
	<?php echo @_MD_D3DOWNLOADS_SORTBY; ?>
&nbsp;&nbsp;<?php echo @_MD_D3DOWNLOADS_TITLE; ?>
 (<a href="<?php echo $this->_tpl_vars['argument']; ?>
&amp;orderby=titleA"><img src="images/up.gif" border="0" align="middle" alt="" /></a><a href="<?php echo $this->_tpl_vars['argument']; ?>
&amp;orderby=titleD"><img src="images/down.gif" border="0" align="middle" alt="" /></a>)&nbsp;<?php echo @_MD_D3DOWNLOADS_DATE; ?>
 (<a href="<?php echo $this->_tpl_vars['argument']; ?>
&amp;orderby=dateA"><img src="images/up.gif" border="0" align="middle" alt="" /></a><a href="<?php echo $this->_tpl_vars['argument']; ?>
&amp;orderby=dateD"><img src="images/down.gif" border="0" align="middle" alt="" /></a>)&nbsp;<?php echo @_MD_D3DOWNLOADS_RATING; ?>
 (<a href="<?php echo $this->_tpl_vars['argument']; ?>
&amp;orderby=ratingA"><img src="images/up.gif" border="0" align="middle" alt="" /></a><a href="<?php echo $this->_tpl_vars['argument']; ?>
&amp;orderby=ratingD"><img src="images/down.gif" border="0" align="middle" alt="" /></a>)&nbsp;<?php echo @_MD_D3DOWNLOADS_DOWNSUM; ?>
 (<a href="<?php echo $this->_tpl_vars['argument']; ?>
&amp;orderby=hitsA"><img src="images/up.gif" border="0" align="middle" alt="" /></a><a href="<?php echo $this->_tpl_vars['argument']; ?>
&amp;orderby=hitsD"><img src="images/down.gif" border="0" align="middle" alt="" /></a>)
	<br /><span class="d3downloads_bold"><?php echo $this->_tpl_vars['lang_cursortedby']; ?>
</span>
</div>

<?php if ($this->_tpl_vars['category_id'] && ! $this->_tpl_vars['mylink']): ?>
	<?php if ($this->_tpl_vars['cat_description']): ?>
		<div class="d3downloads_cat_description">
			<?php echo $this->_tpl_vars['cat_description']; ?>

		</div>
	<?php endif; ?>

	<?php if ($this->_tpl_vars['can_post'] || $this->_tpl_vars['module_admin']): ?>
		<br />
		<table width="100%" cellspacing="0" cellpadding="10" border="0">
			<tr>
				<td class="d3downloads_submitlink">
					<?php if ($this->_tpl_vars['module_admin']): ?>
						[<a href="<?php echo $this->_tpl_vars['mod_url']; ?>
/admin/index.php?page=categoryedit&amp;cid=<?php echo $this->_tpl_vars['category_id']; ?>
"><?php echo @_MD_D3DOWNLOADS_CAT_EDIT; ?>
</a>]&nbsp;
						[<a href="#details_info"><?php echo @_MD_D3DOWNLOADS_LABEL_READ_INFO; ?>
</a>]&nbsp;
						[<?php echo $this->_tpl_vars['useraccess_edit']; ?>
]&nbsp;
					<?php endif; ?>
					<?php if ($this->_tpl_vars['can_post']): ?>
						[<a href="<?php echo $this->_tpl_vars['mod_url']; ?>
/index.php?page=submit&amp;cid=<?php echo $this->_tpl_vars['category_id']; ?>
"><?php echo @_MD_D3DOWNLOADS_SUBMIT; ?>
</a>]
					<?php endif; ?>
				</td>
		</table>
	<?php endif; ?>
	<?php if ($this->_tpl_vars['module_admin']): ?>
		<div class="d3downloads_canread_info">
				<?php echo $this->_tpl_vars['canread_info']; ?>

		</div>
	<?php endif; ?>
<?php elseif ($this->_tpl_vars['mylink']): ?>
	<br />
	<form name="delmylink" id="delmylink" action="<?php echo $this->_tpl_vars['mod_url']; ?>
/index.php?page=mylink" method="post">
		<table width="100%" cellspacing="0" cellpadding="10" border="0">
			<tr>
				<td class="d3downloads_submitlink">
					<input type="submit" class="d3downloads_submit" name="del_allmylink" id="del_allmylink" value="<?php echo @_MD_D3DOWNLOADS_DELALL_MYLINK; ?>
" onclick="return confirm('<?php echo @_MD_D3DOWNLOADS_MSG_CONFIRMDELETECONTENT; ?>
')" />
				</td>
		</table>
	</form>
<?php endif; ?>
<br />
<table width="100%" cellspacing="0" cellpadding="10" border="0">
	<tr>
		<td width="100%" align="center" valign="top">
			<?php if ($this->_tpl_vars['file']): ?>
				<!-- Start 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 link loop -->
			<?php else: ?>
				<?php echo @_MD_D3DOWNLOADS_NOMATCH; ?>

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

<?php echo $this->_tpl_vars['pagenav']; ?>


<?php if ($this->_tpl_vars['module_admin'] && $this->_tpl_vars['category_id'] && ! $this->_tpl_vars['mylink']): ?>
	<br />
	<a name="details_info"></a>
	<table>
		<tr>
			<th colspan="2" style="text-align:center;">
				<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_GROUPNAME; ?>
</span>
			</th>
			<th style="text-align:center;">
				<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_CAN_READ_INFO; ?>
</span>
			</th>
			<th style="text-align:center;">
				<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_CAN_POST_INFO; ?>
</span>
			</th>
			<th style="text-align:center;">
				<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_CAN_EDIT_INFO; ?>
</span>
			</th>
			<th style="text-align:center;">
				<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_CAN_DELETE_INFO; ?>
</span>
			</th>
			<th style="text-align:center;">
				<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_POST_AUTO_APPROVED_INFO; ?>
</span>
			</th>
			<th style="text-align:center;">
				<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_EDIT_AUTO_APPROVED_INFO; ?>
</span>
			</th>
			<th style="text-align:center;">
				<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_CAN_HTML_INFO; ?>
</span>
			</th>
			<th style="text-align:center;">
				<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_CAN_UPLOAD_INFO; ?>
</span>
			</th>
		</tr>
			<?php echo $this->_tpl_vars['group_trs']; ?>

	</table>
	<br />
	<?php if ($this->_tpl_vars['user_trs']): ?>
		<table>
			<tr>
				<th style="text-align:center;">
					<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_UID; ?>
</span>
				</th>
				<th colspan="2" style="text-align:center;">
					<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_UNAME; ?>
</span>
				</th>
				<th style="text-align:center;">
					<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_CAN_READ_INFO; ?>
</span>
				</th>
				<th style="text-align:center;">
					<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_CAN_POST_INFO; ?>
</span>
				</th>
				<th style="text-align:center;">
					<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_CAN_EDIT_INFO; ?>
</span>
				</th>
				<th style="text-align:center;">
					<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_CAN_DELETE_INFO; ?>
</span>
				</th>
				<th style="text-align:center;">
					<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_POST_AUTO_APPROVED_INFO; ?>
</span>
				</th>
				<th style="text-align:center;">
					<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_EDIT_AUTO_APPROVED_INFO; ?>
</span>
				</th>
				<th style="text-align:center;">
					<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_CAN_HTML_INFO; ?>
</span>
				</th>
				<th style="text-align:center;">
					<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_CAN_UPLOAD_INFO; ?>
</span>
				</th>
			</tr>
			<?php echo $this->_tpl_vars['user_trs']; ?>

			</tr>
		</table>
	<?php endif; ?>
	<div align="right">
		[<?php echo $this->_tpl_vars['useraccess_edit']; ?>
]
	</div>
<?php endif; ?>
<br />
<hr class="notification" />
<?php if ($this->_tpl_vars['category_id'] && ! $this->_tpl_vars['mylink']): ?>
	<?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);
 ?>
<?php endif; ?>