<?php /* Smarty version 2.6.22, created on 2014-02-16 08:33:13
         compiled from /home/joomaria/public_html/zipmarket/apps/pages/admin/list.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', '/home/joomaria/public_html/zipmarket/apps/pages/admin/list.html', 35, false),)), $this); ?>
<div class="page-info">
    <div class="container">
      <div id="breadcrumbs">
        <a href="/admin" class="first">Home</a> \ <?php if (isset ( $this->_tpl_vars['pdata'] )): ?><a href="?m=<?php echo $_GET['m']; ?>
&c=list">Pages</a> \ 
		<a href="?m=<?php echo $_GET['m']; ?>
&c=list&sub_of=<?php echo $this->_tpl_vars['pdata']['sub_of']; ?>
" class="btn"><?php echo $this->_tpl_vars['pdata']['name']; ?>
</a> <?php endif; ?>
      </div>
      <h1 class="page-title">  <?php if (isset ( $this->_tpl_vars['pdata'] )): ?>Subp<?php else: ?>P<?php endif; ?>ages </h1>
    </div>
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['root_path'])."/zipmarket/apps/admin/admin_tabsy.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  </div>
    <div id="content">
      <div class="container">
  	<?php if ($this->_tpl_vars['paging'] != ""): ?>
       <div class="page-controls">
        <?php echo $this->_tpl_vars['paging']; ?>

       </div></div>
	<?php endif; ?>

	<?php if (is_array ( $this->_tpl_vars['data'] )): ?>
   <div class="general_table_border">
	<table class="general_table" cellspacing="0" cellpadding="0" border="0">
		<thead>
			<tr>
				<th><?php echo $this->_tpl_vars['lang']['name']; ?>
</th>
				<th><?php echo $this->_tpl_vars['lang']['key']; ?>
</th>
				<th><?php echo $this->_tpl_vars['lang']['in_menu']; ?>
</th>
				<th><?php echo $this->_tpl_vars['lang']['visible']; ?>
</th>
				<th><?php echo $this->_tpl_vars['lang']['sort']; ?>
</th>
				<th width="150"></th>
			</tr>
		</thead>

		<tbody>
		<?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['d']):
?>
			<tr id="row<?php echo $this->_tpl_vars['d']['id']; ?>
" class="<?php echo smarty_function_cycle(array('values' => "no,alt"), $this);?>
">
				<td><?php echo $this->_tpl_vars['d']['name']; ?>
</td>
				<td><?php echo $this->_tpl_vars['d']['key']; ?>
</td>
				<td>
					<?php if ($this->_tpl_vars['d']['menu'] == 'true'): ?>
						<img src="<?php echo $this->_tpl_vars['data_server']; ?>
admin/images/icons/24x24/accept.png" alt="" class="middle" />
					<?php else: ?>
						<img src="<?php echo $this->_tpl_vars['data_server']; ?>
admin/images/icons/24x24/delete.png" alt="" class="middle" />
					<?php endif; ?>
				</td>
				<td>
					<?php if ($this->_tpl_vars['d']['visible'] == 'true'): ?>
						<img src="<?php echo $this->_tpl_vars['data_server']; ?>
admin/images/icons/24x24/accept.png" alt="" class="middle" />
					<?php else: ?>
						<img src="<?php echo $this->_tpl_vars['data_server']; ?>
admin/images/icons/24x24/delete.png" alt="" class="middle" />
					<?php endif; ?>
				</td>
				<td>
					<a href="?m=<?php echo $_GET['m']; ?>
&c=list&down=<?php echo $this->_tpl_vars['d']['id']; ?>
&p=<?php echo $_GET['p']; ?>
&sub_of=<?php echo $_GET['sub_of']; ?>
" title="<?php echo $this->_tpl_vars['lang']['up']; ?>
"><img class="middle" src="<?php echo $this->_tpl_vars['data_server']; ?>
admin/images/icons/16x16/up.png" /></a>
					<a href="?m=<?php echo $_GET['m']; ?>
&c=list&up=<?php echo $this->_tpl_vars['d']['id']; ?>
&p=<?php echo $_GET['p']; ?>
&sub_of=<?php echo $_GET['sub_of']; ?>
" title="<?php echo $this->_tpl_vars['lang']['down']; ?>
"><img class="middle" src="<?php echo $this->_tpl_vars['data_server']; ?>
admin/images/icons/16x16/download1.png" /></a>				
				</td>								
				<td>
					<?php if (! isset ( $_GET['sub_of'] ) || ! is_numeric ( $_GET['sub_of'] ) || $_GET['sub_of'] == '0'): ?>
					<a href="?m=<?php echo $_GET['m']; ?>
&c=list&sub_of=<?php echo $this->_tpl_vars['d']['id']; ?>
" title="<?php echo $this->_tpl_vars['lang']['subpages']; ?>
"><img class="middle" src="<?php echo $this->_tpl_vars['data_server']; ?>
admin/images/icons/16x16/pages.png" /> <?php echo $this->_tpl_vars['lang']['subpages']; ?>
</a>
					<br />
					<?php endif; ?>
					<a href="?m=<?php echo $_GET['m']; ?>
&c=edit&id=<?php echo $this->_tpl_vars['d']['id']; ?>
&p=<?php echo $_GET['p']; ?>
&sub_of=<?php echo $_GET['sub_of']; ?>
" title="<?php echo $this->_tpl_vars['lang']['edit']; ?>
"><img class="middle" src="<?php echo $this->_tpl_vars['data_server']; ?>
admin/images/icons/16x16/edit.png" /> <?php echo $this->_tpl_vars['lang']['edit']; ?>
</a>
					<br/>
					<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['lang']['delete']; ?>
" onclick="eAjax('/zipmarket/apps/<?php echo $_GET['m']; ?>
/ajax/delete.php',<?php echo '{\'delete\':true,\'id\':\''; ?>
<?php echo $this->_tpl_vars['d']['id']; ?>
<?php echo '\'}'; ?>
,'deleteRow');"><img class="middle" src="<?php echo $this->_tpl_vars['data_server']; ?>
admin/images/icons/16x16/delete.png" /> <?php echo $this->_tpl_vars['lang']['delete']; ?>
</a>
				</td>					
			</tr>
			<?php endforeach; endif; unset($_from); ?>
		</tbody>
	</table>		
  </div>
	<?php else: ?>
		<?php echo $this->_tpl_vars['lang']['no_records']; ?>

	<?php endif; ?>
    <div class="form-submit">
     <button onclick="window.location='?m=<?php echo $_GET['m']; ?>
&c=add&sub_of=<?php echo $_GET['sub_of']; ?>
';" type="button" class="btn-icon submit auto-width"><?php echo $this->_tpl_vars['lang']['add_new']; ?>
</button>
    </div>
 </div>
</div>