<?php /* Smarty version Smarty-3.1.15, created on 2015-05-08 14:06:37
         compiled from "/home/hushdogcafe/public_html/cube/admin/skins/default/templates/products.manufacturers.php" */ ?>
<?php /*%%SmartyHeaderCode:251690756554c526d197211-74743801%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '3bdebd8aea8ec80e18e9c013e4e1ff530d28e2ca' => 
    array (
      0 => '/home/hushdogcafe/public_html/cube/admin/skins/default/templates/products.manufacturers.php',
      1 => 1429684646,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '251690756554c526d197211-74743801',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'VAL_SELF' => 0,
    'DISPLAY_LIST' => 0,
    'LANG' => 0,
    'MANUFACTURERS' => 0,
    'manufacturer' => 0,
    'TOTAL_RESULTS' => 0,
    'PAGINATION' => 0,
    'EDIT' => 0,
    'DISPLAY_FORM' => 0,
    'SESSION_TOKEN' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_554c526d284ed8_78023982',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_554c526d284ed8_78023982')) {function content_554c526d284ed8_78023982($_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_LIST']->value) {?>
  <div id="manufacturers" class="tab_content">
	<h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['title_manufacturer'];?>
</h3>
	<?php if (isset($_smarty_tpl->tpl_vars['MANUFACTURERS']->value)) {?>
	<table>
	  <thead>
		<tr>
		  <td width="250"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['manufacturer'];?>
</td>
		  <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['action'];?>
</td>
		</tr>
	  </thead>
	  <tbody>
		<?php  $_smarty_tpl->tpl_vars['manufacturer'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['manufacturer']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['MANUFACTURERS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['manufacturer']->key => $_smarty_tpl->tpl_vars['manufacturer']->value) {
$_smarty_tpl->tpl_vars['manufacturer']->_loop = true;
?>
		<tr>
		  <td><?php echo $_smarty_tpl->tpl_vars['manufacturer']->value['name'];?>
</td>
		  <td>
	    	<a href="?_g=products&node=manufacturers&edit=<?php echo $_smarty_tpl->tpl_vars['manufacturer']->value['id'];?>
#add-edit" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['edit'];?>
"><i class="fa fa-pencil-square-o" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['edit'];?>
"></i></a>
	    	<a href="?_g=products&node=manufacturers&delete=<?php echo $_smarty_tpl->tpl_vars['manufacturer']->value['id'];?>
" class="delete" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['notification']['confirm_delete'];?>
"><i class="fa fa-trash" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['delete'];?>
"></i></a>
		  </td>
		</tr>
		<?php } ?>
	  </tbody>
	</table>
	<div class="pagination"><span><?php echo $_smarty_tpl->tpl_vars['TOTAL_RESULTS']->value;?>
</span><?php echo $_smarty_tpl->tpl_vars['PAGINATION']->value;?>
</div>
	<?php } else { ?>
	<p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['error_manufacturer_none'];?>
</p>
	<?php }?>
  </div>
  <div id="manu_add" class="tab_content">
	<h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['title_manufacturer_add'];?>
</h3>
	<fieldset><legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['title_manufacturer_add'];?>
</legend>
		<div><label for="manu_name"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['manufacturer'];?>
</label><span><input type="text" class="textbox required" id="manu_name" name="manufacturer[name]" value="<?php echo $_smarty_tpl->tpl_vars['EDIT']->value['name'];?>
"></span></div>
		<div><label for="manu_site"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['url'];?>
</label><span><input type="text" class="textbox" id="manu_site" name="manufacturer[URL]" value="<?php echo $_smarty_tpl->tpl_vars['EDIT']->value['URL'];?>
"></span></div>
	</fieldset>
	
	<?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="hidden" name="previous-tab" id="previous-tab" value="">
	<input type="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['submit'];?>
" class="submit">
  </div>
  </div>

  <?php }?>

  <?php if ($_smarty_tpl->tpl_vars['DISPLAY_FORM']->value) {?>
  <div id="manu_edit" class="tab_content">
	<h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['title_manufacturer_edit'];?>
</h3>
	<fieldset><legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['title_manufacturer_edit'];?>
</legend>
		<div><label for="manu_name"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['catalogue']['manufacturer'];?>
</label><span><input type="text" class="textbox required" id="manu_name" name="manufacturer[name]" value="<?php echo $_smarty_tpl->tpl_vars['EDIT']->value['name'];?>
"></span></div>
		<div><label for="manu_site"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['url'];?>
</label><span><input type="text" class="textbox" id="manu_site" name="manufacturer[URL]" value="<?php echo $_smarty_tpl->tpl_vars['EDIT']->value['URL'];?>
"></span></div>
	</fieldset>
	<div class="form_control">
	<input type="hidden" name="previous-tab" id="previous-tab" value="">
	<input type="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['submit'];?>
" class="submit">
  </div>
  </div>

  <?php }?>
  <input type="hidden" name="token" value="<?php echo $_smarty_tpl->tpl_vars['SESSION_TOKEN']->value;?>
">
</form><?php }} ?>
