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_base_company.php
<? 
session_start() ; 
//header("Content-Type: text/html; charset=windows-874"); 
set_time_limit(0) ; 
include_once("../../config/config_epm.inc.php");
include_once("manage_user.inc.php");

?>
<!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=tis-620" />
<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;
}
.style1 {color: #FF0000}
.style2 {font-size: 24px}
.h_menu {color:#FF9900}

-->
.bg_th{
  background-image:url(images/horiz-bg.png);
  background-repeat:repeat-x;
  font-weight:bold;
  color:#FFFFFF;
  text-align:center;
  }
</style>
<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(); 
} 

} 

 var updateIframe = function() {
      document.getElementById( 'myIframe' ).src = 'book_insert_attach.php';
    }


</script> 

</head>
<body>
<? 
//include("header.php"); 

	if($_GET['runid_del']){
		mysql_query("DELETE FROM pathumthani_integration.labor_master_company  WHERE company_id='".$_GET['runid_del']."' ");
	}

?>
&nbsp;<img src="images/unpublish_f2.png" width="30" height="30" border="0" align="absmiddle" /><strong style="color:#000033; font-size:18px;"> ¢éÍÁÙŪ×èͺÃÔÉÑ·</strong><br /><br />
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
  <tr>
    <td bgcolor="#B4B4B4">
		<table width="100%" border="0" cellpadding="5" cellspacing="1">
      <tr>
        <td bgcolor="#FFFFFF">
		
       
        <form id="form1" name="form1" method="post" >
          <table width="85%" border="0" align="center">
		  		<tr>
				  <td width="5%" align="center"></td>
				  <td width="79%" align="right">
                  <a href="?p=labor_base_company_keyin"><img src="images/add.png" alt="à¾ÔèÁ¢éÍÁÙŪ×èͺÃÔÉÑ·" title="à¾ÔèÁ¢éÍÁÙŪ×èͺÃÔÉÑ·" border="0" align="absmiddle" /></a>
                  <a href="?p=labor_base_company_keyin"> à¾ÔèÁ¢éÍÁÙŪ×èͺÃÔÉÑ·</a>
				  </td>
				</tr>
			</table>
			<table width="85%" border="0" align="center" bgcolor="#EEEEEE" cellpadding="3" cellspacing="1">
				<tr class="bg_th">
				  <!--<td width="52" align="center"><strong>ÅӴѺ·Õè</strong></td>-->
				  <td align="center" width="50">ÅӴѺ·Õè</td>
				  <td align="center" width="200" ><strong>ª×èͺÃÔÉÑ·</strong></td>
				  <td align="center" width="200"><strong>»ÃÐàÀ·¡Ô¨¡ÒÃ</strong></td>
				  <td align="center" width="100"><strong>µÓºÅ</strong></td>
				  <td align="center" width="100"><strong>ÍÓàÀÍ</strong></td>
				  <td align="center" width="100"><strong>¨Ñ§ËÇÑ´</strong></td>
				  <td align="center" width="70"><strong>¡ÒèѴ¡ÒÃ</strong></td>
				</tr>
		  	<?
			  	$strSQL_1 = "SELECT *
								FROM labor_master_company
								";
				$rsConn_1 = mysql_db_query($dbname,$strSQL_1);
				$i=0;	
				while ( $Result_1 = mysql_fetch_assoc($rsConn_1)) {
						$i++;
						//$color = ( $i % 2 == 0 ) ? "#EFEFEF" : "#FFFFFF" ;
						$color = "#FFFFFF" ;
						$sqlAmphur="	SELECT ccDigi,ccName,ccType FROM ccaa WHERE ccaa.ccType =  'Aumpur' AND ccaa.ccDigi =  '".$Result_1['d_ampur_id']."' 				";
						$rsAmphur=mysql_db_query($dbname,$sqlAmphur);
						$resAmphur=mysql_fetch_assoc($rsAmphur);
						
						$sqlProvice="	SELECT ccDigi,ccName,ccType FROM ccaa WHERE ccaa.ccType =  'Changwat' AND ccaa.ccDigi =  '".$Result_1['d_province_id']."' 				";
						$rsProvice=mysql_db_query($dbname,$sqlProvice);
						$resProvice=mysql_fetch_assoc($rsProvice);
						
						$sqlTambol="	SELECT ccDigi,ccName,ccType FROM ccaa WHERE ccaa.ccType =  'Tamboon' AND ccaa.ccDigi =  '".$Result_1['d_tambol_id']."' 				";
						$rsTambol=mysql_db_query($dbname,$sqlTambol);
						$resTambol=mysql_fetch_assoc($rsTambol);
						
						$sqlcom="	SELECT
labor_master_company_type.company_type,
labor_master_company_type.company_type_id
FROM labor_master_company_type
WHERE
labor_master_company_type.company_type_id =  '".$Result_1['company_type_id']."' 				";
						$rscom=mysql_db_query($dbname,$sqlcom);
						$rescom=mysql_fetch_assoc($rscom);
			  ?>
            <tr bgcolor="<?=$color?>">
              <?php /*?><td align="center"><?=$i?></td><?php */?>
              <td align="center"><?=$i?></td>
              <td align="left"><?=$Result_1['company_name']?></td>
              <td align="left"><?=$rescom['company_type']?></td>
              <td align="left"><?=$resTambol['ccName']?></td>
              <td align="left"><?=$resAmphur['ccName']?></td>
              <td align="center"><?=$resProvice['ccName']?></td>
              <td align="center">
					<a href="?p=labor_base_company_keyin&company_id=<?=$Result_1['company_id']?>&edit=1"><img src="img/icon-write.png" alt="á¡éä¢" title="á¡éä¢" width="16" height="16" border="0" align="absmiddle" /></a>&nbsp;&nbsp;
					<a href="?p=labor_base_company&runid_del=<?=$Result_1['company_id']?>" onClick="return Conf(this)"><img src="img/icon-delete.png" alt="ź" title="ź" width="16" height="16" border="0" align="absmiddle" /></a>			  </td>
            </tr>
          <? }?>
                  
          </table>
        </form>
      </td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>

Anon7 - 2021