<?php /* Smarty version 2.6.31, created on 2024-05-24 17:43:58
         compiled from db:d3downloads_admin_filemanager.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_options', 'db:d3downloads_admin_filemanager.html', 19, false),array('function', 'cycle', 'db:d3downloads_admin_filemanager.html', 86, false),array('modifier', 'count', 'db:d3downloads_admin_filemanager.html', 146, false),array('modifier', 'string_format', 'db:d3downloads_admin_filemanager.html', 192, 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_H2FILEMANAGER; ?>
 ( <?php echo $this->_tpl_vars['total_num']; ?>
 )
	<?php if ($this->_tpl_vars['invisible_num'] && ! $this->_tpl_vars['invisible']): ?>
		<?php echo $this->_tpl_vars['invisible_link']; ?>

	<?php endif; ?>
</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="filemanager" id="filemanager" 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']; ?>

	<input name="page" value="<?php echo $this->_tpl_vars['mod_url']; ?>
/admin/index.php?page=<?php echo $this->_tpl_vars['page']; ?>
" type="hidden">
	<div style="text-align:right;color:inherit;border: 1px inset #CCC;padding: 3px;with: 80%;font-size: small;">
		<?php echo @_MD_D3DOWNLOADS_LABEL_PERPAGE; ?>
&nbsp;
		<select name="perpage" id="perpage">
			<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['perpage'],'selected' => $this->_tpl_vars['select_perpage']), $this);?>

		</select>
		<?php echo @_MD_D3DOWNLOADS_SORTBY; ?>

		<select name="order_select" id="order_select">
			<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['list_order'],'selected' => $this->_tpl_vars['select_order']), $this);?>

		</select>
		<?php echo @_MD_D3DOWNLOADS_SEL_CATEGORY; ?>

		<select name="category_select"  id="category_select">
			<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['categoryselect'],'selected' => $this->_tpl_vars['select_cid']), $this);?>

		</select>
		<?php if ($this->_tpl_vars['select_cid']): ?>
			<select name="intree"  id="intree">
				<?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['invisible']): ?>
			<?php echo @_MD_D3DOWNLOADS_SEL_SUBMITTER; ?>

			<input type="checkbox" name="sel_submitter" id="sel_submitter" value="1" <?php if ($this->_tpl_vars['mypost']): ?> checked="checked"<?php endif; ?> />
			<br />
			<div style="display: none;" id="submitter_select_line">
				<select disabled="disabled" name="submitter" id="submitter">
					<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['submitter_select'],'selected' => $this->_tpl_vars['submitter']), $this);?>

				</select>
							</div>
		<?php endif; ?>
	</div>
<table class="outer">
	<tr>
		<th style="text-align:center;font-size: small;">
			<<?php echo @_MD_D3DOWNLOADS_TH_ID; ?>

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

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

		</th>
		<th style="text-align:center;font-size: small;">
			<?php echo @_MD_D3DOWNLOADS_TH_VISIBLE; ?>

			<input type="checkbox" onclick="col_check_on_off( this, 'col_visible_' )">
		</th>
		<th style="text-align:center;font-size: small;">
			<?php echo @_MD_D3DOWNLOADS_TH_CANCOMMENT; ?>

			<input type="checkbox" onclick="col_check_on_off( this, 'col_comment_' )">
		</th>
		<th style="text-align:center;font-size: small;">
			<?php echo @_MD_D3DOWNLOADS_TH_HITS; ?>

		</th>
		<th style="text-align:center;font-size: small;">
			<?php echo @_MD_D3DOWNLOADS_TH_RATING; ?>

		</th>
		<th style="font-size: small;">
			<?php echo @_MD_D3DOWNLOADS_TH_COMMENTS; ?>

		</th>
		<th style="font-size: small;">
			<?php echo @_MD_D3DOWNLOADS_TH_MYLINK; ?>

		</th>
		<th style="font-size: small;">
			<?php echo @_MD_D3DOWNLOADS_TH_BROKEN; ?>

		</th>
		<th style="text-align:right;font-size: small;">
			<?php echo @_MD_D3DOWNLOADS_TH_CONTENTSACTIONS; ?>

			<input type="checkbox" onclick="col_check_on_off( this, 'col_action_' )">
		</th>
	</tr>
	<?php $_from = $this->_tpl_vars['download']; 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']['lid']; ?>

			</td>
			<td nowrap="nowrap">
				<input type="text" size="24" maxlength="255" name="title[<?php echo $this->_tpl_vars['file']['lid']; ?>
]" id="col_title_<?php echo $this->_tpl_vars['file']['lid']; ?>
" value="<?php echo $this->_tpl_vars['file']['title']; ?>
" />
				<div id="title_info_<?php echo $this->_tpl_vars['file']['lid']; ?>
" style="display:none;color: #CC0000;font-size:100%;font-weight:bold;margin:2px;padding:2px;"></div>
			</td>
			<td nowrap="nowrap">
				<?php echo $this->_tpl_vars['file']['ctitle']; ?>

			</td>
			<td nowrap="nowrap" style="text-align:center;">
				<input type="checkbox" name="visible[<?php echo $this->_tpl_vars['file']['lid']; ?>
]" id="col_visible_<?php echo $this->_tpl_vars['file']['lid']; ?>
" value="1" <?php if ($this->_tpl_vars['file']['visible']): ?>checked="checked"<?php endif; ?> />
			</td>
			<td nowrap="nowrap" style="text-align:center;">
				<input type="checkbox" name="comment[<?php echo $this->_tpl_vars['file']['lid']; ?>
]" id="col_comment_<?php echo $this->_tpl_vars['file']['lid']; ?>
" value="1" <?php if ($this->_tpl_vars['file']['cancomment']): ?>checked="checked"<?php endif; ?> />
			</td>
			<td nowrap="nowrap" style="text-align:center;">
				<?php echo $this->_tpl_vars['file']['hits']; ?>

			</td>
			<td nowrap="nowrap" style="text-align:center;">
				<?php echo $this->_tpl_vars['file']['rating']; ?>
<br />
				(<?php echo $this->_tpl_vars['file']['votes']; ?>
<?php echo @_MD_D3DOWNLOADS_VOTES; ?>
)
			</td>
			<td nowrap="nowrap" style="text-align:center;">
				<?php echo $this->_tpl_vars['file']['comments']; ?>

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

			</td>
			<td nowrap="nowrap" style="text-align:center;">
				<?php if ($this->_tpl_vars['file']['broken'] > 0): ?>
					<a href="<?php echo $this->_tpl_vars['mod_url']; ?>
/index.php?page=modfile&amp;cid=<?php echo $this->_tpl_vars['file']['cid']; ?>
&amp;lid=<?php echo $this->_tpl_vars['file']['lid']; ?>
"><font color="#CC0000"><b><?php echo $this->_tpl_vars['file']['broken']; ?>
</b></font></a>
				<?php else: ?>
					<?php echo $this->_tpl_vars['file']['broken']; ?>

				<?php endif; ?>
			</td>
			<td nowrap="nowrap" style="text-align:right;">
				<?php if ($this->_tpl_vars['file']['dateinfo']): ?>
					<?php echo $this->_tpl_vars['file']['dateinfo']; ?>
 |
				<?php else: ?>
					<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']['lid']; ?>
"><?php echo @_MD_D3DOWNLOADS_VISIBLE; ?>
</a> |
				<?php endif; ?>
				<a href="<?php echo $this->_tpl_vars['mod_url']; ?>
/index.php?page=modfile&amp;cid=<?php echo $this->_tpl_vars['file']['cid']; ?>
&amp;lid=<?php echo $this->_tpl_vars['file']['lid']; ?>
"><?php echo @_EDIT; ?>
</a> |
				<input type="checkbox" name="action_selects[<?php echo $this->_tpl_vars['file']['lid']; ?>
]" id="col_action_<?php echo $this->_tpl_vars['file']['lid']; ?>
" value="1" /><br />
				<?php echo $this->_tpl_vars['file']['user_url']; ?>

				<br />
				<?php echo $this->_tpl_vars['file']['date']; ?>

			</td>
		</tr>
	<?php endforeach; endif; unset($_from); ?>
	<tr>
		<td colspan="11" align="center" class="head">
			<input type="submit" name="filemanager_update" id="filemanager_update" value="<?php echo @_SUBMIT; ?>
" tabindex="0" />
		</td>
	</tr>
	<tr>
		<th colspan="11" style="text-align:right;">
			<?php echo @_MD_D3DOWNLOADS_LABEL_FILECHECKED; ?>

			<input type="submit" name="delete" id="delete" value="<?php echo @_MD_D3DOWNLOADS_BTN_DELETE; ?>
" /> 
			<?php if (count($this->_tpl_vars['moveselect']) > 1): ?>
				<input type="submit" name="move" id="move" value="<?php echo @_MD_D3DOWNLOADS_BTN_MOVE; ?>
" /> 
				<select name="move_select" id="move_select">
					<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['moveselect']), $this);?>

				</select>
			<?php endif; ?>
			<?php if ($this->_tpl_vars['copy_select']): ?>
				<br />
				<input type="submit" name="copy" id="copy" value="<?php echo @_MD_D3DOWNLOADS_BTN_COPY; ?>
" /> 
				<select name="copy_mid" id="copy_mid">
					<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['copy_select']['target_modules']), $this);?>

				</select>
				<select name="copy_category_id[0]" id="copy_category_id_0">
					<option value="0">----</option>
				</select>
				<?php $_from = $this->_tpl_vars['copy_select']['category']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['target_mid'] => $this->_tpl_vars['copy_options']):
?>
					<select name="copy_category_id[<?php echo $this->_tpl_vars['target_mid']; ?>
]" id="copy_category_id_<?php echo $this->_tpl_vars['target_mid']; ?>
">
						<option value="0">----</option>
						<?php echo $this->_tpl_vars['copy_options']; ?>

					</select>
				<?php endforeach; endif; unset($_from); ?>
			<?php endif; ?>
		</th>
	</tr>
</table>
</form>

<div align="right"><?php echo $this->_tpl_vars['pagenav']; ?>
</div><br />
<?php if ($this->_tpl_vars['category_tree']): ?>
	<div style="color:inherit;border: 1px inset #CCC;padding: 6px;with: 80%;font-size: small;">
		<?php echo $this->_tpl_vars['category_tree']; ?>

	</div>
<?php endif; ?>

<?php if ($this->_tpl_vars['copy_select']): ?><?php echo $this->_tpl_vars['copy_select']['category_select_showhide']; ?>
<?php endif; ?>

<script type="text/javascript">
<!--//
sel_submitter_line_initialize() ;

jQuery( function($){
	$( '#filemanager_update' ).click( function(){
		validate_error = 0 ;
		$.each( $id_filter( 'col_title_' , '^=' ), function(){
			var targetId = this.id ;
			var info = 'title_info_' + targetId.slice( 10 ) ;
			var message = '<?php echo ((is_array($_tmp=@_MD_D3DOWNLOADS_SUBJECT)) ? $this->_run_mod_handler('string_format', true, $_tmp, @_FORM_ENTER) : smarty_modifier_string_format($_tmp, @_FORM_ENTER)); ?>
' ;
			validate_error += form_validate_contentform( targetId, info, message ) ;
		});
		return ( validate_error == 0 ) ? true : false ;
    });

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

    $( '#move' ).click( function(){
		infoDom_initialize() ;
		col_action_check( 'col_action_' ) ;
		select_check( 'move_select' ) ;
		if( validate_checked > 0 && validate_selected > 0 ){
			return confirm('<?php echo @_MD_D3DOWNLOADS_CONFIRM_MOVE; ?>
') ;
		} else {
			if( validate_checked  == 0 ) popup_info( '<?php echo @_MD_D3DOWNLOADS_ERROR_SEL_FILSE; ?>
' )
			if( validate_selected == 0 ) popup_info( '<?php echo @_MD_D3DOWNLOADS_NO_MOVEED; ?>
' )
			return false ;
		}
    });

    $( '#copy' ).click( function(){
		infoDom_initialize() ;
		col_action_check( 'col_action_' ) ;
		select_check( 'copy_mid' , 'copy_category_id' ) ;
		if( validate_checked > 0 && validate_selected == 2 ){
			return confirm('<?php echo @_MD_D3DOWNLOADS_CONFIRM_COPY; ?>
') ;
		} else {
			if( validate_checked  == 0 ) popup_info( '<?php echo @_MD_D3DOWNLOADS_ERROR_SEL_FILSE; ?>
' )
			if( validate_selected != 2 ) popup_info( '<?php echo @_MD_D3DOWNLOADS_NO_COPY; ?>
' )
			return false ;
		}
    });

    $( '#submitter' ).change( function(){
		document.forms['filemanager'] .submit() ;
    });

    $( '#perpage' ).change( function(){
		document.forms['filemanager'] .submit() ;
    });

    $( '#order_select' ).change( function(){
		document.forms['filemanager'] .submit() ;
    });

    $( '#category_select' ).change( function(){
		document.forms['filemanager'] .submit() ;
    });

    $( '#intree' ).change( function(){
		document.forms['filemanager'] .submit() ;
    });
});
//-->
</script>