diff --git a/report-em_new_installs.php b/report-em_new_installs.php index 228c9c37d..b5f1e48f8 100644 --- a/report-em_new_installs.php +++ b/report-em_new_installs.php @@ -16,7 +16,7 @@ $mail->Subject = __("Recent Data Center Installations Report" ); $mail->addAttachment( $config->ParameterArray["PDFLogoFile"], "logo.png" ); - $htmlMessage = sprintf( "ITS Data Center Inventory

Installations in the Past 7 Days

\n", $config->ParameterArray["HeaderColor"], "logo.png" ); + $htmlMessage = sprintf( "ITS Data Center Inventory

Installations in the Past %d Days

\n", $config->ParameterArray["HeaderColor"], "logo.png", $config->ParameterArray["NewInstallsPeriod"] ); $htmlMessage .= sprintf( "

The following systems have been entered into openDCIM, with an Install Date set to within the past %d days. Please review these entries to determine if follow-up documentation is required.

", $config->ParameterArray["NewInstallsPeriod"] ); @@ -40,7 +40,7 @@ $dept->DeptID = $devRow->Owner; $dept->GetDeptByID(); - $htmlMessage .= sprintf( "%s%s%s%s%s%s\n", date( "d F Y", strtotime( $devRow->InstallDate ) ), $devRow->Reservation == 1 ? "Y" : "N", $dc->Name, $config->ParameterArray["InstallURL"], $cab->CabinetID, $cab->Location, $config->ParameterArray["InstallURL"], $devRow->DeviceID, $devRow->Label, $dept->Name ); + $htmlMessage .= sprintf( "%s%s%s%s%s%s\n", date( "d F Y", strtotime( $devRow->InstallDate ) ), $devRow->Status == "Reserved" ? "Y" : "N", $dc->Name, $config->ParameterArray["InstallURL"], $cab->CabinetID, $cab->Location, $config->ParameterArray["InstallURL"], $devRow->DeviceID, $devRow->Label, $dept->Name ); } $htmlMessage .= "\n";