<?php /* Smarty version 2.6.22, created on 2014-02-12 23:36:02
         compiled from /home/joomaria/public_html/zipmarket/apps/attributes/admin/add.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', '/home/joomaria/public_html/zipmarket/apps/attributes/admin/add.html', 17, false),)), $this); ?>
<div class="page-info">
    <div class="container">
      <div id="breadcrumbs">
        <a href="/admin" class="first">Home</a> \ <a href="?m=<?php echo $_GET['m']; ?>
&c=list&p=<?php echo $_GET['p']; ?>
">Attributes</a> \
      </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">
	 <div class="input-group">
        <label for="name"><?php echo $this->_tpl_vars['lang']['name']; ?>
</label>
        <div class="inputs">
			<input type="text" name="name" id="name" required="true" 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'] )): ?>
				<span class="validate_error"><?php echo $this->_tpl_vars['error']['name']; ?>
</span>
			<?php endif; ?>
        </div>
    </div>
	 <div class="input-group">
        <label for="type"><?php echo $this->_tpl_vars['lang']['type']; ?>
</label>
        <div class="inputs">
			<select id="type" name="type">
				<option value=""></option>
				<option value="select" <?php if ($_POST['type'] == 'select'): ?>selected="selected"<?php endif; ?>>Select box</option>
				<option value="multiple" <?php if ($_POST['type'] == 'multiple'): ?>selected="selected"<?php endif; ?>>Multiple</option>
				<option value="check" <?php if ($_POST['type'] == 'check'): ?>selected="selected"<?php endif; ?>>Checkbox</option>
				<option value="radio" <?php if ($_POST['type'] == 'radio'): ?>selected="selected"<?php endif; ?>>Radio</option>
				<option value="input" <?php if ($_POST['type'] == 'input'): ?>selected="selected"<?php endif; ?>>Input</option>
			</select>
			<?php if (isset ( $this->_tpl_vars['error']['select'] )): ?>
				<small><?php echo $this->_tpl_vars['error']['select']; ?>
</small>>
			<?php endif; ?>
        </div>
    </div>
    <?php if ($this->_tpl_vars['categories']): ?>
	 <div class="input-group">
        <label for="name"><?php echo $this->_tpl_vars['lang']['categories']; ?>
</label>
        <div class="inputs">
			<?php $_from = $this->_tpl_vars['categories']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['c']):
?>
				<input type="checkbox" name="category[<?php echo $this->_tpl_vars['c']['id']; ?>
]" value="<?php echo $this->_tpl_vars['c']['id']; ?>
" class="checkbox" <?php if (isset ( $_POST['category'][$this->_tpl_vars['c']['id']] )): ?>checked="checked"<?php endif; ?> /> <?php echo $this->_tpl_vars['c']['name']; ?>
<br />
			<?php endforeach; endif; unset($_from); ?>
        </div>
    </div>
    <?php endif; ?>
	 <div class="input-group">
        <label for="visible"><?php echo $this->_tpl_vars['lang']['visible']; ?>
</label>
        <div class="inputs">
			<input type="checkbox" name="visible" id="visible" value="true" class="checkbox" <?php if ($_POST['visible'] == 'true'): ?>checked="checked"<?php endif; ?> /> <?php echo $this->_tpl_vars['lang']['yes']; ?>

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