<?php /* Smarty version 2.6.31, created on 2024-05-24 17:43:58
         compiled from db:d3downloads_admin_approvalmanager.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'db:d3downloads_admin_approvalmanager.html', 28, false),)), $this); ?>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['mod_url']; ?>
/index.php?page=module_header&src=jquery.js"></script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['mod_url']; ?>
/index.php?page=module_header&src=d3downloads.js"></script>
<h2><?php echo @_MD_D3DOWNLOADS_H2APROVALLIST; ?>
 ( <?php echo $this->_tpl_vars['unaproval_sum']; ?>
 )</h2>
<?php if ($this->_tpl_vars['iserror']): ?>
	<div style="color: #CC0000;font-size:100%;font-weight:bold;margin:5px;padding:5px;border-width:1px;border-style:solid;border-color:#808080;">
		<?php echo $this->_tpl_vars['error_message']; ?>

	</div>
<?php endif; ?>
<form name="approvalmanager" id="approvalmanager" action="<?php echo $this->_tpl_vars['mod_url']; ?>
/admin/index.php?page=<?php echo $this->_tpl_vars['page']; ?>
" method="post">
<?php echo $this->_tpl_vars['gticket_hidden']; ?>

<table class="outer">
	<tr>
		<th style="text-align:center;">
			<?php echo @_MD_D3DOWNLOADS_TH_ID; ?>

		</th>
		<th style="text-align:center;">
			<?php echo @_MD_D3DOWNLOADS_TH_TITLE; ?>

		</th>
		<th style="text-align:center;">
			<?php echo @_MD_D3DOWNLOADS_TH_CATEGORY; ?>

		</th>
		<th style="text-align:center;">
			<?php echo @_MD_D3DOWNLOADS_TH_CONTENTSACTIONS; ?>

			<input type="checkbox" onclick="col_check_on_off( this, 'col_action_u_' )">
		</th>
	</tr>
	<?php $_from = $this->_tpl_vars['unapproval']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['item']):
?>
		<tr class="<?php echo smarty_function_cycle(array('values' => "even,odd"), $this);?>
">
			<td style="text-align:center;">
				<?php echo $this->_tpl_vars['item']['requestid']; ?>

			</td>
			<td nowrap="nowrap">
				<?php echo $this->_tpl_vars['item']['title']; ?>

			</td>
			<td nowrap="nowrap">
				<?php echo $this->_tpl_vars['item']['ctitle']; ?>

			</td>
			<td nowrap="nowrap" style="text-align:center;">
				<a href="<?php echo $this->_tpl_vars['mod_url']; ?>
/admin/index.php?page=approval&amp;requestid=<?php echo $this->_tpl_vars['item']['requestid']; ?>
"><?php echo @_MD_D3DOWNLOADS_APPROVAL; ?>
</a> |
				<input type="checkbox" name="action_selects[<?php echo $this->_tpl_vars['item']['requestid']; ?>
]" id="col_action_u_<?php echo $this->_tpl_vars['item']['requestid']; ?>
" value="1" /><br />
				<?php echo $this->_tpl_vars['item']['postname']; ?>
<br />
				<?php echo $this->_tpl_vars['item']['date']; ?>

			</td>
		</tr>
	<?php endforeach; endif; unset($_from); ?>
	<tr>
		<th colspan="11" style="text-align:right;">
			<?php echo @_MD_D3DOWNLOADS_LABEL_FILECHECKED; ?>

			<input type="submit" name="unapproval_delete" id="unapproval_delete" value="<?php echo @_MD_D3DOWNLOADS_BTN_DELETE; ?>
" />
		</th>
	</tr>
</table>
</form>
<br />
<form name="modfilemanager" id="modfilemanager" action="<?php echo $this->_tpl_vars['mod_url']; ?>
/admin/index.php?page=<?php echo $this->_tpl_vars['page']; ?>
" method="post">
<?php echo $this->_tpl_vars['gticket_hidden']; ?>

<h2><?php echo @_MD_D3DOWNLOADS_H2MODFILELIST; ?>
 ( <?php echo $this->_tpl_vars['modfile_sum']; ?>
 )</h2>
<table class="outer">
	<tr>
		<th style="text-align:center;">
			<?php echo @_MD_D3DOWNLOADS_TH_ID; ?>

		</th>
		<th style="text-align:center;">
			<?php echo @_MD_D3DOWNLOADS_TH_TITLE; ?>

		</th>
		<th style="text-align:center;">
			<?php echo @_MD_D3DOWNLOADS_TH_CATEGORY; ?>

		</th>
		<th style="text-align:center;">
			<?php echo @_MD_D3DOWNLOADS_TH_CONTENTSACTIONS; ?>

			<input type="checkbox" onclick="col_check_on_off( this, 'col_action_m_' )">
		</th>
	</tr>
	<?php $_from = $this->_tpl_vars['modfile']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['file']):
?>
		<tr class="<?php echo smarty_function_cycle(array('values' => "even,odd"), $this);?>
">
			<td style="text-align:center;">
				<?php echo $this->_tpl_vars['file']['requestid']; ?>

			</td>
			<td nowrap="nowrap">
				<?php echo $this->_tpl_vars['file']['title']; ?>

			</td>
			<td nowrap="nowrap">
				<?php echo $this->_tpl_vars['file']['ctitle']; ?>

			</td>
			<td nowrap="nowrap" style="text-align:center;">
				<a href="<?php echo $this->_tpl_vars['mod_url']; ?>
/admin/index.php?page=approval&amp;requestid=<?php echo $this->_tpl_vars['file']['requestid']; ?>
"><?php echo @_MD_D3DOWNLOADS_APPROVAL; ?>
</a> |
				<input type="checkbox" name="modfile_selects[<?php echo $this->_tpl_vars['file']['requestid']; ?>
]" id="col_action_m_<?php echo $this->_tpl_vars['file']['requestid']; ?>
" value="1" /><br />
				<?php echo $this->_tpl_vars['file']['postname']; ?>
<br />
				<?php echo $this->_tpl_vars['file']['date']; ?>

			</td>
		</tr>
	<?php endforeach; endif; unset($_from); ?>
	<tr>
		<th colspan="11" style="text-align:right;">
			<?php echo @_MD_D3DOWNLOADS_LABEL_FILECHECKED; ?>

			<input type="submit" name="modfile_delete" id="modfile_delete" value="<?php echo @_MD_D3DOWNLOADS_BTN_DELETE; ?>
" />
		</th>
	</tr>
</table>
</form>

<script type="text/javascript">
<!--//
jQuery( function($){
	$( '#unapproval_delete' ).click( function(){
		infoDom_initialize() ;
		col_action_check( 'col_action_u_' ) ;
		if( validate_checked > 0 ){
			return confirm('<?php echo @_MD_D3DOWNLOADS_CONFIRM_DELETE; ?>
') ;
		} else {
			popup_info( '<?php echo @_MD_D3DOWNLOADS_ERROR_SEL_FILSE; ?>
' )
			return false ;
		}
    });

	$( '#modfile_delete' ).click( function(){
		infoDom_initialize() ;
		col_action_check( 'col_action_m_' ) ;
		if( validate_checked > 0 ){
			return confirm('<?php echo @_MD_D3DOWNLOADS_CONFIRM_DELETE; ?>
') ;
		} else {
			popup_info( '<?php echo @_MD_D3DOWNLOADS_ERROR_SEL_FILSE; ?>
' )
			return false ;
		}
    });
});
//-->
</script>