<?php /* Smarty version Smarty-3.1.15, created on 2015-04-28 11:10:59
         compiled from "/home/hushdogcafe/public_html/cube/admin/skins/default/templates/customers.email.php" */ ?>
<?php /*%%SmartyHeaderCode:1283847784553efa43dc9206-33037599%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '62e4187306d88e63ef8fc9cd4e80e4bfa62546ac' => 
    array (
      0 => '/home/hushdogcafe/public_html/cube/admin/skins/default/templates/customers.email.php',
      1 => 1429684646,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1283847784553efa43dc9206-33037599',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'DISPLAY_FORM' => 0,
    'VAL_SELF' => 0,
    'LANG' => 0,
    'NEWSLETTER' => 0,
    'EXISTING_TEMPLATES' => 0,
    'template' => 0,
    'SESSION_TOKEN' => 0,
    'DISPLAY_LIST' => 0,
    'NEWSLETTERS' => 0,
    'newsletter' => 0,
    'EMAIL_ADDRESS' => 0,
    'SKIN_VARS' => 0,
    'DISPLAY_SEND' => 0,
    'NEWSLETTER_ID' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_553efa441f58b3_23504655',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_553efa441f58b3_23504655')) {function content_553efa441f58b3_23504655($_smarty_tpl) {?>
<?php if (isset($_smarty_tpl->tpl_vars['DISPLAY_FORM']->value)) {?>
<form action="<?php echo $_smarty_tpl->tpl_vars['VAL_SELF']->value;?>
" method="post" enctype="multipart/form-data">
   <div id="general" class="tab_content">
      <fieldset>
         <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['title_overview'];?>
</legend>
         <div><label for="email_subject"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['news_subject'];?>
</label><span><input type="text" name="newsletter[subject]" id="email_subject" class="required textbox" value="<?php echo $_smarty_tpl->tpl_vars['NEWSLETTER']->value['subject'];?>
"></span></div>
         <div><label for="sender_name"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['news_sender_name'];?>
</label><span><input type="text" name="newsletter[sender_name]" id="sender_name" class="textbox" value="<?php echo $_smarty_tpl->tpl_vars['NEWSLETTER']->value['sender_name'];?>
"> (<?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['empty_equals_default'];?>
)</span></div>
         <div><label for="sender_email"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['news_sender_email'];?>
</label><span><input type="text" name="newsletter[sender_email]" id="sender_email" class="textbox" value="<?php echo $_smarty_tpl->tpl_vars['NEWSLETTER']->value['sender_email'];?>
"> (<?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['empty_equals_default'];?>
)</span></div>
         <div>
            <label for="template_id"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['email_template'];?>
</label>
            <span>
               <select name="newsletter[template_id]" id="template_id" class="textbox">
                  <option value="0"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['form']['none'];?>
</option>
                  <?php if (isset($_smarty_tpl->tpl_vars['EXISTING_TEMPLATES']->value)) {?>
                  <?php  $_smarty_tpl->tpl_vars['template'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['template']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['EXISTING_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;
?>
                  <option value="<?php echo $_smarty_tpl->tpl_vars['template']->value['template_id'];?>
"<?php echo $_smarty_tpl->tpl_vars['template']->value['selected'];?>
><?php echo $_smarty_tpl->tpl_vars['template']->value['title'];?>
</option>
                  <?php } ?>
                  <?php }?>
               </select>
            </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>
      <p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['help_content_html'];?>
</p>
      <textarea name="newsletter[content_html]" id="content_html" class="textbox fck"><?php echo $_smarty_tpl->tpl_vars['NEWSLETTER']->value['content_html'];?>
</textarea>
   </div>
   <div id="email_text" class="tab_content">
      <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['title_content_text'];?>
</h3>
      <p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['help_content_text'];?>
</p>
      <textarea name="newsletter[content_text]" id="content_text" class="textbox" style="width: 100%; height: 300px;"><?php echo $_smarty_tpl->tpl_vars['NEWSLETTER']->value['content_text'];?>
</textarea>
   </div>
   <div id="send_test" class="tab_content">
      <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['title_send_test'];?>
</h3>
      <p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['help_test_send'];?>
</p>
      <fieldset>
         <div><label for="email_test"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['test_email'];?>
</label><span><input type="text" name="newsletter[test_email]" id="email_test" class="textbox" value=""> <input type="submit" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['save_send_test'];?>
" class="tiny"></span></div>
      </fieldset>
   </div>
   <?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="newsletter[newsletter_id]" value="<?php echo $_smarty_tpl->tpl_vars['NEWSLETTER']->value['newsletter_id'];?>
">
      <input type="hidden" name="previous-tab" id="previous-tab" value="">
      <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 }?>
<?php if (isset($_smarty_tpl->tpl_vars['DISPLAY_LIST']->value)) {?>
<div id="newsletter-list" class="tab_content">
   <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['title_newsletters'];?>
</h3>
   <?php if (isset($_smarty_tpl->tpl_vars['NEWSLETTERS']->value)) {?>
   <table width="100%">
      <thead>
         <tr>
            <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['news_subject'];?>
</td>
            <td></td>
         </tr>
      </thead>
      <tbody>
         <?php  $_smarty_tpl->tpl_vars['newsletter'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['newsletter']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['NEWSLETTERS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['newsletter']->key => $_smarty_tpl->tpl_vars['newsletter']->value) {
$_smarty_tpl->tpl_vars['newsletter']->_loop = true;
?>
         <tr>
            <td><a href="<?php echo $_smarty_tpl->tpl_vars['newsletter']->value['edit'];?>
" class="edit"><?php echo $_smarty_tpl->tpl_vars['newsletter']->value['subject'];?>
</a></td>
            <td><span class="actions">
               <a href="<?php echo $_smarty_tpl->tpl_vars['newsletter']->value['send'];?>
" class="confirm" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['confirm_send'];?>
"><i class="fa fa-paper-plane" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['send'];?>
"></i></a>
               <a href="<?php echo $_smarty_tpl->tpl_vars['newsletter']->value['edit'];?>
" class="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="<?php echo $_smarty_tpl->tpl_vars['newsletter']->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>
               </span>
            </td>
         </tr>
         <?php } ?>
      </tbody>
   </table>
   <?php } else { ?>
   <p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['news_none'];?>
</p>
   <?php }?>
</div>
<form action="<?php echo $_smarty_tpl->tpl_vars['VAL_SELF']->value;?>
" method="post" enctype="multipart/form-data" target="_self">
   <div id="export_mailing_list" class="tab_content">
      <h3><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['title_export'];?>
</h3>
      <fieldset>
         <legend><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['title_export_settings'];?>
</legend>
         <div>
            <label for="format"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['export_format'];?>
</label>
            <span>
               <input type="text" name="maillist_format" id="format" class="textbox" value="<?php echo $_smarty_tpl->tpl_vars['EMAIL_ADDRESS']->value;?>
" title="e.g. {$EMAIL_ADDRESS} <{$FULL_NAME_SHORT}>">
               <select name="maillist_extension">
                  <option value="txt">.txt</option>
                  <option value="csv">.csv</option>
               </select>
               <input type="submit" class="submit" id="mailing_list_export" value="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['export'];?>
">
            </span>
         </div>
      </fieldset>
      <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['email']['email_macro_available'];?>
</td>
               <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['description'];?>
</td>
            </tr>
         </thead>
         <tbody>
            <tr>
               <td>{$EMAIL_ADDRESS}</td>
               <td align="center"><img src="<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['admin_folder'];?>
/skins/<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['skin_folder'];?>
/images/1.png" alt="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['yes'];?>
"></td>
               <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['user']['email_address'];?>
 <?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['example_email'];?>
</td>
            </tr>
            <tr>
               <td>{$FULL_NAME_LONG}</td>
               <td align="center"><img src="<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['admin_folder'];?>
/skins/<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['skin_folder'];?>
/images/0.png" alt="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['no'];?>
"></td>
               <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['user']['fullname_long'];?>
 <?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['example_fullname_long'];?>
</td>
            </tr>
            <tr>
               <td>{$FULL_NAME_SHORT}</td>
               <td align="center"><img src="<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['admin_folder'];?>
/skins/<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['skin_folder'];?>
/images/0.png" alt="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['no'];?>
"></td>
               <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['user']['fullname_short'];?>
 <?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['example_fullname_short'];?>
</td>
            </tr>
            <tr>
               <td>{$TITLE}</td>
               <td align="center"><img src="<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['admin_folder'];?>
/skins/<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['skin_folder'];?>
/images/0.png" alt="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['no'];?>
"></td>
               <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['user']['title'];?>
 <?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['example_title'];?>
</td>
            </tr>
            <tr>
               <td>{$FIRST_NAME}</td>
               <td align="center"><img src="<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['admin_folder'];?>
/skins/<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['skin_folder'];?>
/images/0.png" alt="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['no'];?>
"></td>
               <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['user']['name_first'];?>
 <?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['example_name_first'];?>
</td>
            </tr>
            <tr>
               <td>{$LAST_NAME}</td>
               <td align="center"><img src="<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['admin_folder'];?>
/skins/<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['skin_folder'];?>
/images/0.png" alt="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['common']['no'];?>
"></td>
               <td><?php echo $_smarty_tpl->tpl_vars['LANG']->value['user']['name_first'];?>
 <?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['example_name_last'];?>
</td>
            </tr>
         </tbody>
      </table>
      <p><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['help_macro'];?>
</p>
      <input type="hidden" name="previous-tab" id="previous-tab" value="">
   </div>
   <input type="hidden" name="token" value="<?php echo $_smarty_tpl->tpl_vars['SESSION_TOKEN']->value;?>
">
</form>
<?php }?>
<?php if (isset($_smarty_tpl->tpl_vars['DISPLAY_SEND']->value)) {?>
<div class="tab_content" id="newsletter_send">
   <div id="progress_wrapper">
      <input type="hidden" id="newsletter_id" value="<?php echo $_smarty_tpl->tpl_vars['NEWSLETTER_ID']->value;?>
">
      <div id="progress_bar"><img src="<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['admin_folder'];?>
/skins/<?php echo $_smarty_tpl->tpl_vars['SKIN_VARS']->value['skin_folder'];?>
/images/loading.gif" alt="" class="newsletter"></div>
   </div>
   <div id="progress_bar_percent"></div>
   <p><a href="?_g=customers&node=email" class="delete" title="<?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['confirm_cancel'];?>
"><?php echo $_smarty_tpl->tpl_vars['LANG']->value['email']['news_cancel'];?>
</a></p>
</div>
<?php }?><?php }} ?>
