<?php /* Smarty version Smarty-3.1.15, created on 2015-05-08 14:04:15
         compiled from "/home/hushdogcafe/public_html/cube/admin/skins/default/templates/documents.email.php" */ ?>
<?php /*%%SmartyHeaderCode:880490146554c51df3ba397-00240070%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '3aa05970823d8e4ec86d366446b6c7c526f6fb26' => 
    array (
      0 => '/home/hushdogcafe/public_html/cube/admin/skins/default/templates/documents.email.php',
      1 => 1429684646,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '880490146554c51df3ba397-00240070',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'VAL_SELF' => 0,
    'DISPLAY_EMAIL_LIST' => 0,
    'LANG' => 0,
    'EMAIL_CONTENTS' => 0,
    'content' => 0,
    'translation' => 0,
    'EMAIL_TEMPLATES' => 0,
    'template' => 0,
    'EMAIL' => 0,
    'TEMPLATE_CREATE' => 0,
    'EMAIL_IMPORT' => 0,
    'import' => 0,
    'EMAIL_EXPORTS' => 0,
    'export' => 0,
    'DISPLAY_CONTENT_FORM' => 0,
    'ADD_EDIT_CONTENT' => 0,
    'LANGUAGES' => 0,
    'CONTENT' => 0,
    'language' => 0,
    'CONTENT_MACROS' => 0,
    'macro' => 0,
    'DISPLAY_TEMPLATE_FORM' => 0,
    'ADD_EDIT_TEMPLATE' => 0,
    'TEMPLATE' => 0,
    'TEMPLATE_MACROS' => 0,
    'DISPLAY_DELETE_LINK' => 0,
    'LINK_DELETE' => 0,
    'SESSION_TOKEN' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_554c51df818e44_30864059',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_554c51df818e44_30864059')) {function content_554c51df818e44_30864059($_smarty_tpl) {?>
<form action="<?php echo $_smarty_tpl->tpl_vars['VAL_SELF']->value;?>
" method="post" enctype="multipart/form-data">
  <?php if (isset($_smarty_tpl->tpl_vars['DISPLAY_EMAIL_LIST']->value)) {?>
  <div id="email_contents" class="tab_content">
	<h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['title_contents'];?>
</h3>
	<table>
	  <thead>
		<tr>
		  <td width="300"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['email_type'];?>
</td>
		  <td colspan="2"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['translate']['title_translations'];?>
</td>
		</tr>
	  </thead>
	  <tbody>
		<?php  $_smarty_tpl->tpl_vars['content'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['content']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['EMAIL_CONTENTS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['content']->key => $_smarty_tpl->tpl_vars['content']->value) {
$_smarty_tpl->tpl_vars['content']->_loop = true;
?>
		<tr>
		  <td><strong><?php echo $_smarty_tpl->tpl_vars['content']->value['type'];?>
</strong></td>
		  <td align="center">
		  	<?php if (isset($_smarty_tpl->tpl_vars['content']->value['translations'])) {?>
			<?php  $_smarty_tpl->tpl_vars['translation'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['translation']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['content']->value['translations']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['translation']->key => $_smarty_tpl->tpl_vars['translation']->value) {
$_smarty_tpl->tpl_vars['translation']->_loop = true;
?>
			<a href="<?php echo $_smarty_tpl->tpl_vars['translation']->value['edit'];?>
"><img src="language/flags/<?php echo $_smarty_tpl->tpl_vars['translation']->value['language'];?>
.png" alt="<?php echo $_smarty_tpl->tpl_vars['translation']->value['language'];?>
"></a>
			<?php } ?>
			<?php } else { ?>
			<?php echo $_smarty_tpl->tpl_vars['LANG']->value['translate']['trans_none'];?>

			<?php }?>
		  </td>
		  <td width="30" align="center">
			<a href="<?php echo $_smarty_tpl->tpl_vars['content']->value['translate'];?>
" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['translate']['trans_add'];?>
"><i class="fa fa-plus-circle" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['translate']['trans_add'];?>
"></i></a>
		  </td>
		</tr>
		<?php } ?>
	  </tbody>
	</table>
  </div>

  <div id="email_templates" class="tab_content">
	<h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['title_templates'];?>
</h3>
	  <fieldset>
	  <?php if (isset($_smarty_tpl->tpl_vars['EMAIL_TEMPLATES']->value)) {?>
	  <table width="70%">
	  <?php  $_smarty_tpl->tpl_vars['template'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['template']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['EMAIL_TEMPLATES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['template']->key => $_smarty_tpl->tpl_vars['template']->value) {
$_smarty_tpl->tpl_vars['template']->_loop = true;
?>
	  <tr>
		<td width="10"><input type="hidden" name="template_default[<?php echo $_smarty_tpl->tpl_vars['template']->value['template_id'];?>
]" id="template_default_<?php echo $_smarty_tpl->tpl_vars['template']->value['template_id'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['template']->value['template_default'];?>
" class="toggle unique"></td>
		<td><a href="<?php echo $_smarty_tpl->tpl_vars['template']->value['edit'];?>
"><?php echo $_smarty_tpl->tpl_vars['template']->value['title'];?>
</a></td>
		<td width="10"><a href="<?php echo $_smarty_tpl->tpl_vars['template']->value['clone'];?>
"><i class="fa fa-files-o" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['clone'];?>
"></i></a></td>
		<td width="10"><a href="<?php echo $_smarty_tpl->tpl_vars['template']->value['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></td>
		<td width="10"><a href="<?php echo $_smarty_tpl->tpl_vars['template']->value['delete'];?>
" 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>
		</td>
	  </tr>
	  <?php } ?>
	  </table>
	  <?php } else { ?>
	  <div><?php echo $_smarty_tpl->tpl_vars['EMAIL']->value['email']['templates_none'];?>
</div>
	  <?php }?>
	  </fieldset>
	<div><a href="<?php echo $_smarty_tpl->tpl_vars['TEMPLATE_CREATE']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['template_create'];?>
</a></div>
  </div>

  <div id="email_import" class="tab_content">
	<?php if (isset($_smarty_tpl->tpl_vars['EMAIL_IMPORT']->value)) {?>
	<h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['title_content_manage'];?>
</h3>

	<fieldset><legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['import'];?>
</legend>
	  <p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['help_email_import'];?>
</p>
	  <div>
		<select name="import">
		  <option value=""><?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['please_select'];?>
</option>
		  <?php  $_smarty_tpl->tpl_vars['import'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['import']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['EMAIL_IMPORT']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['import']->key => $_smarty_tpl->tpl_vars['import']->value) {
$_smarty_tpl->tpl_vars['import']->_loop = true;
?><option value="<?php echo $_smarty_tpl->tpl_vars['import']->value['file'];?>
"><?php echo $_smarty_tpl->tpl_vars['import']->value['code'];?>
</option><?php } ?>
		</select>
	  </div>
	</fieldset>
	<?php }?>

	<?php if (isset($_smarty_tpl->tpl_vars['EMAIL_EXPORTS']->value)) {?>
	<fieldset><legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['export'];?>
</legend>
	  <p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['help_email_export'];?>
</p>
	  <div>
		<select name="export">
		  <option value=""><?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['please_select'];?>
</option>
		  <?php  $_smarty_tpl->tpl_vars['export'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['export']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['EMAIL_EXPORTS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['export']->key => $_smarty_tpl->tpl_vars['export']->value) {
$_smarty_tpl->tpl_vars['export']->_loop = true;
?>
		  <option value="<?php echo $_smarty_tpl->tpl_vars['export']->value;?>
"><?php echo $_smarty_tpl->tpl_vars['export']->value;?>
</option>
		  <?php } ?>
		  </select>
		<input type="checkbox" name="export_compress" value="1" checked="checked"> <?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['export_compress'];?>

	  </div>
	</fieldset>
	<?php }?>
  </div>
  <?php }?>

  <?php if (isset($_smarty_tpl->tpl_vars['DISPLAY_CONTENT_FORM']->value)) {?>
  <div id="general" class="tab_content">
	<h3><?php echo $_smarty_tpl->tpl_vars['ADD_EDIT_CONTENT']->value;?>
</h3>
	<?php if ($_smarty_tpl->tpl_vars['LANGUAGES']->value) {?>
	<fieldset>
	  <div><label for="content_subject"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['subject'];?>
</label><span><input type="text" name="content[subject]" id="content_subject" value="<?php echo $_smarty_tpl->tpl_vars['CONTENT']->value['subject'];?>
" class="textbox"></span></div>
	  <div><label for="content_language"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['language'];?>
</label><span><select name="content[language]" id="content_language" class="textbox">
	  <?php  $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['language']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['LANGUAGES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
$_smarty_tpl->tpl_vars['language']->_loop = true;
?><option value="<?php echo $_smarty_tpl->tpl_vars['language']->value['code'];?>
"<?php echo $_smarty_tpl->tpl_vars['language']->value['selected'];?>
><?php echo $_smarty_tpl->tpl_vars['language']->value['title'];?>
</option><?php } ?>
	  </select></span></div>
	</fieldset>
	<?php } else { ?>
	<p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['install_master_lang'];?>
</p> 
	<?php }?>
  </div>
  <div id="email_html" class="tab_content">
    <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['title_content_html'];?>
</h3>
	<?php if ($_smarty_tpl->tpl_vars['LANGUAGES']->value) {?>
	<textarea name="content[content_html]" id="content_html" class="textbox fck"><?php echo $_smarty_tpl->tpl_vars['CONTENT']->value['content_html'];?>
</textarea>
  	<script type="text/javascript">
	  //<![CDATA[
		CKEDITOR.replace( 'content_html',
			{
				fullPage : true
			});
	  //]]>
	</script>

  	<h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['title_macros'];?>
</h3>
  	<p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['important'];?>
</p>
  	<table>
  		<thead>
  		  <tr>
  			<td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['email_macro'];?>
</td>
  			<td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['description'];?>
</td>
  		  </tr>
  		</thead>
  		<tbody>
		  <?php  $_smarty_tpl->tpl_vars['macro'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['macro']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['CONTENT_MACROS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['macro']->key => $_smarty_tpl->tpl_vars['macro']->value) {
$_smarty_tpl->tpl_vars['macro']->_loop = true;
?>
  		  <tr>
  			<td><?php echo $_smarty_tpl->tpl_vars['macro']->value['name'];?>
</td>
  			<td><?php echo $_smarty_tpl->tpl_vars['macro']->value['description'];?>
</td>
  		  </tr>
  		  <?php } ?>
  		</tbody>
  	</table>
  	<?php } else { ?>
	<p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['install_master_lang'];?>
</p> 
	<?php }?>
  </div>
  <div id="email_text" class="tab_content">
  	<h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['title_content_text'];?>
</h3>
  	<?php if ($_smarty_tpl->tpl_vars['LANGUAGES']->value) {?>
	<textarea name="content[content_text]" id="content_text" class="textbox" style="width: 100%; height: 480px"><?php echo $_smarty_tpl->tpl_vars['CONTENT']->value['content_text'];?>
</textarea>
  	<h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['title_macros'];?>
</h3>
  	<p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['important'];?>
</p>
  	<table>
  		<thead>
  		  <tr>
  			<td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['email_macro'];?>
</td>
  			<td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['description'];?>
</td>
  		  </tr>
  		</thead>
  		<tbody>
		  <?php  $_smarty_tpl->tpl_vars['macro'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['macro']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['CONTENT_MACROS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['macro']->key => $_smarty_tpl->tpl_vars['macro']->value) {
$_smarty_tpl->tpl_vars['macro']->_loop = true;
?>
  		  <tr>
  			<td><?php echo $_smarty_tpl->tpl_vars['macro']->value['name'];?>
</td>
  			<td><?php echo $_smarty_tpl->tpl_vars['macro']->value['description'];?>
</td>
  		  </tr>
  		  <?php } ?>
  		</tbody>
  	</table>
  	<?php } else { ?>
	<p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['install_master_lang'];?>
</p> 
	<?php }?>
  </div>
  <input type="hidden" name="content[content_type]" value="<?php echo $_smarty_tpl->tpl_vars['CONTENT']->value['content_type'];?>
">
  <input type="hidden" name="content[content_id]" value="<?php echo $_smarty_tpl->tpl_vars['CONTENT']->value['content_id'];?>
">
  <?php }?>

  <?php if (isset($_smarty_tpl->tpl_vars['DISPLAY_TEMPLATE_FORM']->value)) {?>
  <div id="general" class="tab_content">
  	<h3><?php echo $_smarty_tpl->tpl_vars['ADD_EDIT_TEMPLATE']->value;?>
</h3>
  	<fieldset>
  	<div><label for="template_desc"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['template_name'];?>
</label><span><input type="text" name="template[title]" id="template_desc" value="<?php echo $_smarty_tpl->tpl_vars['TEMPLATE']->value['title'];?>
" class="textbox required"></span></div>
  	</fieldset>
  </div>
  <div id="email_html" class="tab_content">
    <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['title_content_html'];?>
</h3>
	<textarea name="template[content_html]" id="template_html" class="textbox fck fck-full"><?php echo $_smarty_tpl->tpl_vars['TEMPLATE']->value['content_html'];?>
</textarea>
	<script type="text/javascript">
	  //<![CDATA[
		CKEDITOR.replace( 'template_html',
			{
				fullPage : true
			});
	  //]]>
	</script>
  	<h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['title_macros'];?>
</h3>
  	<table>
  		<thead>
  			<tr>
  				<td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['email_macro'];?>
</td>
  				<td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['description'];?>
</td>
  				<td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['required'];?>
</td>
  			</tr>
  		</thead>

  		<tbody>
		  <?php  $_smarty_tpl->tpl_vars['macro'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['macro']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['TEMPLATE_MACROS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['macro']->key => $_smarty_tpl->tpl_vars['macro']->value) {
$_smarty_tpl->tpl_vars['macro']->_loop = true;
?>
  		  <tr>
  			<td><?php echo $_smarty_tpl->tpl_vars['macro']->value['name'];?>
</td>
  			<td><?php echo $_smarty_tpl->tpl_vars['macro']->value['description'];?>
</td>
  			<td align="center"><?php echo $_smarty_tpl->tpl_vars['macro']->value['required'];?>
</td>
  		  </tr>
  		  <?php } ?>
  		</tbody>
  	</table>
  </div>
  <div id="email_text" class="tab_content">
    <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['title_content_text'];?>
</h3>
	<textarea name="template[content_text]" id="template_text" class="textbox" style="width: 100%; height: 480px"><?php echo $_smarty_tpl->tpl_vars['TEMPLATE']->value['content_text'];?>
</textarea>
  	<h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['title_macros'];?>
</h3>
  	<table>
  		<thead>
		  <tr>
			<td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['email_macro'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['description'];?>
</td>
			<td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['required'];?>
</td>
		  </tr>
  		</thead>
  		<tbody>
		  <?php  $_smarty_tpl->tpl_vars['macro'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['macro']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['TEMPLATE_MACROS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['macro']->key => $_smarty_tpl->tpl_vars['macro']->value) {
$_smarty_tpl->tpl_vars['macro']->_loop = true;
?>
  		  <tr>
  			<td><?php echo $_smarty_tpl->tpl_vars['macro']->value['name'];?>
</td>
  			<td><?php echo $_smarty_tpl->tpl_vars['macro']->value['description'];?>
</td>
  			<td align="center"><?php echo $_smarty_tpl->tpl_vars['macro']->value['required'];?>
</td>
  		  </tr>
  		  <?php } ?>
  		</tbody>
  	</table>
  </div>

  <input type="hidden" name="template[template_id]" value="<?php echo $_smarty_tpl->tpl_vars['TEMPLATE']->value['template_id'];?>
">
  <?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 id="previous-tab" type="hidden" value="" name="previous-tab">
	<input type="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['save'];?>
"><?php if (isset($_smarty_tpl->tpl_vars['DISPLAY_DELETE_LINK']->value)) {?> <a href="<?php echo $_smarty_tpl->tpl_vars['LINK_DELETE']->value;?>
" class="delete" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['notification']['confirm_delete'];?>
"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['delete'];?>
</a><?php }?>
  </div>
  <input type="hidden" name="token" value="<?php echo $_smarty_tpl->tpl_vars['SESSION_TOKEN']->value;?>
">
</form><?php }} ?>
