<?php /* Smarty version 2.6.22, created on 2014-01-30 17:20:27
         compiled from D:/Program+Files/Ampps/www/zipmarket%5Capps%5Csystem%5Cadmin/addBadge.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'D:/Program Files/Ampps/www/zipmarket\\apps\\system\\admin/addBadge.html', 18, false),)), $this); ?>
<div class="page-info">
    <div class="container">
      <div id="breadcrumbs">
        <a href="/admin" class="first">Home</a> \ <a href="/admin/?m=system&c=list">Settings</a> \ <a href="?m=<?php echo $_GET['m']; ?>
&c=badges&type=<?php echo $_GET['type']; ?>
&p=<?php echo $_GET['p']; ?>
">Badges</a> \
      </div>
      <h1 class="page-title"><?php echo $this->_tpl_vars['title']; ?>
</h1>
    </div>
  </div>
    <div id="content">
      <div class="container">
	  <?php echo $this->_tpl_vars['errorMessage']; ?>

    <div class="content" style="width:984px;">
   <div class="content-box">
	<form action="" class="horizontal-form item-form disable-on-submit" method="post">
	 <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>
	<?php if ($this->_tpl_vars['is_from_to']): ?>
	 <div class="input-group">
       <label for="from"><?php echo $this->_tpl_vars['lang']['from']; ?>
</label>
        <div class="inputs">
		  <input id="from" type="text" name="from" value="<?php echo ((is_array($_tmp=$_POST['from'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
">
        </div>
    </div>
		
	 <div class="input-group">
       <label for="too"><?php echo $this->_tpl_vars['lang']['to']; ?>
</label>
        <div class="inputs">
		  <input id="too" type="text" name="to" value="<?php echo ((is_array($_tmp=$_POST['to'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
">
        </div>
    </div>
	<?php endif; ?>	
		
	<?php if ($this->_tpl_vars['types_system']): ?>
	 <div class="input-group">
       <label><?php echo $this->_tpl_vars['lang']['key_for_that_system_badge']; ?>
</label>
        <div class="inputs">
			<select name="sys_key">
			<?php $_from = $this->_tpl_vars['types_system']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['k'] => $this->_tpl_vars['t']):
?>
				<option <?php if ($this->_tpl_vars['k'] == $_POST['sys_key']): ?>selected="selected"<?php endif; ?> value="<?php echo $this->_tpl_vars['k']; ?>
"><?php echo $this->_tpl_vars['t']; ?>
</option>
			<?php endforeach; endif; unset($_from); ?>
			</select>
        </div>
    </div>
	<?php else: ?>
	<input type="hidden" name="sys_key" value="" /> 
	<?php endif; ?>
	 <div class="input-group">
       <label for="photo"><?php echo $this->_tpl_vars['lang']['photo']; ?>
</label>
        <div class="inputs">
			<input type="file" for="photo" name="photo" />
			<?php if ($_POST['photo'] != ''): ?>
				<br /><br />
				<img src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/countries/<?php echo $_POST['photo']; ?>
" alt="" />
				<?php if ($_GET['type'] != 'system'): ?>
				<input type="checkbox" name="deletePhoto" value="yes" /> <?php echo $this->_tpl_vars['lang']['delete']; ?>

				<?php endif; ?>
			<?php endif; ?>
			<?php if (isset ( $this->_tpl_vars['error']['photo'] )): ?>
				<?php echo $this->_tpl_vars['error']['photo']; ?>

			<?php endif; ?>
        </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" id="visible" value="true" class="checkbox" <?php if ($_POST['visible'] == 'true'): ?>checked="checked"<?php endif; ?> /> <?php echo $this->_tpl_vars['lang']['yes']; ?>

        </div>
    </div>
	<div class="form-submit">
     <button id="personal_info_submit_button" class="btn-icon save" type="submit" name="add"><?php echo $this->_tpl_vars['lang']['add']; ?>
</button>
	</div>
	</form>
   </div>
  </div>
 </div>
</div>
	