<?php /* Smarty version Smarty-3.1.15, created on 2015-05-08 14:05:12
         compiled from "/home/hushdogcafe/public_html/cube/admin/skins/default/templates/products.import.php" */ ?>
<?php /*%%SmartyHeaderCode:166954452554c5218a564e3-60040793%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'e1b8fea1f1796258b3f96933cbd986c046dc8c3d' => 
    array (
      0 => '/home/hushdogcafe/public_html/cube/admin/skins/default/templates/products.import.php',
      1 => 1429684646,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '166954452554c5218a564e3-60040793',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'VAL_SELF' => 0,
    'DISPLAY_FORM' => 0,
    'LANG' => 0,
    'REVERTS' => 0,
    'revert' => 0,
    'DISPLAY_CONFIRMATION' => 0,
    'EXAMPLES' => 0,
    'example' => 0,
    'MAPS' => 0,
    'map' => 0,
    'COLUMNS' => 0,
    'column' => 0,
    'IMPORT' => 0,
    'SESSION_TOKEN' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_554c5218b7b9e7_21852729',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_554c5218b7b9e7_21852729')) {function content_554c5218b7b9e7_21852729($_smarty_tpl) {?>
<form action="<?php echo $_smarty_tpl->tpl_vars['VAL_SELF']->value;?>
" method="post" enctype="multipart/form-data">
<?php if ($_smarty_tpl->tpl_vars['DISPLAY_FORM']->value) {?>
  <div id="general" class="tab_content">
  <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['title_import'];?>
</h3>
	<fieldset><legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['title_import_csv'];?>
</legend>
	  <div><label for="import_source"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['import_source'];?>
</label><span><input type="file" name="source" id="import_source"></span></div>
	  <div><label for="import_format"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['import_format'];?>
</label><span><select name="format" id="import_format">
		<option value=""><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['unknown_format'];?>
</option>
	  </select></span></div>
	  <div><label for="opt_delimiter"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['delimiter'];?>
</label><span><select name="delimiter" id="opt_delimiter">
		<option value=",">,</option>
		<option value=";">;</option>
		<option value="tab"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['delimiter_tab'];?>
</option>
	  </select></span></div>
	</fieldset>
	<input type="hidden" name="upload" value="true">
  </div>
  <?php if (isset($_smarty_tpl->tpl_vars['REVERTS']->value)) {?>
  <div id="revert" class="tab_content">
	<fieldset><legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['title_import_delete_previous'];?>
</legend>
	  <table>
	  <?php  $_smarty_tpl->tpl_vars['revert'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['revert']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['REVERTS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['revert']->key => $_smarty_tpl->tpl_vars['revert']->value) {
$_smarty_tpl->tpl_vars['revert']->_loop = true;
?>
	  <tr>
	     <td><input type="checkbox" name="revert[]" value="<?php echo $_smarty_tpl->tpl_vars['revert']->value['date_added'];?>
"></td>
	     <td><span class="actions"><?php echo $_smarty_tpl->tpl_vars['revert']->value['Count'];?>
 <?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['imported_products'];?>
</span></td>
	     <td><?php echo $_smarty_tpl->tpl_vars['revert']->value['date_added_fuzzy'];?>
</td>
	  </tr>
	  <?php } ?>
	  </table>
	</fieldset>
  </div>
  <?php }?>
<?php }?>

  <?php if (isset($_smarty_tpl->tpl_vars['DISPLAY_CONFIRMATION']->value)) {?>
  <div id="general" class="tab_content">
  <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['title_import'];?>
</h3>
	<?php if (isset($_smarty_tpl->tpl_vars['EXAMPLES']->value)) {?>
	<fieldset><legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['title_data_example'];?>
</legend>
	  <?php  $_smarty_tpl->tpl_vars['example'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['example']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['EXAMPLES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['example']->key => $_smarty_tpl->tpl_vars['example']->value) {
$_smarty_tpl->tpl_vars['example']->_loop = true;
?>
	  <div><strong><?php echo $_smarty_tpl->tpl_vars['example']->value['column'];?>
:</strong> <?php echo $_smarty_tpl->tpl_vars['example']->value['value'];?>
</div>
	  <?php } ?>
	</fieldset>
	<fieldset><legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['title_import_options'];?>
</legend>
	  <div><label for="opt_truncate"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['import_replace_existing'];?>
</label><span><input type="checkbox" name="option[truncate]" id="opt_truncate" value="1"></span></div>
	</fieldset>
	<?php }?>

	<?php if (isset($_smarty_tpl->tpl_vars['MAPS']->value)) {?>
	<fieldset>
	  <?php  $_smarty_tpl->tpl_vars['map'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['map']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['MAPS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['map']->key => $_smarty_tpl->tpl_vars['map']->value) {
$_smarty_tpl->tpl_vars['map']->_loop = true;
?>
	  <div rel="<?php echo $_smarty_tpl->tpl_vars['map']->value['offset'];?>
">
		<label><?php echo $_smarty_tpl->tpl_vars['map']->value['example'];?>
</label>
		<span>
		  <select name="map[<?php echo $_smarty_tpl->tpl_vars['map']->value['offset'];?>
]" class="unique">
			<option value=""><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['import_column_ignore'];?>
</option>
			<?php  $_smarty_tpl->tpl_vars['column'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['column']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['COLUMNS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['column']->key => $_smarty_tpl->tpl_vars['column']->value) {
$_smarty_tpl->tpl_vars['column']->_loop = true;
?><option value="<?php echo $_smarty_tpl->tpl_vars['column']->value['column'];?>
"><?php echo $_smarty_tpl->tpl_vars['column']->value['title'];?>
</option><?php } ?>
		  </select>
		</span>
	  </div>
	  <?php } ?>
	</fieldset>
	<fieldset><legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['title_import_options'];?>
</legend>
	  <div><label for="opt_headers"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['import_csv_headers'];?>
</label><span><input type="checkbox" name="option[headers]" id="opt_headers" value="1"></span></div>
	  <div><label for="opt_truncate"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['import_replace_existing'];?>
</label><span><input type="checkbox" name="option[truncate]" id="opt_truncate" value="1"></span></div>
	  <input type="hidden" name="delimiter" value="<?php echo $_smarty_tpl->tpl_vars['IMPORT']->value['delimiter'];?>
">
	</fieldset>
	<?php }?>

	<input type="hidden" name="process" value="<?php echo $_smarty_tpl->tpl_vars['IMPORT']->value['format'];?>
">
  </div>
  <?php }?>
  
  <?php echo $_smarty_tpl->getSubTemplate ('templates/element.hook_form_content.php', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>


  <div class="form_control">
	<input type="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['save'];?>
">
  </div>
  <input type="hidden" name="token" value="<?php echo $_smarty_tpl->tpl_vars['SESSION_TOKEN']->value;?>
">
</form><?php }} ?>
