MINI SHELL

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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/pathumthani_integration/integration/application/industry/industry_page1_view.php
<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 Inint_AJAX() {
   try { return new ActiveXObject("Msxml2.XMLHTTP");  } catch(e) {} //IE
   try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) {} //IE
   try { return new XMLHttpRequest();          } catch(e) {} //Native Javascript
   alert("XMLHttpRequest not supported");
   return null;
}

function chkAmphur(e) {
	//alert(e.id);
     var req = Inint_AJAX();
	 var sec = document.getElementById(e.id).options[document.getElementById(e.id).options.selectedIndex].value;
     req.onreadystatechange = function () { 
          if (req.readyState==4) {
               if (req.status==200) {
			   		//alert(req.responseText);
                    document.getElementById('AmphurCHK').innerHTML=req.responseText; //รับค่ากลับมา
               } 
          }
     };
     req.open("GET", "ajax_chkAmphur.php?varChk="+sec); //สร้าง connection
     req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=tis-620"); // set Header
     req.send(null); //ส่งค่า
}

function chkTambol(e) {
	//alert(e.id);
     var req = Inint_AJAX();
	 var sec = document.getElementById(e.id).options[document.getElementById(e.id).options.selectedIndex].value;
     req.onreadystatechange = function () { 
          if (req.readyState==4) {
               if (req.status==200) {
			   		//alert(req.responseText);
                    document.getElementById('TambolCHK').innerHTML=req.responseText; //รับค่ากลับมา
               } 
          }
     };
     req.open("GET", "ajax_chkTambol.php?varChk="+sec); //สร้าง connection
     req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=tis-620"); // set Header
     req.send(null); //ส่งค่า
}

function chkTambol1(e) {
	//alert(e.id);
     var req = Inint_AJAX();	 	 
	 var sec = document.getElementById(e.id).options[document.getElementById(e.id).options.selectedIndex].value;
	 document.getElementById('amp_no').value=sec.substring(0,4);
     req.onreadystatechange = function () { 
          if (req.readyState==4) {
               if (req.status==200) {
			   		//alert(req.responseText);
                    document.getElementById('TambolCHK1').innerHTML=req.responseText; //รับค่ากลับมา
               } 
          }
     };
     req.open("GET", "ajax_chkTambol.php?varChk="+sec+"&chk=1"); //สร้าง connection
     req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=tis-620"); // set Header
     req.send(null); //ส่งค่า
}

function showPass(e){
	//alert(e.value);
		var sec = e.value;			//document.getElementById(e.id).options[document.getElementById(e.id).options.selectedIndex].value;
	 document.getElementById('tamcode').value=sec.substring(0,6);
}

function showTempDate(){	 
	if(document.getElementById('tempdate').disabled==false){ 
		document.getElementById('tempdate').disabled=true;
		 document.getElementById('tempdate1').disabled=true;
		 document.getElementById('tempdate').value="";
		 document.getElementById('tempdate1').value="";
		 document.getElementById('img_txt_tempdate').style.display='none';
		 document.getElementById('img_txt_tempdate1').style.display='none';
		 document.getElementById('div_txt_tempdate').innerHTML="";
		 document.getElementById('div_txt_tempdate1').innerHTML="";
		 document.getElementById('div_txt_tempdate').style.borderColor = '#FFFFFF';
		 document.getElementById('div_txt_tempdate').style.background = '#FFFFFF';
		 document.getElementById('div_txt_tempdate1').style.borderColor = '#FFFFFF';
		 document.getElementById('div_txt_tempdate1').style.background = '#FFFFFF';
	}else{ 
		document.getElementById('tempdate').disabled=false;
		 document.getElementById('tempdate1').disabled=false;
		 document.getElementById('img_txt_tempdate').style.display='';
		 document.getElementById('img_txt_tempdate1').style.display='';
	}
		 
}

function showClassPage2(e){
		document.getElementById('fact_class1').value=e.value;
}

function chkSameCODE(e) {
	//alert(e.id);
     var req = Inint_AJAX();	 	 
	 var sec = document.getElementById(e.id).value;
     req.onreadystatechange = function () { 
          if (req.readyState==4) {
               if (req.status==200) {
			   		//alert(req.responseText);
                    //document.getElementById('TambolCHK1').innerHTML=req.responseText; //รับค่ากลับมา
					if(req.responseText=='1'){			
						e.style.borderColor = '#FFFFFF';
						e.style.background = '#FFFFFF';
						document.getElementById('txt_code').innerHTML='';
						var vari= ( e.value.lastIndexOf ( "-" ) );
						document.getElementById('full_code').value=e.value.substring(0,vari);
						document.getElementById('full_code1').value=e.value.substring(0,vari);
						document.getElementById('c1').value=e.value.substring((vari+1),(vari+2));
					}else if(req.responseText=='0'){
						e.style.borderColor = '#FF0000';
						e.style.background = '#FFFF99';
						document.getElementById('txt_code').innerHTML='<img src="img/hig_notif_icn_warn.gif" width="16" height="16" align="absmiddle"  border="0"/> รหัสเลขทะเบียนโรงงานซ้ำ กรุณาตรวจสอบ';
						document.getElementById('full_code').value='';
						document.getElementById('full_code1').value='';
						document.getElementById('c1').value='';
					}
               } 
          }
     };
     req.open("GET", "ajax_chkSameCODE.php?varChk="+sec+"&chk=1"); //สร้าง connection
     req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=tis-620"); // set Header
     req.send(null); //ส่งค่า
}

