* Time: 16:29 * 接收邮件topN邮箱域名 */ require '../../include/init.inc.php'; $page_no = $start_date = $end_date = $mail_to = $mail_from = $mail = $ajaxMethod = $command = ""; $_GET['start_date'] = empty($_GET['start_date']) ? date("Y-m-d", time() - 86400) : $_GET['start_date']; $_GET['end_date'] = empty($_GET['end_date']) ? date("Y-m-d", time() + 86400) : $_GET['end_date']; $_GET['mail_to'] = empty($_GET['mail_to']) ? '' : $_GET['mail_to']; $_GET['mail_from'] = empty($_GET['mail_from']) ? '' : $_GET['mail_from']; $_GET['mail'] = empty($_GET['mail']) ? '' : $_GET['mail']; $_GET['ajaxMethod'] = empty($_GET['ajaxMethod']) ? '' : $_GET['ajaxMethod']; extract($_GET, EXTR_IF_EXISTS); if (isset($_SERVER["HTTP_X_REQUESTED_WITH"]) && strtolower($_SERVER["HTTP_X_REQUESTED_WITH"]) == "xmlhttprequest") { if ($ajaxMethod == 'mailSendNumDetail') { $list = array(); $list = MailStatistics::getRecMailSendNumDetail($start_date, $end_date, $mail_to); foreach ($list as &$item) { $item['PERC'] = floatval($item['PERC']); } $res = array(); $res['list'] = $list; $res = json_encode($res); exit($res); } if ($ajaxMethod == 'mailSendNumDetail_fromMail') { $list = array(); $list = MailStatistics::getRecMailSendNumDetail_fromMail($start_date, $end_date, $mail_to, $mail_from); $res = array(); $res['list'] = $list; $res = json_encode($res); exit($res);