<?php /* Smarty version 2.6.31, created on 2024-05-24 17:43:58
         compiled from db:d3downloads_admin_user_access.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_user_access.html', 18, false),array('modifier', 'count', 'db:d3downloads_admin_user_access.html', 83, 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 $this->_tpl_vars['formtitle']; ?>
</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="user_access" id="user_access" 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']; ?>

	<div style="text-align:right;color:inherit;border: 1px inset #CCC;padding: 2px;font-size: small;">
		<a href="<?php echo $this->_tpl_vars['mod_url']; ?>
/admin/index.php?page=categoryedit&amp;cid=0"><?php echo @_MD_D3DOWNLOADS_ADMIN_NEWCATEGORY; ?>
</a> |
		<a href="<?php echo $this->_tpl_vars['mod_url']; ?>
/admin/index.php?page=categoryedit&amp;cid=0&amp;pid=<?php echo $this->_tpl_vars['select_cid']; ?>
"><?php echo @_MD_D3DOWNLOADS_MAKESUBCATEGORY; ?>
</a> |
		<a href="<?php echo $this->_tpl_vars['mod_url']; ?>
/admin/index.php?page=categoryedit&amp;cid=<?php echo $this->_tpl_vars['select_cid']; ?>
"><?php echo @_MD_D3DOWNLOADS_CAT_EDIT; ?>
</a> |
		<a href="<?php echo $this->_tpl_vars['mod_url']; ?>
/index.php?cid=<?php echo $this->_tpl_vars['select_cid']; ?>
"><?php echo @_MD_D3DOWNLOADS_CAT_VISIBLE; ?>
</a> |
		<span style="font-weight: bold;"><?php echo @_MD_D3DOWNLOADS_SEL_CATEGORY; ?>
</span>
		<select name="category_select" onchange="submit();">
			<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['categoryselect'],'selected' => $this->_tpl_vars['select_cid']), $this);?>

		</select>
	</div>
	<?php if ($this->_tpl_vars['parentid'] != 0): ?>
		<br />
		<div style="color:inherit;border: 1px inset #CCC;padding: 6px;with: 80%;font-size: small;">
			<?php echo @_MD_D3DOWNLOADS_HELP_USERACCESS_PID; ?>

		</div>
		<div align="right">
			<a href="<?php echo $this->_tpl_vars['mod_url']; ?>
/admin/index.php?page=<?php echo $this->_tpl_vars['page']; ?>
&amp;cid=<?php echo $this->_tpl_vars['maincid']; ?>
"><?php echo @_MD_D3DOWNLOADS_MAINCAT_USERACCESS_EDIT; ?>
</a>
		</div>
	<?php endif; ?>
	<table class="outer">
		<tr>
			<th colspan="2" style="text-align:center;">
				<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_TH_GROUPNAME; ?>
</span>
			</th>
			<th style="text-align:center;">
				<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_TH_CAN_READ; ?>
</span>
				<?php if ($this->_tpl_vars['parentid'] == 0): ?>
					<input type="checkbox" onclick="col_check_on_off( this, 'gcol_1_' )">
				<?php endif; ?>
			</th>
			<th style="text-align:center;">
				<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_TH_CAN_POST; ?>
</span>
				<?php if ($this->_tpl_vars['parentid'] == 0): ?>
					<input type="checkbox" onclick="col_check_on_off( this, 'gcol_2_' )">
				<?php endif; ?>
			</th>
			<th style="text-align:center;">
				<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_TH_CAN_EDIT; ?>
</span>
				<?php if ($this->_tpl_vars['parentid'] == 0): ?>
					<input type="checkbox" onclick="col_check_on_off( this, 'gcol_3_' )">
				<?php endif; ?>
			</th>
			<th style="text-align:center;">
				<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_TH_CAN_DELETE; ?>
</span>
				<?php if ($this->_tpl_vars['parentid'] == 0): ?>
					<input type="checkbox" onclick="col_check_on_off( this, 'gcol_4_' )">
				<?php endif; ?>
			</th>
			<th style="text-align:center;">
				<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_TH_POST_AUTO_APPROVED; ?>
</span>
				<?php if ($this->_tpl_vars['parentid'] == 0): ?>
					<input type="checkbox" onclick="col_check_on_off( this, 'gcol_5_' )">
				<?php endif; ?>
			</th>
			<th style="text-align:center;">
				<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_TH_EDIT_AUTO_APPROVED; ?>
</span>
				<?php if ($this->_tpl_vars['parentid'] == 0): ?>
					<input type="checkbox" onclick="col_check_on_off( this, 'gcol_6_' )">
				<?php endif; ?>
			</th>
			<th style="text-align:center;">
				<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_TH_CAN_HTML; ?>
</span>
				<?php if ($this->_tpl_vars['parentid'] == 0): ?>
					<input type="checkbox" onclick="col_check_on_off( this, 'gcol_7_' )">
				<?php endif; ?>
			</th>
			<th style="text-align:center;">
				<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_TH_CAN_UPLOAD; ?>
</span>
				<?php if ($this->_tpl_vars['parentid'] == 0): ?>
					<input type="checkbox" onclick="col_check_on_off( this, 'gcol_8_' )">
				<?php endif; ?>
			</th>
			<?php if ($this->_tpl_vars['parentid'] == 0 && count($this->_tpl_vars['copy_select']) > 1): ?>
				<th style="text-align:right;">
					<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_SEL_GROUP; ?>
</span>
					<input type="checkbox" onclick="col_check_on_off( this, 'col_action_g_' )">
				</th>
			<?php endif; ?>
		</tr>
			<?php echo $this->_tpl_vars['group_trs']; ?>

		<?php if ($this->_tpl_vars['parentid'] == 0): ?>
			<tr>
				<td colspan="11" align="center" class="head">
					<input type="submit" name="group_update" value="<?php echo @_SUBMIT; ?>
" />
				</td>
			</tr>
			<?php if (count($this->_tpl_vars['copy_select']) > 1): ?>
				<tr>
					<th colspan="11" style="text-align:right;">
						<?php echo @_MD_D3DOWNLOADS_LABEL_GROUP_CHECKED; ?>

						<input type="submit" name="all_group_copy" id="all_group_copy" value="<?php echo @_MD_D3DOWNLOADS_ALL_USERACCESS_COPY; ?>
" /> |
						<input type="submit" name="group_copy" id="group_copy" value="<?php echo @_MD_D3DOWNLOADS_USERACCESS_COPY; ?>
" /> 
						<?php echo @_MD_D3DOWNLOADS_SEL_CATEGORY; ?>

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

						</select>
					</th>
				</tr>
			<?php endif; ?>
		<?php endif; ?>
	</table>
	<br />
	<?php if ($this->_tpl_vars['parentid'] == 0): ?>
		<div style="color:inherit;border: 1px inset #CCC;padding: 6px;with: 80%;font-size: small;">
			<?php echo @_MD_D3DOWNLOADS_HELP_USERACCESS; ?>

		</div>
		<br />
	<?php endif; ?>
	<?php if ($this->_tpl_vars['parentid'] == 0 || ( $this->_tpl_vars['parentid'] != 0 && $this->_tpl_vars['user_trs'] )): ?>
		<table class="outer">
			<tr>
				<th style="text-align:center;"><span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_TH_UID; ?>
</span></th>
				<th colspan="2" style="text-align:center;"><span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_TH_UNAME; ?>
</span></th>
				<th style="text-align:center;">
					<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_TH_CAN_READ; ?>
</span>
					<?php if ($this->_tpl_vars['parentid'] == 0): ?>
						<input type="checkbox" onclick="col_check_on_off( this, 'ucol_1_' );col_check_on_off( this, 'ncol_1_' );">
					<?php endif; ?>
				</th>
				<th style="text-align:center;">
					<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_TH_CAN_POST; ?>
</span>
					<?php if ($this->_tpl_vars['parentid'] == 0): ?>
						<input type="checkbox" onclick="col_check_on_off( this, 'ucol_2_' );col_check_on_off( this, 'ncol_2_' );">
					<?php endif; ?>
				</th>
				<th style="text-align:center;">
					<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_TH_CAN_EDIT; ?>
</span>
					<?php if ($this->_tpl_vars['parentid'] == 0): ?>
						<input type="checkbox" onclick="col_check_on_off( this, 'ucol_3_' );col_check_on_off( this, 'ncol_3_' );">
					<?php endif; ?>
				</th>
				<th style="text-align:center;">
					<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_TH_CAN_DELETE; ?>
</span>
					<?php if ($this->_tpl_vars['parentid'] == 0): ?>
						<input type="checkbox" onclick="col_check_on_off( this, 'ucol_4_' );col_check_on_off( this, 'ncol_4_' );">
					<?php endif; ?>
				</th>
				<th style="text-align:center;">
					<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_TH_POST_AUTO_APPROVED; ?>
</span>
					<?php if ($this->_tpl_vars['parentid'] == 0): ?>
						<input type="checkbox" onclick="col_check_on_off( this, 'ucol_5_' );col_check_on_off( this, 'ncol_5_' );">
					<?php endif; ?>
				</th>
				<th style="text-align:center;">
					<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_TH_EDIT_AUTO_APPROVED; ?>
</span>
					<?php if ($this->_tpl_vars['parentid'] == 0): ?>
						<input type="checkbox" onclick="col_check_on_off( this, 'ucol_6_' );col_check_on_off( this, 'ncol_6_' );">
					<?php endif; ?>
				</th>
				<th style="text-align:center;">
					<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_TH_CAN_HTML; ?>
</span>
					<?php if ($this->_tpl_vars['parentid'] == 0): ?>
						<input type="checkbox" onclick="col_check_on_off( this, 'ucol_7_' );col_check_on_off( this, 'ncol_7_' );">
					<?php endif; ?>
				</th>
				<th style="text-align:center;">
					<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_TH_CAN_UPLOAD; ?>
</span>
					<?php if ($this->_tpl_vars['parentid'] == 0): ?>
						<input type="checkbox" onclick="col_check_on_off( this, 'ucol_8_' );col_check_on_off( this, 'ncol_8_' );">
					<?php endif; ?>
				</th>
				<?php if ($this->_tpl_vars['parentid'] == 0 && count($this->_tpl_vars['copy_select']) > 1): ?>
					<th style="text-align:right;">
						<span style="font-size: small;"><?php echo @_MD_D3DOWNLOADS_SEL_USER; ?>
</span>
						<input type="checkbox" onclick="col_check_on_off( this, 'col_action_u_' );col_check_on_off( this, 'new_col_action_u_' );">
					</th>
				<?php endif; ?>
			</tr>
			<?php echo $this->_tpl_vars['user_trs']; ?>

			<?php if ($this->_tpl_vars['parentid'] == 0): ?>
				<?php echo $this->_tpl_vars['newuser_trs']; ?>

				<tr>
					<td colspan="12" align="center" class="head">
						<input type="submit" name="user_update" value="<?php echo @_SUBMIT; ?>
" />
					</td>
				</tr>
				<?php if (count($this->_tpl_vars['copy_select']) > 1): ?>
					<tr>
						<th colspan="12" style="text-align:right;">
							<?php echo @_MD_D3DOWNLOADS_LABEL_USER_CHECKED; ?>

							<input type="submit" name="all_user_copy" id="all_user_copy" value="<?php echo @_MD_D3DOWNLOADS_ALL_USERACCESS_COPY; ?>
" /> |
							<input type="submit" name="user_copy" id="user_copy" value="<?php echo @_MD_D3DOWNLOADS_USERACCESS_COPY; ?>
" /> 
							<?php echo @_MD_D3DOWNLOADS_SEL_CATEGORY; ?>

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

							</select><br />
						</th>
					</tr>
				<?php endif; ?>
			<?php endif; ?>
		</table>
	<?php endif; ?>
</form>
<?php if ($this->_tpl_vars['parentid'] == 0): ?>
	<br />
	<div style="color:inherit;border: 1px inset #CCC;padding: 6px;with: 80%;font-size: small;">
		<?php echo @_MD_D3DOWNLOADS_HELP_USERACCESS_USER; ?>

	</div>
<?php else: ?>
	<?php if ($this->_tpl_vars['user_trs']): ?><br /><?php endif; ?>
	<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; ?>

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

    $( '#group_copy' ).click( function(){
		infoDom_initialize() ;
		col_action_check( 'col_action_g_' ) ;
		select_check( 'copy_select_group' ) ;
		if( validate_checked > 0 && validate_selected > 0 ){
			return confirm('<?php echo @_MD_D3DOWNLOADS_CONFIRM_USERACCESS_COPY; ?>
') ;
		} else {
			if( validate_checked  == 0 ) popup_info( '<?php echo @_MD_D3DOWNLOADS_ERROR_SEL_GROUP; ?>
' )
			if( validate_selected == 0 ) popup_info( '<?php echo @_MD_D3DOWNLOADS_ERROR_SEL_CATEGORY; ?>
' )
			return false ;
		}
    });

    $( '#all_user_copy' ).click( function(){
		infoDom_initialize() ;
		col_action_check( 'col_action_u_' , 'new_col_action_u_' ) ;
		if( validate_checked > 0 ){
			return confirm('<?php echo @_MD_D3DOWNLOADS_CONFIRM_ALL_USERACCESS_COPY; ?>
') ;
		} else {
			popup_info( '<?php echo @_MD_D3DOWNLOADS_ERROR_SEL_USER; ?>
' )
			return false ;
		}
    });

    $( '#user_copy' ).click( function(){
		infoDom_initialize() ;
		col_action_check( 'col_action_u_' , 'new_col_action_u_' ) ;
		select_check( 'copy_select_user' ) ;
		if( validate_checked > 0 && validate_selected > 0 ){
			return confirm('<?php echo @_MD_D3DOWNLOADS_CONFIRM_USERACCESS_COPY; ?>
') ;
		} else {
			if( validate_checked  == 0 ) popup_info( '<?php echo @_MD_D3DOWNLOADS_ERROR_SEL_USER; ?>
' )
			if( validate_selected == 0 ) popup_info( '<?php echo @_MD_D3DOWNLOADS_ERROR_SEL_CATEGORY; ?>
' )
			return false ;
		}
    });
});
//-->
</script>