<?php 
  session_start();
  error_reporting(0);
  ?>
<head>
<title>Print Resep - Optik Minang Solok</title>
<style>
.input1 {
	height: 20px;
	font-size: 12px;
	padding-left: 5px;
	margin: 5px 0px 0px 5px;
	width: 97%;
	border: none;
	color: red;
}
table {
	border: 1px solid #cecece;
}
.td {
	border: 1px solid #cecece;
}
#kiri{
width:100%;
float:left;
}

#kanan{
width:50%;
float:right;
padding-top:20px;
margin-bottom:9px;
}
</style>
</head>

<body onload="window.print()">
<?php 
  include "../config/koneksi.php";
  include "../config/fungsi_indotgl.php";
  include "../config/class_paging.php";
  include "../config/library.php";
  include "../config/fungsi_rupiah.php";

  $tampil=mysql_query("SELECT * FROM rb_pemesan_temp where id_orders='$_GET[id]'");
  $pt=mysql_fetch_array($tampil);

echo "<center>
				<table style='border:none; width:80%'>
				<tr><td rowspan='4' style='width:92px'><img style='width:90px' src='../view/logo.jpg'></td></tr>
				<tr><td colspan=3><h2>OPTIK MINANG & CO</h2></td></tr>
				<tr>
					<td valign=top>Pusat </td><td width=10px> : </td><td> Jl.K.H. Ahmad Dahlan No 140 B Solok<br> Telp (0755) 21060</td>
				</tr>
				<tr>
					<td valign=top>Cabang </td><td> : </td><td> Padang - Bukit Tinggi - Batusangkar - Sei. Rumbai</td>
				</tr>
				</table></center><hr/>

			<h2 align=center>RESEP KACAMATA</h2>	
		  <div id='kiri'>
		  	<span style='float:right'>Tgl. ................. 20.......</span>
		    <table style='border:none;' width=100%><br/>
			  <tr><td><b>No Ref</b></td>     <td>: &nbsp;$pt[no_ref]</td></tr>
			  <tr><td><b>Pemesan</b></td>     <td>: &nbsp;$pt[nama_pemesan]</td></tr>
			  <tr><td width='130px;'><b>Alamat</b></td>       <td>: &nbsp;$pt[alamat]</td></tr>
			</table>
		  </div>";

	echo " <br/><table cellpadding=2 width=100% border:1px>
          	<tr bgcolor='#000' style='color:#fff'>
          		<th></th>
				<th>SPH</th>
				<th>CYL</th>
				<th>AXS</th>
				<th>ADD</th>
				<th>PD</th>
			</tr>";

    $tampill = mysql_query("SELECT * FROM  rb_resep_temp where id_orders='$_GET[id]'");
	$s=mysql_fetch_array($tampill);
      echo "<tr bgcolor=$warna>
      			<td class='td'><b>R</b> </td>
      			<td class='td'>$s[R_SPH] </td>
				<td class='td'>$s[R_CYL] </td>
				<td class='td'>$s[R_AXS] </td>
				<td class='td'>$s[R_ADD] </td>
				<td class='td'>$s[PD] </td>
			</tr>
			<tr>
				<td class='td'><b>L</b> </td>
				<td class='td'>$s[L_SPH] </td>
				<td class='td'>$s[L_CYL] </td>
				<td class='td'>$s[L_AXS] </td>
				<td class='td'>$s[L_ADD] </td>
				<td class='td'>$s[PD2] </td>
			</tr>";
	    echo "</table>
	<tr>
	<td><br/><span style='float:right; text-align:center;'> Optik Minang Solok, $tgl_sekarang <br/>
										Karyawan<br/></br></br>
								(.............................................)
								<br/>$_SESSION[namalengkap]</span></td></tr>";
?>