Exemplo n.º 1
0
function get_ares_type_name($val)
{
    $type = get_ares_data($val);
    switch ($type) {
        case 1:
            return _('Drip campaign');
            break;
        case 2:
            return _('Sent annually based on') . ' <strong>' . get_ares_data('custom_field') . '</strong>';
            break;
        case 3:
            return _('Sent once based on') . ' <strong>' . get_ares_data('custom_field') . '</strong>';
            break;
    }
}
?>
">
		        
		        <button type="submit" class="btn btn-inverse"><i class="icon-ok icon-white"></i> <?php 
echo _('Save autoresponder email');
?>
</button>
		        <br/><br/>
		        <a href="<?php 
echo get_app_info('path');
?>
/autoresponders-list?i=<?php 
echo $_GET['i'];
?>
&l=<?php 
echo get_ares_data('list');
?>
" title=""><i class="icon icon-chevron-left"></i> <?php 
echo _('Back to autoresponders list');
?>
</a>
		        
		    </div>   
		    <div class="span9">
		    	<p>
			    	<label class="control-label" for="html"><?php 
echo _('HTML code');
?>
</label>
			    	<div class="btn-group">
					<button class="btn" id="toggle-wysiwyg"><?php 
Exemplo n.º 3
0
?>
 <a href="<?php 
echo get_app_info('path');
?>
/w/<?php 
echo short($id);
?>
/a" title="<?php 
echo _('View the web version');
?>
" class="iframe-preview"><span class="icon-eye-open"></span></a></h3>
    	<?php 
echo _('For');
?>
: <span class="label label-info"><?php 
echo get_ares_data('name');
?>
</span> <span>(<?php 
echo get_ares_type_name('type');
?>
)</span>, <em><?php 
echo _('sent to');
?>
 <span class="label"><?php 
echo number_format(get_saved_data('recipients'));
?>
 <?php 
echo _('subscribers');
?>
</span></em>
    	
Exemplo n.º 4
0
												});
											</script>
										</li>
									</ul>
					<?php 
            }
            $i++;
        }
        closedir($handle);
    }
}
?>
		        <br/>	
		        
		        <input type="hidden" name="ares_type" value="<?php 
echo get_ares_data('type');
?>
">
		        
		        <button type="submit" class="btn btn-inverse"><i class="icon-ok icon-white"></i> <?php 
echo _('Save autoresponder email');
?>
</button>
		        
		        <script type="text/javascript">
		        	$(document).ready(function() {
		        		$("#edit-form").submit(function(e){		
							var from_name = $('#from_name').val();
							if (from_name.indexOf(',') != -1) 
							{
								e.preventDefault();