<script type="text/javascript">
window.onload = function() {
    this.print();
};
</script>
<style>
    body { 
        height: 842px; 
        width: 595px; 
        /* to center page on screen*/ 
        margin-left: auto; 
        margin-right: auto; 

   } 
</style> 

<body> 
 
<?php
include('../baglan.php');

if(isset($_GET['HASTA_ID'])) $HASTA_ID = $_GET['HASTA_ID'];
$baglan = mysql_query("select * from hastalar where HASTA_ID='$HASTA_ID'"); 


$yaz = mysql_fetch_assoc($baglan); // while dongsu icine almadim tek veri cekecegimiz icin. burda get methodunu da kullandık

?>
<table width="631" border="0">
  <tr>
    <td height="135" colspan="4" valign="top"><img src="../img/bilgiler.jpg"></td>
    <td colspan="2">&nbsp;</td>
  </tr>
  <tr>
    <td height="107" colspan="5" valign="top"><strong>Sayın</strong> <? echo $yaz["HASTA_ADI"];?></td>
    <td width="247" rowspan="2" valign="top"><table width="247" border="0">
      <tr>
        <td width="90">Tarih </td>
        <td width="141"><? echo $yaz["HASTA_ADI"];?></td>
        </tr>
      <tr>
        <td>S.İrs. No</td>
        <td><? echo $yaz["HASTA_ADI"];?></td>
        </tr>
      <tr>
        <td><p>S.İrs. Tarih</p>          </td>
        <td><? echo $yaz["HASTA_ADI"];?></td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td width="168"><strong>V.Dairesi </strong></td>
    <td width="154"><? echo $yaz["HASTA_ADI"];?></td>
    <td width="39"><strong>V.No</strong></td>
    <td colspan="2"><? echo $yaz["HASTA_ADI"];?></td>
  </tr>
  <tr>
    <td colspan="6"><table width="642" border="1">
      <tr>
        <td width="276" align="center" bordercolor="#FFFFFF" bgcolor="#0099CC"><strong>CİNSİ</strong></td>
        <td width="104" align="center" bgcolor="#0099CC"><strong>MİKTAR</strong></td>
        <td width="85" align="center" bgcolor="#0099CC"><strong>FİYAT</strong></td>
        <td width="149" align="center" bgcolor="#0099CC"><strong>TUTAR</strong></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>
</body> 