Fax Server: Add date to cover sheet (if any), on Send.

This commit is contained in:
fusionate 2024-02-06 00:30:46 +00:00
parent 192e651722
commit ebb68cccf5
No known key found for this signature in database
1 changed files with 7 additions and 0 deletions

View File

@ -473,6 +473,7 @@ if (!function_exists('fax_split_dtmf')) {
//field labels
$pdf->SetFont($pdf_font, "B", 12);
$pdf->Text($x + 0.5, $y + 1.7, strtoupper($text['label-sent']).":");
if ($fax_recipient != '' || sizeof($fax_numbers) > 0) {
$pdf->Text($x + 0.5, $y + 2.0, strtoupper($text['label-fax-recipient']).":");
}
@ -488,6 +489,12 @@ if (!function_exists('fax_split_dtmf')) {
//field values
$pdf->SetFont($pdf_font, "", 12);
$pdf->SetXY($x + 2.0, $y + 1.65);
if ($_REQUEST['submit'] != '' && $_REQUEST['submit'] != 'preview') {
$time_zone = isset($_SESSION['domain']['time_zone']['name']) ? $_SESSION['domain']['time_zone']['name'] : date_default_timezone_get();
$date = new DateTime('now', new DateTimeZone($time_zone) );
$pdf->Write(0.3, $date->format('d M Y'));
}
$pdf->SetXY($x + 2.0, $y + 1.95);
if ($fax_recipient != '') {
$pdf->Write(0.3, $fax_recipient);