<?php /* Smarty version 2.6.25, created on 2012-07-15 10:51:52
         compiled from DefaultAdmin/dir_categs_dt.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 'escapejs', 'DefaultAdmin/dir_categs_dt.tpl', 48, false),array('modifier', 'escape', 'DefaultAdmin/dir_categs_dt.tpl', 327, false),array('modifier', 'trim', 'DefaultAdmin/dir_categs_dt.tpl', 327, false),array('modifier', 'cat', 'DefaultAdmin/dir_categs_dt.tpl', 338, 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() {

		$("#multiple_controls input").click(function() {
			ctrl_name = $(this).attr(\'name\');
			if (ctrl_name != \'check_all\' && ctrl_name != \'uncheck_all\')
				multiple_action(ctrl_name);
		});
	
		$("#check_all").click(function() {
			$("#example tbody tr").each(function(n,element){
				var chbox = \'#categ_\' + $(element).attr(\'id\');
				$(element).addClass(\'row_selected\');
				$(chbox).attr(\'checked\', true);
			});
		});
		
		$("#uncheck_all").click(function() {
			$("#example tbody tr").each(function(n,element){
				var chbox = \'#categ_\' + $(element).attr(\'id\');
				$(element).removeClass(\'row_selected\');
				$(chbox).attr(\'checked\', false);
			});
		});
		
		$("#status_active").live("click", function () {
			var id = $(this).parents(\'td\').attr(\'id\');
			single_action(\'active\', id);
		});
		
		$("#status_pending").live("click", function () {
			var id = $(this).parents(\'td\').attr(\'id\');
			single_action(\'pending\', id);
		});
		
		$("#status_inactive").live("click", function () {
			var id = $(this).parents(\'td\').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 category?\nNote: categories 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 '");
                });

		$("#remove").live("click", function () {
			var id = $(this).parent(\'td\').attr(\'id\');
			multiple_action(\'remove\', id);
		});
		
		$("#removecomplete").live("click", function () {
			var id = $(this).parent(\'td\').attr(\'id\');
			multiple_action(\'removecomplete\', id);
		});
		
		$("#changeparent").live("click", function () {
			var id = $(this).parent(\'td\').attr(\'id\');
			multiple_action(\'changeparent\', id);
		});

		function multiple_action(action) {
      	hash = dt_get_selected();
      	$.ajax({
  					url: "'; ?>
<?php echo @DOC_ROOT; ?>
<?php echo '/dir_categs_action_ajax.php",
  					type: "post",
  					data: ({
  								submitAction: action,
  								parent_id: function() { return $("#PARENT_ID").val(); },
  								multiselect_categs: hash
  					}),
  					cache: false,
 					success: function(response){
 						if (response != \'1\')
 							alert(\''; ?>
<?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(); ?>An errror occured while saving.<?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 '\' + response);
  					}
			});
			oTable.fnDraw();
		}
		
		function single_action(action, id) {
      	$.ajax({
  					url: "'; ?>
<?php echo @DOC_ROOT; ?>
<?php echo '/dir_categs_action_ajax.php",
  					type: "post",
  					data: ({
  								submitAction: action,
  								category_id: function() { return $("#CATEGORY_ID").val(); },
  								multiselect_categs: id
  					}),
  					cache: false,
 					success: function(response){
 						if (response != \'1\')
 							alert(\''; ?>
<?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(); ?>An errror occured while saving. <?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 '\' + response);
  					}
			});
			oTable.fnDraw();
		}

		$(\'#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": "'; ?>
dir_categs_ajax.php?category=<?php echo $this->_tpl_vars['category']; ?>
&parent=<?php echo $this->_tpl_vars['parent']; ?>
&status=<?php echo $this->_tpl_vars['status']; ?>
<?php echo '",
			
			"fnDrawCallback": function() {
				$(\'#example tbody tr td:nth-child(0)\').editable(\''; ?>
<?php echo @DOC_ROOT; ?>
<?php echo '/dir_links_action_ajax.php\', {
					"height": "14px",
					submitdata : {
						submitAction: "title"
					},
					callback: function(value, settings) {
						oTable.fnDraw();
					}
				});
			},

			"fnRowCallback": function(nRow, aData, iDisplayIndex) {
				var id = aData[0];
				$(nRow).attr("id",id);
				$(nRow).find("td").attr("id",id);
				
				$(\'td:eq(0)\', nRow).html(\'<input type="checkbox" name="categ_\' + aData[0] + \'" id="categ_\' + aData[0] + \'"> \' + aData[0]);
				
				if (aData[1].length >= 15)
					url_title = aData[1].slice(0, 15) + \'...\';
				else
					url_title = aData[1];
				
				//$(\'td:eq(1)\', nRow).html(\'<a href="\' + aData[1] + \'" target="blank" title="\' + aData[1] + \'">\' + url_title + \'</a>\');

				var symb = \'\';
				
				if (aData[4] != \'0\') {
				
					$(\'td:eq(3)\', nRow).html(\'<div style="width: 100%; text-align: center;"><span style="color: green;">'; ?>
<?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(); ?>YES<?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 '</span></div>\');
				}
				else {
					$(\'td:eq(3)\', nRow).html(\'<div style="width: 100%; text-align: center;"><span style="color: red;">'; ?>
<?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(); ?>NO<?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 '</span></div>\');
				}	
					
				
				var stats = \'\';
				'; ?>


				if (aData[5] != 'Inactive')
					stats += '<a href="" id="status_inactive" onclick="return false;" style="float:right;"><img src="<?php echo @TEMPLATE_ROOT; ?>
/images/tag_red.png" border="0"/></a>';
				if (aData[5] != 'Pending')
					stats += '<a href="" id="status_pending" onclick="return false;" style="float:right;"><img src="<?php echo @TEMPLATE_ROOT; ?>
/images/tag_yellow.png" border="0"/></a>';
				if (aData[5] != 'Active')
					stats += '<a href="" id="status_active" onclick="return false;" style="float:right;"><img src="<?php echo @TEMPLATE_ROOT; ?>
/images/tag_green.png" border="0"/></a>';			

				$('td:eq(4)', nRow).html('<div style="width: 100px;"><span style="float: left;">'+aData[5] + '</span><span style="float: right;">' + stats+ '</span></div>');
				<?php echo '
				
				var action_edit = \'\';
				var action_del = \'\';
                                var action_close = \'\';
                                
				'; ?>

				<?php if ($this->_tpl_vars['rights']['editLink'] == 0 && $this->_tpl_vars['rights']['delLink'] == 0): ?>
					action_edit = '<b><?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(); ?>None allowed<?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); ?></b>';
				<?php elseif ($this->_tpl_vars['rights']['editLink'] == 1): ?>
                                        if (aData[4] != '1')
                                            action_edit = '<a href="<?php echo @DOC_ROOT; ?>
/dir_categs_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 Category<?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" alt="<?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<?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); ?>" /></a>';
                                        else
                                           action_edit = '<a href="<?php echo @DOC_ROOT; ?>
/dir_categs_edit.php?action=E:' + aData[0] + '&s=1" 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 Category<?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" alt="<?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<?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); ?>" /></a>';
                                       action_close = '<a href="<?php echo @DOC_ROOT; ?>
/dir_categs_close.php?id='+ 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(); ?>Close Category to Activities<?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/key.png" border="0" alt="<?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(); ?>Close<?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); ?>" /></a>';
                                <?php endif; ?>
				<?php if ($this->_tpl_vars['rights']['delLink'] == 1): ?>
					action_del = '<a id="action_del" href="<?php echo @DOC_ROOT; ?>
/dir_categs_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 Category<?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" alt="<?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(); ?>Delete<?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); ?>" /></a>';
				<?php endif; ?>
				<?php echo '
				
				$(\'td:eq(7)\', nRow).html(\'<div style="width: 100%; text-align: center;">\'+action_edit + \'&nbsp;\' + action_close + \'&nbsp;\' + action_del+\'</div>\');
			
				if (aData[3] != \'1\')
					link_categ_id = aData[0];
				else
					link_categ_id = aData[3];
					
				$(\'td:eq(1)\', nRow).html('; ?>
'<a id="category-' + aData[0] + '" href="<?php echo @DOC_ROOT; ?>
/dir_links.php?category=' + link_categ_id + '" title="' + aData[1] + '" class="category-link" onclick="return false;">' + aData[1] + '</a><a href="<?php echo @DOC_ROOT; ?>
/categ_details.php?id=' + 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(); ?>View full info of this item<?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); ?>" id="more-info-categ-' + aData[0] + '" class="more-info-categ" onclick="return false;"><span><?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(); ?>More info<?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); ?></span></a>'<?php echo ');
				
				$(\'td:eq(1) #more-info-categ-\' + aData[0], nRow).click(function() {
					ajaxCategDetailsRequest(aData[0]);
				});
				
				$(\'td:eq(1) #category-\' + aData[0], nRow).click(function() {
					ajaxCategLinkRequest(aData[0]);
				});
				
				'; ?>

				if (aData[9] == '-1')
					parent_html = '<span class="orphan"><?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(); ?>Orphan<?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); ?></span>';
				else
					parent_html = '<a id="parent-category-' + aData[9] + '" href="<?php echo @DOC_ROOT; ?>
/dir_categs.php?parent=' + aData[9] + '" title="' + aData[3] + '" class="category-link" onclick="return false;">' + aData[3] + '</a><a href="<?php echo @DOC_ROOT; ?>
/categ_details.php?id=' + aData[9] + '" 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(); ?>View full info of this item<?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); ?>" id="more-info-pcateg-' + aData[9] + '" class="more-info-categ" onclick="return false;"><span><?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(); ?>More info<?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); ?></span></a>';
				<?php echo '
				
				$(\'td:eq(2)\', nRow).html(parent_html);
				
				
				$(\'td:eq(2) #more-info-pcateg-\' + aData[9], nRow).click(function() {
					ajaxCategDetailsRequest(aData[9]);
				});
				$(\'td:eq(2) #parent-category-\' + aData[9], nRow).click(function() {
					ajaxCategLinkRequest(aData[9]);
				});
				
				return nRow;
			},
			
			"aoColumns": [
				null,
				{ "sType": "html" },
				null,
				null,
				null,
				null,
				null,
				null,
				{ "bSortable": false },
				null
				
			]


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

	});
	
});



</script>
'; ?>


<?php echo ''; ?><?php if ($this->_tpl_vars['action'] != 'rebuild_cache'): ?><?php echo ''; ?><?php if ($this->_tpl_vars['err'] == 1): ?><?php echo '<div class="success block">'; ?><?php echo $this->_tpl_vars['succesMsg']; ?><?php echo '</div>'; ?><?php elseif (isset ( $this->_tpl_vars['err'] )): ?><?php echo '<div class="error block">'; ?><?php echo $this->_tpl_vars['errMsg']; ?><?php echo '</div>'; ?><?php endif; ?><?php echo '<div class="block"><!-- Category Action Links --><ul class="page-action-list">'; ?><?php if ($this->_tpl_vars['rights']['addCat'] == 1): ?><?php echo '<li><a href="'; ?><?php echo @DOC_ROOT; ?><?php echo '/dir_categs_edit.php?action=N" title="Create a new category" class="button"><span class="new-categ">New Category</span></a></li><!--     <li><a href="'; ?><?php echo @DOC_ROOT; ?><?php echo '/dir_categs_edit.php?action=N&amp;s=1" title="Create a new symbolic category" class="button"><span class="new-symb-categ">New Symbolic Category</span></a></li> -->'; ?><?php endif; ?><?php echo ''; ?><?php if ($this->_tpl_vars['rights']['addCat'] == 1 || $this->_tpl_vars['rights']['editCat'] == 1 || $this->_tpl_vars['rights']['delCat'] == 1): ?><?php echo '<li><a href="'; ?><?php echo @DOC_ROOT; ?><?php echo '/dir_categs.php?action=rebuild_cache" title="Rebuild Category Cache" class="button"><span class="rebuild-categ-cache">Rebuild Category Cache</span></a></li>'; ?><?php endif; ?><?php echo ''; ?><?php if ($this->_tpl_vars['rights']['addCat'] == 1 || $this->_tpl_vars['rights']['editCat'] == 1): ?><?php echo '<li><a href="'; ?><?php echo @DOC_ROOT; ?><?php echo '/dir_categs.php?action=update_RSS" title="Update RSS feeds for all categories" class="button"><span class="update-rss">Update RSS feeds</span></a></li>'; ?><?php endif; ?><?php echo '</ul><!-- /Category 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="'; ?><?php echo @DOC_ROOT; ?><?php echo '/dir_categs.php" 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>'; ?><?php if ($this->_tpl_vars['rights']['editCat'] == 1 || $this->_tpl_vars['rights']['delCat'] == 1): ?><?php echo ''; ?><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=@ADMIN_TEMPLATE)) ? $this->_run_mod_handler('cat', true, $_tmp, "/categ_action_ajax.tpl") : smarty_modifier_cat($_tmp, "/categ_action_ajax.tpl")), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?><?php echo ''; ?><?php endif; ?><?php echo '</form><!-- /Category List --></div>'; ?><?php endif; ?><?php echo ''; ?>