//$this->Cell(40/100*$width,$height,strtoupper($_SESSION['org']['namaorganisasi']),'',0,'L'); $this->Cell(120,$height,' ','',0,'L'); $this->SetFont('Arial','B',10); $this->Cell(12/100*$width,$height,'PP NO','',0,'L'); $this->Cell(2/100*$width,$height,':','',0,'L'); $this->Cell(1/100*$width,$height,$column,'',0,'L'); $this->Cell(25/100*$width,$height,' ','',0,'L'); $this->SetFont('Arial','B',10); $this->Cell(14/100*$width,$height,$_SESSION['lang']['tanggal'],'',0,'L'); $this->Cell(2/100*$width,$height,':','',0,'L'); $this->Cell(1/100*$width,$height,$tgl,'',1,'L');*/ $this->Ln(20); } } #====================== Prepare PDF Setting $pdf = new masterpdf('P', 'pt', 'A4'); $width = $pdf->w - $pdf->lMargin - $pdf->rMargin; $height = 12; $pdf->SetFont('Arial', 'B', 8); $pdf->AddPage(); $awalXjudulno = $pdf->GetX(); $awalYjudulatas = $pdf->GetY(); $pdf->Cell(20, 1.5 * $height, 'No.', 'TBLR', 0, 'C'); $awalXkdbrg = $pdf->GetX(); $pdf->Cell(60, 1.5 * $height, $_SESSION['lang']['kodebarang'], 'TBLR', 0, 'L'); $awalXnmbrgjudul = $pdf->GetX(); $pdf->Cell(165, 1.5 * $height, $_SESSION['lang']['namabarang'], 'TBLR', 0, 'C'); $awalXjum = $pdf->GetX(); $pdf->Cell(35, 1.5 * $height, $_SESSION['lang']['jumlah'], 'TBLR', 0, 'L'); $awalXsat = $pdf->GetX(); $pdf->Cell(35, 1.5 * $height, $_SESSION['lang']['satuan'], 'TBLR', 0, 'C');
$this->Cell(100, $height, $nama, '', 0, 'L'); $this->Cell(315, $height, ' ', '', 0, 'R'); $this->Cell(40, $height, $_SESSION['lang']['user'], '', 0, 'L'); $this->Cell(8, $height, ':', '', 0, 'L'); $this->Cell(20, $height, $_SESSION['standard']['username'], '', 1, 'L'); $this->Ln(); $this->Cell(70, 1.5 * $height, $_SESSION['lang']['kodeorganisasi'], 'TBLR', 0, 'C'); $this->Cell(70, 1.5 * $height, $_SESSION['lang']['kodetangki'], 'TBR', 0, 'C'); $this->Cell(80, 1.5 * $height, $_SESSION['lang']['Tinggi'] . " (cm)", 'TBR', 0, 'C'); $this->Cell(80, 1.5 * $height, $_SESSION['lang']['volume'] . " (liter)", 'TBR', 0, 'C'); $this->Cell(80, 1.5 * $height, $_SESSION['lang']['beda'] . " (liter)", 'TBR', 0, 'C'); $this->Ln(); } } #====================== Prepare PDF Setting $pdf = new masterpdf('P', 'pt', 'A4'); $width = $pdf->w - $pdf->lMargin - $pdf->rMargin; $height = 14; $pdf->SetFont('Arial', '', 8); $pdf->AddPage(); # Generate Data $str = "select * from " . $dbname . ".pabrik_5tinggitangki where millcode = '" . $kodeorg . "'"; $result = fetchData($str); if (mysql_num_rows(mysql_query($str)) == 0) { $pdf->Cell(380, $height, $_SESSION['lang']['errdatanotexist'], 'BRL', 0, 'C'); } else { foreach ($result as $data) { $pdf->Cell(70, $height, $data['millcode'], 'BRL', 0, 'L'); $pdf->Cell(70, $height, $data['kodetangki'], 'BRL', 0, 'L'); $pdf->Cell(80, $height, $data['tinggi'], 'BRL', 0, 'R'); $pdf->Cell(80, $height, $data['volume'], 'BRL', 0, 'R');
# foreach($header as $hName) { # $this->Cell($width/count($header),$height,ucfirst($hName),'TBLR',0,'L'); # } $this->Cell(60, 1.5 * $height, $_SESSION['lang']['nomorperkiraan'], 'TBLR', 0, 'C'); $this->Cell(260, 1.5 * $height, $_SESSION['lang']['namaperkiraan'], 'TBLR', 0, 'C'); $this->Cell(38, 1.5 * $height, $_SESSION['lang']['tipe'], 'TBLR', 0, 'C'); $this->Cell(45, 1.5 * $height, $_SESSION['lang']['level'], 'TBLR', 0, 'C'); $this->Cell(47, 1.5 * $height, $_SESSION['lang']['matauang'], 'TBLR', 0, 'C'); $this->Cell(40, 1.5 * $height, $_SESSION['lang']['tampilkan'], 'TBLR', 0, 'C'); $this->Cell(40, 1.5 * $height, $_SESSION['lang']['detail'], 'TBLR', 0, 'C'); $this->Ln(); $this->Ln(); } } #====================== Prepare PDF Setting $pdf = new masterpdf('P', 'pt', 'A4'); $width = $pdf->w - $pdf->lMargin - $pdf->rMargin; $height = 12; $pdf->SetFont('Arial', '', 8); $pdf->AddPage(); # Generate Data #print_r($result); #exit; #foreach($result as $row) { # foreach($row as $data) { # $pdf->Cell($width/count($header),$height,$data,'',0,'L'); # } # $pdf->Ln(); #} foreach ($result as $data) { $pdf->Cell(60, $height, $data['noakun'], '', 0, 'L');
$this->Cell(20, $height, $_SESSION['standard']['username'], '', 1, 'L'); $this->Ln(); # Generate Header # foreach($header as $hName) { # $this->Cell($width/count($header),$height,ucfirst($hName),'TBLR',0,'L'); # } $this->Cell(40, 1.5 * $height, 'No', 'TBLR', 0, 'C'); $this->Cell(120, 1.5 * $height, $_SESSION['lang']['nopp'], 'TBLR', 0, 'C'); $this->Cell(60, 1.5 * $height, $_SESSION['lang']['tanggal'], 'TBLR', 0, 'C'); $this->Cell(150, 1.5 * $height, $_SESSION['lang']['namaorganisasi'], 'TBLR', 0, 'C'); $this->Cell(80, 1.5 * $height, 'Progress', 'TBLR', 0, 'C'); $this->Ln(); } } #====================== Prepare PDF Setting $pdf = new masterpdf('P', 'pt', 'A4'); $width = $pdf->w - $pdf->lMargin - $pdf->rMargin; $height = 12; $pdf->SetFont('Arial', '', 8); $pdf->AddPage(); # Generate Data #print_r($result); #exit; #foreach($result as $row) { # foreach($row as $data) { # $pdf->Cell($width/count($header),$height,$data,'',0,'L'); # } # $pdf->Ln(); #} $no = 0; if (!empty($result)) {
$this->Cell(100, $height, $nama, '', 0, 'L'); $this->Cell(315, $height, ' ', '', 0, 'R'); $this->Cell(40, $height, $_SESSION['lang']['user'], '', 0, 'L'); $this->Cell(8, $height, ':', '', 0, 'L'); $this->Cell(20, $height, $_SESSION['standard']['username'], '', 1, 'L'); $this->Ln(); $this->Cell(70, 1.5 * $height, $_SESSION['lang']['kodeorganisasi'], 'TBLR', 0, 'C'); $this->Cell(70, 1.5 * $height, $_SESSION['lang']['kodetangki'], 'TBR', 0, 'C'); $this->Cell(80, 1.5 * $height, $_SESSION['lang']['suhu'], 'TBR', 0, 'C'); $this->Cell(80, 1.5 * $height, $_SESSION['lang']['beratjenis'], 'TBR', 0, 'C'); $this->Cell(80, 1.5 * $height, $_SESSION['lang']['varian'], 'TBR', 0, 'C'); $this->Ln(); } } #====================== Prepare PDF Setting $pdf = new masterpdf('P', 'pt', 'A4'); $width = $pdf->w - $pdf->lMargin - $pdf->rMargin; $height = 14; $pdf->SetFont('Arial', '', 8); $pdf->AddPage(); # Generate Data $str = "select * from " . $dbname . ".pabrik_5suhu where millcode = '" . $kodeorg . "'"; $result = fetchData($str); if (mysql_num_rows(mysql_query($str)) == 0) { $pdf->Cell(380, $height, $_SESSION['lang']['errdatanotexist'], 'BRL', 0, 'C'); } else { foreach ($result as $data) { $pdf->Cell(70, $height, $data['millcode'], 'BRL', 0, 'L'); $pdf->Cell(70, $height, $data['kodetangki'], 'BRL', 0, 'L'); $pdf->Cell(80, $height, $data['suhu'], 'BRL', 0, 'R'); $pdf->Cell(80, $height, $data['berat_jenis'], 'BRL', 0, 'R');
$this->Cell(15, $height, $this->PageNo(), '', 1, 'L'); $this->Cell(100, $height, $nama, '', 0, 'L'); $this->Cell(315, $height, ' ', '', 0, 'R'); $this->Cell(40, $height, $_SESSION['lang']['user'], '', 0, 'L'); $this->Cell(8, $height, ':', '', 0, 'L'); $this->Cell(20, $height, $_SESSION['standard']['username'], '', 1, 'L'); $this->Ln(); $this->Cell(70, 1.5 * $height, $_SESSION['lang']['kodeorganisasi'], 'TBLR', 0, 'C'); $this->Cell(70, 1.5 * $height, $_SESSION['lang']['kodetangki'], 'TBR', 0, 'C'); $this->Cell(80, 1.5 * $height, $_SESSION['lang']['periode'], 'TBR', 0, 'C'); $this->Cell(80, 1.5 * $height, $_SESSION['lang']['suhu'], 'TBR', 0, 'C'); $this->Ln(); } } #====================== Prepare PDF Setting $pdf = new masterpdf('P', 'pt', 'A4'); $width = $pdf->w - $pdf->lMargin - $pdf->rMargin; $height = 14; $pdf->SetFont('Arial', '', 8); $pdf->AddPage(); # Generate Data $str = "select * from " . $dbname . ".pabrik_5standardsuhu_kalibrasi where millcode = '" . $kodeorg . "' and periode like '%" . $optPeriode . "%' order by millcode ASC, kodetangki ASC, periode DESC"; $result = fetchData($str); if (mysql_num_rows(mysql_query($str)) == 0) { $pdf->Cell(300, $height, $_SESSION['lang']['errdatanotexist'], 'BRL', 0, 'C'); } else { foreach ($result as $data) { $pdf->Cell(70, $height, $data['millcode'], 'BRL', 0, 'L'); $pdf->Cell(70, $height, $data['kodetangki'], 'BRL', 0, 'L'); $pdf->Cell(80, $height, $data['periode'], 'BRL', 0, 'L'); $pdf->Cell(80, $height, $data['suhu_kalibrasi'], 'BRL', 0, 'R');
$this->Cell(8, $height, ':', '', 0, 'L'); $this->Cell(20, $height, $_SESSION['standard']['username'], '', 1, 'L'); $this->Ln(); # Generate Header # foreach($header as $hName) { # $this->Cell($width/count($header),$height,ucfirst($hName),'TBLR',0,'L'); # } $this->Cell(60, 1.5 * $height, $_SESSION['lang']['kode'], 'TBLR', 0, 'C'); $this->Cell(400, 1.5 * $height, $_SESSION['lang']['namakelompokkegiatan'], 'TBLR', 0, 'C'); $this->Cell(80, 1.5 * $height, $_SESSION['lang']['nomorperkiraan'], 'TBLR', 0, 'C'); $this->Ln(); $this->Ln(); } } #====================== Prepare PDF Setting $pdf = new masterpdf('P', 'pt', 'A4'); $width = $pdf->w - $pdf->lMargin - $pdf->rMargin; $height = 12; $pdf->SetFont('Arial', '', 8); $pdf->AddPage(); # Generate Data #print_r($result); #exit; #foreach($result as $row) { # foreach($row as $data) { # $pdf->Cell($width/count($header),$height,$data,'',0,'L'); # } # $pdf->Ln(); #} foreach ($result as $data) { $pdf->Cell(60, $height, $data['kodeklp'], '', 0, 'L');
$this->Cell(8, $height, ':', '', 0, 'L'); $this->Cell(20, $height, $_SESSION['standard']['username'], '', 1, 'L'); $this->Ln(); # Generate Header # foreach($header as $hName) { # $this->Cell($width/count($header),$height,ucfirst($hName),'TBLR',0,'L'); # } $this->Cell(60, 1.5 * $height, $_SESSION['lang']['kode'], 'TBLR', 0, 'C'); $this->Cell(400, 1.5 * $height, $_SESSION['lang']['namabarang'], 'TBLR', 0, 'C'); $this->Cell(80, 1.5 * $height, $_SESSION['lang']['satuan'], 'TBLR', 0, 'C'); $this->Ln(); $this->Ln(); } } #====================== Prepare PDF Setting $pdf = new masterpdf('P', 'pt', 'A4'); $width = $pdf->w - $pdf->lMargin - $pdf->rMargin; $height = 12; $pdf->SetFont('Arial', '', 8); $pdf->AddPage(); # Generate Data #print_r($result); #exit; #foreach($result as $row) { # foreach($row as $data) { # $pdf->Cell($width/count($header),$height,$data,'',0,'L'); # } # $pdf->Ln(); #} foreach ($result as $data) { $pdf->Cell(60, $height, $data['kodebarang'], '', 0, 'L');
$this->Cell(70, 1.5 * $height, $_SESSION['lang']['luasareaproduktif'], 'TBLR', 0, 'C'); $this->Cell(90, 1.5 * $height, $_SESSION['lang']['luasareanonproduktif'], 'TBLR', 0, 'C'); $this->Cell(60, 1.5 * $height, $_SESSION['lang']['totalarea'], 'TBLR', 0, 'C'); $this->Cell(60, 1.5 * $height, $_SESSION['lang']['jmlpokok'], 'TBLR', 0, 'C'); $this->Cell(60, 1.5 * $height, $_SESSION['lang']['statusblok'], 'TBLR', 0, 'C'); $this->Cell(100, 1.5 * $height, $_SESSION['lang']['periodemulaipanen'], 'TBLR', 0, 'C'); $this->Cell(50, 1.5 * $height, $_SESSION['lang']['jenisbibit'], 'TBLR', 0, 'C'); $this->Cell(40, 1.5 * $height, $_SESSION['lang']['kodetanah'], 'TBLR', 0, 'C'); $this->Cell(80, 1.5 * $height, $_SESSION['lang']['klasifikasitanah'], 'TBLR', 0, 'C'); $this->Cell(60, 1.5 * $height, $_SESSION['lang']['topografi'], 'TBLR', 0, 'C'); $this->Ln(); $this->Ln(); } } #====================== Prepare PDF Setting $pdf = new masterpdf('L', 'pt', 'A4'); $width = $pdf->w - $pdf->lMargin - $pdf->rMargin; $height = 12; $pdf->SetFont('Arial', '', 8); $pdf->AddPage(); # Generate Data #print_r($result); #exit; #foreach($result as $row) { # foreach($row as $data) { # $pdf->Cell($width/count($header),$height,$data,'',0,'L'); # } # $pdf->Ln(); #} foreach ($result as $data) { $pdf->Cell(70, $height, $data['kodeorg'], '', 0, 'C');
global $header; # Panjang, Lebar $width = $this->w - $this->lMargin - $this->rMargin; $height = 12; $this->SetFont('Arial', 'B', 8); $this->Cell($width, $height, 'Tabel : ' . $table, '', 1, 'L'); $this->Ln(); # Generate Header foreach ($header as $hName) { $this->Cell($width / count($header), $height, ucfirst($hName), 'TBLR', 0, 'L'); } $this->Ln(); } } #====================== Prepare PDF Setting $pdf = new masterpdf('L', 'pt', 'A4'); $width = $pdf->w - $pdf->lMargin - $pdf->rMargin; $height = 12; $pdf->SetFont('Arial', '', 8); $pdf->AddPage(); # Generate Data foreach ($result as $row) { //print"<pre>"; //print_r($row); //print"</pre>"; if ($row['karyawanid']) { $sDt = "select namakaryawan,karyawanid from " . $dbname . ".datakaryawan where karyawanid='" . $row['karyawanid'] . "'"; //echo "warning".$sDt;exit(); $qDt = mysql_query($sDt) or die(mysql_error()); $rDt = mysql_fetch_assoc($qDt); if ($rDt['karyawanid'] == $row['karyawanid']) {