Esempio n. 1
0
$tenantList = $dev->GetTop10Tenants();
$powerList = $dev->GetTop10Power();
//
//
//	Begin Report Generation
//
//
$pdf = new PDF_Diag();
include_once "loadfonts.php";
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetFont($config->ParameterArray["PDFfont"], '', 8);
$pdf->SetFillColor(0, 0, 0);
$pdf->SetTextColor(255);
$pdf->SetDrawColor(128, 0, 0);
$pdf->SetLineWidth(0.3);
$pdf->SetfillColor(224, 235, 255);
$pdf->SetTextColor(0);
$pdf->SetFont($config->ParameterArray["PDFfont"], "", 12);
if (function_exists('money_format')) {
    $pdf->Cell(300, 5, __("Annual Cost Per Rack Unit (Year)") . ': ' . money_format("%.2n", $annualCostPerUYear), "", 1, "L", "");
    $pdf->Cell(300, 5, __("Annual Cost Per Watt (Year)") . ': ' . money_format("%.4n", $annualCostPerWattYear), "", 1, "L", "");
} else {
    $pdf->Cell(300, 5, __("Annual Cost Per Rack Unit (Year)") . ': ' . sprintf($annualCostPerUYear, "%.2n"), "", 1, "L", "");
    $pdf->Cell(300, 5, __("Annual Cost Per Watt (Year)") . ': ' . sprintf($annualCostPerWattYear, "%.4n"), "", 1, "L", "");
}
$pdf->Ln();
$pdf->Ln();
$pdf->Bookmark("Departments");
$deptList = $dept->GetDepartmentList();
foreach ($deptList as $deptRow) {