Location: PHPKode > scripts > M-Ariza Maintenance Follow-up Web Application > m-ariza-maintenance-follow-up-web-application/mariza/admin/editrecord.php
<?
session_start();
include "../inc/logincheck.php";
include "../inc/sorgu.php";
include "../inc/head.php";
?>
<script src="../inc/func.js"></script>
<body>
<table width="770" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
<td colspan="2"><img src="../images/logo.gif" width="215" height="72"></td>
  </tr>

  <tr>
    <td height="10" colspan="2" bgcolor="#BBBBBB">&nbsp;</td>
  </tr>
  <tr>
    <td width="107" height="379" align="center" valign="top" bgcolor="#DAD3FE">
  <?include"../inc/menu.php"?></td>
    <?
	$editqu = mysql_query("SELECT * FROM arizalar WHERE fisno='".$_GET["fisno"]."' LIMIT 1");
    if (mysql_num_rows($editqu) > 0){
      	$qubasket = mysql_fetch_array($editqu);	
		}
	else{echo "<script>setTimeout(\"location.href=\'/\'\", 500); </script>"; exit;}
	$bugun=date("d.m.Y");
	?>
    
    <td width="836" valign="top">
    <form action="updaterecord.php" method="post" id="form1" name="form1">

<table width="500" border="0" cellspacing="0" cellpadding="0">
  <tr align="center" bgcolor="#DDDDDD">
    <td height="25" colspan="3"><span>Maintenanced product details</span></td>
  </tr>
  <tr >
    <td width="186" height="20" align="right" class="nice">Ariza No : </td>
    <td width="23" height="20">&nbsp;</td>
    <td width="291" height="20"><?{echo $qubasket['id'];}?></td>
  </tr>
  <tr>
    <td height="20" align="right" class="nice">Serial No :</td>
    <td height="20">&nbsp;</td>
    <td height="20"><b><?{echo $qubasket['serino'];}?></b></td>

  </tr>
  <tr>
    <td height="20" align="right" class="nice">Token No : </td>
    <td height="20">&nbsp;</td>
    <td height="20" ><b><input type="hidden" name="fisno" value=<?{echo $qubasket['fisno'];}?>><?{echo $qubasket['fisno'];}?></b></td>
  </tr>
  <tr>
    <td height="20" align="right" class="nice">Product Name : </td>

    <td height="20">&nbsp;</td>
    <td height="20"><?{echo $qubasket['fisno'];}?></td>
  </tr>
  <tr>
    <td height="20" align="right" class="nice">Status : </td>
    <td height="20">&nbsp;</td>
    <td height="20">
	<select size="1" id="select" name="durum" onChange="if (this.value=='Repairing' || this.value=='Repaired'){document.getElementById('teslimat').checked=false;document.getElementById('teslimalan').disabled = true;document.getElementById('teslimtarihi').disabled = true;}">      
		<option  value="Faulty" <? if ($qubasket['durum']=="Faulty"){echo "Selected";}?>>Faulty</option>
		<option  value="Repairing" <? if ($qubasket['durum']=="Repairing"){echo "Selected";}?>>Repairing</option>
	  	<option  value="Ready" <? if ($qubasket['durum']=="Ready"){echo "Selected";}?>>Ready</option>
    </select></td>
  </tr>
  <tr>
    <td height="20" align="right" class="nice">Arrive Date : </td>
    <td height="20">&nbsp;</td>
    <td height="20"><?if (!empty($qubasket[gelistarihi])){
				  		echo date('d.m.Y',$qubasket[gelistarihi]);}?></td>
  </tr>
  
  <tr>
    <td height="20" align="right" class="nice">Mend Date : </td>
    <td height="20">&nbsp;</td>
    <td height="20"><?if($qubasket['tamirtarihi']!=null){echo date('d.m.Y',$qubasket[tamirtarihi]);} else echo "(Yok) Varsayýlan Deðer ( {$bugun} )";?></td>
  </tr>
  <tr>
    <td height="20" align="right" class="nice">Finish Date : </td>
    <td height="20">&nbsp;</td>
    <td height="20"><?if($qubasket['bitistarihi']!=null){echo date('d.m.Y',$qubasket[bitistarihi]);} else echo "(Yok) Varsayýlan Deðer ( {$bugun} )";?></td>
  </tr>
  <? if ($qubasket['durum']=="Repairing"){
  	echo "<tr>
    	<td height=20 align=right  class=\"nice\">Finish Date : </td>
   		<td height=20>&nbsp;</td>
    	<td height=20>{$qubasket['bitistarihi']}</td>
  		</tr>";
	  
  }
  ?>
  
  
  <tr>
    <td align="right" valign="top"  class="nice">Comment : </td>
    <td>&nbsp;</td>
    <td><textarea rows="4" cols="40" id="textarea" name="aciklama" ><?{echo $qubasket['aciklama'];}?> </textarea></td>
  </tr>
  <?
  if ($qubasket['durum']=="Ready"){
  	echo "<tr>
	<td height=\"20\" align=\"right\" class=\"nice\">Delivered : </td>
	<td height=\"20\">&nbsp;</td>
	<td><input type=checkbox name=\"Teslimat\" id=\"teslimat\" onClick=\"disableTeslim()\"></td>
 	</tr>
  	<tr>
	<td height=\"20\" align=\"right\" class=\"nice\">Checked out by : </td>
	<td height=\"20\">&nbsp;</td>
	<td><input type=\"textfield\" name=\"teslimalan\"id=\"teslimalan\" disabled></td>
  	</tr>
  	<tr>
	<td height=\"20\" align=\"right\" class=\"nice\">Deliver Date : </b></td>
	<td height=\"20\">&nbsp;</td>
	<td><input type=\"textfield\" name=\"teslimtarihi\" id=\"teslimtarihi\" value=\"{$bugun}\" disabled>&nbsp;(gg.aa.yyyy)</td>
    </tr>";
	}
	?>


  <tr>
    <td align="right"  colspan="3">

		<table border="0" width="200" cellpadding="0" cellspacing="0" align="center">
		<tr>
			<td><input name="guncelle" type="submit" value="Update"></td>
		</form>
			<td><input name="button" type="button" value=" Cancel " onClick=JavaScript:history.back()></td>
			<td>    
				<form action="updaterecord.php" method="post">  
				<input type="hidden" name="fisno" value="<?{echo $qubasket['fisno'];}?>">
			</td>
			<td>
				<input name="delete" type="submit" value="Delete">
				</form>
			</td>
			</tr>
			</table>
	</td>
  </tr>
  
</table>
    </td>
  </tr>
  <tr>
    <td height="10" colspan="2" bgcolor="#BBBBBB">&nbsp;</td>
  </tr>
</table>
</body>
</html>
Return current item: M-Ariza Maintenance Follow-up Web Application