|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /var/www/html/pathumthani_eoffice/application/CA/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<title></title>
<style>
.preload{
border: 1px solid #999;
margin: 0px;
position:relative;
color: #000;
background-color: #EFECFF;
padding-right: 5px;
padding-left: 5px;
padding-top: 2px;
padding-bottom: 2px;
width:400px;
height:150px;
}
body {
background-color: #EFECFF;
margin-left: 10px;
margin-top: 10px;
margin-right: 10px;
margin-bottom: 10px;
}
body,td,th {
font-family: Verdana, Geneva, sans-serif;
font-size: 12px;
}
.com{
color:#F00;
}
</style>
</head>
<script src="../../common/jquery.js"></script>
<script >
function getSN(sn){
if(sn.length>0){
var url="getSN.php?Rnd="+Math.random()*1000+"&SN="+sn;
$.get(url,'',function(data){
if(data=='ok'){
if(confirm('ต้องการใช้ SERAIL NUMBER นี้หรือไม่?')){
var o = new Object;
o.sn=sn;
window.returnValue=o;
window.close();
}
}else if(data=='no'){
$('#process').html('ไม่พบ SERAIL NUMBER ที่กรอกกรุณาตรวจสอบอีกครั้ง');
}else{
$('#process').html('error:'+data);
}
});
}else{
alert('ไม่ได้กรอก SERAIL NUMBER !');
}
}
</script>
<body>
<form name="post">
<div class="preload">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="38%"> </td>
<td width="62%"> </td>
</tr>
<tr>
<td align="right"><strong>SERAIL NUMBER </strong> </td>
<td><input type="text" name="textfield" id="textfield" /></td>
</tr>
<tr>
<td colspan="2" class="com" > </td>
</tr>
<tr>
<td colspan="2" class="com" id="process"> </td>
</tr>
<tr>
<td colspan="2" class="com" > </td>
</tr>
<tr>
<td> </td>
<td><label>
<input type="button" name="button" id="button" value="ตกลง" style="font-size:12px" onclick="getSN(post.textfield.value)"/>
<input type="reset" name="button2" id="button2" value="ยกเลิก" style="font-size:12px" />
</label></td>
</tr>
</table>
</div>
</form>
</body>
</html>