<?php /* Smarty version 2.6.22, created on 2014-02-10 23:54:26
         compiled from D:/Program+Files+%28x86%29/Ampps/www/zipmarket%5Capps%5Cusers%5Cviews/bookmarks.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'url', 'D:/Program Files (x86)/Ampps/www/zipmarket\\apps\\users\\views/bookmarks.html', 31, false),array('modifier', 'escape', 'D:/Program Files (x86)/Ampps/www/zipmarket\\apps\\users\\views/bookmarks.html', 33, false),array('modifier', 'nl2br', 'D:/Program Files (x86)/Ampps/www/zipmarket\\apps\\users\\views/bookmarks.html', 41, 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>\<a href='/collections/'>Collections</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-l">
  <h2><?php echo $this->_tpl_vars['lang']['your_public_collections']; ?>
</h2>
    <ul>
	<?php if ($this->_tpl_vars['collections']['true']): ?>
				<?php $_from = $this->_tpl_vars['collections']['true']; 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['c']):
        $this->_foreach['foo']['iteration']++;
?>
      <li class="content-box">
    <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
collections/view/<?php echo $this->_tpl_vars['c']['id']; ?>
/<?php echo ((is_array($_tmp=$this->_tpl_vars['c']['name'])) ? $this->_run_mod_handler('url', true, $_tmp) : smarty_modifier_url($_tmp)); ?>
.html" class="collection-image">
						  <?php if ($this->_tpl_vars['c']['photo'] != ''): ?>
						  	<img alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['c']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" height="140" src="<?php echo $this->_tpl_vars['data_server']; ?>
/uploads/collections/<?php echo $this->_tpl_vars['c']['photo']; ?>
" width="260" class="m6 left" />
						  <?php else: ?>
						  	<img alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['c']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" height="140" src="/static/img/default-collection.jpg" width="260" class="m6 left" />
						  <?php endif; ?>
    </a>
   <div class="collection-info">
    <h3><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
collections/view/<?php echo $this->_tpl_vars['c']['id']; ?>
/<?php echo ((is_array($_tmp=$this->_tpl_vars['c']['name'])) ? $this->_run_mod_handler('url', true, $_tmp) : smarty_modifier_url($_tmp)); ?>
.html"><?php echo $this->_tpl_vars['c']['name']; ?>
</a></h3>
    <span><?php echo $this->_tpl_vars['lang']['by']; ?>
 <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
users/<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['c']['user_id']]['username']; ?>
"><?php echo $this->_tpl_vars['users'][$this->_tpl_vars['c']['user_id']]['username']; ?>
</a></span>
    <p><?php echo ((is_array($_tmp=$this->_tpl_vars['c']['text'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
</p>  
  </div>

  <div class="collection-meta">
    <strong><?php echo $this->_tpl_vars['c']['items']; ?>
 <?php echo $this->_tpl_vars['lang']['items']; ?>
</strong>
    <br />
    
  </div>
</li>
<?php endforeach; endif; unset($_from); ?>

	<?php else: ?>
<div class="content-box vertical-space">
        <p style="font-family:BBCNassim;font-size:19px;">
          شما هیچ مجموعه ای ندارید
        </p>

        <p style="line-height:23px;">
           شما می توانید مجموعه ی خود که شامل چندین محصول می شود را درست کنید . این مجموعه ها در صفحه <a href="/collections/">مجموعه های سایت </a> به نمایش در می آیند .
        </p>
    </div>
    <?php endif; ?>
    </ul>

    <h2>مجموعه های خصوصی شما </h2>
      <ul>
	  <?php if ($this->_tpl_vars['collections']['false']): ?>
				<?php $_from = $this->_tpl_vars['collections']['false']; 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['c']):
        $this->_foreach['foo']['iteration']++;
?>
        <li class="content-box">
      <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
collections/view/<?php echo $this->_tpl_vars['c']['id']; ?>
/<?php echo ((is_array($_tmp=$this->_tpl_vars['c']['name'])) ? $this->_run_mod_handler('url', true, $_tmp) : smarty_modifier_url($_tmp)); ?>
.html" class="collection-image">
						  <?php if ($this->_tpl_vars['c']['photo'] != ''): ?>
						  	<img alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['c']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" height="140" src="<?php echo $this->_tpl_vars['data_server']; ?>
/uploads/collections/<?php echo $this->_tpl_vars['c']['photo']; ?>
" width="260" class="m6 left" />
						  <?php else: ?>
						  	<img alt="<?php echo ((is_array($_tmp=$this->_tpl_vars['c']['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" height="140" src="/static/img/default-collection.jpg" width="260" class="m6 left" />
						  <?php endif; ?>
      </a>

  <div class="collection-info">
    <h3><a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
collections/view/<?php echo $this->_tpl_vars['c']['id']; ?>
/<?php echo ((is_array($_tmp=$this->_tpl_vars['c']['name'])) ? $this->_run_mod_handler('url', true, $_tmp) : smarty_modifier_url($_tmp)); ?>
.html"><?php echo $this->_tpl_vars['c']['name']; ?>
</a></h3>
    <span><?php echo $this->_tpl_vars['lang']['by']; ?>
 <a href="/<?php echo $this->_tpl_vars['languageURL']; ?>
users/<?php echo $this->_tpl_vars['users'][$this->_tpl_vars['c']['user_id']]['username']; ?>
"><?php echo $this->_tpl_vars['users'][$this->_tpl_vars['c']['user_id']]['username']; ?>
</a></span>
    <p><?php echo ((is_array($_tmp=$this->_tpl_vars['c']['text'])) ? $this->_run_mod_handler('nl2br', true, $_tmp) : smarty_modifier_nl2br($_tmp)); ?>
</p> 
  </div>

  <div class="collection-meta">
    <strong><?php echo $this->_tpl_vars['c']['items']; ?>
 <?php echo $this->_tpl_vars['lang']['items']; ?>
</strong>
    <br />
  </div>
</li>
<?php endforeach; endif; unset($_from); ?>

      	<?php else: ?>
	<div class="content-box vertical-space">
        <p>
          شما هیچ گونه مجموعه خصوصی ندارید 
        </p>
    </div>
    <?php endif; ?>
    </ul> 
</div>

  <div class="sidebar-s sidebar-right">
    <h2 class="box-heading">ساخت مجموعه</h2>
<div class="content-box">

  <form action="" class="vertical-form" enctype="multipart/form-data" id="new_collection" method="post">
    <fieldset>
      <div class="input-group">
        <label for="collection_name"><?php echo $this->_tpl_vars['lang']['name']; ?>
:</label>
        <div class="inputs">
          <input id="collection_name" name="name" size="25" type="text" />        </div>
      </div>

      <div class="input-group">
        <label for="file_upload"><?php echo $this->_tpl_vars['lang']['photo']; ?>
: <small>(260x140px)</small></label>
        <div class="inputs">
          <input id="file_upload" name="file_upload" size="9" type="file" />        </div>
      </div>

      <div class="input-group">
        <label for="collection_description"><?php echo $this->_tpl_vars['lang']['description']; ?>
:</label>
        <div class="inputs">
          <textarea cols="40" id="collection_description" name="description" rows="20"></textarea>
        </div>
      </div>

      <div class="input-group">
        <div class="inputs">
          <label for="collection_publically_visible">
            <input id="collection_publically_visible" name="publically_visible" type="checkbox" value="1" />
            <?php echo $this->_tpl_vars['lang']['public_visible']; ?>

          </label>
        </div>
      </div>
    </fieldset>

    <div class="form-submit" href="javascript: void(0);" onclick="$(this).parent().parent().submit();">
	<input type="hidden" name="add" value="yes" />
<button type="submit" class="btn-icon submit"><?php echo $this->_tpl_vars['lang']['create']; ?>
</button>
</div>

</form></div>

  </div>

      </div>
    </div>