示例#1
0
    $options['email_blast_type'] = $_REQUEST['email_blast_type'];
}
if ($_REQUEST['campaign']) {
    $options['campaign'] = $_REQUEST['campaign'];
}
if ($_REQUEST['date']) {
    $options['date'] = $_REQUEST['date'];
}
?>
<h1>Email Blasts</h1>
<form method="get" class="search">
Filter List By: <select name="campaign"><option value="">Select Department</option><?php 
echo campaign_options();
?>
</select>
<select name="email_blast_type"><option value="">Select Type</option><?php 
foreach ($email_blast_type as $i) {
    echo '<option>' . $i . '</option>';
}
?>
</select>
<input placeholder="Date 0000-00-00" name="date" type="text">
	<input type="submit" value="Filter">

</form>

<?  echo email_list(2000,$options);


?>
示例#2
0
<?php

session_start();
include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.html.pages.inc';
include_once 'ressources/class.user.inc';
$priv = new usersMenus();
if (isset($_GET["list"])) {
    email_list();
    exit;
}
if (isset($_GET["Addwbl"])) {
    popup_addwbl();
    exit;
}
if (isset($_GET["blw_email"])) {
    add_wbl();
    exit;
}
if (isset($_GET["delete_email"])) {
    delete_wbl();
    exit;
}
page();
function page()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $title1 = $tpl->_ENGINE_parse_body('{add_email}');
    $html = "\n<br><br>\n<table style='width:100%'>\n<tr>\n<td width=1% valign='top'><img src='img/bg_chess.jpg'></td>\n<td valign='top'>" . RoundedLightGreen("\n\t<H3 style='margin-bottom:0px'>{white list}</H2>\n\t<p>{white_list_text}</p>\n\t<H3 style='margin-bottom:0px'>{black list}</H2>\n\t<p>{black_list_text}</p>") . "\n</td>\n</tr>\n<td colspan=2 width=100% valign='top'>\n<div id='mailist'></div>\n</td>\n</tr>\n</table>\n<script>\nLoadAjax('mailist','{$page}?list=yes');\n\nfunction wbladd(){YahooWin(400,'{$page}?Addwbl=yes','{$title1}');}\n\nvar X_ActionWbladdForm= function (obj) {\n\tvar results=trim(obj.responseText);\n\tif(results.length>0){alert(results);}\n\tLoadAjax('mailist','{$page}?list=yes');\n\t}\n\nfunction ActionWbladdForm(){\n\tvar blw_email=document.getElementById('blw_email').value;\n\tvar blw_type=document.getElementById('blw_type').value;\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('blw_email',blw_email);\t\n\tXHR.appendData('blw_type',blw_type);\t\t\n\tXHR.sendAndLoad('{$page}', 'GET',X_ActionWbladdForm);\t\n\t}\n\t\n\t\nfunction delete_aswbl(email,type){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('delete_email',email);\t\n\tXHR.appendData('blw_type',type);\t\t\n\tXHR.sendAndLoad('{$page}', 'GET',X_ActionWbladdForm);\t\n\t}\n\n</script>\n";