<?php /* Smarty version 2.6.22, created on 2014-02-25 02:38:23
         compiled from D:/Program+Files/Ampps/www/zipmarket%5Capps%5Cusers%5Cviews/downloads.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'url', 'D:/Program Files/Ampps/www/zipmarket\\apps\\users\\views/downloads.html', 32, false),array('modifier', 'escape', 'D:/Program Files/Ampps/www/zipmarket\\apps\\users\\views/downloads.html', 32, 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">دانلود <span style="color:#fff;"><?php echo $_SESSION['user']['buy']; ?>
 محصول</span></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">دانلود <span><?php echo $_SESSION['user']['buy']; ?>
 محصول</span></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-l">
<?php if ($this->_tpl_vars['items']): ?>
  <ul class="download-list">
		<?php $_from = $this->_tpl_vars['items']; 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['i']):
        $this->_foreach['foo']['iteration']++;
?>

	 <li>
  <div class="thumbnail">
  <a href="/<?php echo $this->_tpl_vars['langaugeURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
/<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['name'])) ? $this->_run_mod_handler('url', true, $_tmp) : smarty_modifier_url($_tmp)); ?>
" onclick=""><img data-tooltip="<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" class="landscape-image-magnifier preload no_preview" data-item-category="" data-item-cost="<?php echo $this->_tpl_vars['currency']['symbol']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['price'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" data-item-name="<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" data-preview-height="" data-preview-url="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/items/<?php echo $this->_tpl_vars['i']['id']; ?>
/preview.jpg" data-preview-width="" src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/items/<?php echo $this->_tpl_vars['i']['id']; ?>
/<?php echo $this->_tpl_vars['i']['thumbnail']; ?>
" title="" border="0" height="80" width="80"></a>
  </div>

<div class="item-info">
  <h3><a href="/<?php echo $this->_tpl_vars['langaugeURL']; ?>
items/<?php echo $this->_tpl_vars['i']['id']; ?>
/<?php echo ((is_array($_tmp=$this->_tpl_vars['i']['name'])) ? $this->_run_mod_handler('url', true, $_tmp) : smarty_modifier_url($_tmp)); ?>
"><?php echo $this->_tpl_vars['i']['name']; ?>
</a></h3>
</div>

    <div class="download-action">
		  <form id="download" action="/<?php echo $this->_tpl_vars['languageURL']; ?>
download/<?php echo $this->_tpl_vars['i']['id']; ?>
" method="post">
        <input type="hidden" name="download" id="download" value="regular" />
       <a href="javascript:;" role="button" onclick="document.getElementById('download').submit();" class="btn-icon download vertical-stack"><?php echo $this->_tpl_vars['lang']['download']; ?>
</a>
	     </form>
		 
		 
      <div class="aside">
<div class="aside">
<div class="rating-container">
<?php if (isset ( $this->_tpl_vars['ratedItems'][$this->_tpl_vars['i']['id']] )): ?>
							  <?php unset($this->_sections['foo']);
$this->_sections['foo']['name'] = 'foo';
$this->_sections['foo']['start'] = (int)1;
$this->_sections['foo']['loop'] = is_array($_loop=6) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['foo']['step'] = ((int)1) == 0 ? 1 : (int)1;
$this->_sections['foo']['show'] = true;
$this->_sections['foo']['max'] = $this->_sections['foo']['loop'];
if ($this->_sections['foo']['start'] < 0)
    $this->_sections['foo']['start'] = max($this->_sections['foo']['step'] > 0 ? 0 : -1, $this->_sections['foo']['loop'] + $this->_sections['foo']['start']);
else
    $this->_sections['foo']['start'] = min($this->_sections['foo']['start'], $this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] : $this->_sections['foo']['loop']-1);
if ($this->_sections['foo']['show']) {
    $this->_sections['foo']['total'] = min(ceil(($this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] - $this->_sections['foo']['start'] : $this->_sections['foo']['start']+1)/abs($this->_sections['foo']['step'])), $this->_sections['foo']['max']);
    if ($this->_sections['foo']['total'] == 0)
        $this->_sections['foo']['show'] = false;
} else
    $this->_sections['foo']['total'] = 0;
if ($this->_sections['foo']['show']):

            for ($this->_sections['foo']['index'] = $this->_sections['foo']['start'], $this->_sections['foo']['iteration'] = 1;
                 $this->_sections['foo']['iteration'] <= $this->_sections['foo']['total'];
                 $this->_sections['foo']['index'] += $this->_sections['foo']['step'], $this->_sections['foo']['iteration']++):
$this->_sections['foo']['rownum'] = $this->_sections['foo']['iteration'];
$this->_sections['foo']['index_prev'] = $this->_sections['foo']['index'] - $this->_sections['foo']['step'];
$this->_sections['foo']['index_next'] = $this->_sections['foo']['index'] + $this->_sections['foo']['step'];
$this->_sections['foo']['first']      = ($this->_sections['foo']['iteration'] == 1);
$this->_sections['foo']['last']       = ($this->_sections['foo']['iteration'] == $this->_sections['foo']['total']);
?>
							  	<?php if ($this->_tpl_vars['ratedItems'][$this->_tpl_vars['i']['id']]['rate'] >= $this->_sections['foo']['index']): ?>
							    	<img src="/static/img/star-on.png"/>
								  <?php else: ?>
							    	<img src="/static/img/star-off.png"/>
								  <?php endif; ?>								  
								<?php endfor; endif; ?>
						  <?php else: ?>
  <div id="stars_div_<?php echo $this->_tpl_vars['i']['id']; ?>
" class="stars" data-star-set-id="<?php echo $this->_tpl_vars['i']['id']; ?>
_star" data-rating="0">
      <?php unset($this->_sections['foo']);
$this->_sections['foo']['name'] = 'foo';
$this->_sections['foo']['start'] = (int)1;
$this->_sections['foo']['loop'] = is_array($_loop=6) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['foo']['step'] = ((int)1) == 0 ? 1 : (int)1;
$this->_sections['foo']['show'] = true;
$this->_sections['foo']['max'] = $this->_sections['foo']['loop'];
if ($this->_sections['foo']['start'] < 0)
    $this->_sections['foo']['start'] = max($this->_sections['foo']['step'] > 0 ? 0 : -1, $this->_sections['foo']['loop'] + $this->_sections['foo']['start']);
else
    $this->_sections['foo']['start'] = min($this->_sections['foo']['start'], $this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] : $this->_sections['foo']['loop']-1);
if ($this->_sections['foo']['show']) {
    $this->_sections['foo']['total'] = min(ceil(($this->_sections['foo']['step'] > 0 ? $this->_sections['foo']['loop'] - $this->_sections['foo']['start'] : $this->_sections['foo']['start']+1)/abs($this->_sections['foo']['step'])), $this->_sections['foo']['max']);
    if ($this->_sections['foo']['total'] == 0)
        $this->_sections['foo']['show'] = false;
} else
    $this->_sections['foo']['total'] = 0;
if ($this->_sections['foo']['show']):

            for ($this->_sections['foo']['index'] = $this->_sections['foo']['start'], $this->_sections['foo']['iteration'] = 1;
                 $this->_sections['foo']['iteration'] <= $this->_sections['foo']['total'];
                 $this->_sections['foo']['index'] += $this->_sections['foo']['step'], $this->_sections['foo']['iteration']++):
$this->_sections['foo']['rownum'] = $this->_sections['foo']['iteration'];
$this->_sections['foo']['index_prev'] = $this->_sections['foo']['index'] - $this->_sections['foo']['step'];
$this->_sections['foo']['index_next'] = $this->_sections['foo']['index'] + $this->_sections['foo']['step'];
$this->_sections['foo']['first']      = ($this->_sections['foo']['iteration'] == 1);
$this->_sections['foo']['last']       = ($this->_sections['foo']['iteration'] == $this->_sections['foo']['total']);
?>
      <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
users/downloads/<?php echo $this->_tpl_vars['i']['id']; ?>
?rating=<?php echo $this->_sections['foo']['index']; ?>
" data-method="post" data-remote="true" onmouseover="marketplace.rating.toggle_stars('<?php echo $this->_tpl_vars['i']['id']; ?>
_star', <?php echo $this->_sections['foo']['index']; ?>
);" rel="nofollow"><img alt="<?php echo $this->_sections['foo']['index']; ?>
" id="<?php echo $this->_tpl_vars['i']['id']; ?>
_star_<?php echo $this->_sections['foo']['index']; ?>
" src="/static/img/star-off.png"></a>
      <?php endfor; endif; ?>
  </div>
  <?php endif; ?>
</div>
<?php echo '
<script>
  marketplace.queue(function(){
    marketplace.rating.init();
  });
</script>
'; ?>

      </div>

      </div>
    </div>
      <div class="download-action dreamhost">
        <a class="btn-icon get-hosting" href="http://www.dreamhost.com" role="button">خرید هاست</a>

<div class="aside">
  <small class="affiliate-callout">
    تبلیغ هاست شما <a href="http://www.dreamhost.com">Dreamhost</a>
  </small>
</div>

      </div>
</li>
	<?php endforeach; endif; unset($_from); ?>
	 </ul>
			<?php else: ?>

		<div class="content-box vertical-space">
          <p>
           شما هیچ محصولی را خریداری نکرده اید .
          </p>
        </div>
			<?php endif; ?>
</div>

<div class="sidebar-s sidebar-right">
  <h2 class="box-heading">دانلود بلافاصله</h2>
  <div class="content-box">
    <p style="font-family:tahoma;font-size:12px;line-height24px;text-align:justify;">شما می بایست پس از خرید هر کدام از محصولات آن را فورا دانلود کنید. ممکن است فایل شما حذف گردد.</p>
  </div>

  <h2 class="box-heading">در دانلود مشکلی دارید؟</h2>
  <div class="content-box">
    <p style="font-size:12px;line-height:21px;text-align:justify;"> اگر شما دچار مشکل عدم دانلود فایل خریداری یا فایل خراب شده اید، پیشنهاد می کنیم به نکات زیر توجه کنید: </p>
    <ol class="text-list decimal" style="font-size:12px;line-height:21px;text-align:justify;">
      <li>ارتباط خود را با کانکشن اینترنت بررسی کنید و وضعیت پرداخت خود را مجددا بررسی نمایید. در هنگامی که اینترنت شما دچار مشکل باشد احتمال خرابی در دانلود فایل یا دانلود ناقص وجود دارد
      </li><li>از نرم افزار های دیگر برای مشاهده فایل فشرده خود استفاده کنید.
      </li>
    </ol>
  </div>
</div>

      </div>
    </div>