Exemplo n.º 1
0
 *
 *	JK Technosoft
 *	http://www.jktech.com
 *	August 11, 2015
 *
 *
 * History:
 *
 */
session_start();
require 'pdffunc.php';
@($current_user = $_SESSION['username']);
$dt = $_POST['date'];
$pdf = new PDF_TOC('L', 'mm', 'A4');
$pdf->startPageNums();
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->Ln(70);
$pdf->SetFont('Times', '', 32);
$pdf->Cell(0, 1, 'CPU Utilization Report', 0, 1, 'C');
include 'sqlconnectver2.php';
if ($query = mysql_query("SELECT distinct server,environ FROM configureddb INNER JOIN dbalogin where  dbalogin.username ='******' group by server")) {
    $pdf->AddPage();
    $pdf->Ln(3);
    $pdf->SetFont('Arial', '', 20);
    $pdf->setFillColor(63, 139, 202);
    $pdf->SetTextColor(253, 253, 253);
    $pdf->Cell(0, 10, 'List of Servers', 1, 1, 'C', 1);
    $pdf->TOC_Entry('List of Servers', 0);
    $pdf->SetFont('Times', '', 14);
    $pdf->SetTextColor(0, 0, 0);