<?php /* Smarty version 2.6.22, created on 2014-03-09 08:06:22
         compiled from /home/hamyarwp/public_html/market/zipmarket/apps/categories/admin/add.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/categories/admin/add.html', 4, false),)), $this); ?>
<div class="page-info">
    <div class="container">
      <div id="breadcrumbs">
        <a href="/admin" class="first">Home</a> \ <?php if (isset ( $this->_tpl_vars['pdata'] )): ?><a href="?m=<?php echo $_GET['m']; ?>
&c=list">Categories</a> \ <a href="?m=<?php echo $_GET['m']; ?>
&c=list&sub_of=<?php echo $_GET['sub_of']; ?>
&p=<?php echo $_GET['p']; ?>
"><?php echo $this->_tpl_vars['pdata']['name']; ?>
</a> \ <a href="#"><?php echo ((is_array($_tmp=$_POST['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</a><?php else: ?><a href="?m=<?php echo $_GET['m']; ?>
&c=list">Categories</a> \<?php endif; ?> 
      </div>
      <h1 class="page-title"><?php echo $this->_tpl_vars['title']; ?>
</h1>
    </div>
  </div>
    <div id="content">
      <div class="container">
    <div class="content" style="width:984px;">
   <div class="content-box">
	<form action="" class="horizontal-form item-form disable-on-submit" action="" method="post" enctype="multipart/form-data">
	<?php if ($_GET['c'] == 'edit'): ?>
	 <div class="input-group">
        <label for="name"><?php echo $this->_tpl_vars['lang']['subcategory_of']; ?>
</label>
        <div class="inputs">
			<select name="sub_of">
				<option value="0"><?php echo $this->_tpl_vars['lang']['none']; ?>
</option>
				<?php echo $this->_tpl_vars['select']; ?>

			</select>
			<input type="hidden" name="sub_of_old" value="<?php if (isset ( $_POST['sub_of_old'] )): ?><?php echo $_POST['sub_of_old']; ?>
<?php else: ?><?php echo $_POST['sub_of']; ?>
<?php endif; ?>" />
			<?php if (isset ( $this->_tpl_vars['error']['sub'] )): ?>
				<small><?php echo $this->_tpl_vars['error']['sub']; ?>
</small>
			<?php endif; ?>
        </div>
    </div>
	<?php endif; ?>
	 <div class="input-group">
        <label for="name"><?php echo $this->_tpl_vars['lang']['name']; ?>
</label>
        <div class="inputs">
          <input id="name" type="text" name="name" value="<?php echo ((is_array($_tmp=$_POST['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
			<?php if (isset ( $this->_tpl_vars['error']['name'] )): ?>
				<small><?php echo $this->_tpl_vars['error']['name']; ?>
</small>
			<?php endif; ?>
        </div>
    </div>
	 <div class="input-group">
        <label for="meta_title"><?php echo $this->_tpl_vars['lang']['meta_title']; ?>
</label>
        <div class="inputs">
         <input id="meta_title" type="text" name="meta_title" value="<?php echo ((is_array($_tmp=$_POST['meta_title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
        </div>
    </div>
	 <div class="input-group">
        <label for="meta_keywords"><?php echo $this->_tpl_vars['lang']['meta_keywords']; ?>
</label>
        <div class="inputs">
         <input type="text" id="meta_keywords" name="meta_keywords" value="<?php echo ((is_array($_tmp=$_POST['meta_keywords'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
        </div>
    </div>
	 <div class="input-group">
        <label for="meta_description"><?php echo $this->_tpl_vars['lang']['meta_description']; ?>
</label>
        <div class="inputs">
         <input type="text" id="meta_description" name="meta_description" value="<?php echo ((is_array($_tmp=$_POST['meta_description'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
        </div>
    </div>
	 <div class="input-group">
        <label for="visible"><?php echo $this->_tpl_vars['lang']['visible']; ?>
</label>
        <div class="inputs">
         	<input type="checkbox" name="visible" value="true" id="visible" class="checkbox" <?php if ($_POST['visible'] == 'true'): ?>checked="checked"<?php endif; ?> /> <?php echo $this->_tpl_vars['lang']['yes']; ?>

        </div>
    </div>
    <div class="form-submit">
	<?php if ($_GET['c'] == 'edit'): ?>
     <button type="submit" name="edit" class="btn-icon submit auto-width"><?php echo $this->_tpl_vars['lang']['edit']; ?>
</button>
	 <?php else: ?>
     <button type="submit" name="add" class="btn-icon submit auto-width"><?php echo $this->_tpl_vars['lang']['add']; ?>
</button>
	<?php endif; ?>
    </div>
	</form>
    </div>
   </div>
  </div>
 </div>