public function printUploadersInCatPieChart() { ?> <fieldset><legend>PieChart</legend> <script type="text/javascript"> <?php echo PieChart($this->uploaders, 'Uploaders', 'Number of files by uploader', 'chart_div_a'); ?> </script> <div id="chart_div_a" style="float:right"></div> <p><strong>Total : </strong><?php echo $this->uploadersCounter; ?> uploaders.<p> </fieldset> <?php }
public function PrintUploadsSummary() { $str_descsize = ''; $str_desccount = ''; foreach ($this->array_total_size as $type => $somme) { $str_descsize .= '<p><strong>' . $type . ' :</strong> ' . octets($somme) . '</p>'; } foreach ($this->array_total_count as $type => $compte) { $str_desccount .= '<p><strong>' . $type . ' :</strong> ' . $compte . ' files.</p>'; } ?> <fieldset><legend>Size</legend> <script type="text/javascript"> <?php echo PieChart($this->array_total_size, 'Size', 'Size of file types', 'chart_div_a'); ?> </script> <div id="chart_div_a" style="float:right"></div> <?php echo $str_descsize; ?> <p><strong>Total : </strong><?php echo octets($this->user_uploadsize); ?> <p> </fieldset> <fieldset><legend>Count</legend> <script type="text/javascript"> <?php echo PieChart($this->array_total_count, 'Count', 'Count of file types', 'chart_div_b'); ?> <div id="chart_div_b" style="float:right"></div> <?php echo $str_desccount; ?> <p><strong>Total : </strong><?php echo $this->user_uploadcount; ?> files.<p> </fieldset> <fieldset><legend>Month size</legend> <script type="text/javascript"> <?php echo MonthBarGraph($this->array_month_size, 'Size', 'Upload size by month for ' . $this->user_name, 'bar_div_a'); ?> </script> <div id="bar_div_a" style="float:right"></div> <p><strong>Total : </strong><?php echo octets($this->user_uploadsize); ?> <p> </fieldset> <fieldset><legend>Month count</legend> <script type="text/javascript"> <?php echo MonthBarGraph($this->array_month_count, 'Count', 'Upload count by month for ' . $this->user_name, 'bar_div_b'); ?> </script> <div id="bar_div_b" style="float:right"></div> <p><strong>Total : </strong><?php echo $this->user_uploadcount; ?> files.<p> </fieldset> <?php }
//$NFG1 = GetaField("aplikan a left outer join pmbperiod p on a.PMBPeriodID=p.PMBPeriodID and a.KodeID=p.KodeID and p.Tahun='".$_SESSION[Tahun1]."'", // "INSTR(a.SumberInformasi, $w[InfoID])>0 and a.TahunLulus < '$Tahun1a' and a.KodeID", KodeID, // "count(a.AplikanID)"); //$NFG2 = GetaField("aplikan a left outer join pmbperiod p on a.PMBPeriodID=p.PMBPeriodID and a.KodeID=p.KodeID and p.Tahun='".$_SESSION[Tahun2]."'", // "INSTR(a.SumberInformasi, $w[InfoID])>0 and a.TahunLulus < '$Tahun2a' and a.KodeID", KodeID, // "count(a.AplikanID)"); if (!empty($FG1) || !empty($FG2)) { $Fresh = $FG1 + $FG2; } if (!empty($NFG1) || !empty($NFG2)) { $NFresh = $NFG1 + $NFG2; } $data = array($Fresh, $NFresh); $dataL = array('Fresh Graduate', 'Non Fresh Graduate'); if ($Fresh != '' || $NFresh != '') { PieChart(400, 300, $Judul, $data, $dataL, $file); } ///// CREATE PDF ///// require 'fpdf.php'; $pdf = new FPDF('L', 'mm', 'A4'); $pdf->AddPage(); $pdf->SetFont('Arial', 'B', 16); $pdf->Image('Chart/Aplikan.png', 10, 10, 150); $pdf->Image('Chart/AplikanDft.png', 10, 75, 150); $pdf->Image('Chart/AplikanReg.png', 10, 140, 150); $pdf->SetX(180); $pdf->SetFont('Helvetica', 'B', 8); $pdf->Cell(100, 3, "MATRIK KELAS s.d " . date('d/m/Y h:i'), 0, 1); $pdf->SetX(180); $pdf->SetFont('Helvetica', 'B', 6); $pdf->Cell(20, 3, "PROGRAM", 'TLR', 0, 'C');