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 :  /proc/self/root/home/pathumthani_integration/integration/application/labor/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/home/pathumthani_integration/integration/application/labor/labor_surety_index.php
<?
	session_start() ; 
	set_time_limit(0) ; 
	
	include_once("../../config/config_epm.inc.php");
	include_once("function/function.inc.php");
	include_once("../../inc/function.php");
	
	$time_start = getmicrotime();
	
?>

<?

	$arrPrename = array();
	$strSQL = "SELECT id, prename_th FROM tbl_prename ORDER BY priority ASC";
	$rsConn = mysql_query($strSQL);
	while( $Result = mysql_fetch_array($rsConn) ) {
		$arrPrename[$Result['id']] = $Result['prename_th'];
	}
?>

<?
	if( $_SERVER['REQUEST_METHOD'] == "GET" && $_GET['del_id'] && $_GET['hAction'] == "Delete" ) {
		$strSQL = "DELETE FROM labor_social_security WHERE run_id='".$_GET['del_id']."'";
		mysql_query($strSQL);
	}
?>
<!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_name?></title>
<script language="javascript">
	function mOvr(src,clrOver){ 
		if (!src.contains(event.fromElement)) src.bgColor = clrOver; 
	} 
	
	function mOut(src,clrIn){ 
		if (!src.contains(event.toElement)) src.bgColor = clrIn; 
	} 
