<?php /* Smarty version 2.6.22, created on 2014-02-11 00:10:19
         compiled from D:/Program+Files+%28x86%29/Ampps/www/zipmarket%5Capps%5Cbulletin%5Cadmin/emails.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'D:/Program Files (x86)/Ampps/www/zipmarket\\apps\\bulletin\\admin/emails.html', 31, false),array('modifier', 'replace', 'D:/Program Files (x86)/Ampps/www/zipmarket\\apps\\bulletin\\admin/emails.html', 48, 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">Newsletter </a> \
      </div>
      <h1 class="page-title">E-mail's</h1>
    </div>
  </div>
    <div id="content">
      <div class="container">
  	<?php if ($this->_tpl_vars['paging'] != ""): ?>
       <div class="page-controls">
        <?php echo $this->_tpl_vars['paging']; ?>

       </div></div>
	<?php endif; ?>
	
	<?php if (is_array ( $this->_tpl_vars['data'] )): ?>
<div class="general_table_border">
	<table class="general_table" cellspacing="0" cellpadding="0" border="0">
		<thead>
			<tr>
				<th><?php echo $this->_tpl_vars['lang']['name']; ?>
</th>
				<th><?php echo $this->_tpl_vars['lang']['email']; ?>
</th>
				<th><?php echo $this->_tpl_vars['lang']['unsubscribe']; ?>
</th>
				<th width="150"></th>
			</tr>
		</thead>

		<tbody>
		<?php $_from = $this->_tpl_vars['data']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['d']):
?>
			<tr id="row<?php echo $this->_tpl_vars['d']['id']; ?>
" class="<?php echo smarty_function_cycle(array('values' => "no,alt"), $this);?>
">
				<td><?php echo $this->_tpl_vars['d']['firstname']; ?>
 <?php echo $this->_tpl_vars['d']['lastname']; ?>
</td>
				<td><?php echo $this->_tpl_vars['d']['email']; ?>
</td>
				<td>
					<?php if ($this->_tpl_vars['d']['bulletin_subscribe'] == 'false'): ?>
						<img src="<?php echo $this->_tpl_vars['data_server']; ?>
admin/images/icons/24x24/accept.png" alt="" class="middle" />
					<?php else: ?>
						<img src="<?php echo $this->_tpl_vars['data_server']; ?>
admin/images/icons/24x24/delete.png" alt="" class="middle" />
					<?php endif; ?>
				</td>
				<td>
					<?php if ($this->_tpl_vars['d']['bulletin_subscribe'] == 'false'): ?>
					<a href="?m=<?php echo $_GET['m']; ?>
&c=emails&subscribe=<?php echo $this->_tpl_vars['d']['id']; ?>
" title="<?php echo $this->_tpl_vars['lang']['subscribe']; ?>
"><img class="middle" src="<?php echo $this->_tpl_vars['data_server']; ?>
admin/images/icons/16x16/edit.png" /> <?php echo $this->_tpl_vars['lang']['subscribe']; ?>
</a>
					<?php else: ?>
					<a href="?m=<?php echo $_GET['m']; ?>
&c=emails&unsubscribe=<?php echo $this->_tpl_vars['d']['id']; ?>
" title="<?php echo $this->_tpl_vars['lang']['unsubscribe2']; ?>
"><img class="middle" src="<?php echo $this->_tpl_vars['data_server']; ?>
admin/images/icons/16x16/edit.png" /> <?php echo $this->_tpl_vars['lang']['unsubscribe2']; ?>
</a>
					<?php endif; ?>
					<br/>
					<a href="javascript:void(0);" title="<?php echo $this->_tpl_vars['lang']['delete']; ?>
" onclick="eAjax('<?php echo $this->_tpl_vars['root_server']; ?>
/zipmarket/apps/<?php echo $_GET['m']; ?>
/ajax/delete.php',<?php echo '{\'deleteSEmail\':true,\'id\':\''; ?>
<?php echo $this->_tpl_vars['d']['id']; ?>
<?php echo '\'}'; ?>
,'deleteRow','<?php echo $this->_tpl_vars['lang']['are_you_sure_to_delete']; ?>
 <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['d']['email'])) ? $this->_run_mod_handler('replace', true, $_tmp, "'", ' ') : smarty_modifier_replace($_tmp, "'", ' ')))) ? $this->_run_mod_handler('replace', true, $_tmp, '"', ' ') : smarty_modifier_replace($_tmp, '"', ' ')); ?>
 ?');"><img class="middle" src="<?php echo $this->_tpl_vars['data_server']; ?>
admin/images/icons/16x16/delete.png" /> <?php echo $this->_tpl_vars['lang']['delete']; ?>
</a>
				</td>					
			</tr>
			<?php endforeach; endif; unset($_from); ?>
		</tbody>
	</table> <!-- END Table -->			
</div>
	<?php else: ?>
		<?php echo $this->_tpl_vars['lang']['no_records']; ?>

	<?php endif; ?>
  </div>
</div>