本文整理汇总了PHP中SMS::savePDFReport方法的典型用法代码示例。如果您正苦于以下问题:PHP SMS::savePDFReport方法的具体用法?PHP SMS::savePDFReport怎么用?PHP SMS::savePDFReport使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SMS
的用法示例。
在下文中一共展示了SMS::savePDFReport方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
if ($report_period == 'custom') {
$emails->setCustomPeriod($_POST['share_report_period_from'], $_POST['share_report_period_to']);
}
$report_file = $emails->savePDFReport();
} elseif ($report_type == 'sms') {
$report_period = $_POST['share_report_period'];
if (trim($report_period) == '') {
$report_period = 'lifetime';
}
require '../classes/dashboard/SMS.php';
$sms = new SMS();
$sms->setPeriod($report_period);
if ($report_period == 'custom') {
$sms->setCustomPeriod($_POST['share_report_period_from'], $_POST['share_report_period_to']);
}
$report_file = $sms->savePDFReport();
}
$admins = getAdminEmails();
$admin_emails = implode(',', $admins);
$name = $_SESSION['lm_auth']['name'];
//mail($to, 'New Report shared by '.$name.' with you', $message);
//inform to admin also
$admin_msg = "Follwing localmedia report was shared by {$name} to {$to}.\n\n";
$admin_msg .= "-------------------------------------------------\n\n";
$admin_msg .= $message;
$admin_msg .= "\n\n-------------------------------------------------\n\n";
//mail($admin_emails, 'New Report shared by '.$name, $admin_msg);
require '../libs/php-mailer/class.phpmailer.php';
$email = new PHPMailer();
$email->From = 'admin@localmedia.ae';
$email->FromName = 'Localmedia Dashboard';