<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<style type="text/css">
	#table1 tr td{
		padding-left:5px;	
		padding-right:5px;	
	}
</style>
<body style="margin-left:40px; font-size:12px;">
<?php
	$id = $_GET['id'];
	include("config/connection.php");
	$sql ="select * from tb_jadwal  where Id_Jadwal = '".$id."'";
	$hasil = mysql_query($sql) or die("Kesalahan Pada SQL");
	mysql_close($test);
	
	$row = mysql_fetch_object($hasil);
		
		$Waktu = $row->Waktu;
		$tanggal = $row->tanggal;
		
			$day = date('D', strtotime($tanggal));
			$dayList = array(
				'Sun' => 'Minggu',
				'Mon' => 'Senin',
				'Tue' => 'Selasa',
				'Wed' => 'Rabu',
				'Thu' => 'Kamis',
				'Fri' => 'Jumat',
				'Sat' => 'Sabtu'
			);
			
			$tanggalnya = substr($tanggal, 8, 2);
			$bulanU = substr($tanggal, 5, 2);
			$tahun = substr($tanggal, 0, 4);
			
				if ($bulanU == '01'){
					$bulans = 'Januari';
				}elseif ($bulanU == '02'){ 
					$bulans = 'Februari';
				}elseif ($bulanU == '03'){
					$bulans = 'Maret';
				}elseif ($bulanU == '04'){
					$bulans = 'April';
				}elseif ($bulanU == '05'){
					$bulans	= 'Mei';
				}elseif ($bulanU == '06'){
					$bulans = 'Juni';	
				}elseif ($bulanU == '07'){
					$bulans = 'Juli';	
				}elseif ($bulanU == '08'){
					$bulans = 'Agustus';	
				}elseif ($bulanU == '09'){
					$bulans = 'September';	
				}elseif ($bulanU == '10'){
					$bulans = 'Oktober';
				}elseif ($bulanU == '11'){
					$bulans = 'November';
				}elseif ($bulanU == '12'){
					$bulans = 'Desember';	
				}
		
		
