<?php /* Smarty version 2.6.22, created on 2014-03-10 00:00:13
         compiled from /home/hamyarwp/public_html/market/zipmarket/apps/items/admin/edit.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', '/home/hamyarwp/public_html/market/zipmarket/apps/items/admin/edit.html', 64, false),)), $this); ?>
<div class="page-info">
    <div class="container">
      <div id="breadcrumbs">
        <a href="/admin" class="first">Home</a> \ <a href="/admin/?m=items&c=list">Items</a> \
      </div>
      <h1 class="page-title"><?php echo $this->_tpl_vars['data']['name']; ?>
</h1>
    </div>
     <div id="tabsy">
      <ul>
		<li class="selected"><div></div><a href="/admin/?m=items&c=edit&id=<?php echo $_GET['id']; ?>
">Item Details</a></li>
		<li class="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="content" style="width:984px;">
	  <script type="text/javascript" src="<?php echo $this->_tpl_vars['data_server']; ?>
nicEditors/nicEdit.js"></script>
      <script type="text/javascript"><?php echo 'bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });'; ?>
</script>	 
   <div class="content-box">
	<form id="sampleform" action="" class="horizontal-form item-form disable-on-submit" method="post">
	 <div class="input-group">
        <label>Seller </label>
        <div class="right">
          <a href="/admin/?m=users&c=edit&id=<?php echo $this->_tpl_vars['data']['user']['user_id']; ?>
" title="" target="_blank"><?php echo $this->_tpl_vars['data']['user']['username']; ?>
</a>
        </div>
      </div>
	 <div class="input-group">
        <label>Thumbnail</label>
        <div class="inputs">
           <img src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/items/<?php echo $_GET['id']; ?>
/<?php echo $this->_tpl_vars['data']['thumbnail']; ?>
" alt="" />
        </div>
      </div>
	 <div class="input-group">
        <label>Preview Screenshots</label>
        <div class="inputs">
           <img src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/items/<?php echo $_GET['id']; ?>
/preview.jpg" alt="" />
        </div>
      </div>
      <div class="input-group">
        <label for="idesc"><?php echo $this->_tpl_vars['lang']['description']; ?>
</label>
        <div class="inputs">
          <textarea name="description" id="idesc" ><?php echo $this->_tpl_vars['data']['description']; ?>
</textarea>
        </div>
      </div>
	 <div class="input-group">
       <label><?php echo $this->_tpl_vars['lang']['main_file']; ?>
</label>
	    <div class="right">
          <a href="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/items/<?php echo $_GET['id']; ?>
/<?php echo $this->_tpl_vars['data']['main_file']; ?>
" title=""><?php echo $this->_tpl_vars['data']['main_file']; ?>
</a>
		</div>
      </div>
    <div class="input-group">
    <label><?php echo $this->_tpl_vars['lang']['category']; ?>
</label>
     <div class="inputs">
      <select name="category[]"><?php echo $this->_tpl_vars['categoriesSelect']; ?>
</select>
    </div>
    <?php if (isset ( $this->_tpl_vars['error']['category'] )): ?> <?php echo $this->_tpl_vars['error']['category']; ?>
 <?php endif; ?>
   </div>
	<?php if ($this->_tpl_vars['data']['demo_url'] != ''): ?>
	 <div class="input-group">
        <label for="demo_url"><?php echo $this->_tpl_vars['lang']['demo_url']; ?>
:</label>
        <div class="inputs">
           <input class="input big" id="demo_url" type="text" name="demo_url" value="<?php echo ((is_array($_tmp=$_POST['demo_url'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
        </div>
      </div>
	<?php endif; ?>
  <div id="attribute_fields">
	  <?php if ($this->_tpl_vars['attributes']): ?>
	  	<?php $_from = $this->_tpl_vars['attributes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['a']):
?>
			<br /><div class="input-group">
			<label><?php echo $this->_tpl_vars['a']['name']; ?>
</label>
			<div class="inputs">
			  	<?php if ($this->_tpl_vars['a']['type'] == 'select'): ?>									  	
			      <select id="custom_attributes_<?php echo $this->_tpl_vars['a']['id']; ?>
" name="attributes[<?php echo $this->_tpl_vars['a']['id']; ?>
]">
			      	<?php $_from = $this->_tpl_vars['a']['attributes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['ai']):
?>
			      		<option value="<?php echo $this->_tpl_vars['ai']['id']; ?>
" <?php if ($_POST['attributes'][$this->_tpl_vars['a']['id']] == $this->_tpl_vars['ai']['id']): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['ai']['name']; ?>
</option>
			      	<?php endforeach; endif; unset($_from); ?>
				  </select>
				  <?php elseif ($this->_tpl_vars['a']['type'] == 'multiple'): ?>
			      <select multiple="multiple" id="custom_attributes_<?php echo $this->_tpl_vars['a']['id']; ?>
" name="attributes[<?php echo $this->_tpl_vars['a']['id']; ?>
]">
			      	<?php $_from = $this->_tpl_vars['a']['attributes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['ai']):
?>
			      		<option value="<?php echo $this->_tpl_vars['ai']['id']; ?>
" <?php if ($_POST['attributes'][$this->_tpl_vars['a']['id']] == $this->_tpl_vars['ai']['id']): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['ai']['name']; ?>
</option>
			      	<?php endforeach; endif; unset($_from); ?>
				  </select>
				  <?php elseif ($this->_tpl_vars['a']['type'] == 'check'): ?>
				  	<?php $_from = $this->_tpl_vars['a']['attributes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['ai']):
?>
		      		<input type="checkbox" name="attributes[<?php echo $this->_tpl_vars['a']['id']; ?>
][<?php echo $this->_tpl_vars['ai']['id']; ?>
]" value="<?php echo $this->_tpl_vars['ai']['id']; ?>
" <?php if (isset ( $_POST['attributes'][$this->_tpl_vars['a']['id']][$this->_tpl_vars['ai']['id']] )): ?>checked="checked"<?php endif; ?> class="mt5"/> <?php echo $this->_tpl_vars['ai']['name']; ?>
<br />
		      	    <?php endforeach; endif; unset($_from); ?>
				  <?php elseif ($this->_tpl_vars['a']['type'] == 'radio'): ?>
				  	<?php $_from = $this->_tpl_vars['a']['attributes']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['ai']):
?>
		      		<input type="radio" name="attributes[<?php echo $this->_tpl_vars['a']['id']; ?>
]" value="<?php echo $this->_tpl_vars['ai']['id']; ?>
" <?php if (isset ( $_POST['attributes'][$this->_tpl_vars['a']['id']] ) && $_POST['attributes'][$this->_tpl_vars['a']['id']] == $this->_tpl_vars['ai']['id']): ?>checked="checked"<?php endif; ?> class="mt5" /> <?php echo $this->_tpl_vars['ai']['name']; ?>
 <br />
		      	<?php endforeach; endif; unset($_from); ?>
		      <?php else: ?>
		      	<input class="big input mt5" type="text" name="attributes[<?php echo $this->_tpl_vars['a']['id']; ?>
]" value="<?php echo $_POST['attributes'][$this->_tpl_vars['a']['id']]; ?>
" />
				  <?php endif; ?>
			</div></div>
	  	<?php endforeach; endif; unset($_from); ?>
	  <?php endif; ?>
 </div>
  <div class="input-group">
    <label><?php echo $this->_tpl_vars['lang']['usage_tags']; ?>
</label>
	 <div class="right">
	<?php $_from = $this->_tpl_vars['data']['tags']['usage']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['t']):
?><?php echo $this->_tpl_vars['t']; ?>
, <?php endforeach; endif; unset($_from); ?>
	 </div>
  </div>	
  <div class="input-group">
    <label><?php echo $this->_tpl_vars['lang']['style_tags']; ?>
</label>
	 <div class="right">
	<?php $_from = $this->_tpl_vars['data']['tags']['style']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['t']):
?><?php echo $this->_tpl_vars['t']; ?>
, <?php endforeach; endif; unset($_from); ?>
	 </div>
  </div>
  <div class="input-group">
    <label><?php echo $this->_tpl_vars['lang']['features_tags']; ?>
</label>
	<div class="right">
	<?php $_from = $this->_tpl_vars['data']['tags']['features']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['t']):
?><?php echo $this->_tpl_vars['t']; ?>
, <?php endforeach; endif; unset($_from); ?>
    </div>	
  </div>
	<div class="input-group">
       <label><?php echo $this->_tpl_vars['lang']['want_to_be_freefile']; ?>
:</label>
       <div class="inputs">
	   <?php if ($_POST['free_request'] == 'true'): ?>
	    <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; ?>	
		<input type="hidden" name="free_request" value="<?php echo $_POST['free_request']; ?>
" />
       </div>
    </div>
    <?php if ($_POST['free_request'] == 'true'): ?>
	 <div class="input-group">
        <label for="freefile"><?php echo $this->_tpl_vars['lang']['free_file']; ?>
?</label>
        <div class="inputs">
           <input class="input big" id="freefile" type="checkbox" name="free_file" value="true" <?php if ($_POST['free_file'] == 'true'): ?>checked="checked"<?php endif; ?> /> <?php echo $this->_tpl_vars['lang']['yes']; ?>
	
        </div>
     </div>
	<?php endif; ?>
	 <div class="input-group">
        <label for="datepick"><?php echo $this->_tpl_vars['lang']['weekly_features_to']; ?>
</label>
        <div class="inputs">
           <input class="input big" type="text" id="datepick" name="weekly_to" value="<?php echo ((is_array($_tmp=$_POST['weekly_to'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /> 
        </div>
     </div>
	 <div class="input-group">
        <label for="price"><?php echo $this->_tpl_vars['lang']['price']; ?>
 <?php echo $this->_tpl_vars['currency']['symbol']; ?>
</label>
        <div class="inputs">
           <input class="input big" id="price" type="text" name="price" value="<?php echo ((is_array($_tmp=$_POST['price'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" /> 
        </div>
     </div>
    <div class="form-submit">
       <button type="submit" name="edit" class="btn-icon upload"><?php echo $this->_tpl_vars['lang']['edit']; ?>
</button>
    </div>
	</form>
    </div>
  </div>
    </div>
  </div>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['data_server']; ?>
admin/js/jquery.datepick.pack.js"></script>
<script type="text/javascript" src="<?php echo $this->_tpl_vars['data_server']; ?>
admin/js/jquery.datepick-en-GB.js"></script> 
<?php echo '
<script type="text/javascript">
$(document).ready(function(){
	Administry.dateInput(\'#datepick\'); 
});
</script>
'; ?>
	