function showFullcode(e){	
		chkSameCODE(e);
		/*var chkCode = chkSameCODE(e);
		alert(chkCode);
		if(chkCode=='1'){			
			var vari= ( e.value.lastIndexOf ( "-" ) );
			document.getElementById('full_code').value=e.value.substring(0,vari);
			document.getElementById('full_code1').value=e.value.substring(0,vari);
			document.getElementById('c1').value=e.value.substring((vari+1),(vari+2));
		}else if(chkCode=='0'){
			document.getElementById('txt_code').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="13%" height="24"><strong>เลขทะเบียนโรงงาน:</strong></td>
            <td><?=$Result_3['code']?>
            
            &nbsp;&nbsp;<strong>โรงงานจำพวกที่:</strong> <?=$Result_3['fact_class']?>
            				
                                &nbsp;&nbsp;<?=$Result_3['full_code']?>&nbsp;&nbsp;<?=substr($Result_3['code'],(strrpos($Result_3['code'],'-'))+1,1)?>
            </td>
      </tr>
      <tr>
            <td width="10%" height="24"><strong>ชื่อ:</strong></td>
            <td><?=$Result_3['prename'].' '.$Result_3['aname']?><!--&nbsp;<strong>นามสกุล:</strong>--> <?=$Result_3['lname']?>
            </td>
      </tr>
      <tr>
            <td width="10%" height="24"><strong>ประเภท อก.ที่:</strong></td>
            <td><?=$Result_3['tcode']?>
           &nbsp;<strong>โรงงานที่:</strong> <?=$Result_3['number']?>&nbsp;<strong>ปีรับใบอนุญาติ:</strong> <?=$Result_3['fyear']?>
            </td>
      </tr>
      <tr>
            <td width="10%" height="24"><strong>ปีสิ้นอายุ:</strong></td>
            <td><?=$Result_3['eyear']?>&nbsp;<strong>Tsic:</strong> <?=$Result_3['tsic']?>
            </td>
      </tr>
      <tr>
            <td width="10%" height="24"><strong>ที่ตั้งสำนักงาน:</strong></td>
            <td><?=$Result_3['officeadd1']?>
            </td>
      </tr>
      <tr>
            <td width="10%" height="24"><strong>จังหวัด:</strong></td>
            <td><?=$Result_3['office_wat']?>
            				
                                &nbsp;<strong>อำเภอ:</strong> <?=$Result_3['office_amp']?>
            </td>
      </tr>
      <tr>
            <td width="10%" height="24"><strong>ตำบล:</strong></td>
            <td><?=$Result_3['office_tam']?>
            </td>
      </tr>
      <tr>
            <td width="10%" height="24"><strong>รหัสไปรษณีย์:</strong></td>
            <td><?=$Result_3['office_zip']?>
            </td>
      </tr>
      <tr>
            <td width="10%" height="24"><strong>โทรศัพท์:</strong></td>
            <td><?=$Result_3['office_tel']?>
            </td>
      </tr>
      <tr>
            <td width="10%" height="24"><strong>ประกอบกิจการ:</strong></td>
            <td><?=$Result_3['job']?>
            </td>
      </tr>
      <tr>
            <td width="10%" height="24"><strong>ชื่อโรงงาน:</strong></td>
            <td><?=$Result_3['fname']?>
            </td>
      </tr>
      <tr>
            <td width="10%" height="24"><strong>ที่ตั้ง:</strong></td>
            <td><?=$Result_3['location']?>
            </td>
      </tr>
      <tr>
            <td width="10%" height="24"><strong>ชื่อหมู่บ้าน:</strong></td>
            <td><?=$Result_3['muban']?>
            &nbsp;<strong>รหัสหมู่บ้าน:</strong> <?=$Result_3['mubcode']?>
            </td>
      </tr>      
      <tr>
            <td width="10%" height="24"><strong>ชื่ออำเภอ:</strong></td>
            <td><?=$Result_3['ampur']?>
                    &nbsp;<strong>รหัสอำเภอ:</strong> <?=$Result_3['amp_no']?>
            </td>
      </tr>
      <tr>
            <td width="10%" height="24"><strong>ชื่อตำบล:</strong></td>
            <td><?=$Result_3['tambol']?>
                    &nbsp;<strong>รหัสตำบล:</strong> <?=$Result_3['tamcode']?>&nbsp;<strong>โทรศัพท์:</strong> <?=$Result_3['telephone']?>
            </td>
      </tr>
      <tr>
            <td width="10%" height="24"></td>
            <td>
            <input name="tempstop" type="checkbox" id="tempstop" <?=($_GET['view']=='1')?'disabled="disabled"':''?>  value="1" <?=($Result_3['tempstop']=='1')?'checked="checked"':''?> onclick="showTempDate();" />
            &nbsp;<strong>หยุดกิจการชั่วคราวตั้งแต่วันที่</strong> <?=$Result_3['tempdate']?>
            &nbsp;<strong>ถึงวันที่</strong> <?=$Result_3['tempdate1']?>
            </td>
      </tr>
      
    </table></td>
  </tr>
</table>

Anon7 - 2021