<?php /* Smarty version 2.6.22, created on 2014-02-12 10:42:09
         compiled from /home/joomaria/public_html/zipmarket/apps/items/admin/comments.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/items/admin/comments.html', 34, false),array('modifier', 'nl2br', '/home/joomaria/public_html/zipmarket/apps/items/admin/comments.html', 37, false),array('modifier', 'date_format', '/home/joomaria/public_html/zipmarket/apps/items/admin/comments.html', 46, false),)), $this); ?>
<div class="page-info">
    <div class="container">
      <div id="breadcrumbs">
        <a href="/admin" class="first">Home</a> \ <a href="?m=<?php echo $_GET['m']; ?>
&c=list">Items</a> \ <a href="#">Comments</a> \ 
      </div>
      <h1 class="page-title"><?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['d']):
        $this->_foreach['foo']['iteration']++;
?><?php if (($this->_foreach['foo']['iteration']-1) < 1): ?><?php echo $this->_tpl_vars['d']['item_name']; ?>
<?php endif; ?><?php endforeach; endif; unset($_from); ?></h1>
	  </div>
     <div id="tabsy">
      <ul>
		<li><div></div><a href="/admin/?m=items&c=edit&id=<?php echo $_GET['id']; ?>
">Item Details</a></li>
		<li class="selected last"><div></div><a href="/admin/?m=items&c=comments&id=<?php echo $_GET['id']; ?>
">Comments</a><div class="last"></div></li>
      </ul>
	 </div>
  </div>
    <div id="content">
      <div class="container">
    <?php echo $this->_tpl_vars['errorMessage']; ?>

  <div class="page-controls"><?php echo $this->_tpl_vars['paging']; ?>
</div>
	<?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']['user']; ?>
</th>
				<th><?php echo $this->_tpl_vars['lang']['item']; ?>
</th>
				<th><?php echo $this->_tpl_vars['lang']['comment']; ?>
/REPLY</th>				
				<th><?php echo $this->_tpl_vars['lang']['reported']; ?>
</th>
				<th>Added</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><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['d']['user_id']]['username']; ?>
" target="_blank"><?php echo $this->_tpl_vars['users'][$this->_tpl_vars['d']['user_id']]['username']; ?>
</a></td>
				<td><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
items/<?php echo $this->_tpl_vars['d']['item_id']; ?>
" target="_blank"><?php echo $this->_tpl_vars['d']['item_name']; ?>
</a></td>
				<td><?php echo ((is_array($_tmp=$this->_tpl_vars['d']['comment'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
</td>
				<td>
					<?php if ($this->_tpl_vars['d']['report_by'] != '0'): ?>
						<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 echo ((is_array($_tmp=$this->_tpl_vars['d']['datetime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "l, j F Y H:i:s") : smarty_modifier_date_format($_tmp, "l, j F Y H:i:s")); ?>

				</td>
				<td>
					<?php if ($this->_tpl_vars['d']['report_by'] != '0'): ?>
					<a href="?m=<?php echo $_GET['m']; ?>
&c=comments&id=<?php echo $this->_tpl_vars['d']['id']; ?>
&report=<?php echo $this->_tpl_vars['d']['id']; ?>
&p=<?php echo $_GET['p']; ?>
" title="<?php echo $this->_tpl_vars['lang']['previewed']; ?>
"><img class="middle" src="<?php echo $this->_tpl_vars['data_server']; ?>
admin/images/icons/16x16/edit.png" /> <?php echo $this->_tpl_vars['lang']['previewed']; ?>
</a>
					<br/>
					<?php endif; ?>
					<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 '{\'deleteComment\':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>
</div>