Hacked By AnonymousFox

Current Path : C:/AppServ/www/bkup/finan300368/financial/
Upload File :
Current File : C:/AppServ/www/bkup/finan300368/financial/report7print.php

<? 
include("lib/connect.php");
include("lib/session.php");

if($System_Session_User_ID=="") {
echo "<SCRIPT LANGUAGE=\"JavaScript\">window.location = \"index.php\";alert(\"You must Login first.\");</SCRIPT>";
 } 
$sql="select * from fin_staff where StaffID='$System_Session_User_ID'";
$query=mysql_query($sql);
$row=mysql_fetch_array($query);
function ShowDate($myDate) {
		$myDateArray=explode("-",$myDate);
		$myDay = sprintf("%d",$myDateArray[2]);
		switch($myDateArray[1]) {
			case "01" : $myMonth = "ม.ค.";  break;
			case "02" : $myMonth = "ก.พ.";  break;
			case "03" : $myMonth = "มี.ค."; break;
			case "04" : $myMonth = "เม.ย."; break;
			case "05" : $myMonth = "พ.ค.";   break;
			case "06" : $myMonth = "มิ.ย.";  break;
			case "07" : $myMonth = "ก.ค.";   break;
			case "08" : $myMonth = "ส.ค.";  break;
			case "09" : $myMonth = "ก.ย.";  break;
			case "10" : $myMonth = "ต.ค.";  break;
			case "11" : $myMonth = "พ.ย.";   break;
			case "12" : $myMonth = "ธ.ค.";  break;
		}
		$myYear = sprintf("%d",$myDateArray[0])+543;
        return($myDay . " " . $myMonth . " " . $myYear);
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<title>FINANCIAL V.1</title>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
<!--===============================================================================================-->	
	<link rel="icon" type="image/png" href="images/icons/list.ico"/>
<!--===============================================================================================-->
	<link rel="stylesheet" type="text/css" href="vendor/bootstrap/css/bootstrap.min.css">
<!--===============================================================================================-->
	<link rel="stylesheet" type="text/css" href="fonts/font-awesome-4.7.0/css/font-awesome.min.css">
<!--===============================================================================================-->
	<link rel="stylesheet" type="text/css" href="fonts/Linearicons-Free-v1.0.0/icon-font.min.css">
<!--===============================================================================================-->
	<link rel="stylesheet" type="text/css" href="vendor/animate/animate.css">
<!--===============================================================================================-->	
	<link rel="stylesheet" type="text/css" href="vendor/css-hamburgers/hamburgers.min.css">
<!--===============================================================================================-->
	<link rel="stylesheet" type="text/css" href="vendor/animsition/css/animsition.min.css">
<!--===============================================================================================-->
	<link rel="stylesheet" type="text/css" href="vendor/select2/select2.min.css">
<!--===============================================================================================-->	
	<link rel="stylesheet" type="text/css" href="vendor/daterangepicker/daterangepicker.css">
<!--===============================================================================================-->
	<link rel="stylesheet" type="text/css" href="css/splash.css">
    	<link rel="stylesheet" type="text/css" href="css/util.css">
	<link rel="stylesheet" type="text/css" href="css/main.css">

<!--===============================================================================================-->
<style type="text/css">

.inputlogin{

background:#056839;

			font-family: 'Mitr', sans-serif;

font-size:16px;  

padding: 5px 10px 5px 10px;

color: #fff;

font-weight: bold;

-moz-border-radius: 6px;

-webkit-border-radius: 6px;

-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);

-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);

text-shadow: 0 -1px 1px rgba(0,0,0,0.25);

border-bottom: 1px solid rgba(0,0,0,0.25);

cursor: pointer;

border-left:none;

border-top:none;

margin:10px 0 10px 0;

}

.inputlogin:hover{

background:#727FB2;

}
table {
  border-collapse: collapse;
  width: 100%;
}

</style>
         <link rel="stylesheet" href="dist/css/default/zebra_datepicker.min.css" type="text/css">
        <link rel="stylesheet" href="examples.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
