?html>
?head>
?title> Hapus Data Pasien?/title>
?meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
?script language="JavaScript">
?!--
var konfirmasi = confirm('Apakah data mau dihapus??');
if (konfirmasi==true){
alert 'Data Akan dihapus';}
else
alert 'Data tidak diHapus';
//-->
?/script>
?/head>
?body>
??php
include("koneksi.php");
mysql_select_db("db_klinikduta");
$query = mysql_query("select * from pasien where kd_pasien = '$_POST[combocaripasien]'")
or die(mysql_error());
$jmlpasien = mysql_num_rows($query);
$baris_data = mysql_fetch_array ($query);
?>
?form action = "simpanhapuspasien.php" onsubmit= "return validasipasien();" method= "post" name= "formpasien" enctype= "multipart/form-data">
?font color = "blue"> ?h3> Hapus Data Pasien ?/h3>
?hr>
?table>
??php
echo "?tr>?td align='right'> Kode Pasien: ?/td>";
echo"?td>?input id = 'textpasien' name= 'textpasien' type = 'text' maxlength='8' size='8' value= $baris_data[kd_pasien] >?/td>";
echo"?/tr>";
echo "?tr>?td align='right'> Nama Pasien: ?/td>";
echo "?td>?Input id = 'textnama' name= 'textnama' type = 'text' maxlength='25' size='15' value= $baris_data[nama]>?/td>";
echo "?/tr>";
echo"?tr>?td align='right'> alamat Pasien: ?/td>";
echo"?td>?Input id = 'textalamat' name= 'textalamat' type = 'text' maxlength='8' size='8' value= $baris_data[alamat]>?/td>";
echo"?/tr>";
?>
?tr>?td align="right"> Golongan Darah: ?/td>
?td>?Select id = "combodarah" name= "combodarah">
?option value = "A" selected > A ?/option>
?option value = "B" > B ?/option>
?option value = "AB" > AB ?/option>
?option value = "O" > O ?/option>
?/td>
?/tr>
?tr>?td align="right"> Jenis Kelamin: ?/td>
?td>?Select id = "combojk" name= "combojkel">
?option value = "L" > L ?/option>
?option value = "P" > P ?/option>
?/td>
?/tr>
??php
echo"?tr>?td align='right' font size='2' color='blue'> Tempat Lahir :?/td>";
echo"?td>?input id ='texttempat' name='texttempat' type='text' maxlenght='15' size='15' value= $baris_data[tp_lahir]>?/td>";
echo"?/tr>";
echo"?tr>?td align='right' font size='2' color='blue'> Tanggal Lahir :?/td>";
echo"?td>?input id ='texttgl_lahir' name='texttgl_lahir' type='text' maxlenght='15' size='15' value= $baris_data[tgl_lahir]>?/td>";
echo"?/tr>";
echo"?tr>?td align='right'font size='2' color='blue'> Nomor Telepon:?/td>";
echo"?td>?input id ='texttelp' name='texttelp' type='text' maxlenght='15' size='15' value= $baris_data[telp]>?/td>";
echo"?/tr>";
?>
?/table>
?hr>
?input name ="tombolsimpan" type="submit" value="hapus">
?hr>
?/form>
?/body>
?/html>
0 comments:
Post a Comment