<html>
<head>
<style type="text/css" media="print">
	table {border: solid 1px #000; border-collapse: collapse; width: 100%}
	tr { border: solid 1px #000; page-break-inside: avoid;}
	td { padding: 7px 5px; font-size: 10px}
	th {
		font-family:Arial;
		color:black;
		font-size: 11px;
		background-color:lightgrey;
	}
	thead {
		display:table-header-group;
	}
	tbody {
		display:table-row-group;
	}
	h3 { margin-bottom: -17px }
	h2 { margin-bottom: 0px }
</style>
<style type="text/css" media="screen">
	table {border: solid 1px #000; border-collapse: collapse; width: 100%}
	tr { border: solid 1px #000}
	th {
		font-family:Arial;
		color:black;
		font-size: 11px;
		background-color: #999;
		padding: 8px 0;
	}
	td { padding: 7px 5px;font-size: 10px}
	h3 { margin-bottom: -17px }
	h2 { margin-bottom: 0px }
</style>
<title>Cetak Laporan</title>
</head>

<body onload="window.print()">
	<center><span style="font-size: 20px"><b>PT. Karya Lintas Multimedia</b></span><p>
	<span style="font-size: 20px"><b>Laporan Data Pemasangan</b></span></p>
	Dari tanggal <b><?php echo ($tgl_start)."</b> sampai dengan tanggal <b>".($tgl_end)."</b>"; ?>
	<p><b><font size="2">Jalan A.Yani No 23 RT.003 RW.004 Kelurahan Beriwit 
	Kecamatan Murung</font></b><br>
	</p>
	</center><br>
	
	<table>
		<thead>
			<tr>
			
			<th align="left">No</th>
			<th align="left">ID Pemasangan</th>
			<th align="left">ID Pelanggan</th>
			<th align="left">Nama Pelanggan</th>
			<th align="left">Alamat</th>
			<th align="left">No Telp</th>
			<th align="left">Tipe Paket</th>
			<th align="left">Harga</th>
             <th align="left">Nama Teknisi</th> 
			<th align="left">HP Teknisi</th>			 
                                                
			</tr>
		</thead>
		<tbody>
			
        <?php 
		if (empty($data)) {
			echo "<tr></tr>";
		} else {
			$no 	= ($this->uri->segment(4) + 1);
			foreach ($data as $b) {
		?>
                                                
												 
                                                 
												 
                                               
                                            <td align="left" height="16">  <?php echo $no?></td>
												   <td align="left" height="16">  <?php echo $b->id_pemasangan?></td>
                                                <td align="left" height="16">  <?php echo $b->id_pelanggan?></td>
												
												 <td align="left" height="16">  <?php echo $b->fname?></td>
												
												 <td align="left" height="16">  <?php echo $b->alamat?></td>
											 <td align="left" height="16">  <?php echo $b->no_hp?></td>
												 <td align="left" height="16">  <?php echo $b->tipe_paket?></td>
                                               <td align="left" height="16">  <?php echo $b->harga?></td>
											   <td align="left" height="16">  <?php echo $b->nama_teknisi?></td>
											   <td align="left" height="16">  <?php echo $b->hp_teknisi?></td>
                                            </tr>
                                            
                                  
                                           
                                           
                                            
                                            
                                            
                                           
         		<?php 
			$no++;
			}
		}
		?>                                  
          <?php 
		if (empty($data_2)) {
			echo "<tr></tr>";
		} else {
			$no 	= ($this->uri->segment(4) + 1);
			foreach ($data_2 as $b) {
		?>
                                                
												 
                                                 
												 
                                               
                                           
												 
                                                <td align="center"><?php echo $b->tgl_pemesanan?>
												
												
											
												 
                                               
                                            </tr>
                                            
                                  
                                           
                                           
                                            
                                            
                                            
                                           
         		<?php 
			$no++;
			}
		}
		?>                                      
		</tbody>
	</table>


</b>
<blockquote>
	<blockquote>
		<blockquote>
			<blockquote>
				<blockquote>
					<blockquote>
						<blockquote>
							<blockquote>
								<blockquote>
									<blockquote>
										<blockquote>
											<blockquote>
												<blockquote>
													<blockquote>
														
														<blockquote>
															<blockquote>
																<blockquote>
																	<p>
																	<font size="2">Manager</font></p>
																	<p>&nbsp;</p>
																	<p>
																	<font size="2">
																	Nanang&nbsp;Zaini,SE&nbsp;</font></p>
																</blockquote>
															</blockquote>
														</blockquote>
														
													</blockquote>
												</blockquote>
											</blockquote>
										</blockquote>
									</blockquote>
								</blockquote>
							</blockquote>
						</blockquote>
					</blockquote>
				</blockquote>
			</blockquote>
		</blockquote>
	</blockquote>
</blockquote>


</body>

</html>