|
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 : /home/pathumthani_integration/integration/application/industry/ |
Upload File : |
<style type="text/css">
<!--
.style2 {color: #FF0000}
-->
</style>
<script>
/*function checkQuantity(MyID, maxValue){
var q = document.getElementById(MyID);
if(parseInt(q.value)>maxValue){
alert("กรุณาตรวจสอบตัวเลขที่กรอก\nตัวเลขอาจเกินกว่าความเป็นจริง");
}
}
function open_win(win_file, win_title)
{
window.open(win_file, win_title, 'resizable=yes,width=900,height=500,toolbar=no,scrollbars=yes,location=no,menubar=no,status=no');
}*/
function google(){
if(document.getElementById('show_lon').innerHTML==''){
window.open('map.php','show','toolbar=0,location=0,directories=0,status=0,menubar=0,height=530,width=1000,resizeable=1,scrollbars=1');
}else{
window.open('map_edit.php?longitude='+document.getElementById('show_lon').innerHTML+'&latitude='+document.getElementById('show_lat').innerHTML,'show','toolbar=0,location=0,directories=0,status=0,menubar=0,height=530,width=1000,resizeable=1,scrollbars=1');
}
}
function chkPermitDate(e){
//alert(e.value);
//div_txt_permitdate
var appD=document.getElementById('applidate').value;
perDay=e.value.substring(0,2)*1;
perMon=e.value.substring(3,5)*1;
perYear=e.value.substring(6,10)*1;
appDay=appD.substring(0,2)*1;
appMon=appD.substring(3,5)*1;
appYear=appD.substring(6,10)*1;
//alert(perDay+':'+perMon+':'+perYear+'=='+appDay+':'+appMon+':'+appYear);
chk=0;
if(perYear>=appYear){
if(perMon>=appMon){
if(perDay<appDay){
chk=1;
}
}else{
chk=1;
}
}else{
chk=1;
}
if(chk==1){
document.getElementById('div_txt_permitdate').innerHTML='<img src="img/icon-warning.png" align="absmiddle" border="0"><font color="#FF0000"><b>! ระบุวันที่อนุญาตไม่ถูกต้อง โดยวันที่อนุญาตมีค่ามากกว่าวันที่ยื่นคำขอ</b></font>';
e.value='';
}
}
function chkCease(e){
document.getElementById('ceasedate').value='';
}
</script>
<table width="100%" border="0" cellspacing="5" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td width="20%" height="24">สถานะการดำเนินกิจการ<br />ของโรงงานอุตสาหกรรม</td>
<td width="250">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><input type="radio" name="cease" id="cease" value="" <?=($_POST['cease']=='')?'checked':(($Result_3['import_status']=='1')?'checked':'')?> onclick="chkCease(this.id);"/> สถานะยังดำเนินอยู่</td>
</tr>
<tr>
<td><input type="radio" name="cease" id="cease" value="1" <?=($Result_3['import_status']=='4')?'checked':''?> /> สถานะเลิกกิจการ
<input name="ceasedate" type="text" id="ceasedate" <?=($_GET['view']=='1')?'disabled="disabled"':''?> size="15" value="<?=($_POST['ceasedate']=='')?$Result_3['cease']:$_POST['ceasedate']?>" onblur="return checkThaiDate(this,document.getElementById('div_txt_ceasedate'));" onkeypress="chkDateFormat(this,event)" /><img src="js/calendar/calendar2.gif" <?=($_GET['view']=='1')?'style="display:none"':''?> align="top" border="0" onClick="popUpCalendar(this, form1.ceasedate, 'dd/mm/yyyy')" title="วัน เดือน ปี" style="cursor:pointer;" /><span id='div_txt_ceasedate'></span>
</td>
</tr>
</table>
</td>
<td width="12%" height="24"></td>
<td>
</td>
</tr>
</table></td>
</tr>
</table>