<?php /* Smarty version 2.6.25, created on 2018-10-10 15:12:37
         compiled from DefaultAdmin/conf_users_dt.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 'escapejs', 'DefaultAdmin/conf_users_dt.tpl', 27, false),array('modifier', 'escape', 'DefaultAdmin/conf_users_dt.tpl', 154, false),array('modifier', 'trim', 'DefaultAdmin/conf_users_dt.tpl', 154, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "messages.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php echo '
<script type="text/javascript">
var oTable;
jQuery(function($) {

	$(document).ready(function() {
		$("#status_active").live("click", function () {
			var id = $(this).parent().parent().parent().attr(\'id\');
			single_action(\'active\', id);
		});
		
		$("#status_pending").live("click", function () {
			var id = $(this).parent().parent().parent().attr(\'id\');
			single_action(\'pending\', id);
		});
		
		$("#status_inactive").live("click", function () {
			var id = $(this).parent().parent().parent().attr(\'id\');
			single_action(\'inactive\', id);
		});


                $("#action_del").live("click", function() {
                   return link_rm_confirm("'; ?>
<?php $this->_tag_stack[] = array('escapejs', array()); $_block_repeat=true;smarty_block_escapejs($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Are you sure you want to remove this user?\nNote: users can not be restored after removal!<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_escapejs($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?><?php echo '");
                });

		$(\'#example tbody tr\').live("click", function () {
			var chbox = \'#categ_\' + $(this).attr(\'id\');
			if ($(this).hasClass(\'row_selected\')) {
				$(this).removeClass(\'row_selected\');
				$(chbox).attr(\'checked\', false);
			} else {
				$(this).addClass(\'row_selected\');
				$(chbox).attr(\'checked\', true);
			}
		});
		
		function dt_get_selected() {
			var hash = \'\';
			var trs = oTable.fnGetNodes();
			for (var i=0 ; i<trs.length ; i++) {
				if ( $(trs[i]).hasClass(\'row_selected\'))
					hash += trs[i].getAttribute("id") + \',\';
			}
			hash = hash.slice(0, - 1);
			return hash;
		}
	
		oTable = $(\'#example\').dataTable( {
			"bProcessing": true,
			"bServerSide": true,
			"bJQueryUI": true,
			"bSort": true,
                        "iDisplayLength": 20,
			"sPaginationType": "full_numbers",
			"oSearch": { "sSearch": "'; ?>
<?php echo $this->_tpl_vars['search']; ?>
<?php echo '" },
			"sAjaxSource": "'; ?>
conf_users_ajax.php?category=<?php echo $this->_tpl_vars['category']; ?>
&expired=<?php echo $this->_tpl_vars['expired']; ?>
&status=<?php echo $this->_tpl_vars['status']; ?>
&f=<?php echo $this->_tpl_vars['featured']; ?>
&owner_id=<?php echo $this->_tpl_vars['owner_id']; ?>
<?php echo '",
			
			"fnDrawCallback": function() {
			},

			"fnRowCallback": function( nRow, aData, iDisplayIndex ) {
				var id = aData[0];
				$(nRow).attr("id",id);
				$(nRow).find("td").attr("id",id);
				
				$(\'td:eq(2)\', nRow).html(\'<br/>\'+aData[2] + \'<br/><br/>\');
				
				var action_edit = \'\';
				var action_del = \'\';
				'; ?>

				<?php if ($this->_tpl_vars['current_user_is_admin'] != 1 && $this->_tpl_vars['id'] != $this->_tpl_vars['current_user_id']): ?>
					action_edit = '<?php $this->_tag_stack[] = array('escapejs', array()); $_block_repeat=true;smarty_block_escapejs($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?><b>None allowed</b><?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_escapejs($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>';
				<?php elseif ($this->_tpl_vars['current_user_is_admin'] == 1 || $this->_tpl_vars['id'] == $this->_tpl_vars['current_user_id']): ?>
					action_edit_act = '<a href="<?php echo @DOC_ROOT; ?>
/conf_users_actions.php?action=E:' + aData[0] + '" title="<?php $this->_tag_stack[] = array('escapejs', array()); $_block_repeat=true;smarty_block_escapejs($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Edit user Actions<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_escapejs($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>: ' + aData[1] + '"><img src="<?php echo @TEMPLATE_ROOT; ?>
/images/actions.png" border="0"/></a>'
					action_edit = '<a href="<?php echo @DOC_ROOT; ?>
/conf_users_edit.php?action=E:' + aData[0] + '" title="<?php $this->_tag_stack[] = array('escapejs', array()); $_block_repeat=true;smarty_block_escapejs($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Edit User<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_escapejs($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>: ' + aData[1] + '"><img src="<?php echo @TEMPLATE_ROOT; ?>
/images/pencil.png" border="0"/></a>';
				<?php endif; ?>
				<?php if ($this->_tpl_vars['current_user_is_admin'] == 1 || $this->_tpl_vars['id'] == $this->_tpl_vars['current_user_id']): ?>
					action_del = '<a id="action_del" href="<?php echo @DOC_ROOT; ?>
/conf_users_edit.php?action=D:' + aData[0] + '" title="<?php $this->_tag_stack[] = array('escapejs', array()); $_block_repeat=true;smarty_block_escapejs($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>Remove User<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_escapejs($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>: ' + aData[1] + '"><img src="<?php echo @TEMPLATE_ROOT; ?>
/images/cross.png" border="0"/></a>';
				<?php endif; ?>
				<?php echo '
				
				$(\'td:eq(8)\', nRow).html(action_edit_act + \'&nbsp;\' + action_edit + \'&nbsp;\' + action_del);
				
				return nRow;
			},
			
			"aoColumns": [
				null,
				null,
				{ "sType": "html" },
				null,
				null,
				null,
				null,
				null,
				{ "bSortable": false }
			]


		});
		
		oTable.fnSetColumnVis(9, false);

	});
	
});



</script>
'; ?>



<?php echo '<div class="block"><!-- Action Links --><ul class="page-action-list"><li><a href="'; ?><?php echo @DOC_ROOT; ?><?php echo '/conf_users_edit.php?action=N" title="Create new user" class="btn"><span class="new-user">New User</span></a></li></ul><!-- /Action Links --></div>'; ?><?php if ($this->_tpl_vars['error']): ?><?php echo '<div class="block"><!-- Error --><div class="error"><h2>Error</h2><p>'; ?><?php echo $this->_tpl_vars['error']; ?><?php echo ' error(s) occured while processing.</p>'; ?><?php if (! empty ( $this->_tpl_vars['sql_error'] )): ?><?php echo '<p>The database server returned the following message:</p><p class="sql_error">'; ?><?php echo $this->_tpl_vars['sql_error']; ?><?php echo '</p>'; ?><?php endif; ?><?php echo '</div><!-- /Error --></div>'; ?><?php endif; ?><?php echo '<br /><br /><style type="text/css" media="screen">@import "'; ?><?php echo @TEMPLATE_ROOT; ?><?php echo '/themes/smoothness/datatable_jui.css";@import "'; ?><?php echo @TEMPLATE_ROOT; ?><?php echo '/themes/smoothness/jquery-ui-1.7.2.custom.css";</style><div class="block"><form action="" method="post" id="multiselect_list" name="multiselect_list"><input type="hidden" name="submitAction" id="submitAction" value="" class="hidden" /><table cellpadding="0" cellspacing="0" border="0" width="100%" style="width: 100%; " id="example" name="example" class="display"><thead><tr>'; ?><?php $_from = $this->_tpl_vars['columns']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['col'] => $this->_tpl_vars['name']):
?><?php echo '<th>'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo '</th>'; ?><?php endforeach; endif; unset($_from); ?><?php echo '</tr></thead><tbody><tr><td colspan="9" class="dataTables_empty">Loading data from server</td></tr></tbody></table></form></div>'; ?>