
  
 
<?php
include('../baglan.php');
include('../css.php');
if(isset($_GET['ISLEM_ID'])) $ISLEM_ID = $_GET['ISLEM_ID'];
$baglan = mysql_query("select * from hasta where ISLEM_ID='$ISLEM_ID'"); 


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

?>

<div class="box box-success"><h3 class="box-title">Hasta  Ekleme</h3> </div>
<div class="box-body">
<form name="form1" method="post" action="islemduzenle-islem.php">


  <div id='tab-menu'>
  <div class='tab-menu'>
	<a href='#'>Hasta  Bilgileri</a></div>
		<div class='tabmenuContent'>  

<? echo $yaz["HASTA_ID"];?>


 <table border="0"  cellpadding="0" cellspacing="3">
    


          <tr>
      <td ><strong>Hasta Tarih</strong>  


<input name="ISLEM_ID" type="hidden" id="ISLEM_ID" value="<? echo $yaz["ISLEM_ID"];?>" size="20" />
<input name="HASTA_ID" type="hidden" id="HASTA_ID" value="<? echo $yaz["HASTA_ID"];?>" size="20" /></td>
      <td ><div class="input-group">
        <input name="HASTA_ISLEM_TARIHI" type="text" class="form-control" id="HASTA_ISLEM_TARIHI" value="<? echo $yaz["HASTA_ISLEM_TARIHI"];?>"    size="63" />    
</tr>

      </span></td>
    </tr>
    <tr>
      <td class="size12"><strong>Hasta Ad&#305; ve Soyad&#305;</strong></td>
      <td><input name="HASTA_ADI" type="text" class="form-control"  id="HASTA_ADI" size="63"  value="<? echo $yaz["HASTA_ADI"];?>"  /></td>
    </tr>


    <tr>
      <td valign="top" class="size12"><strong>Hasta Tan&#305;</strong></td>
      <td><textarea name="HASTA_TANI" cols="63" class="form-control" id="HASTA_TANI"><? echo $yaz["HASTA_TANI"];?></textarea></td>
    </tr>
    <tr>
      <td class="size12"><strong>Hasta Doktor</strong></td>
      <td><select name="HASTA_DOKTOR" id="HASTA_DOKTOR" style="width:160px" class="aktif_edit">
        <?php include('baglan.php'); 
$sql = mysql_query("SELECT * FROM doktorlar"); 
while ($a = mysql_fetch_array($sql)) {
if ($yaz[HASTA_DOKTOR] == $a[DOKTOR_LINK]){ $durum=  'selected="selected"'; } else { $durum =''; }?>
      
<option value="<?php echo $a[DOKTOR_LINK];?>" <?php echo $durum; ?> ><?php echo $a[DOKTOR_ADI];?></option>

<?php } ?>
          </select></td>
    </tr>
 <tr>
      <td class="size12"><strong>İşlem Tutarı</strong></td>
      <td><input name="HASTA_FIYATI" type="text" class="form-control"  id="HASTA_FIYATI" value="<? echo $yaz["HASTA_FIYATI"];?>" size="63"  /></td>
    </tr>


 <tr>
      <td class="size12"><strong>Ödenen</strong></td>
      <td><input name="HASTA_ODENEN" type="text" class="form-control"  id="HASTA_ODENEN" value="<? echo $yaz["HASTA_ODENEN"];?>" size="63"  /></td>
    </tr>
    <tr>
      <td valign="top" class="size12">&nbsp;</td>
      <td><input name="button" type="submit" class="button_gri" id="button" value="Düzenle" /></td>
    </tr>
    <tr>
      <td valign="top" class="size12">&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td valign="top" class="size12">&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td valign="top" class="size12">&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
  </table>














  </div>






</form>
  </div>