<?php /* Smarty version 2.6.22, created on 2014-03-25 09:34:27
         compiled from C:/xampp/htdocs/zipmarket%5Capps%5Cusers%5Cviews/dashboard.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'C:/xampp/htdocs/zipmarket\\apps\\users\\views/dashboard.html', 48, false),array('modifier', 'nl2br', 'C:/xampp/htdocs/zipmarket\\apps\\users\\views/dashboard.html', 52, false),array('modifier', 'string_format', 'C:/xampp/htdocs/zipmarket\\apps\\users\\views/dashboard.html', 117, false),)), $this); ?>
<?php if ($_SESSION['user']['power_elite_author'] == 'true' || $_SESSION['user']['elite_author'] == 'true'): ?>
<div class="<?php if ($_SESSION['user']['power_elite_author'] == 'true'): ?>power-elite-author<?php endif; ?><?php if ($_SESSION['user']['elite_author'] == 'true'): ?>elite-author<?php endif; ?>">
  <div class="page-info">
    <div class="container">
      <div id="breadcrumbs">
        <a href='/' class="first">صفحه اصلی </a>/<a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
users/<?php echo $_SESSION['user']['username']; ?>
/">داشبورد</a>/</div>
       <h2 class="page-title">داشبورد </h2>
    </div>
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['root_path'])."/zipmarket/apps/users/views/tabsy.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  </div>
</div>
<?php else: ?>
  <div class="page-info">  
    <div class="container">
      <div id="breadcrumbs">
        <a href='/' class="first">صفحه اصلی </a>/<a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
users/<?php echo $_SESSION['user']['username']; ?>
/">داشبورد</a>/</div>
       <h1 class="page-title">داشبورد </h1>
    </div>
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['root_path'])."/zipmarket/apps/users/views/tabsy.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
  </div>
<?php endif; ?>
    <div id="content">
      <div class="container">
	  		<?php echo $this->_tpl_vars['errorMessage']; ?>

<div class="content-s">
<?php if ($this->_tpl_vars['comments']): ?>
   <div class="comment-list">
<?php $_from = $this->_tpl_vars['comments']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['c']):
?>
   <div class="comment">
  <div class="comment__user">
  <div>
<div class="avatar-wrapper">
    <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['c']['user_id']]['username']; ?>
" class="avatar" title="<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['c']['user_id']]['username']; ?>
">
	<?php if ($this->_tpl_vars['users'][$this->_tpl_vars['c']['user_id']]['avatar'] != ''): ?> 
  <img alt="<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['c']['user_id']]['username']; ?>
" class="" src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/users/<?php echo $this->_tpl_vars['c']['user_id']; ?>
/A_<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['c']['user_id']]['avatar']; ?>
" width="80" height="80">
   <?php else: ?>
     <img alt="<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['c']['user_id']]['username']; ?>
" class="" src="<?php echo $this->_tpl_vars['data_server']; ?>
img/default-user.jpg" width="80" height="80">
     <?php endif; ?>
</a>
</div>
  </div>
</div>
  <div class="comment__container">
    <div class="content-box comment__body">
        <div class="comment__header">
          <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['c']['user_id']]['username']; ?>
" class="comment__username"><?php echo $this->_tpl_vars['users'][$this->_tpl_vars['c']['user_id']]['username']; ?>
</a>
<div class="comment__meta">
  <?php echo $this->_tpl_vars['lang']['posted']; ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['c']['datetime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, 'j F Y') : smarty_modifier_date_format($_tmp, 'j F Y')); ?>
 
    <a href="/<?php echo $this->_tpl_vars['langaugeURL']; ?>
items/<?php echo $this->_tpl_vars['c']['item_id']; ?>
" alt="<?php echo $this->_tpl_vars['c']['item_name']; ?>
" title="<?php echo $this->_tpl_vars['c']['item_name']; ?>
" class="glyph-pencil"><span class="glyph-alt"><?php echo $this->_tpl_vars['c']['item_name']; ?>
</span></a>
</div>
        </div>
        <div class="comment__content"><p><?php echo ((is_array($_tmp=$this->_tpl_vars['c']['comment'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
</p></div>
    </div>
<?php if (isset ( $this->_tpl_vars['c']['reply'] )): ?>
<?php $_from = $this->_tpl_vars['c']['reply']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['cc']):
?>
<div class="comment__reply ">
  <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['cc']['user_id']]['username']; ?>
" class='comment__reply__avatar'>
  <?php if ($this->_tpl_vars['users'][$this->_tpl_vars['cc']['user_id']]['avatar'] != ''): ?> 
    <img alt="<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['cc']['user_id']]['username']; ?>
" height="30" src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/users/<?php echo $this->_tpl_vars['cc']['user_id']; ?>
/A_<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['cc']['user_id']]['avatar']; ?>
" width="30" />
  <?php else: ?>
  	<img alt="<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['cc']['user_id']]['username']; ?>
" class="avt" height="30" src="/static/img/default-user.jpg" width="30" />
  <?php endif; ?>
</a>
  <div class="comment__reply__body">
      <div class="comment__header">
        <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
user/<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['cc']['user_id']]['username']; ?>
" class="comment__username"><?php echo $this->_tpl_vars['users'][$this->_tpl_vars['cc']['user_id']]['username']; ?>
</a>
<div class="comment__meta">
  <?php echo $this->_tpl_vars['lang']['posted']; ?>
 <?php echo ((is_array($_tmp=$this->_tpl_vars['cc']['datetime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, 'j F Y') : smarty_modifier_date_format($_tmp, 'j F Y')); ?>

</div>
      </div>
      <p><?php echo ((is_array($_tmp=$this->_tpl_vars['cc']['comment'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
</p>
  </div>
</div>

<?php endforeach; endif; unset($_from); ?>
<?php endif; ?>
  	  <div id="replyhere_<?php echo $this->_tpl_vars['c']['id']; ?>
"></div>
	<?php echo '<script language="javascript">
 $("'; ?>
#replyhere_<?php echo $this->_tpl_vars['c']['id']; ?>
<?php echo '").load("'; ?>
/<?php echo $this->_tpl_vars['languageURL']; ?>
items/reply/<?php echo $this->_tpl_vars['c']['id']; ?>
<?php echo '");
</script>'; ?>

  </div>
</div>
 
 <?php endforeach; endif; unset($_from); ?>
   </div>
   <?php else: ?>
هیچ نظری برای محصولات شما ثبت نشده است .

   <?php endif; ?>
</div>

<div class="sidebar-l sidebar-right">
    <h2 class="box-heading"><?php echo $this->_tpl_vars['lang']['begin_upload']; ?>
</h2>
<div class="content-box">
  	<form id="begin-upload" action="/" method="get">
    <fieldset class="vertical-form">
      <div class="input-group">
        <label for="type">انتخاب دسته بندی برای آپلود محصول</label>
        <div class="inputs">
          <select class="inline" id="category" name="category">
          	<?php if ($this->_tpl_vars['mainCategories']): ?>
          		<?php $_from = $this->_tpl_vars['mainCategories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['c']):
?>
		          	<option value="<?php echo $this->_tpl_vars['c']['id']; ?>
"><?php echo $this->_tpl_vars['c']['name']; ?>
</option>
          		<?php endforeach; endif; unset($_from); ?>
          	<?php endif; ?>
          </select>
          <button onclick="window.location='/upload/form/?category=' + document.getElementById('category').options[document.getElementById('category').selectedIndex].value;" type=button class="btn-icon submit auto-width">کلیک کنید</button>
        </div>
        <p style="line-height:25px;"><a href="/help/upload/">کمک نیاز دارید ؟</a></p>
      </div>
    </fieldset>
</form>
</div>
  <h2 class="box-heading"><?php echo $this->_tpl_vars['lang']['this_week_stats']; ?>
</h2>
  <div class="content-box">
    <p style="line-height:26px;">
      <?php echo $this->_tpl_vars['lang']['you_earned']; ?>
 <strong><?php echo ((is_array($_tmp=$this->_tpl_vars['weekStats']['earning'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.0f") : smarty_modifier_string_format($_tmp, "%.0f")); ?>
 تومان</strong><br />
     <?php echo $this->_tpl_vars['lang']['you_sold']; ?>
 <strong><?php echo $this->_tpl_vars['weekStats']['sold']; ?>
</strong> <?php echo $this->_tpl_vars['lang']['items']; ?>

    </p>
  </div>
</div>
      </div>
    </div>
<?php echo '
<script type="text/javascript">
$(function(){
$("textarea").live("keyup keydown",function(){
var h=$(this);
h.height(20).height(h[0].scrollHeight);
});});

</script>
'; ?>