<?php /* Smarty version 2.6.22, created on 2014-02-02 23:03:11
         compiled from D:/Program+Files/Ampps/www/zipmarket%5Capps%5Cqnews%5Cadmin/add.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\\qnews\\admin/add.html', 6, 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']; ?>
">Quick News</a> \
      </div>
      <h1 class="page-title"><?php echo $this->_tpl_vars['title']; ?>
 <?php echo ((is_array($_tmp=$_POST['name'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</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="description">Description</label>
        <div class="inputs">
			<input type="text" name="description" id="description" required="true" value="<?php echo ((is_array($_tmp=$_POST['description'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" >
			<?php if (isset ( $this->_tpl_vars['error']['description'] )): ?>
				<small><?php echo $this->_tpl_vars['error']['description']; ?>
</small>
			<?php endif; ?>
        </div>
    </div>
	 <div class="input-group">
        <label for="qnews_url">URL</label>
        <div class="inputs">
			<input type="text" name="url" id="qnews_url" required="true" value="<?php echo ((is_array($_tmp=$_POST['url'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" >
        </div>
    </div>
	 <div class="input-group">
        <label for="qnews_url"><?php echo $this->_tpl_vars['lang']['photo']; ?>
</label>
        <div class="inputs">
			<input type="file" name="photo" />
			<?php if ($_POST['photo'] != ''): ?>
				<br />
				<img src="<?php echo $this->_tpl_vars['data_server']; ?>
uploads/qnews/260x140/<?php echo $_POST['photo']; ?>
" alt="" />
				<input type="checkbox" name="deletePhoto" value="yes" /> <?php echo $this->_tpl_vars['lang']['delete']; ?>

			<?php endif; ?>
			<?php if (isset ( $this->_tpl_vars['error']['photo'] )): ?>
				<small><?php echo $this->_tpl_vars['error']['photo']; ?>
</small>
			<?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" id="visible" name="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">
	<?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; ?>
	</div>
	</form>
    </div>
   </div>
  </div>
 </div>