<?php /* Smarty version 2.6.22, created on 2014-02-24 01:53:18
         compiled from /home/joomaria/public_html/zipmarket/apps/users/views/edit.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'string_format', '/home/joomaria/public_html/zipmarket/apps/users/views/edit.html', 37, false),array('modifier', 'date_format', '/home/joomaria/public_html/zipmarket/apps/users/views/edit.html', 38, false),array('modifier', 'escape', '/home/joomaria/public_html/zipmarket/apps/users/views/edit.html', 108, 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="sidebar-l" id="ziper">
     <div class="basic-user-info">
				<?php if ($_SESSION['user']['avatar'] != ''): ?>
                 <img class="img-border" src="<?php echo $this->_tpl_vars['data_server']; ?>
/uploads/users/<?php echo $_SESSION['user']['user_id']; ?>
/A_<?php echo $_SESSION['user']['avatar']; ?>
" height="80" width="80" style="margin-top:15px">
				 <?php else: ?>
                 <img class="img-border" src="<?php echo $this->_tpl_vars['data_server']; ?>
img/default-user.jpg" height="80" width="80" style="margin-top:15px">
				<?php endif; ?>
  <p>
  <h2><?php echo $_SESSION['user']['username']; ?>
</h2>
  <?php if ($_SESSION['user']['country_id'] != '0'): ?>
	 آدرس: <?php echo $_SESSION['user']['country']['name']; ?>
<br>
  <?php endif; ?>
     موجودی: <?php echo ((is_array($_tmp=$_SESSION['user']['total'])) ? $this->_run_mod_handler('string_format', true, $_tmp, "%.0f") : smarty_modifier_string_format($_tmp, "%.0f")); ?>
 <?php echo $this->_tpl_vars['currency']['symbol']; ?>
<br>
     تاریخ عضویت : <?php echo ((is_array($_tmp=$_SESSION['user']['register_datetime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, 'j F Y') : smarty_modifier_date_format($_tmp, 'j F Y')); ?>
<br>

  <?php if ($_SESSION['user']['last_login_datetime'] != ''): ?>
     آخرین ورود: <?php echo ((is_array($_tmp=$_SESSION['user']['last_login_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")); ?>
<br>
  <?php endif; ?>
	 </p>
    </div>
<ul class="side-tabs">
    <li><a href="javascript:;" class="icon-process">اطلاعات شخصی و حساب بانکی شما</a></li>
	<li><a href="javascript:;" class="icon-key">تغییر رمز عبور من</a></li> 
    <li><a href="javascript:;" class="icon-update">آواتار و عکس صفحه</a></li>
    <li><a href="javascript:;" class="icon-social">آدرس شبکه های اجتماعی من</a></li>
    <?php if ($_SESSION['user']['quiz'] == 'true'): ?>
    <li><a href="javascript:;" class="icon-tick">نویسندگی من را فعال کن</a></li>
    <li><a href="javascript:;" class="icon-star"><?php echo $this->_tpl_vars['lang']['featured_items']; ?>
</a></li>
    <?php endif; ?>	
</ul>
</div>

<?php echo '
<script type="text/javascript">
$(document).ready(function(){
	
	//default settings
	
	$("#taber ul li:eq(0)").siblings().hide();
	
	//end default
	
	$("#ziper ul li").click(function(){
		
		var val = $(this).index();
	
		showthis(val+1);
		
		});

function showthis(val){
	
		var btn_index = val-1;
		
		//sidebar buttons
		$("#ziper ul li:eq("+btn_index+")").siblings().removeClass("active");
		$("#ziper ul li:eq("+btn_index+")").addClass("active");
		//end sidebar buttons
		
		//tab contents 
		$("#taber ul li:eq("+btn_index+")").show();
		$("#taber ul li:eq("+btn_index+")").siblings().hide();
		//$("#tab"+val).show();
	
		}// end if
	
	});
</script>
'; ?>

<div id="taber" class="content-s">

            <ul style="list-style-type: none;">

            <li>
			  <h3 class="underlined">اطلاعات شخصی </h3>
  <div id="profile" class="tab-content active">
    <form class="horizontal-form disable-on-submit" action="" method="post">
  
      <fieldset>

        <div class="input-group">
          <label for="firstname"><?php echo $this->_tpl_vars['lang']['first_name']; ?>
</label>
          <div class="inputs">
            <input id="firstname" name="firstname" required="true" type="text" value="<?php echo ((is_array($_tmp=$_POST['firstname'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
          </div>
        </div>
		
		
        <div class="input-group">
          <label for="surname"><?php echo $this->_tpl_vars['lang']['last_name']; ?>
</label>
          <div class="inputs">
            <input id="surname" name="lastname" required="true" type="text" value="<?php echo ((is_array($_tmp=$_POST['lastname'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
          </div>
        </div>
		
        <div class="input-group">
          <label for="email"><?php echo $this->_tpl_vars['lang']['email']; ?>
</label>
          <div class="inputs">
            <input id="email" name="email" value="<?php echo ((is_array($_tmp=$_POST['email'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" type="text">
          </div>
        </div>
		
        <div class="input-group">
          <label for="country"><?php echo $this->_tpl_vars['lang']['country']; ?>
</label>
          <div class="inputs">
            <select name="country_id">
              <option value="">لطفا شهر خود را انتخاب کنید</option>
              <?php if ($this->_tpl_vars['countries']): ?>
              	<?php $_from = $this->_tpl_vars['countries']; 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 if ($_POST['country_id'] == $this->_tpl_vars['c']['id']): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['c']['name']; ?>
</option>
              	<?php endforeach; endif; unset($_from); ?>
              <?php endif; ?>							
            </select>
            <small>اگر شهر شما در لیست نبود برای اضافه کردنش با ما تماس بگیرید - ویژه نویسندگان</small>
          </div>
        </div>
		
	<h3 class="underlined">ثبت اطلاعات حساب بانکی</h3>
		<p style="line-height:25px;text-align:justify">برای دریافت شماره شبای حساب خود می توانید به سایت بانک خود مراجعه کرده و نسبت یه دریافت آنلاین شناسه شبای حساب خود اقدام نمایید. </p>
		<strong style="color:red;">هشدار : </strong><small style="color:red;"> مسئولیت اشتباه بودن اطلاعات بر عهده خود شما میباشد، و مبلغ واریزی قابل بازگشت نمیباشد.</small><br><br>
		<div class="input-group">
          <label for="hesab_saheb">نام صاحب حساب :</label>
          <div class="inputs">
            <input id="lives_in" name="hesab_saheb" type="text" value="<?php echo ((is_array($_tmp=$_POST['hesab_saheb'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />            
          </div>
        </div> 
		
        <div class="input-group">
          <label for="hesab_bank">نام بانک :</label>
          <div class="inputs">
            <input id="lives_in" name="hesab_bank" type="text" value="<?php echo ((is_array($_tmp=$_POST['hesab_bank'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />            
          </div>
        </div> 		
		
        <div class="input-group">
          <label for="hesab_shomre">شماره حساب :</label>
          <div class="inputs">
            <input id="lives_in" name="hesab_shomre" type="text" value="<?php echo ((is_array($_tmp=$_POST['hesab_shomre'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />            
          </div>
        </div>

        <div class="input-group">
          <label for="hesab_cart">شماره کارت :</label>
          <div class="inputs">
            <input id="lives_in" name="hesab_cart" type="text" value="<?php echo ((is_array($_tmp=$_POST['hesab_cart'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />            
          </div>
        </div>
	
        <div class="input-group">
          <label for="hesab_shaba">شناسه شبا :</label>
          <div class="inputs">
            <input id="lives_in" name="hesab_shaba" type="text" value="<?php echo ((is_array($_tmp=$_POST['hesab_shaba'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
			<strong style="color:green;">توجه : </strong><small style="color:Blue;"> لطفا شماره شبای حساب خود را بدون فاصله و خط تیره وارد نمایید.</small>
          </div>
        </div>
		
	<h3 class="underlined">پروفایل</h3>
        <div class="input-group">
          <label for="available_for_freelance">Freelancer?</label>
          <div class="inputs">
           <input id="available_for_freelance" name="freelance" type="checkbox" value="true" <?php if ($_POST['freelance'] == 'true'): ?>checked="checked"<?php endif; ?> /> 
          </div>
        </div>
		
        <div class="input-group">
          <label for="by_line">عنوان پروفایل</label>
          <div class="inputs">
            <input id="by_line" name="profile_title" type="text" value="<?php echo ((is_array($_tmp=$_POST['profile_title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
            <small>نمایش بر روی عنوان پروفایل شما</small>
          </div>
        </div>

        <div class="input-group">
          <label for="profile_desc">متن پروفایل</label>
          <div class="inputs">
            <textarea class="tall" id="profile_desc" name="profile_desc"><?php echo $_POST['profile_desc']; ?>
</textarea>
            <small><div class="formatting-help"><?php echo $this->_tpl_vars['lang']['formatting_help']; ?>
</div></small>
          </div>
        </div>	
		<div class="form-submit"><input type="hidden" name="personal_edit" value="yes" />
          <button id="personal_info_submit_button" class="btn-icon save" type="submit"><?php echo $this->_tpl_vars['lang']['save']; ?>
</button>
        </div>
      </fieldset>
</form>  
</div>
           </li>
        <li> 
			  <h3 class="underlined">تغییر رمز عبور</h3>
  <div id="profile" class="tab-content active">
    <form class="horizontal-form disable-on-submit" action="" method="post">
      <fieldset>
	  
        <div class="input-group">
          <label for="current_password"><?php echo $this->_tpl_vars['lang']['current_password']; ?>
</label>
          <div class="inputs">
           <input id="current_password" name="password" required="true" type="password" value="" />
          </div>
        </div>
		
        <div class="input-group">
          <label for="user_password"><?php echo $this->_tpl_vars['lang']['new_password']; ?>
</label>
          <div class="inputs">
           <input type="password" id="user_password" name="new_password" />
          </div>
        </div>
		
        <div class="input-group">
          <label for="user_password_again"><?php echo $this->_tpl_vars['lang']['re_type']; ?>
 رمز عبور</label>
          <div class="inputs">
                 <input type="password" id="user_password_again" name="new_password_confirm" />
          </div>
        </div>
		
		<div class="form-submit"><input type="hidden" name="change_password" value="yes" />
          <button id="personal_info_submit_button" class="btn-icon save" type="submit"><?php echo $this->_tpl_vars['lang']['save']; ?>
</button>
        </div>

      </fieldset>
</form>  
</div>
        </li>
         <li> 
		  <div id="profile" class="tab-content active">
		   <h3 class="underlined">آواتار و عکس صفحه</h3>
	<form class="horizontal-form disable-on-submit" action="" method="post" enctype="multipart/form-data">
        <fieldset>
        <div class="input-group">
          <label for="profile_image"><?php echo $this->_tpl_vars['lang']['avatar']; ?>
</label>
          <div class="inputs">
		  	<?php if ($_SESSION['user']['avatar'] != ''): ?>
			  <img alt="<?php echo $_SESSION['user']['username']; ?>
" src="<?php echo $this->_tpl_vars['data_server']; ?>
/uploads/users/<?php echo $_SESSION['user']['user_id']; ?>
/A_<?php echo $_SESSION['user']['avatar']; ?>
" width="80" height="80" />
			<?php endif; ?>
           <input id="profile_image" name="profile_image" type="file" />
            <small>اندازه 80 در 80 پیکسل با فرمت JPG</small>
          </div>
        </div>

        <div class="input-group">
          <label for="profile_image">عکس صفحه</label>
          <div class="inputs">
         <?php if ($_SESSION['user']['homeimage'] != ''): ?>  
           <img alt="<?php echo $_SESSION['user']['username']; ?>
" src="<?php echo $this->_tpl_vars['data_server']; ?>
/uploads/users/<?php echo $_SESSION['user']['user_id']; ?>
/A_<?php echo $_SESSION['user']['homeimage']; ?>
" width="475" height="242" />	  
         <?php endif; ?>
           <input id="homepage_image" name="homepage_image" type="file" />
            <small>اندازه 590 در 242 پیکسل با فرمت JPG</small>
          </div>
        </div>

    <div class="form-submit">
      <div class="form-submit"><input type="hidden" name="change_avatar_image" value="yes" />
       <button type="submit" class="btn-icon save"><?php echo $this->_tpl_vars['lang']['save']; ?>
</button>
      </div>
    </div>
	<fieldset>
	</form>
	 </div>
       	</li> 

<li> 
<div id="social_networks" class="tab-content active">
<h2 class="underlined">آدرس شبکه های اجتماعی خودتان را وارد کنید</h2>
<form class="horizontal-form disable-on-submit" action="" method="post">

        <div class="input-group">
          <label for="behance">
              <img alt="Behance" src="/static/social/behance.png" title="Behance" height="34" width="34">
          </label>
          <div class="inputs">
            <input id="behance" name="behance" placeholder="Behance Public Profile URL" value="<?php echo ((is_array($_tmp=$_POST['behance'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" type="text">
          </div>
        </div>
		
        <div class="input-group">
          <label for="deviantart">
                     
              <img alt="Deviantart" src="/static/social/deviantart.png" title="Deviantart" height="34" width="34">
            
          </label>
          <div class="inputs">
            <input id="deviantart" name="deviantart" placeholder="Deviantart Public Profile URL" value="<?php echo ((is_array($_tmp=$_POST['deviantart'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" type="text">
          </div>
        </div>
		
        <div class="input-group">
          <label for="digg">
                     
              <img alt="Digg" src="/static/social/digg.png" title="Digg" height="34" width="34">
            
          </label>
          <div class="inputs">
            <input id="digg" name="digg" placeholder="Digg Public Profile URL" value="<?php echo ((is_array($_tmp=$_POST['digg'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" type="text">
          </div>
        </div>
		
        <div class="input-group">
          <label for="dribbble">
                     
              <img alt="Dribbble" src="/static/social/dribbble.png" title="Dribbble" height="34" width="34">
            
          </label>
          <div class="inputs">
            <input id="dribbble" name="dribbble" placeholder="Dribbble Public Profile URL" value="<?php echo ((is_array($_tmp=$_POST['dribbble'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" type="text">
          </div>
        </div>
		
        <div class="input-group">
          <label for="facebook">
                     
              <img alt="Facebook" src="/static/social/facebook.png" title="Facebook" height="34" width="34">
            
          </label>
          <div class="inputs">
            <input id="facebook" name="facebook" placeholder="Facebook Public Profile URL" value="<?php echo ((is_array($_tmp=$_POST['facebook'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" type="text">
          </div>
        </div>
        <div class="input-group">
          <label for="flickr">
                     
              <img alt="Flickr" src="/static/social/flickr.png" title="Flickr" height="34" width="34">
            
          </label>
          <div class="inputs">
            <input id="flickr" name="flickr" placeholder="Flickr Public Profile URL" value="<?php echo ((is_array($_tmp=$_POST['flickr'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" type="text">
          </div>
        </div>
        <div class="input-group">
          <label for="forrst">
                     
              <img alt="Forrst" src="/static/social/forrst.png" title="Forrst" height="34" width="34">
            
          </label>
          <div class="inputs">
            <input id="forrst" name="forrst" placeholder="Forrst Public Profile URL" value="<?php echo ((is_array($_tmp=$_POST['forrst'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" type="text">
          </div>
        </div>
		
        <div class="input-group">
          <label for="github">
                     
              <img alt="Github" src="/static/social/github.png" title="Github" height="34" width="34">
            
          </label>
          <div class="inputs">
            <input id="github" name="github" placeholder="Github Public Profile URL" value="<?php echo ((is_array($_tmp=$_POST['github'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" type="text">
          </div>
        </div>
		
        <div class="input-group">
          <label for="googleplus">
                     
              <img alt="Google+" src="/static/social/googleplus.png" title="Google+" height="34" width="34">
            
          </label>
          <div class="inputs">
            <input id="googleplus" name="googleplus" placeholder="Google+ Public Profile URL" value="<?php echo ((is_array($_tmp=$_POST['googleplus'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" type="text">
          </div>
        </div>
		
        <div class="input-group">
          <label for="lastfm">
                     
              <img alt="Last.fm" src="/static/social/lastfm.png" title="Last.fm" height="34" width="34">
            
          </label>
          <div class="inputs">
            <input id="lastfm" name="lastfm" placeholder="Last.fm Public Profile URL" value="<?php echo ((is_array($_tmp=$_POST['lastfm'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" type="text">
          </div>
        </div>
		
        <div class="input-group">
          <label for="linkedin">
                     
              <img alt="LinkedIn" src="/static/social/linkedin.png" title="LinkedIn" height="34" width="34">
            
          </label>
          <div class="inputs">
            <input id="linkedin" name="linkedin" placeholder="LinkedIn Public Profile URL" value="<?php echo ((is_array($_tmp=$_POST['linkedin'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" type="text">
          </div>
        </div>

        <div class="input-group">
          <label for="myspace">
                     
              <img alt="MySpace" src="/static//social/myspace.png" title="MySpace" height="34" width="34">
            
          </label>
          <div class="inputs">
            <input id="myspace" name="myspace" placeholder="MySpace Public Profile URL" value="<?php echo ((is_array($_tmp=$_POST['myspace'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" type="text">
          </div>
        </div>
		
        <div class="input-group">
          <label for="reddit">
                     
              <img alt="Reddit" src="/static/social/reddit.png" title="Reddit" height="34" width="34">
            
          </label>
          <div class="inputs">
            <input id="reddit" name="reddit" placeholder="Reddit Public Profile URL" value="<?php echo ((is_array($_tmp=$_POST['reddit'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" type="text">
          </div>
        </div>
        <div class="input-group">
          <label for="tumblr">
                     
              <img alt="Tumblr" src="/static/social/tumblr.png" title="Tumblr" height="34" width="34">
            
          </label>
          <div class="inputs">
            <input id="tumblr" name="tumblr" placeholder="Tumblr Public Profile URL" value="<?php echo ((is_array($_tmp=$_POST['tumblr'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" type="text">
          </div>
        </div>
		
        <div class="input-group">
          <label for="twitter">
                     
              <img alt="Twitter" src="/static/social/twitter.png" title="Twitter" height="34" width="34">
            
          </label>
          <div class="inputs">
            <input id="twitter" name="twitter" placeholder="Twitter Public Profile URL" value="<?php echo ((is_array($_tmp=$_POST['twitter'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" type="text">
          </div>
        </div>
		
        <div class="input-group">
          <label for="vimeo">
                     
              <img alt="Vimeo" src="/static//social/vimeo.png" title="Vimeo" height="34" width="34">
            
          </label>
          <div class="inputs">
            <input id="vimeo" name="vimeo" placeholder="Vimeo Public Profile URL" value="<?php echo ((is_array($_tmp=$_POST['vimeo'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" type="text">
          </div>
        </div>
		
        <div class="input-group">
          <label for="youtube">
                     
              <img alt="YouTube" src="/static/social/youtube.png" title="YouTube" height="34" width="34">
            
          </label>
          <div class="inputs">
            <input id="youtube" name="youtube" placeholder="YouTube Public Profile URL" value="<?php echo ((is_array($_tmp=$_POST['youtube'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" type="text">
          </div>
        </div>
<div class="form-submit">
<div class="form-submit"><input type="hidden" name="social_edit" value="yes" />
<button type="submit" class="btn-icon save">Save</button>
</div>
    </div>
</form>	
</div>	
</li> 
		
    <?php if ($_SESSION['user']['quiz'] == 'true'): ?>
        <li> 
<div id="exclusivity" class="tab-content active">
     <h3 class="underlined">فعال کردن نویسندگی خود</h3>
	<?php echo $this->_tpl_vars['lang']['exclusive_author_info']; ?>

    <p>
        <?php if ($_SESSION['user']['exclusive_author'] == 'true'): ?>
        	<?php echo $this->_tpl_vars['lang']['exclusive_author_true']; ?>

        <?php else: ?>
        	<?php echo $this->_tpl_vars['lang']['exclusive_author_false']; ?>

        <?php endif; ?>
    </p>
    <form  action="" class="horizontal-form disable-on-submit" method="post">
<?php if ($_SESSION['user']['exclusive_author'] == 'true'): ?>
    <div class="form-submit">
      <div class="form-submit"><input type="hidden" name="exclusive_false" value="yes" />
       <button type="submit"><?php echo $this->_tpl_vars['lang']['exclusive_off']; ?>
</button>
      </div>
    </div>
<?php else: ?>
    <div class="form-submit">
      <div class="form-submit"><input type="hidden" name="exclusive_true" value="yes" />
       <button type="submit"><?php echo $this->_tpl_vars['lang']['exclusive_on']; ?>
</button>
      </div>
    </div>
<?php endif; ?>

</form></div>
       	</li> 

        <li> 
			  <h3 class="underlined"><?php echo $this->_tpl_vars['lang']['featured_items']; ?>
</h3>
  <div id="profile" class="tab-content active">
    <form class="horizontal-form disable-on-submit" action="" method="post">
  
      <fieldset>
	  
        <div class="input-group">
          <label for="featured_items">انتخاب محصول ویژه:</label>
          <div class="inputs">
            <select name="featured_item_id">
              <option value="0"><?php echo $this->_tpl_vars['lang']['none']; ?>
</option>
	          <?php if ($this->_tpl_vars['items']): ?>
	          	<?php $_from = $this->_tpl_vars['items']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['i']):
?>  
	            	<option value="<?php echo $this->_tpl_vars['i']['id']; ?>
" <?php if ($this->_tpl_vars['i']['id'] == $_SESSION['user']['featured_item_id']): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['i']['name']; ?>
</option>
	            <?php endforeach; endif; unset($_from); ?>
			   <?php endif; ?>
            </select> 
          </div>
        </div>
		
		<div class="form-submit"><input type="hidden" name="feature_save" value="yes" />
          <button id="personal_info_submit_button" class="btn-icon save" type="submit"><?php echo $this->_tpl_vars['lang']['save']; ?>
</button>
        </div>

      </fieldset>

</form>  
</div>
       	</li>

		<li>
  <div id="item_licences" class="tab-content active">
    <h3 class="underlined">Item Licences</h3>
    <p>Choose the licences that your items are sold under.  Note that not all licences will be used for all types of items.  The Standard Single-Use Licence is mandatory.</p>
    <form action="" class="horizontal-form disable-on-submit" method="post">
    <fieldset>
      <div class="input-group">
        <label>Licence Types:</label>
        <div class="inputs">
          <ul class="inputs-list">
              <li>
                <label for="extended"> 
                   <input id="extended" name="license[extended]" type="checkbox" value="extended" <?php if (isset ( $_SESSION['user']['license']['extended'] )): ?>checked="checked"<?php endif; ?> />
                  Extended License
                </label>
				      <label for="personal">
                <input id="personal" name="license[personal]" type="checkbox" value="personal" <?php if (isset ( $_SESSION['user']['license']['personal'] )): ?>checked="checked"<?php endif; ?> />
                  Personal License
                </label>
              </li>
          </ul>
        </div>
      </div>
    </fieldset>
    <div class="form-submit"><input type="hidden" name="save_license" value="yes" />
    <button type="submit" class="btn-icon save"><?php echo $this->_tpl_vars['lang']['save']; ?>
</button>
    </div>
	</form>
   </div>
       </li> 
	   <?php endif; ?>
        </ul>
      </div>
      </div>
    </div>