system: Linux mars.sprixweb.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
cmd: 

Direktori : /home/pfhr/public_html/admin/cache/
Upload File :
Current File : /home/pfhr/public_html/admin/cache/%%04^04F^04F8691C%%categories.html.php

<?php /* Smarty version 2.6.19, created on 2018-09-07 16:07:58
         compiled from categories.html */ ?>
<script type="text/javascript">
function selectall(field)
{
	//field.getElementByTagName('checkbox');
	if(document.grid.checkall.checked==true)
	{
		for (i = 0; i < field.length; i++)
			field[i].checked = true ;
	}
	else
	{
		for(i = 0; i < field.length; i++)
			field[i].checked = false;
	}
}
function deletePhotos(field)
{
		var count = 0;
		for (i = 0; i < field.length; i++)
		{	
			if(field[i].checked == true)
				count = count+1;
		}
		if(count==0)
		{
			alert("Please the item(s) to be deleted");
			return false;
		}
}

</script>
<?php if ($this->_tpl_vars['message'] != ""): ?>
<div id="dialog" title="Success">
<p><?php echo $this->_tpl_vars['message']; ?>
</p>
</div>
<?php endif; ?>

<?php if ($this->_tpl_vars['error_message'] != ""): ?>
<div id="dialog" title="Error in Validation">
<?php echo $this->_tpl_vars['error_message']; ?>

</div>
<?php endif; ?>
		
<?php if (count ( $this->_tpl_vars['errmsg'] ) > 0): ?>  
<div id="dialog" title="Error in Validation">
<p>
<?php $_from = $this->_tpl_vars['errmsg']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['err'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['err']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['err']):
        $this->_foreach['err']['iteration']++;
?>
<?php echo $this->_tpl_vars['err']; ?>
<br>
<?php endforeach; endif; unset($_from); ?>
</p>
</div>
<?php endif; ?>
    <div class="grid_9">
            <div class="box round first grid">
			
                <h2>Gallery Category
				<div class="toolbox">
				<button type="button" class="btn  btn-success btn-xs" onclick="location.href='?do=categories&action=add'">Add New</button>
				<button type="submit" name="deletfe" class="btn  btn-danger btn-xs">Delete</button>
				</div>
				</h2>
                <div class="block">
				
                <table class="data display datatable" id="example">
					<thead>
						<tr>
							<th class="no-sort"><input name="checkall" type="checkbox" value="" onclick="selectall(this.form)" /></th>
							<th>ID</th>
							<th>Category Name</th>
							<th>Dated</th>
							<th>Status</th>
							<th class="no-sort">Actions</th>
						</tr>
					</thead>
					<tbody>
						<?php echo $this->_tpl_vars['test']; ?>
 					
					</tbody>
				</table>
                </div>
			
            </div>
        </div>
        <div class="clear">
        </div>