?>
<table width="100%" border="0">
  <tr>
    <td><div align="center">LAPORAN PRODUKSI / PENDAPATAN</div></td>
  </tr>
  <tr>
    <td><div align="center">KMP. NUSA JAYA ABADI</div></td>
  </tr>
  <tr>
    <td><div align="center">NUSA PENIDA KLUNGKUNG</div></td>
  </tr>
  <tr>
    <td><div align="center">Hari / Tanggal : <?php echo $dayList[$day]?>, <?php echo $tanggalnya." ".$bulans." ".$tahun?></div></td>
  </tr>
  <tr>
    <td><div align="center">Waktu : <?php echo $Waktu ?> Wita</div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="100%" border="1" style="border-collapse:collapse" id="table1">
  <tr>
    <td width="4%" rowspan="2"><div align="center">NO</div></td>
    <td width="21%" rowspan="2"><div align="center">JENIS TIKET</div></td>
    <td width="13%" rowspan="2"><div align="center">JUMLAH LEMBAR TERJUAL</div></td>
    <td width="13%" rowspan="2"><div align="center">TARIF JR (Rp)</div></td>
    <td width="14%" rowspan="2"><div align="center">TARIF JP (Rp)</div></td>
    <td colspan="2"><div align="center">PENDAPATAN</div></td>
    <td width="15%" rowspan="2"><div align="center">JUMLAH PENDAPATAN (Rp)</div></td>
  </tr>
  <tr>
    <td width="9%"><div align="center">JR (Rp)</div></td>
    <td width="11%"><div align="center">JP (Rp)</div></td>
  </tr>
  <tr>
    <td>1</td>
    <td>PENUMPANG</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
           <?php
					include("config/connection.php");
              		$sql ="select count(id_angkutan) as jumlah from tb_tiket where id_angkutan = 1 and id_jadwal = '".$id."'";
					$hasil = mysql_query($sql) or die("Kesalahan Pada SQL");
					mysql_close($test);
					
					$row = mysql_fetch_object($hasil);
					    
						$jumlah1 = $row->jumlah;
						$pendapatanjr1 = 800 * $jumlah1;
						$pendapatanjp1 = 300 * $jumlah1;
						$jumlahpendapatan1 = $pendapatanjr1 + $pendapatanjp1;
						
			?>
  <tr>
    <td>&nbsp;</td>
    <td>a. Dewasa</td>
    <td><div align="right">
      <?php if($jumlah1>0){ echo number_format($jumlah1); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">800</div></td>
    <td><div align="right">300</div></td>
    <td><div align="right">
      <?php if($pendapatanjr1>0){ echo number_format($pendapatanjr1); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($pendapatanjp1>0){ echo number_format($pendapatanjp1); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($jumlahpendapatan1>0){ echo number_format($jumlahpendapatan1); }else{ echo "-";}?>
    </div></td>
  </tr>
           <?php
					include("config/connection.php");
              		$sql ="select count(id_angkutan) as jumlah from tb_tiket where id_angkutan = 2 and id_jadwal = '".$id."'";
					$hasil = mysql_query($sql) or die("Kesalahan Pada SQL");
					mysql_close($test);
					
					$row = mysql_fetch_object($hasil);
					    
						$jumlah2 = $row->jumlah;
						$pendapatanjr2 = 800 * $jumlah2;
						$pendapatanjp2 = 300 * $jumlah2;
						$jumlahpendapatan2 = $pendapatanjr2 + $pendapatanjp2;
			?>
  <tr>
    <td>&nbsp;</td>
    <td>b. Anak-anak</td>
    <td><div align="right">
      <?php if($jumlah2>0){ echo number_format($jumlah2); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">800</div></td>
    <td><div align="right">300</div></td>
    <td><div align="right">
      <?php if($pendapatanjr2>0){ echo number_format($pendapatanjr2); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($pendapatanjp2>0){ echo number_format($pendapatanjp2); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($jumlahpendapatan2>0){ echo number_format($jumlahpendapatan2); }else{ echo "-";}?>
    </div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
  </tr>
  <tr>
    <td>2</td>
    <td>KENDARAAN</td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
  </tr>
           <?php
					include("config/connection.php");
              		$sql ="select count(id_angkutan) as jumlah from tb_tiket where id_angkutan = 3 and id_jadwal = '".$id."'";
					$hasil = mysql_query($sql) or die("Kesalahan Pada SQL");
					mysql_close($test);
					
					$row = mysql_fetch_object($hasil);
					    
						$jumlah3 = $row->jumlah;
						$pendapatanjr3 = 800 * $jumlah3;
						$pendapatanjp3 = 350 * $jumlah3;
						$jumlahpendapatan3 = $pendapatanjr3 + $pendapatanjp3;
			?>
  <tr>
    <td>&nbsp;</td>
    <td>a. Golongan I</td>
    <td><div align="right">
      <?php if($jumlah3>0){ echo number_format($jumlah3); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">800</div></td>
    <td><div align="right">350</div></td>
    <td><div align="right">
      <?php if($pendapatanjr3>0){ echo number_format($pendapatanjr3); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($pendapatanjp3>0){ echo number_format($pendapatanjp3); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($jumlahpendapatan3>0){ echo number_format($jumlahpendapatan3); }else{ echo "-";}?>
    </div></td>
  </tr>
           <?php
					include("config/connection.php");
              		$sql ="select count(id_angkutan) as jumlah from tb_tiket where id_angkutan = 4 and id_jadwal = '".$id."'";
					$hasil = mysql_query($sql) or die("Kesalahan Pada SQL");
					mysql_close($test);
					
					$row = mysql_fetch_object($hasil);
					    
						$jumlah4 = $row->jumlah;
						$pendapatanjr4 = 800 * $jumlah4;
						$pendapatanjp4 = 700 * $jumlah4;
						$jumlahpendapatan4 = $pendapatanjr4 + $pendapatanjp4;
			?>
  <tr>
    <td>&nbsp;</td>
    <td>b. Golongan II</td>
    <td><div align="right">
      <?php if($jumlah4>0){ echo number_format($jumlah4); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">800</div></td>
    <td><div align="right">700</div></td>
    <td><div align="right">
      <?php if($pendapatanjr4>0){ echo number_format($pendapatanjr4); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($pendapatanjp4>0){ echo number_format($pendapatanjp4); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($jumlahpendapatan4>0){ echo number_format($jumlahpendapatan4); }else{ echo "-";}?>
    </div></td>
  </tr>
           <?php
					include("config/connection.php");
              		$sql ="select count(id_angkutan) as jumlah from tb_tiket where id_angkutan = 5 and id_jadwal = '".$id."'";
					$hasil = mysql_query($sql) or die("Kesalahan Pada SQL");
					mysql_close($test);
					
					$row = mysql_fetch_object($hasil);
					    
						$jumlah5 = $row->jumlah;
						$pendapatanjr5 = 800 * $jumlah5;
						$pendapatanjp5 = 1700 * $jumlah5;
						$jumlahpendapatan5 = $pendapatanjr5 + $pendapatanjp5;
			?>
  <tr>
    <td>&nbsp;</td>
    <td>c. Golongan III</td>
    <td><div align="right">
      <?php if($jumlah5>0){ echo number_format($jumlah5); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">800</div></td>
    <td><div align="right">1,700</div></td>
    <td><div align="right">
      <?php if($pendapatanjr5>0){ echo number_format($pendapatanjr5); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($pendapatanjp5>0){ echo number_format($pendapatanjp5); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($jumlahpendapatan5>0){ echo number_format($jumlahpendapatan5); }else{ echo "-";}?>
    </div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>d. Golongan IV</td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
  </tr>
           <?php
					include("config/connection.php");
              		$sql ="select count(id_angkutan) as jumlah from tb_tiket where id_angkutan = 6 and id_jadwal = '".$id."'";
					$hasil = mysql_query($sql) or die("Kesalahan Pada SQL");
					mysql_close($test);
					
					$row = mysql_fetch_object($hasil);
					    
						$jumlah6 = $row->jumlah;
						$pendapatanjr6 = 3200 * $jumlah6;
						$pendapatanjp6 = 3600 * $jumlah6;
						$jumlahpendapatan6 = $pendapatanjr6 + $pendapatanjp6;
			?>
  <tr>
    <td>&nbsp;</td>
    <td>1. Kend Pnp</td>
    <td><div align="right">
      <?php if($jumlah6>0){ echo number_format($jumlah6); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">3,200</div></td>
    <td><div align="right">3,600</div></td>
    <td><div align="right">
      <?php if($pendapatanjr6>0){ echo number_format($pendapatanjr6); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($pendapatanjp6>0){ echo number_format($pendapatanjp6); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($jumlahpendapatan6>0){ echo number_format($jumlahpendapatan6); }else{ echo "-";}?>
    </div></td>
  </tr>
           <?php
					include("config/connection.php");
              		$sql ="select count(id_angkutan) as jumlah from tb_tiket where id_angkutan = 7 and id_jadwal = '".$id."'";
					$hasil = mysql_query($sql) or die("Kesalahan Pada SQL");
					mysql_close($test);
					
					$row = mysql_fetch_object($hasil);
					    
						$jumlah7 = $row->jumlah;
						$pendapatanjr7 = 800 * $jumlah7;
						$pendapatanjp7 = 3400 * $jumlah7;
						$jumlahpendapatan7 = $pendapatanjr7 + $pendapatanjp7;
			?>
  <tr>
    <td>&nbsp;</td>
    <td>2. Kend brg</td>
    <td><div align="right">
      <?php if($jumlah7>0){ echo number_format($jumlah7); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">800</div></td>
    <td><div align="right">3,400</div></td>
    <td><div align="right">
      <?php if($pendapatanjr7>0){ echo number_format($pendapatanjr7); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($pendapatanjp7>0){ echo number_format($pendapatanjp7); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($jumlahpendapatan7>0){ echo number_format($jumlahpendapatan7); }else{ echo "-";}?>
    </div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>e. Golongan V</td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
  </tr>
           <?php
					include("config/connection.php");
              		$sql ="select count(id_angkutan) as jumlah from tb_tiket where id_angkutan = 8 and id_jadwal = '".$id."'";
					$hasil = mysql_query($sql) or die("Kesalahan Pada SQL");
					mysql_close($test);
					
					$row = mysql_fetch_object($hasil);
					    
						$jumlah8 = $row->jumlah;
						$pendapatanjr8 = 12800 * $jumlah8;
						$pendapatanjp8 = 7400 * $jumlah8;
						$jumlahpendapatan8 = $pendapatanjr8 + $pendapatanjp8;
			?>
  <tr>
    <td>&nbsp;</td>
    <td>1. Kend Pnp</td>
    <td><div align="right">
      <?php if($jumlah8>0){ echo number_format($jumlah8); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">12,800</div></td>
    <td><div align="right">7,400</div></td>
    <td><div align="right">
      <?php if($pendapatanjr8>0){ echo number_format($pendapatanjr8); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($pendapatanjp8>0){ echo number_format($pendapatanjp8); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($jumlahpendapatan8>0){ echo number_format($jumlahpendapatan8); }else{ echo "-";}?>
    </div></td>
  </tr>
           <?php
					include("config/connection.php");
              		$sql ="select count(id_angkutan) as jumlah from tb_tiket where id_angkutan = 9 and id_jadwal = '".$id."'";
					$hasil = mysql_query($sql) or die("Kesalahan Pada SQL");
					mysql_close($test);
					
					$row = mysql_fetch_object($hasil);
					    
						$jumlah9 = $row->jumlah;
						$pendapatanjr9 = 1600 * $jumlah9;
						$pendapatanjp9 = 5700 * $jumlah9;
						$jumlahpendapatan9 = $pendapatanjr9 + $pendapatanjp9;
			?>
  <tr>
    <td>&nbsp;</td>
    <td>2. Kend brg</td>
    <td><div align="right">
      <?php if($jumlah9>0){ echo number_format($jumlah9); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">1,600</div></td>
    <td><div align="right">5,700</div></td>
    <td><div align="right">
      <?php if($pendapatanjr9>0){ echo number_format($pendapatanjr9); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($pendapatanjp9>0){ echo number_format($pendapatanjp9); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($jumlahpendapatan9>0){ echo number_format($jumlahpendapatan9); }else{ echo "-";}?>
    </div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>f. Golongan VI</td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
  </tr>
           <?php
					include("config/connection.php");
              		$sql ="select count(id_angkutan) as jumlah from tb_tiket where id_angkutan = 10 and id_jadwal = '".$id."'";
					$hasil = mysql_query($sql) or die("Kesalahan Pada SQL");
					mysql_close($test);
					
					$row = mysql_fetch_object($hasil);
					    
						$jumlah10 = $row->jumlah;
						$pendapatanjr10 = 24000 * $jumlah10;
						$pendapatanjp10 = 12200 * $jumlah10;
						$jumlahpendapatan10 = $pendapatanjr10 + $pendapatanjp10;
			?>
  <tr>
    <td>&nbsp;</td>
    <td>1. Kend Pnp</td>
    <td><div align="right">
      <?php if($jumlah10>0){ echo number_format($jumlah10); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">24,000</div></td>
    <td><div align="right">12,200</div></td>
    <td><div align="right">
      <?php if($pendapatanjr10>0){ echo number_format($pendapatanjr10); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($pendapatanjp10>0){ echo number_format($pendapatanjp10); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($jumlahpendapatan10>0){ echo number_format($jumlahpendapatan10); }else{ echo "-";}?>
    </div></td>
  </tr>
           <?php
					include("config/connection.php");
              		$sql ="select count(id_angkutan) as jumlah from tb_tiket where id_angkutan = 11 and id_jadwal = '".$id."'";
					$hasil = mysql_query($sql) or die("Kesalahan Pada SQL");
					mysql_close($test);
					
					$row = mysql_fetch_object($hasil);
					    
						$jumlah11 = $row->jumlah;
						$pendapatanjr11 = 1600 * $jumlah11;
						$pendapatanjp11 = 9400 * $jumlah11;
						$jumlahpendapatan11 = $pendapatanjr11 + $pendapatanjp11;
			?>
  <tr>
    <td>&nbsp;</td>
    <td>2. Kend brg</td>
    <td><div align="right">
      <?php if($jumlah11>0){ echo number_format($jumlah11); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">1,600</div></td>
    <td><div align="right">9,400</div></td>
    <td><div align="right">
      <?php if($pendapatanjr11>0){ echo number_format($pendapatanjr11); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($pendapatanjp11>0){ echo number_format($pendapatanjp11); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($jumlahpendapatan11>0){ echo number_format($jumlahpendapatan11); }else{ echo "-";}?>
    </div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
  </tr>
           <?php
					include("config/connection.php");
              		$sql ="select count(id_angkutan) as jumlah from tb_tiket where id_angkutan = 11 and id_jadwal = '".$id."'";
					$hasil = mysql_query($sql) or die("Kesalahan Pada SQL");
					mysql_close($test);
					
					$row = mysql_fetch_object($hasil);
					    
						$jumlah12 = $row->jumlah;
						$pendapatanjr12 = 1600 * $jumlah12;
						$pendapatanjp12 = 11150 * $jumlah12;
						$jumlahpendapatan12 = $pendapatanjr12 + $pendapatanjp12;
			?>
  <tr>
    <td>&nbsp;</td>
    <td>g. Golongan VII</td>
    <td><div align="right">
      <?php if($jumlah12>0){ echo number_format($jumlah12); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">1,600</div></td>
    <td><div align="right">11,150</div></td>
    <td><div align="right">
      <?php if($pendapatanjr12>0){ echo number_format($pendapatanjr12); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($pendapatanjp12>0){ echo number_format($pendapatanjp12); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($jumlahpendapatan12>0){ echo number_format($jumlahpendapatan12); }else{ echo "-";}?>
    </div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
  </tr>
           <?php
					include("config/connection.php");
              		$sql ="select count(id_angkutan) as jumlah from tb_tiket where id_angkutan = 11 and id_jadwal = '".$id."'";
					$hasil = mysql_query($sql) or die("Kesalahan Pada SQL");
					mysql_close($test);
					
					$row = mysql_fetch_object($hasil);
					    
						$jumlah13 = $row->jumlah;
						$pendapatanjr13 = 1600 * $jumlah13;
						$pendapatanjp13 = 12300 * $jumlah13;
						$jumlahpendapatan13 = $pendapatanjr13 + $pendapatanjp13;
			?>
  <tr>
    <td>&nbsp;</td>
    <td>h. Golongan VIII</td>
    <td><div align="right">
      <?php if($jumlah13>0){ echo number_format($jumlah13); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">1,600</div></td>
    <td><div align="right">12,300</div></td>
    <td><div align="right">
      <?php if($pendapatanjr13>0){ echo number_format($pendapatanjr13); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($pendapatanjp13>0){ echo number_format($pendapatanjp13); }else{ echo "-";}?>
    </div></td>
    <td><div align="right">
      <?php if($jumlahpendapatan13>0){ echo number_format($jumlahpendapatan13); }else{ echo "-";}?>
    </div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>JUMLAH</td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right"></div></td>
    <td><div align="right">
      <?php $totaljr = $pendapatanjr1 + $pendapatanjr2 + $pendapatanjr3 + $pendapatanjr4 + $pendapatanjr5 + $pendapatanjr6 + $pendapatanjr7 + $pendapatanjr8 + $pendapatanjr9 + $pendapatanjr10 + $pendapatanjr11 + $pendapatanjr12 + $pendapatanjr13; echo number_format($totaljr); ?>
    </div></td>
    <td><div align="right">
      <?php $totaljp = $pendapatanjp1 + $pendapatanjp2 + $pendapatanjp3 + $pendapatanjp4 + $pendapatanjp5 + $pendapatanjp6 + $pendapatanjp7 + $pendapatanjp8 + $pendapatanjp9 + $pendapatanjp10 + $pendapatanjp11 + $pendapatanjp12 + $pendapatanjp13; echo number_format($totaljp); ?>
    </div></td>
    <td><div align="right">
      <?php $total = $totaljp + $totaljr; echo number_format($total); ?>
    </div></td>
  </tr>
</table>
<table width="100%" border="0">
  <tr>
    <td width="50%">&nbsp;</td>
    <td width="50%">&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><div align="center">KEPALA UPT PELABUHAN</div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><div align="center">PENYEBERANGAN NUSA PENIDA</div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><div align="center"></div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><div align="center"></div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><div align="center">I DEWA GEDE AGUS SWARMA HENDRA, S.Sos</div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><div align="center">NIP. 19601020 198903 1 006</div></td>
  </tr>
</table>

</body>
</html>