<?php /* Smarty version 2.6.26, created on 2017-04-13 17:35:56
         compiled from /home3/bargaip4/public_html/gevimmo/plugins/massmailer_newsletter/admin/massmailer_newsletter.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'cat', '/home3/bargaip4/public_html/gevimmo/plugins/massmailer_newsletter/admin/massmailer_newsletter.tpl', 24, false),array('modifier', 'in_array', '/home3/bargaip4/public_html/gevimmo/plugins/massmailer_newsletter/admin/massmailer_newsletter.tpl', 116, false),array('function', 'fckEditor', '/home3/bargaip4/public_html/gevimmo/plugins/massmailer_newsletter/admin/massmailer_newsletter.tpl', 66, false),)), $this); ?>
<!-- massmailer/newsletter -->

<script type="text/javascript" src="<?php echo @RL_PLUGINS_URL; ?>
massmailer_newsletter/static/lib.js"></script>
<script type="text/javascript">//<![CDATA[[
massmailer.phrases['send_confirm'] = "<?php echo $this->_tpl_vars['lang']['massmailer_newsletter_send_confirm']; ?>
";
massmailer.phrases['completed'] = "<?php echo $this->_tpl_vars['lang']['massmailer_newsletter_completed_notice']; ?>
";
massmailer.config['id'] = <?php if ($_GET['massmailer']): ?><?php echo $_GET['massmailer']; ?>
<?php else: ?>false<?php endif; ?>;
//]]>
</script>

<!-- navigation bar -->
<div id="nav_bar">
	<?php if (! $_GET['page'] && $_GET['action'] != 'add'): ?><a href="<?php echo $this->_tpl_vars['rlBaseC']; ?>
page=newsletter" class="button_bar"><span class="left"></span><span class="center_recepeints"><?php echo $this->_tpl_vars['lang']['massmailer_newsletter_recipients']; ?>
</span><span class="right"></span></a><?php endif; ?>
	<?php if (! $_GET['page'] && $_GET['action'] != 'add'): ?><a href="<?php echo $this->_tpl_vars['rlBaseC']; ?>
action=add" class="button_bar"><span class="left"></span><span class="center_add"><?php echo $this->_tpl_vars['lang']['massmailer_newsletter_add_massmailer']; ?>
</span><span class="right"></span></a><?php endif; ?>
	<a href="<?php echo $this->_tpl_vars['rlBase']; ?>
index.php?controller=<?php echo $_GET['controller']; ?>
" class="button_bar"><span class="left"></span><span class="center_list"><?php echo $this->_tpl_vars['lang']['items_list']; ?>
</span><span class="right"></span></a>	
</div>
<!-- navigation bar end -->

<?php if ($_GET['action'] == 'edit' || $_GET['action'] == 'add'): ?>

	<?php $this->assign('sPost', $_POST); ?>

	<!-- add new massmailer -->
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=((is_array($_tmp='blocks')) ? $this->_run_mod_handler('cat', true, $_tmp, @RL_DS) : smarty_modifier_cat($_tmp, @RL_DS)))) ? $this->_run_mod_handler('cat', true, $_tmp, 'm_block_start.tpl') : smarty_modifier_cat($_tmp, 'm_block_start.tpl')), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	<form action="<?php echo $this->_tpl_vars['rlBaseC']; ?>
action=<?php if ($_GET['action'] == 'add'): ?>add<?php elseif ($_GET['action'] == 'edit'): ?>edit&amp;massmailer=<?php echo $_GET['massmailer']; ?>
<?php endif; ?>" enctype="multipart/form-data" method="post">
		<input type="hidden" name="submit" value="1" />
		<?php if ($_GET['action'] == 'edit'): ?>
			<input type="hidden" name="fromPost" value="1" />
		<?php endif; ?>
		<script type="text/javascript">
			var step = 1;
		</script>
		<table class="form">
		<tr>
			<td class="name"><span class="red">*</span><?php echo $this->_tpl_vars['lang']['key']; ?>
</td>
			<td class="field">
				<input id="massmailer_key" <?php if ($_GET['action'] == 'edit'): ?>readonly="readonly" class="disabled"<?php endif; ?> type="text" value="<?php echo $_POST['massmailer_key']; ?>
" name="massmailer_key" size="12" maxlength="100" />
			</td>
		</tr>
	
		<tr>
			<td class="name">
				<span class="red">*</span><?php echo $this->_tpl_vars['lang']['massmailer_newsletter_subject']; ?>

			</td>
			<td class="field">
				<input class="w350" type="text" name="subject" value="<?php echo $this->_tpl_vars['sPost']['subject']; ?>
" />
			</td>
		</tr>
	
		<tr>
			<td class="name">
				<span class="red">*</span><?php echo $this->_tpl_vars['lang']['massmailer_newsletter_body']; ?>

			</td>
			<td class="field">
				<div style="padding: 0 0 5px 0;">
					<select id="var_sel">
						<option value=""><?php echo $this->_tpl_vars['lang']['select']; ?>
</option>
						<?php $_from = $this->_tpl_vars['l_email_variables']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['var']):
?>
						<option value="<?php echo $this->_tpl_vars['var']; ?>
"><?php echo $this->_tpl_vars['var']; ?>
</option>
						<?php endforeach; endif; unset($_from); ?>
					</select>
					<input class="caret_button no_margin" id="input_<?php echo $this->_tpl_vars['language']['Code']; ?>
" type="button" value="<?php echo $this->_tpl_vars['lang']['add']; ?>
" style="margin-left: 5px" />
					<span class="field_description_noicon"><?php echo $this->_tpl_vars['lang']['add_template_variable']; ?>
</span>
				</div>
				
				<?php echo rlSmarty::fckEditor(array('name' => 'body','width' => '100%','height' => '200','value' => $this->_tpl_vars['sPost']['body']), $this);?>

				
				<script type="text/javascript">
				<?php echo '
				
				$(document).ready(function(){
					$(\'.caret_button\').click(function(){
						var variable = $(\'#var_sel\').val();
						
						if ( variable == \'\' )
							return;
						
						var instance = CKEDITOR.instances[\'body\'];
						instance.getSelection().getStartElement().appendHtml(variable);
					});
				});
				
				'; ?>

				</script>
			</td>
		</tr>
	
		<tr>
			<td class="name"><span class="red">*</span><?php echo $this->_tpl_vars['lang']['massmailer_newsletter_from']; ?>
</td>
			<td class="field">
				<input type="text" name="from_mail" value="<?php if (! empty ( $this->_tpl_vars['sPost']['from_mail'] )): ?><?php echo $this->_tpl_vars['sPost']['from_mail']; ?>
<?php else: ?><?php echo $this->_tpl_vars['config']['site_main_email']; ?>
<?php endif; ?>" maxlength="150" />
			</td>
		</tr>
		
		<tr>
			<td class="name"><?php echo $this->_tpl_vars['lang']['massmailer_newsletter_recipients']; ?>
</td>
			<td class="field">
				<ul class="clear_list" style="padding: 5px 0 0;">
					<li>
						<label>
							<input type="checkbox" name="newsletters_accounts" <?php if ($this->_tpl_vars['sPost']['newsletters_accounts']): ?>checked="checked"<?php endif; ?> />
							<?php echo $this->_tpl_vars['lang']['massmailer_newsletter_newsletter']; ?>

						</label>
					</li>
					<li>
						<label>
							<input type="checkbox" name="site_accounts" <?php if ($this->_tpl_vars['sPost']['site_accounts']): ?>checked="checked"<?php endif; ?> />
							<?php echo $this->_tpl_vars['lang']['account_type']; ?>

						</label>
					</li>
					<?php $_from = $this->_tpl_vars['account_types']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['type']):
?>
						<?php $this->assign('sType', $this->_tpl_vars['sPost']['type']); ?>
						<?php $this->assign('tKey', $this->_tpl_vars['type']['Key']); ?>
						<li style="padding-left: 20px;">
							<label>
								<input class="accounts" type="checkbox" name="type[]" value="<?php echo $this->_tpl_vars['tKey']; ?>
" <?php if (((is_array($_tmp=$this->_tpl_vars['tKey'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['sType']) : in_array($_tmp, $this->_tpl_vars['sType']))): ?>checked="checked"<?php endif; ?> />
								<?php echo $this->_tpl_vars['type']['name']; ?>

							</label>
						</li>
					<?php endforeach; endif; unset($_from); ?>
					<li>
						<label>
							<input type="checkbox" name="contact_us" <?php if ($this->_tpl_vars['sPost']['contact_us']): ?>checked="checked"<?php endif; ?> />
							<?php echo $this->_tpl_vars['lang']['massmailer_newsletter_contact_us']; ?>

						</label>
					</li>
				</ul>
			</td>
		</tr>
		<tr>
			<td class="name"><?php echo $this->_tpl_vars['lang']['status']; ?>
</td>
			<td class="field">
				<select name="status">
					<option value="active" <?php if ($this->_tpl_vars['sPost']['status'] == 'active'): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['lang']['active']; ?>
</option>
					<option value="approval" <?php if ($this->_tpl_vars['sPost']['status'] == 'approval'): ?>selected="selected"<?php endif; ?>><?php echo $this->_tpl_vars['lang']['approval']; ?>
</option>
				</select>
			</td>
		</tr>
		<tr>
			<td></td>
			<td>
				<input type="submit" value="<?php if ($_GET['action'] == 'edit'): ?><?php echo $this->_tpl_vars['lang']['edit']; ?>
<?php elseif ($_GET['action'] == 'add'): ?><?php echo $this->_tpl_vars['lang']['add']; ?>
<?php endif; ?>" />
				<?php if ($_GET['action'] == 'edit'): ?>
					<input id="confirm" type="button" value="<?php echo $this->_tpl_vars['lang']['massmailer_newsletter_send_and_save']; ?>
" />
				<?php endif; ?>
			</td>
		</tr>
		</table>
	</form>
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=((is_array($_tmp='blocks')) ? $this->_run_mod_handler('cat', true, $_tmp, @RL_DS) : smarty_modifier_cat($_tmp, @RL_DS)))) ? $this->_run_mod_handler('cat', true, $_tmp, 'm_block_end.tpl') : smarty_modifier_cat($_tmp, 'm_block_end.tpl')), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	<!-- add new massmailer end -->
	
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=@RL_PLUGINS)) ? $this->_run_mod_handler('cat', true, $_tmp, 'massmailer_newsletter') : smarty_modifier_cat($_tmp, 'massmailer_newsletter')))) ? $this->_run_mod_handler('cat', true, $_tmp, @RL_DS) : smarty_modifier_cat($_tmp, @RL_DS)))) ? $this->_run_mod_handler('cat', true, $_tmp, 'admin') : smarty_modifier_cat($_tmp, 'admin')))) ? $this->_run_mod_handler('cat', true, $_tmp, @RL_DS) : smarty_modifier_cat($_tmp, @RL_DS)))) ? $this->_run_mod_handler('cat', true, $_tmp, 'send_interface.tpl') : smarty_modifier_cat($_tmp, 'send_interface.tpl')), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	
<?php elseif ($_GET['action'] == 'send'): ?>

	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=((is_array($_tmp='blocks')) ? $this->_run_mod_handler('cat', true, $_tmp, @RL_DS) : smarty_modifier_cat($_tmp, @RL_DS)))) ? $this->_run_mod_handler('cat', true, $_tmp, 'm_block_start.tpl') : smarty_modifier_cat($_tmp, 'm_block_start.tpl')), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
		<table class="list mn_list">
		<tr>
			<td class="name"><?php echo $this->_tpl_vars['lang']['massmailer_newsletter_from']; ?>
:</td>
			<td class="value">
				<span class="dark_13"><?php echo $this->_tpl_vars['massmailer_form']['From']; ?>
</span>
			</td>
		</tr>
		<tr>
			<td class="name"><?php echo $this->_tpl_vars['lang']['massmailer_newsletter_to']; ?>
:</td>
			<td class="value topfix">
				<?php if ($this->_tpl_vars['massmailer_form']['Recipients_newsletter']): ?>
					<div class="dark_13 mn_padding"><?php echo $this->_tpl_vars['lang']['massmailer_newsletter_newsletter']; ?>
 (<?php echo $this->_tpl_vars['massmailer_form']['Recipients_newsletter_count']['Count']; ?>
)</div>
				<?php endif; ?>
				<?php if (! empty ( $this->_tpl_vars['massmailer_form']['Recipients_accounts'] )): ?>
					<div class="dark_13 mn_padding"><?php echo $this->_tpl_vars['lang']['massmailer_newsletter_site_accounts']; ?>
:
						<ul class="clear_list">
						<?php $_from = $this->_tpl_vars['massmailer_form']['Recipients_accounts']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['recipients_accounts']):
?>
							<?php $this->assign('newKey', $this->_tpl_vars['recipients_accounts']['Key']); ?>
							<li><?php echo $this->_tpl_vars['recipients_accounts']['name']; ?>
 (<?php echo $this->_tpl_vars['massmailer_form']['Recipients_accounts_count'][$this->_tpl_vars['newKey']]; ?>
)</li>
						<?php endforeach; endif; unset($_from); ?>
						</ul>
					</div>
				<?php endif; ?>
				<?php if ($this->_tpl_vars['massmailer_form']['Recipients_contact_us']): ?>
					<div class="dark_13 mn_padding"><?php echo $this->_tpl_vars['lang']['massmailer_newsletter_contact_us']; ?>
 (<?php echo $this->_tpl_vars['massmailer_form']['Recipients_contact_us_count']['Count']; ?>
)</div>
				<?php endif; ?>
			</td>
		</tr>
		<tr>
			<td class="name"><?php echo $this->_tpl_vars['lang']['subject']; ?>
:</td>
			<td class="value">
				<b><?php echo $this->_tpl_vars['massmailer_form']['Subject']; ?>
</b>
			</td>
		</tr>
		<tr>
			<td class="name"><?php echo $this->_tpl_vars['lang']['massmailer_newsletter_body']; ?>
:</td>
			<td class="value topfix">
				<div class="mn_area"><?php echo $this->_tpl_vars['massmailer_form']['Body']; ?>
</div>
			</td>
		</tr>
		<tr>
			<td></td>
			<td class="value">
				<input id="start_send" type="button" value="<?php echo $this->_tpl_vars['lang']['massmailer_newsletter_send']; ?>
" />
				<a style="padding: 0 0 0 10px" href="<?php echo $this->_tpl_vars['rlBase']; ?>
index.php?controller=<?php echo $_GET['controller']; ?>
&amp;action=edit&amp;massmailer=<?php echo $_GET['massmailer']; ?>
"><?php echo $this->_tpl_vars['lang']['edit']; ?>
</a>
			</td>
		</tr>
		</table>		
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=((is_array($_tmp='blocks')) ? $this->_run_mod_handler('cat', true, $_tmp, @RL_DS) : smarty_modifier_cat($_tmp, @RL_DS)))) ? $this->_run_mod_handler('cat', true, $_tmp, 'm_block_end.tpl') : smarty_modifier_cat($_tmp, 'm_block_end.tpl')), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=((is_array($_tmp=@RL_PLUGINS)) ? $this->_run_mod_handler('cat', true, $_tmp, 'massmailer_newsletter') : smarty_modifier_cat($_tmp, 'massmailer_newsletter')))) ? $this->_run_mod_handler('cat', true, $_tmp, @RL_DS) : smarty_modifier_cat($_tmp, @RL_DS)))) ? $this->_run_mod_handler('cat', true, $_tmp, 'admin') : smarty_modifier_cat($_tmp, 'admin')))) ? $this->_run_mod_handler('cat', true, $_tmp, @RL_DS) : smarty_modifier_cat($_tmp, @RL_DS)))) ? $this->_run_mod_handler('cat', true, $_tmp, 'send_interface.tpl') : smarty_modifier_cat($_tmp, 'send_interface.tpl')), 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	
<?php elseif ($_GET['page'] == 'newsletter'): ?>
	<!-- newsletter grid -->
	<div id="grid"></div>
	<script type="text/javascript">//<![CDATA[
	var newsletterGrid;
	
	<?php echo '
	$(document).ready(function(){
		
		newsletterGrid = new gridObj({
			key: \'newsletter\',
			id: \'grid\',
			ajaxUrl: rlPlugins + \'massmailer_newsletter/admin/massmailer_newsletter.inc.php?q=ext2\',
			defaultSortField: \'Name\',
			title: lang[\'ext_newsletter_manager\'],
			fields: [
					{name: \'ID\', mapping: \'ID\'},
					{name: \'Name\', mapping: \'Name\'},
					{name: \'Mail\', mapping: \'Mail\'},
					{name: \'Status\', mapping: \'Status\'},
					{name: \'Date\', mapping: \'Date\', type: \'date\', dateFormat: \'Y-m-d\'}
			],
			columns: [
				{
					header: lang[\'ext_name\'],
					dataIndex: \'Name\',
					id: \'rlExt_item_bold\',
					width: 23
				},{
					header: lang[\'ext_email\'],
					dataIndex: \'Mail\',
					width: 250,
					fixed: true
				},{
					header: lang[\'ext_subscribe_date\'],
					dataIndex: \'Date\',
					width: 120,
					fixed: true,
					renderer: function(val){
						if (!val)
						{
							var date = \'<span class="delete" ext:qtip="\'+lang[\'ext_click_to_set_pay\']+\'">\'+lang[\'ext_not_payed\']+\'</span>\';
						}
						else
						{
							var date = Ext.util.Format.dateRenderer(rlDateFormat.replace(/%/g, \'\').replace(\'b\', \'M\'))(val);
							date = \'<span class="build" ext:qtip="\'+lang[\'ext_click_to_edit\']+\'">\'+date+\'</span>\';
						}
						return date;
					},
				},{
					header: lang[\'ext_status\'],
					dataIndex: \'Status\',
					width: 90,
					fixed: true,
					editor: new Ext.form.ComboBox({
						store: [
							[\'active\', lang[\'ext_active\']],
							[\'approval\', lang[\'ext_approval\']]
						],
						displayField: \'value\',
						valueField: \'key\',
						typeAhead: true,
						mode: \'local\',
						triggerAction: \'all\',
						selectOnFocus:true
					}),
					renderer: function(val){
						return \'<span ext:qtip="\'+lang[\'ext_click_to_edit\']+\'">\'+val+\'</span>\';
					}
				},{
					header: lang[\'ext_actions\'],
					width: 60,
					fixed: true,
					dataIndex: \'ID\',
					sortable: false,
					renderer: function(data) {
						return "<img class=\'remove\' ext:qtip=\'"+lang[\'ext_delete\']+"\' src=\'"+rlUrlHome+"img/blank.gif\' onClick=\'rlConfirm( \\""+lang[\'ext_notice_delete\']+"\\", \\"xajax_deleteNewsletter\\", \\""+data+"\\", \\"news_load\\" )\' />";
					}
				}
			]
		});
		
		newsletterGrid.init();
		grid.push(newsletterGrid.grid);
	});
	'; ?>

	//]]>
	</script>
	<!-- newsletter grid end -->
<?php else: ?>
	<!-- massmailer grid -->
	<div id="grid"></div>
	<script type="text/javascript">//<![CDATA[
	var massmailerGrid;
	
	<?php echo '
	$(document).ready(function(){
		
		massmailerGrid = new gridObj({
			key: \'massmailer\',
			id: \'grid\',
			ajaxUrl: rlPlugins + \'massmailer_newsletter/admin/massmailer_newsletter.inc.php?q=ext\',
			defaultSortField: \'Name\',
			title: lang[\'ext_massmailer_manager\'],
			fields: [
				{name: \'ID\', mapping: \'ID\'},
				{name: \'Name\', mapping: \'Subject\'},
				{name: \'Description\', mapping: \'Body\'},
				{name: \'Status\', mapping: \'Status\'},
				{name: \'Date\', mapping: \'Date\', type: \'date\', dateFormat: \'Y-m-d\'}
			],
			columns: [
				{
					header: lang[\'ext_subject\'],
					dataIndex: \'Name\',
					id: \'rlExt_item_bold\',
					width: 30
				},{
					header: lang[\'ext_add_date\'],
					dataIndex: \'Date\',
					width: 120,
					fixed: true,
					renderer: function(val){
						return Ext.util.Format.dateRenderer(rlDateFormat.replace(/%/g, \'\').replace(\'b\', \'M\'))(val);
					},
				},{
					header: lang[\'ext_status\'],
					dataIndex: \'Status\',
					width: 90,
					fixed: true,
					editor: new Ext.form.ComboBox({
						store: [
							[\'active\', lang[\'ext_active\']],
							[\'approval\', lang[\'ext_approval\']]
						],
						displayField: \'value\',
						valueField: \'key\',
						typeAhead: true,
						mode: \'local\',
						triggerAction: \'all\',
						selectOnFocus:true
					}),
					renderer: function(val){
						return \'<span ext:qtip="\'+lang[\'ext_click_to_edit\']+\'">\'+val+\'</span>\';
					}
				},{
					header: lang[\'ext_actions\'],
					width: 80,
					fixed: true,
					dataIndex: \'ID\',
					sortable: false,
					renderer: function(data) {
						var out = "<a href=\'"+rlUrlHome+"index.php?controller="+controller+"&action=send&massmailer="+data+"\'><img class=\'send\' ext:qtip=\'"+lang[\'ext_massmailer_send\']+"\' src=\'"+rlUrlHome+"img/blank.gif\' /></a>";
						out += "<a href=\'"+rlUrlHome+"index.php?controller="+controller+"&action=edit&massmailer="+data+"\'><img class=\'edit\' ext:qtip=\'"+lang[\'ext_edit\']+"\' src=\'"+rlUrlHome+"img/blank.gif\' /></a>";
						out += "<img class=\'remove\' ext:qtip=\'"+lang[\'ext_delete\']+"\' src=\'"+rlUrlHome+"img/blank.gif\' onclick=\'rlConfirm( \\""+lang[\'ext_notice_\'+delete_mod]+"\\", \\"xajax_deleteMassmailerNewsletter\\", \\""+Array(data)+"\\", \\"section_load\\" )\' />";
						return out;
					}
				}
			]
		});
		
		massmailerGrid.init();
		grid.push(massmailerGrid.grid);
		
	});
	'; ?>

	//]]>
	</script>
	<!-- massmailer grid end -->
<?php endif; ?>

<!-- massmailer/newsletter -->