</script>
<style type="text/css">
<!--
A:link {
	FONT-SIZE: 12px;color: #000000;	FONT-FAMILY: Tahoma,  "Microsoft Sans Serif";TEXT-DECORATION: underline;FONT-WEIGHT: bold;
}
A:visited {
	FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: Tahoma,  "Microsoft Sans Serif"; TEXT-DECORATION: underline;FONT-WEIGHT: bold;
}
A:active {
	FONT-SIZE: 12px; COLOR: #014d5f; FONT-FAMILY: Tahoma,  "Microsoft Sans Serif"; TEXT-DECORATION: underline;FONT-WEIGHT: bold;
}
A:hover {
	FONT-SIZE: 12px; COLOR: #f3960b; FONT-FAMILY: Tahoma,  "Microsoft Sans Serif"; TEXT-DECORATION: underline;FONT-WEIGHT: bold;
}
.h_menu {color:#FF9900}
-->
.bg_th{
  background-image:url(images/horiz-bg.png);
  background-repeat:repeat-x;
  background-color:#305086;
  font-weight:bold;
  color:#FFFFFF;
  text-align:center;
  }
  .bg_th1{
  background-repeat:repeat-x;
  background-color:#305086;
  font-weight:bold;
  color:#FFFFFF;
  text-align:center;
  }
</style>
<link href="../../common/tooltip/css/style.css" type="text/css" rel="stylesheet">
<script src="../../common/tooltip/jquery_1_3_2.js"></script>
<script>
//File Ajax tooltip
var url_tooltip = 'http://<?php echo $_SERVER['SERVER_NAME'];?>/pathumthani_integration/integration/application/pauper_surway/ajax.pauper_surway.php';
</script>
<script src="../../common/tooltip/tooltip_personal.js"></script>

<script language=JavaScript> 
	function Conf(object) {
		if (confirm("แน่ใจว่าจะลบข้อมูล")==true) {
			return true;
		}
		return false;
	}

	function CheckIsIE() { 
		if (navigator.appName.toUpperCase() == 'MICROSOFT INTERNET EXPLORER') { return true;} 
		else { return false; } 
	}

	function PrintThisPage() {
		if (CheckIsIE() == true) { 
			parent.iframe1.focus(); 
			parent.iframe1.print(); 
		} else { 
			window.frames['iframe1'].focus(); 
			window.frames['iframe1'].print(); 
		}
	}
</script> 

<style type="text/css">
<!--
.bg_th2 {  background-image:url(images/horiz-bg.png);
  background-repeat:repeat-x;
  background-color:#305086;
  font-weight:bold;
  color:#FFFFFF;
  text-align:center;
  text-decoration: none; 
}
.style1 {color: #666666}
.style5 {font-size: 12px}
.style6 {color: #666666; font-weight: bold; font-size: 12px; }
-->
</style>
</head>
<body>
<?
	$strSearch="";
	if($_GET['p']){
		$strSearch.="&p=".$_GET['p'];	
	}
	
	$strSQL_1 = "SELECT
							labor_personal.id_card,
							labor_personal.prename,
							labor_personal.fname,
							labor_personal.lname,
							labor_social_security.run_id,
							labor_social_security.status,
							labor_social_security.add_status
						FROM
							labor_personal INNER JOIN labor_social_security ON labor_personal.id_card=labor_social_security.id_card
						WHERE
							labor_social_security.run_id<>''";
	####SQL SUM
	$strSQL_sum = $strSQL_1;
	
	if ( $_GET['id_card'] ) {
		$strSQL_1.="		AND labor_personal.id_card like ('%".str_replace("-","",$_GET['id_card'])."%')	";
		$strSearch.="&id_card=".$_GET['id_card'];
	}
	if ( $_GET['name_meeting'] ) {
		$strSQL_1.="		AND labor_personal.lname like ('%".$_GET['name_meeting']."%')	";
		$strSearch.="&name_meeting=".$_GET['name_meeting'];
	
	}
	if($_GET['status']){
		$strSQL_1.= "	AND labor_social_security.status ='".$_GET['status']."' ";
		$strSearch.="&status=".$_GET['status'];
	}
	if ( $_GET['type_key'] ) {
		$strSQL_1.="		AND labor_social_security.add_status ='".$_GET['type_key']."'";
		$strSearch.="&type_key=".$_GET['type_key'];
	}
	
	$arrVal["A"] = 0;
	$arrVal["V"] = 0;
	$arrVal["R"] = 0;
	$arrVal["O"] = 0;
	$rsConn = mysql_query($strSQL_sum);
	while ( $Result = mysql_fetch_array($rsConn) ) {
		if ( $Result['status'] == "A" ) {
			$arrVal["A"] += 1;
		} elseif ( $Result['status'] == "V" ) {
			$arrVal["V"] += 1;
		} elseif ( $Result['status'] == "R" ) {
			$arrVal["R"] += 1;
		} else {
			$arrVal["O"] += 1;
		}
	}

	$arrPCVExSum[] = @array($arrVal["A"], $arrVal["V"], $arrVal["R"], $arrVal["O"]);
	$arrPCExSum = percentage_2d($arrPCVExSum); #show($arrPCExSum);
 ?><br />
<table width="99%" border="0" cellpadding="0" cellspacing="0">
 		<tr>
        		<td align="center"><strong style="color:#000000; font-size:12px;">ทะเบียนผู้ประกันตน จังหวัดปทุมธานี</strong></td>
        </tr>
        <tr>
        		<td align="center">ข้อมูล ณ วันที่ <?php echo dateFormat(date('Y-m-d'),'thaidot')?></td>
  </tr>
</table>
 <br />
<table width="99%" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
        		<td width="60%" height="119" align="left" valign="top"><table width="60%" border="0" bgcolor="#CCCCCC" cellpadding="3" cellspacing="1">
                  <tr class="bg_th">
                    <td align="center"><strong>สถานะการประกันตน</strong></td>
                    <td align="center"><strong>จำนวน</strong></td>
                    <td align="center"><strong>ร้อยละ</strong></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td align="left"><span class="style6">เป็นผู้ประกันตน (A)</span></td>
                    <td align="right"><span class="style5">
					<?php
					if($arrVal["A"]>0){
						echo '<a href="index.php?&p=labor_surety_index&status=A">'. number_format($arrVal["A"]).'</a>';
					}else{
						echo 0;
					}
					?>
                    </span></td>
                    <td align="right"><span class="style5"><?php echo $arrPCExSum[0][0]?></span></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td align="left"><span class="style6">เป็นผู้ประกันตนโดยสมัครใจ (V)</span></td>
                    <td align="right"><span class="style5">
					<?php
					if($arrVal["V"]>0){
						echo '<a href="index.php?&p=labor_surety_index&status=V">'. number_format($arrVal["V"]).'</a>';
					}else{
						echo 0;
					}
					?>       
                    </span></td>
                    <td align="right"><span class="style5"><?php echo $arrPCExSum[0][1]?></span></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td align="left"><span class="style6">ลาออกจากงาน (R)</span></td>
                    <td align="right"><span class="style5">
					<?php
					if($arrVal["R"]>0){
						echo '<a href="index.php?&p=labor_surety_index&status=R">'. number_format($arrVal["R"]).'</a>';
					}else{
						echo 0;
					}
					?> 
                    </span></td>
                    <td align="right"><span class="style5"><?php echo $arrPCExSum[0][2]?></span></td>
                  </tr>
                  <tr bgcolor="#FFFFFF">
                    <td align="left"><span class="style6">อื่น ๆ ไม่ระบุ (O)</span></td>
                    <td align="right"><span class="style5">
					<?php
					if($arrVal["O"]>0){
						echo '<a href="index.php?&p=labor_surety_index&status=O">'. number_format($arrVal["O"]).'</a>';
					}else{
						echo 0;
					}
					?>
                    </span></td>
                    <td align="right"><span class="style5"><?php echo $arrPCExSum[0][3]?></span></td>
                  </tr>
                  <tr bgcolor="#DDDDDD">
                    <td align="left"><strong>รวม</strong></td>
                    <td align="right">
					<?php
					if(@array_sum($arrVal)>0){
						echo '<a href="index.php?&p=labor_surety_index">'. number_format(@array_sum($arrVal)).'</a>';
					}else{
						echo 0;
					}
					?>
					</td>
                    <td align="right"><?php echo number_format(@array_sum($arrPCExSum[0]), 2)?></td>
                  </tr>
                </table> 
        		<table width="60%" border="0" cellpadding="0" cellspacing="0">
<tr>
                                		<td align="right">
                                         <?				
				$catagory='A;V;R;อื่น ๆ ไม่ระบุ';
				//$columntitle="รายงานข้อมูลโรงงานอุตสาหกรรมจำแนกตามจำพวก";
				$columntitle='กราฟแสดงสัดส่วนจำนวนผู้ขึ้นทะเบียนประกันตน จำแนกตามสถานะการประกันตน';
				//echo $catagory;
				$graph_path = "http://202.129.35.106/graphservice/graphservice.php";  //Sapphire Graph
				//$catagory = 'ระดับความรุนแรงน้อย;ระดับความรุนแรงปานกลาง;ระดับความรุนแรงมาก';	
				
				foreach ( $arrVal as $Key => $Val ) {
					$dataGraph .= $Val.';';
				}
				
				$xgraphurl_link = $graph_path."?category=$catagory&data1=".substr($dataGraph, 0, strlen($dataGraph) - 1)."&outputstyle=&numseries=1&seriesname=&graphtype=pie&title=$columntitle&xname=&yname=&subtitle=&graphstyle=srd_allvisible_lg.scs&xcontrol=1";
				?>
                                            <a href="<?=$xgraphurl_link?>" target="_blank">[แสดงข้อมูลรูปแบบกราฟ]</a>
                                        </td>
                  </tr>
    </table></td>
<td valign="top" width="40%">
          		<table width="100%" border="0" cellpadding="0" cellspacing="0">
                		<tr>
                        		<td width="83%" align="right">
                                		<a href="#" onclick="window.open('search_surety_index.php','export','toolbar=0,location=0,directories=0,status=0,menubar=0,height=550,width=700,resizeable=1,scrollbars=1'); clearText();"><img src="img/search.png" alt="ค้นหา" width="16" height="16" border="0" align="middle" title="ค้นหา" /></a>
										<a href="#" onclick="window.open('search_surety_index.php','export','toolbar=0,location=0,directories=0,status=0,menubar=0,height=550,width=700,resizeable=1,scrollbars=1'); clearText();"><strong>ค้นหา</strong></a></td>
                                <td width="17%" align="right">
										<a href="../import_export/export_excel.php?ProfileID=2&Encoding=TIS-620" target="_blank"><img src="../../images/dash_icon/ico_xls.png" alt="Excel" title="Excel" width="16" height="16" border="0" /></a>
										<a href="?p=xml_export&profile_id=2"><img src="../../images/dash_icon/ico_xml.png" alt="XML" title="XML" width="16" height="16" border="0" /></a>
										<img src="../../images/dash_icon/ico_pdf_disabled.png" alt="PDF" title="PDF" width="16" height="16" />
								</td>
                		</tr>
                        <tr>
                        		<td colspan="2">
                           		  <table width="100%" border="0" cellpadding="0" cellspacing="2" bgcolor="#E6E6E6" align="center" style="border:1px solid #5595CC;">
                                        		<tr>
                                                		<td align="left">
															<strong style="text-decoration:underline">เงื่อนไขการค้นหา</strong>
															&nbsp;&nbsp;<a href="index.php?&p=labor_surety_index">ล้างค่าการค้นหา</a>
														</td>
														</tr>
                                                <tr>
                                                        <td align="left"><?php echo ($_GET['id_card'] != "")?'&nbsp;<strong>รหัสเเบบสำรวจ</strong>  "'.$_GET['id_card'].'"<br/>':"";?>
                                                                <?php echo ($_GET['name_meeting'] != "")?'&nbsp;<strong>ชื่อผู้ให้ข้อมูล</strong> : "'.$_GET['name_meeting'].'"<br/>':"";?>
                                                                <?php echo ($_GET['status'] != "")?'&nbsp;<strong>สถานะการประกันตน</strong> : "'.$_GET['status'].'"<br/>':"";?>        
                                                                   <?
																		if($_GET['type_key'] != ""){
																		
																			if($_GET['type_key']=='KEY'){
																			       echo ($_GET['type_key'] != "")?'&nbsp;<strong>แหล่งข้อมูล</strong> :"บันทึกผ่านระบบ"<br/>':"";
																			 }else if($_GET['type_key']=='XLS'){
																			       echo ($_GET['type_key'] != "")?'&nbsp;<strong>แหล่งข้อมูล</strong> : "นำเข้าข้อมูลรูปแบบไฟล์ Excel"<br/>':"";
																			 }else {
																			         echo ($_GET['type_key'] != "XML")?'&nbsp;<strong>แหล่งข้อมูล</strong> : "นำเข้าข้อมูลรูปแบบไฟล์ XML"<br/>':"";
																			 }
																			
																			}
																?>
                                                                                            </td> </tr>
                                                <?php /*?><tr align="right">
                                                        <td height="20"><br />
                                                                โรงงานอุตสาหกรรมทั้งหมด <strong><?=number_format($Rows)?></strong> โรง
                                                                (ใช้เวลาในการประมวลผลก่อนการแสดง <strong><?=$stime?></strong> วินาที)&nbsp;
                                                        </td>
                                                </tr><?php */?>
                                  </table>                                </td>
                        </tr>
                </table>
    </td>
  </tr>
</table>
 
 


<table width="99%" border="0" align="center" cellpadding="3" cellspacing="1">
				<tr>
						<td width="75%">
                        <?php
						
	 	$rsConn = mysql_db_query($dbname,$strSQL_1);
		$all_row = mysql_num_rows($rsConn);
		$board_row_per_page = 20;
		$total_page = ceil($all_row/$board_row_per_page);
		$page = ($_GET['page'])?$_GET['page']:1;
		$page = ($page > $total_page)?$total_page:$page;
		$page = ($page <= 0)?1:$page;
		$limit_start = ($page==1)?0:(($page*$board_row_per_page)-$board_row_per_page);
		$limit_end = $board_row_per_page;
		if($View==''){
			$strSQL_1 .= " LIMIT ".$limit_start.", ".$limit_end;
			$num = $limit_start ;
		}
		
		if(isset($cols)&&isset($sort)){
			$solink="&cols=$cols&sort=$sort";
		}
		
		$text_search =  "";
		$prev_page = $page - 1; $prev_page = ($prev_page <= 1)?1:$prev_page;
		$prev = "self.location='".$PHP_SELF."?".$strSearch.$text_search."&search=$search&page=$prev_page$link$solink'";
		$next_page = $page + 1; $next_page = ($next_page >= $total_page)?$total_page:$next_page;
		$next = "self.location='".$PHP_SELF."?".$strSearch.$text_search."&search=$search&page=$next_page$link$solink'";
		
		$prev_Tenpage=$page-$board_row_per_page;$prev_Tenpage=($prev_Tenpage<= 1)?1:$prev_Tenpage;
		$prevTen = "self.location='".$PHP_SELF."?".$strSearch.$text_search."&search=$search&page=$prev_Tenpage$link$solink'";
		$nextTenPage=$page+$board_row_per_page;$next_TenPage=($next_TenPage >= $total_page)?$total_page:$next_TenPage;
		$nextTen = "self.location='".$PHP_SELF."?".$strSearch.$text_search."&search=$search&page=$nextTenPage$link$solink'";
	?>
	<? if($View==""){$Klink="?".$strSearch.$text_search."&View=All"; $CSh="ข้อมูลทั้งหมด"; $Klink2="?".$strSearch.$text_search."&View=";}else{$Klink="?".$strSearch.$text_search."&View=";$CSh="ข้อมูล ".$board_row_per_page." รายการล่าสุด";$Klink2="?".$strSearch.$text_search."&View=All";}?>
	ทั้งหมด <b> <font color="#CC0000">
	<?=number_format($all_row);?>
	</font> </b> รายการ
	<? if($View==""){?>
	แบ่งเป็น <b><font color="#0033CC">
	<?=number_format($total_page);?>
	</font></b> หน้า
	<? }?>
	&nbsp;&nbsp;<a href="<?=$Klink?>"><img src="img/Search-Add.gif" title="<?=$CSh?>" width="16" height="16" border="0" /></a>&nbsp;&nbsp;&nbsp;&nbsp;
		  <? if($View==''){?>
			<?  if($page==1){?>
			<img src="img/page_div_icon/xFirst.gif" align="absmiddle" />
			<? }else{?>
			<img src="img/page_div_icon/First.gif" align="absmiddle" border="0" width="10" height="12" onclick="<?=$prevTen;?>"  style="cursor:pointer;"/>
			<? }?>
	&nbsp;
	<?  if($page==1){?>
	<img src="img/page_div_icon/xPrevious.gif" align="absmiddle" />
	<? }else{?>
	<img src="img/page_div_icon/Previous.gif" align="absmiddle" border="0" width="7" height="12"  onclick="<?=$prev;?>"  style="cursor:pointer;"/>
	<? }?>
	<?php
	$board_link_num = $board_row_per_page;
	$ii = 1;
	if ( $board_link_num > $total_page ){
		$loop_page = $total_page;
	
	} else {
		$bx = ceil($board_link_num / 2);
		$pp = $page - $bx;
		$pn = $page + $bx;
		$loop_page = $pn;
		$ii = $pp;
		if ( $total_page <= $loop_page ) {
			$loop_page = $total_page;
			$ii = $loop_page - ($board_link_num -1);
		}
		if ( $ii < 1 ) {
			$ii = 1;
			$loop_page = $ii + ($board_link_num -1);
		}
	}
	
	for($i=$ii;$i<=$loop_page;$i++){
		if ( $i==$page || !$page ) {
			$txt = '<b style="color:#0033CC;">'.$i.'</b>';
		} else {
			$txt = $i;
	
		}
	?>
	<a href="<?=$PHP_SELF;?>?Sort=<?=$Sort;?>&search=<?=$search?>&<?=$text_search?>&page=<?=$i;?><?=$strSearch;?>"><?=$txt;?></a>
	<?
	} # for
	?>
	<? if($page==$loop_page){?>
	<img src="img/page_div_icon/xNext.gif" align="absmiddle" />
	<? }else{?>
	<img src="img/page_div_icon/Next.gif" align="absmiddle" border="0" width="7" height="12" onClick="<?=$next;?>" style="cursor:pointer;"/>
	<? }?>
	&nbsp;
	<? if($page==$loop_page){?>
	<img src="img/page_div_icon/xLast.gif" align="absmiddle" />

	<? }else{?>
	<img src="img/page_div_icon/Last.gif" align="absmiddle" border="0" width="10" height="12" onClick="<?=$nextTen;?>"  style="cursor:pointer;"/>
	<? 
		} 
	}#End View=
		?>                        </td>				
                        <td width="25%" align="right"><a href="?p=labor_surety_keyin"><img src="images/add.png" alt="ขึ้นทะเบียนผู้ประกันตน" border="0" align="middle" title="ขึ้นทะเบียนผู้ประกันตน" /></a>&nbsp;<a href="?p=labor_surety_keyin">ขึ้นทะเบียนผู้ประกันตน</a></td>
				</tr>
</table>
		<table width="99%" border="0" align="center" bgcolor="#CCCCCC" cellpadding="3" cellspacing="1">
				<tr class="bg_th">
				  <td width="8%" rowspan="2"><strong>ลำดับที่</strong></td>
				  <td width="20%" rowspan="2">เลขบัตรประจำตัวประชาชน</td>
				  <td width="28%" rowspan="2"><strong>ชื่อ-นามสกุล</strong></td>
				  <td width="16%" rowspan="2"><strong>สถานะการประกันตน</strong></td>
				  <td width="16%" rowspan="2">แหล่งข้อมูล</td>
				  <td width="12%" rowspan="2"><strong>การจัดการ</strong></td>
		  </tr>
				<tr class="bg_th1">
						<!--<td width="12%"><strong>หมวดอุตสาหกรรม</strong></td>-->
						<!--<td width="17%"><strong>ประกอบกิจการ</strong></td>-->
                        <!--<td width="7%"><strong>สถานะการนำเข้าข้อมูล</strong></td>--></tr>
				<?
				$rsConn_1 = mysql_db_query($dbname,$strSQL_1);
				$i_1=0;	
				while ( $Result_1 = mysql_fetch_assoc($rsConn_1)) {
						$i_1++;
						
						
						$rowNumb = ($i_1+($board_link_num*$page)-$board_link_num);
						
						$eyearImg='';
						if($Result_1['eyear']<(date('Y')+543)){
								$eyearImg='<img src="img/dash_notpass.png" alt="หมดอายุ" title="หมดอายุ" width="16" height="16" border="0" align="absmiddle" />';
						}
				?>
				<tr bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#dbf2ae'" onmouseout="this.style.backgroundColor='#FFFFFF'">
						<td align="center"><?=$rowNumb?></td>
						<td align="center"><?=searchReplace($_GET['id_card'],pinFormatX($Result_1['id_card']))?></td>
                        <td align="left"><?=searchReplace($_GET['name_meeting'],$arrPrename[$Result_1['prename']],$Result_1['prename'])?><?=searchReplace($_GET['name_meeting'],$Result_1['fname'])?> <?=searchReplace($_GET['name_meeting'],$Result_1['lname'])?></td>
                        <td align="center"><?= searchReplace($_GET['status'],$Result_1['status'])?></td>
						<td align="left"><? echo $arrDataSource[$Result_1['add_status']]?></td>
						<td align="center">
                                <a href="profile_labor.php?hid_card=<?=$Result_1['id_card']?>&app=labor_surety" target="_blank"><img src="../../images/dash_icon/ico_preview.png" alt="แสดงข้อมูล" title="แสดงข้อมูล" width="16" height="16" border="0" align="middle" /></a>
								<a href="?p=labor_surety_keyin&hAction=Update&hid_card=<?=$Result_1['id_card']?>&hrun_id=<?=$Result_1['run_id']?>"><img src="../../images/dash_icon/ico_edit.png" alt="แก้ไขข้อมูล" title="แก้ไขข้อมูล" width="16" height="16" border="0" align="middle" /></a>
								<img src="../../images/dash_icon/ico_del.png" alt="ลบข้อมูล" title="ลบข้อมูล" width="16" height="16" border="0" align="middle" onclick="return delConfirm('<?=$Result_1['run_id'];?>');"  style="cursor:pointer;"/>						</td>
				</tr>
				<? }?>
		</table>
<?
 $time_e 	= getmicrotime();
$stime		= number_format($time_e - $time_start,12);
 ?>
<br />
 <table width="99%" border="0" cellpadding="0" cellspacing="0" align="center">
 		<tr>
        		<td width="50%" align="left"><table width="100%" border="0" cellpadding="2" cellspacing="0">
                  <tr>
                    <td width="12%">หมายเหตุ:</td>
                    <td width="88%">&nbsp;</td>
                  </tr>
                  <tr>
                    <td><span class="style1"></span></td>
                    <td><span class="style1"><strong>&quot;A&quot;</strong> หมายถึง เป็นผู้ประกันตน </span></td>
                  </tr>
                  <tr>
                    <td><span class="style1"></span></td>
                    <td><span class="style1"><strong>&quot;V&quot;</strong> หมายถึง เป็นผู้ประกันตนโดยสมัครใจ</span></td>
                  </tr>
                  <tr>
                    <td><span class="style1"></span></td>
                    <td><span class="style1"><strong>&quot;R&quot;</strong> หมายถึง ลาออกจากงาน </span></td>
                  </tr>
				  <tr>
                    <td><span class="style1"></span></td>
                    <td><span class="style1"><strong>&quot;O&quot;</strong> หมายถึง อื่น ๆ ไม่ระบุ </span></td>
                  </tr>
                </table></td>
          <td width="50%" align="right" valign="top">ใช้เวลาในการประมวลผล <?=$stime?> วินาที</td>
        </tr>
 </table>
 
 <br />
<form name="form2" id="form2" method="get"   >
				<input name="p" id="p" type="hidden"   value="<?=$_GET['p']?>" size="100"/>
                <input name="id_card" id="id_card" type="hidden"   value="<?=$id_card?>" size="100"/>
				<input name="name_meeting" id="name_meeting" type="hidden"   value="<?=$name_meeting?>" size="100"/>
                <input name="status" id="status" type="hidden"   value="<?=$status?>" size="100"/>
                <input name="type_key" id="type_key" type="hidden"   value="<?=$type_key?>" size="100"/>
</form>

<script language="javascript">
	function delConfirm(id) {
		if ( confirm("คุณต้องการลบข้อมูลจริงหรือไม่?") == true ) {
			location.href='?p=labor_surety_index&hAction=Delete&del_id='+id;
		}
	}
	
	function clearText(){
		document.getElementById("id_card").value = "";
		document.getElementById("name_meeting").value = "";
		document.getElementById("status").value = "";
	   document.getElementById("type_key").value = "";
	 }
</script>

</body>
</html>

Anon7 - 2021