<!--
body {
	background-image: url(images/bg-0111);
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px; 
}
.style37 {color: #000000}
-->
</style>
<link rel="preconnect" href="https://fonts.gstatic.com">
	<link href="https://fonts.googleapis.com/css2?family=Mitr:wght@300&display=swap" rel="stylesheet">
 
	<style type="text/css">
		body{
			font-family: 'Mitr', sans-serif;
		}
	.inputlogin1 {
background:#056839;

			font-family: 'Mitr', sans-serif;

font-size:16px;  

padding: 5px 10px 5px 10px;

color: #fff;

font-weight: bold;

-moz-border-radius: 6px;

-webkit-border-radius: 6px;

-moz-box-shadow: 0 1px 3px rgba(0,0,0,0.5);

-webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.5);

text-shadow: 0 -1px 1px rgba(0,0,0,0.25);

border-bottom: 1px solid rgba(0,0,0,0.25);

cursor: pointer;

border-left:none;

border-top:none;

margin:10px 0 10px 0;
}
.highcharts-figure,
.highcharts-data-table table {
    min-width: 310px;
    max-width: 500px;
    margin: 1em auto;
}

.highcharts-data-table table {
    font-family: Verdana, sans-serif;
    border-collapse: collapse;
    border: 1px solid #ebebeb;
    margin: 10px auto;
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.highcharts-data-table caption {
    padding: 1em 0;
    font-size: 1.2em;
    color: #555;
}

.highcharts-data-table th {
    font-weight: 600;
    padding: 0.5em;
}

.highcharts-data-table td,
.highcharts-data-table th,
.highcharts-data-table caption {
    padding: 0.5em;
}

.highcharts-data-table thead tr,
.highcharts-data-table tr:nth-child(even) {
    background: #f8f8f8;
}

.highcharts-data-table tr:hover {
    background: #f1f7ff;
}

.highcharts-description {
    margin: 0.3rem 10px;
}

    </style>
</head>
	<script src="js/jquery.min.js"></script>
<script src="js/jquery.table2excel.js"></script>

<body onLoad="window.print()">
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/highcharts-more.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>
<script src="https://code.highcharts.com/modules/accessibility.js"></script>
<div class="pages_container">
<div align="center"></div>
                                       <table class="table2excel" data-tableName="Header Table" border="0"  cellpadding="10" style="border-collapse:collapse">
  	<tr>
										<td>
										<strong>
    <h3 align="center">รายงานความคืบหน้าของโครงการ</h3>
    </strong>
                                         <table width="98%" border="1" align="center" cellpadding="10" cellspacing="0" style="border-collapse:collapse">
     <tr>
       <td width="293" rowspan="2" bgcolor="#EFEFEF"><h3 align="center" class="style37">ชื่อโครงการ</h3></td>
       <td colspan="31" bgcolor="#EFEFEF"><div align="center"><strong>ขั้นตอน (วันที่แล้วเสร็จ)</strong></div></td>
      </tr>
     <tr>
       <td width="277" bgcolor="#EFEFEF"><h3 align="center" class="style37">1. TOR แล้วเสร็จ</h3></td>
       <td width="331" bgcolor="#EFEFEF"><h3 align="center" class="style37"> 1.1 ประกาศแผนการจัดซื้อจัดจ้าง</h3></td>
       <td width="122" bgcolor="#EFEFEF"><div align="center"><strong> 1.2 แต่งตั้งคกก.กำหนดร่างขอบเขตงาน (TOR) และราคากลาง</strong><strong></strong></div></td>
       <td width="123" bgcolor="#EFEFEF"><div align="center"><strong> 1.3 คกก.กำหนดรายละเอียดและคุณลักษณะครุภัณฑ์</strong></div></td>
       <td width="245" bgcolor="#EFEFEF"><div align="center"><strong> 1.4 ขอความเห็นชอบร่างขอบเขตงาน (TOR) และราคากลาง</strong></div></td>
       <td width="245" bgcolor="#EFEFEF"><div align="center"><strong> 1.5 ผลการประกวดร่าง TOR มีผู้วิจารณ์ คกก.ทบทวน TOR ใหม่</strong></div></td>
       <td width="245" bgcolor="#EFEFEF"><div align="center"><strong> 1.6 รายงานขอซื้อและจัดทำร่างประกาศและร่างเอกสารประกวดราคาประกาศทางเว็บไซต์</strong></div></td>
       <td width="245" bgcolor="#EFEFEF"><div align="center"><strong> 1.7 นำร่าง TOR พร้อมร่างประกาศและร่างเอกสารประกวดราคาประกาศฯทางเว็บไซต์</strong></div></td>
       <td width="245" bgcolor="#EFEFEF"><div align="center"><strong> 1.8 รอผลประกาศร่างขอบเขตของงาน TOR ทางเว็บไซต์</strong></div></td>
       <td width="245" bgcolor="#EFEFEF"><div align="center"><strong>2. รายงานขอซื้อขอจ้าง</strong></div></td>
       <td width="245" bgcolor="#EFEFEF"><div align="center"><strong> 2.1 รายงานผลการรับฟังความคิดเห็นร่าง TOR</strong></div></td>
       <td width="245" bgcolor="#EFEFEF"><div align="center"><strong> 2.2 จัดทำเอกสารประกาศประกวดราคา</strong></div></td>
       <td width="245" bgcolor="#EFEFEF"><div align="center"><strong>3. การจัดหา (กำหนดยื่นข้อเสนอและราคา)</strong></div></td>
       <td width="245" bgcolor="#EFEFEF"><div align="center"><strong> 3.1 จัดทำประกาศประกวดราคาทางเว็บไซต์</strong></div></td>
       <td width="245" bgcolor="#EFEFEF"><div align="center"><strong> 3.2 รอเปิดซอง</strong></div></td>
       <td width="245" bgcolor="#EFEFEF"><div align="center"><strong> 3.3 อยู่ระหว่างคกก.พิจารณาผลการเปิดซอง</strong></div></td>
       <td width="245" bgcolor="#EFEFEF"><div align="center"><strong> 3.4 คกก.รายงานผลการจัดซื้อโดยวิธีประกวดราคา (e-bidding)</strong></div></td>
       <td width="245" bgcolor="#EFEFEF"><div align="center"><strong>4. อนุมัติจัดซื้อ</strong></div></td>
       <td width="245" bgcolor="#EFEFEF"><div align="center"><strong> 4.1 อนุมัติจัดซื้อ</strong></div></td>
       <td width="245" bgcolor="#EFEFEF"><div align="center"><strong> 4.2 อยู่ระหว่างขออนุมัติเงินประจำงวด</strong></div></td>
       <td width="245" bgcolor="#EFEFEF"><div align="center"><strong>5. การจัดทำสัญญา</strong></div></td>
       <td width="245" bgcolor="#EFEFEF"><div align="center"><strong> 5.1 รวบรวมเอกสารส่งตรวจร่างสัญญา</strong></div></td>
       <td width="245" bgcolor="#EFEFEF"><div align="center"><strong> 5.2 ตรวจร่างสัญญา</strong></div></td>
       <td width="245" bgcolor="#EFEFEF"><div align="center"><strong> 5.3 อยู่ระหว่างจัดทำสัญญา/ใบสั่งซื้อ</strong></div></td>
       <td width="245" bgcolor="#EFEFEF"><div align="center"><strong>5.4 ลงนามสัญญา</strong></div></td>
       <td width="245" bgcolor="#EFEFEF"><div align="center"><strong>6. บริหารพัสดุ</strong></div></td>
       <td width="245" bgcolor="#EFEFEF"><div align="center"><strong> 6.1 รอส่งมอบของ</strong></div></td>
       <td width="245" bgcolor="#EFEFEF"><div align="center"><strong> 6.2 ส่งมอบของแล้ว อยู่ระหว่าง คกก.ตรวจรับพัสดุ</strong></div></td>
       <td width="245" bgcolor="#EFEFEF"><div align="center"><strong>7. การเบิกจ่ายเงิน</strong></div></td>
       <td width="122" bgcolor="#EFEFEF"><div align="center"><strong> 7.1 รวบรวมเอกสารตั้งฎีกาเบิกจ่ายเงิน</strong></div></td>
       <td width="123" bgcolor="#EFEFEF"><div align="center"><strong> 7.2 เบิกจ่ายเงินแล้ว</strong></div></td>
     </tr>
     <?php	 
	  $sqlc1="select * from fin_data order by Id asc";
 $queryc1=mysql_query($sqlc1);
while($rowc1=mysql_fetch_array($queryc1)){
?>
     <tr>
       <td height="32"><?=$rowc1[Record]?></td>
       <td height="32"><div align="center"><?
	   	  $sqlc2="select * from fin_step where Idfin='$rowc1[Id]' order by ID desc";
 $queryc2=mysql_query($sqlc2);
$rowc2=mysql_fetch_array($queryc2);

	   if($rowc2[Step]=="1"){ echo $rowc2[Date2]; }

	   ?></div></td>
       <td height="32"><div align="center"><?
	   	   if($rowc2[Step]=="2"){echo $rowc2[Date2]; }

	   ?></div></td>
       <td height="32"><div align="center"><?
	   if($rowc2[Step]=="3"){ echo $rowc2[Date2]; }

	   ?></div></td>
       <td height="32"><div align="center"><?       
	   if($rowc2[Step]=="4"){ echo $rowc2[Date2]; }                       

		  ?>
		  </div></td>
       <td height="32"><div align="center"><?       
       if($rowc2[Step]=="5"){ echo $rowc2[Date2]; }     

		  ?></div></td>
       <td height="32"><div align="center"><?       
       if($rowc2[Step]=="6"){ echo $rowc2[Date2]; }                  

		  ?></div></td>
       <td height="32"><div align="center"><?       
      if($rowc2[Step]=="7"){ echo $rowc2[Date2]; }          

		  ?></div></td>
       <td height="32"><div align="center"><?       
      if($rowc2[Step]=="8"){ echo $rowc2[Date2]; }                 

		  ?></div></td>
       <td height="32"><div align="center"><?       
       if($rowc2[Step]=="9"){ echo $rowc2[Date2]; }                 

		  ?></div></td>
       <td height="32"><div align="center"><?       
            
       if($rowc2[Step]=="10"){ echo $rowc2[Date2]; }        

		  ?></div></td>
       <td height="32"><div align="center"><?       
   
       if($rowc2[Step]=="11"){ echo $rowc2[Date2]; }          

		  ?></div></td>
       <td height="32"><div align="center"><?       
       
       if($rowc2[Step]=="12"){ echo $rowc2[Date2]; }                       

		  ?></div></td>
       <td height="32"><div align="center"><?       
       
       if($rowc2[Step]=="13"){ echo $rowc2[Date2]; }                     

		  ?></div></td>
       <td height="32"><div align="center"><?       
       
       if($rowc2[Step]=="14"){ echo $rowc2[Date2]; }       

		  ?></div></td>
       <td height="32"><div align="center"><?       
       
	   if($rowc2[Step]=="16"){ echo $rowc2[Date2]; }                

		  ?></div></td>
       <td height="32"><div align="center"><?       
       
      if($rowc2[Step]=="17"){ echo $rowc2[Date2]; }                     

		  ?></div></td>
       <td height="32"><div align="center"><?       
       
      if($rowc2[Step]=="18"){ echo $rowc2[Date2]; }                    

		  ?></div></td>
       <td height="32"><div align="center"><?       
       
      if($rowc2[Step]=="19"){ echo $rowc2[Date2]; }          

		  ?></div></td>
       <td height="32"><div align="center"><?       
       
      if($rowc2[Step]=="20"){ echo $rowc2[Date2]; }               
		  ?></div></td>
       <td height="32"><div align="center"><?       
       
      if($rowc2[Step]=="21"){ echo $rowc2[Date2]; }                  
		  ?></div></td>
       <td height="32"><div align="center"><?       
       
       if($rowc2[Step]=="22"){ echo $rowc2[Date2]; }           
		  ?></div></td>
       <td height="32"><div align="center"><?       
       
       if($rowc2[Step]=="23"){ echo $rowc2[Date2]; }               
		  ?></div></td>
       <td height="32"><div align="center"><?       
       
       
       if($rowc2[Step]=="24"){ echo $rowc2[Date2]; }            
		  ?></div></td>
       <td height="32"><div align="center"><?       
            
      if($rowc2[Step]=="25"){ echo $rowc2[Date2]; }         
		  ?></div></td>
       <td height="32"><div align="center"><?       
       
 
       if($rowc2[Step]=="26"){ echo $rowc2[Date2]; }          
		  ?></div></td>
       <td height="32"><div align="center"><?       
       
      
     if($rowc2[Step]=="27"){ echo $rowc2[Date2]; }                   
		  ?></div></td>
       <td height="32"><div align="center"><?       
       
         
       if($rowc2[Step]=="28"){ echo $rowc2[Date2]; }                   
		  ?></div></td>
       <td height="32"><div align="center"><?       
      if($rowc2[Step]=="29"){ echo $rowc2[Date2]; }                    
		  ?></div></td>
       <td height="32"><div align="center"><?       
        if($rowc2[Step]=="30"){ echo $rowc2[Date2]; }          
		  ?></div></td>
       <td height="32"><div align="center"><?             
       if($rowc2[Step]=="31"){ echo $rowc2[Date2]; }                
		  ?></div></td>
       <td height="32"><div align="center"><?       
          if($rowc2[Step]=="32"){ echo $rowc2[Date2]; }
		  ?></div></td>
     </tr>
	 <?php } ?>
   </table>
</tr>
</table>
		<script>
			$(function() {
			$("button").click(function(){
			
				$(".table2excel").table2excel({
					exclude: ".noExl",
					name: "Excel Document Name",
					filename: "report1",
					fileext: ".xls",
					exclude_img: true,
					exclude_links: true,
					exclude_inputs: true
				});
				
				});
				
			});
		</script>


</body>
</html>

Hacked By AnonymousFox1.0, Coded By AnonymousFox