Hacked By AnonymousFox

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

<? 
include("lib/connect.php");
include("lib/session.php");
$selectdept=$_POST["selectdept"];
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="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;
}
.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;

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

</head>
<body>
<table width="100%" border="0">
  <tr>
    <td><div align="center">
      <h2><strong><img src="logo.jpg"  height="100"><br>
        </strong><br>
        <span class="h5"> <strong>รายงานผลการติดตามเงินงบประมาณ ปีงบประมาณ 2568 </strong></span></h2>
    </div></td>
  </tr>
  <tr>
  <tr>
<td>
<hr>
</td></tr>
    <td bgcolor="#FDE8FA"><div align="center">
      <h3><span class="page_title"><strong>ยินดีต้อนรับ !
        <?=$System_Session_FullName?>
        เข้าสู่ระบบ</strong> &nbsp;&nbsp;
        <input type="submit" name="button" id="button" class="inputlogin" value="ออกจากระบบ"  onClick="window.location='system/logout.php'" />
        </span></h3>
    </div></td>
  </tr>
  <tr><td>
<hr>
</td></tr>
</table>
                                         <div align="center"><strong><span class="page_title">
                                         <input type="submit" name="button322" id="button322" class="inputlogin" value="กลับหน้าหลัก" onClick="window.location='home.php'"  />
                                         </span></strong>
                                         </div>
                                         <br>
                                         <table width="100%" data-tableName="Header Table" border="1"  cellpadding="10" style="border-collapse:collapse">
                                                         <tr>
                                                           <td bgcolor="#FFFFFF"><div align="center">
                                                             <h3><strong>1.<span class="page_title">
                                                               <input type="submit" name="button3222" id="button3222" class="inputlogin" value="ผลการดำเนินงานรายการงบลงทุน (ยังไม่ก่อหนี้)" onClick="window.location='report1.php'"  />
                                                             </span><br>
                                                             2.<span class="page_title">
                                                             <input type="submit" name="button3223" id="button3223" class="inputlogin" value="ผลการดำเนินงานรายการงบลงทุน (ก่อหนี้แล้ว)" onClick="window.location='report2.php'"  />
                                                             </span><br>
                                                             3.<span class="page_title">
                                                             <input type="submit" name="button3224" id="button3224" class="inputlogin" value="ผลการดำเนินงานรายการงบลงทุน (ยังไม่ก่อหนี้) ที่กันไว้เบิกเหลื่อมปี
" onClick="window.location='report3.php'"  />
                                                             </span><br>
                                                             4.<span class="page_title">
                                                             <input type="submit" name="button3225" id="button3225" class="inputlogin" value="ผลการดำเนินงานรายการงบลงทุนและงบรายจ่ายอื่น" onClick="window.location='report4.php'"  />
                                                             </span><br>
                                                             5.<span class="page_title">
                                                             <input type="submit" name="button3226" id="button3226" class="inputlogin" value="ผลการดำเนินงานโครงการต่อเนื่อง" onClick="window.location='report5.php'"  />
                                                             </span><br>
                                                             6.<span class="page_title">
                                                             <input type="submit" name="button3227" id="button3227" class="inputlogin" value="สรุปขั้นตอนการดำเนินงานงบประมาณรายจ่าย" onClick="window.location='report6.php'"  />
                                                             </span><br>
                                                             7.</strong><strong><span class="page_title">
                                                             <input type="submit" name="button3228" id="button3228" class="inputlogin" value="รายงานความคืบหน้าของโครงการ" onClick="window.location='report7.php'"  />
                                                             </span></strong></h3>
                                                           </div></td>
                                                         </tr>
                                                     <?php
	  if($selectdept==""){
	  $sql="select * from fin_staff where StaffID>32 order by StaffFname asc";
 }else{
	  $sql="select * from fin_staff where StaffID='$selectdept' order by StaffFname asc";
}

	  //$sql="select * from fin_staff where StaffID>32 order by StaffFname asc";
	  $query=mysql_query($sql);
	  while($row=mysql_fetch_array($query)){
	  ?>
                                                     <?php
	  $sql2="select * from fin_data where Idrefer='$row[StaffID]' and Result='1' order by Id asc";
	  $query2=mysql_query($sql2);
	    $i=1;
	  while($row2=mysql_fetch_array($query2))  {
	
	
	  ?>
                                                     <?php 
	 $i++; }
	 } ?>
</table>
                                             </td>
                                           </tr>
									
		
		<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