Hacked By AnonymousFox

Current Path : C:/AppServ/www/bkup/finan300368/financial/
Upload File :
Current File : C:/AppServ/www/bkup/finan300368/financial/home.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}
.style39 {color: #056839}
-->
</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;
}
    </style>
</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 class="pages_container">
                                       <div align="center"></div>
                                       <div align="center"><br />
                                      <?php if($System_Session_User_ID=="32") { ?>
                                           <strong><span class="page_title">
                                           <input type="submit" name="button3" id="button3" class="inputlogin" value="รายงานข้อมูล DASHBOARD ติดตามงบประมาณ"  onClick="window.location='report.php'" /> <input type="submit" name="button3" id="button3" class="inputlogin" value="รายงานข้อมูลผลการดำเนินงาน 7 รายงาน"  onClick="window.location='reportex.php'" />
                                             </span><br />
                                             <?php } else{ ?> <strong><span class="page_title">
                                           <input type="submit" name="button3" id="button3" class="inputlogin" value="รายงานข้อมูล DASHBOARD ติดตามงบประมาณ"  onClick="window.location='report-dash.php'" />
                                             </span><br /><?php } ?>
                                             </strong>
											 	<?
	if($System_Session_User_ID=="32"){
	///////แดง
	  $sql_level1="select * from fin_data a,fin_step b where a.Id=b.Idfin and b.Step<8 and b.Id>30 order by b.Id desc";
 $query_level1=mysql_query($sql_level1);
  $num_level1=mysql_num_rows($query_level1);
  ///////ส้ม
  	  $sql_level2="select * from fin_data a,fin_step b where a.Id=b.Idfin and (b.Step='11' or b.Step='12' or b.Step='39' or b.Step='40' or b.Step='41' or b.Step='14' or b.Step='16' or b.Step='17' or b.Step='20'  or b.Step='21'  or b.Step='23'  or b.Step='24'  or b.Step='25'  or b.Step='26') and b.Id>30 order by b.Id desc";
 $query_level2=mysql_query($sql_level2);
  $num_level2=mysql_num_rows($query_level2);
  ///////เหลือง
  	  $sql_level3="select * from fin_data a,fin_step b where a.Id=b.Idfin and (b.Step='28' or b.Step='29' or b.Step='42') and b.Id>30 order by b.Id desc";
 $query_level3=mysql_query($sql_level3);
  $num_level3=mysql_num_rows($query_level3);
  ///////เขียว
  	  $sql_level4="select * from fin_data a,fin_step b where a.Id=b.Idfin and (b.Step='31' or b.Step='32' or b.Step='43' or b.Step='44') and b.Id>30 order by b.Id desc";
 $query_level4=mysql_query($sql_level4);
  $num_level4=mysql_num_rows($query_level4);
$total=$num_level1+$num_level2+$num_level3+$num_level4;
$a1=($num_level1/$total)*100;
$a2=($num_level2/$total)*100;
$a3=($num_level3/$total)*100;
$a4=($num_level4/$total)*100;

$showa1=number_format($a1,2);
$showa2=number_format($a2,2);
$showa3=number_format($a3,2);
$showa4=number_format($a4,2);
}else{

	///////แดง
	  	  $sql_level1="select * from fin_data a,fin_step b where a.Id=b.Idfin and a.Idrefer='$System_Session_User_ID' and b.Step<8 and b.Id>30 order by b.Id desc";
 $query_level1=mysql_query($sql_level1);
  $num_level1=mysql_num_rows($query_level1);
  ///////ส้ม
	    	  $sql_level2="select * from fin_data a,fin_step b where a.Id=b.Idfin and a.Idrefer='$System_Session_User_ID' and (b.Step='11' or b.Step='12' or b.Step='39' or b.Step='40' or b.Step='41' or b.Step='14' or b.Step='16' or b.Step='17' or b.Step='20'  or b.Step='21'  or b.Step='23'  or b.Step='24'  or b.Step='25'  or b.Step='26') and b.Id>30 order by b.Id desc";
 $query_level2=mysql_query($sql_level2);
  $num_level2=mysql_num_rows($query_level2);
  ///////เหลือง
	    	  $sql_level3="select * from fin_data a,fin_step b where a.Id=b.Idfin and a.Idrefer='$System_Session_User_ID' and (b.Step='28' or b.Step='29' or b.Step='42') and b.Id>30 order by b.Id desc";
 $query_level3=mysql_query($sql_level3);
  $num_level3=mysql_num_rows($query_level3);
  ///////เขียว
	    	  $sql_level4="select * from fin_data a,fin_step b where a.Id=b.Idfin and a.Idrefer='$System_Session_User_ID' and (b.Step='31' or b.Step='32' or b.Step='43' or b.Step='44') and b.Id>30 order by b.Id desc";
 $query_level4=mysql_query($sql_level4);
  $num_level4=mysql_num_rows($query_level4);
$total=$num_level1+$num_level2+$num_level3+$num_level4;
$a1=($num_level1/$total)*100;
$a2=($num_level2/$total)*100;
$a3=($num_level3/$total)*100;
$a4=($num_level4/$total)*100;

$showa1=number_format($a1,2);
$showa2=number_format($a2,2);
$showa3=number_format($a3,2);
$showa4=number_format($a4,2);

}
  ?>

											 <script src="stacked/code/highcharts.js"></script>
<script src="stacked/code/modules/exporting.js"></script>
<script src="stacked/code/modules/export-data.js"></script>
<script src="stacked/code/modules/accessibility.js"></script>

                                                                            <table width="100%" border="0">
                                                                              <tr>
                                                                                <td><figure class="highcharts-figure">
    <div id="container2"></div>
    <p class="highcharts-description">    </p>
</figure>
		<script type="text/javascript">
Highcharts.chart('container2', {
    chart: {
        plotBackgroundColor: null,
        plotBorderWidth: null,
        plotShadow: false,
        type: 'pie'
    },
    title: {
        text: ''
    },
    tooltip: {
        pointFormat: '{series.name}: <b>{point.percentage:.2f}%</b>'
    },
    accessibility: {
        point: {
            valueSuffix: '%'
        }
    },
plotOptions: {
        series: {
            allowPointSelect: true,
            cursor: 'pointer',
            dataLabels: [{
                enabled: true,
                distance: 20
            },  
			{
                enabled: true,
                distance: -40,
                format: '{point.percentage:.2f}%',
                style: {
                    fontSize: '1.2em',
                    textOutline: 'none',
                    opacity: 0.7
                },
                filter: {
                    operator: '>',
                    property: 'percentage',
                    value: 10
                }
            }],  showInLegend: true
        }
    },
    series: [
        {
            name: 'Percentage',
            colorByPoint: true,
            data: [
                {
                    name: 'อยู่ระหว่างขั้นตอนการจัดซื้อจัดจ้างจนถึงลงนามสัญญา',
							color: '#F09B6F',
					  sliced: true,
                    selected: true,
                    y: <?=$showa2?>
                },
                {
                    name: 'อยู่ระหว่างขั้นตอนการทำ TOR',
							color: '#B0504C',
                    sliced: true,
                    selected: true,
                    y: <?=$showa1?>
                },
                {
                    name: 'อยู่ระหว่างขั้นตอนการบริหารสัญญา',
							color: '#FAE35C',

					  sliced: true,
                    selected: true,
                    y: <?=$showa3?>
                },
                {
                    name: 'อยู่ระหว่างขั้นตอนการเบิกจ่าย',
					color: '#9AB85C',
					  sliced: true,
                    selected: true,
                    y: <?=$showa4?>
                }
            ]
        }
    ]
});
</script></td>
                                                                              </tr>
                                                                            </table>
                                       </div>
  <blockquote><strong>
    <h3>ข้อมูลรายการจัดซื้อ</h3>
    <span class="page_title">
    <input type="submit" name="button2" id="button2" class="inputlogin" value="เพิ่มข้อมูล"  onClick="window.location='adddata.php'" />
    </span><br />
 </strong>
 <?php
 $sqlc="select * from fin_data where Idrefer='$System_Session_User_ID'";
 $queryc=mysql_query($sqlc);
 $numc=mysql_num_rows($queryc);
 if($numc>0)
 { 
 ?>
 
   <table width="98%" border="1" align="center" cellpadding="10" cellspacing="0" style="border-collapse:collapse">
     <tr>
       <td width="109" bgcolor="#EFEFEF"><h3 align="center" class="style37">ปีงบประมาณ</h3></td>
       <td width="109" bgcolor="#EFEFEF"><h3 align="center" class="style37">รายการ</h3></td>
       <td width="112" bgcolor="#EFEFEF"><h3 align="center" class="style37">แหล่งเงิน</h3></td>
       <td width="233" bgcolor="#EFEFEF"><h3 align="center" class="style37">ผลการดำเนินการ</h3></td>
       <td width="197" bgcolor="#EFEFEF"><div align="center"><strong>วิธีการจัดซื้อ</strong></div></td>
       <td width="161" bgcolor="#EFEFEF"><div align="center"><strong>งบประมาณหลังปรับโอน</strong></div></td>
       <td width="158" bgcolor="#EFEFEF"><div align="center"><strong>หมายเลขโครงการ EGP</strong></div></td>
       <td width="57" bgcolor="#EFEFEF"><div align="center"><strong>จัดการข้อมูล</strong></div></td>
     </tr>
<?php	 
	  $sqlc1="select * from fin_data where Idrefer='$System_Session_User_ID'";
 $queryc1=mysql_query($sqlc1);
while($rowc1=mysql_fetch_array($queryc1)){
?>
     <tr>
       <td height="32"><div align="center">
         <?=$rowc1[Yearfin]?>
       </div></td>
       <td height="32"><div align="center">
         <?=$rowc1[Record]?>
       </div></td>
       <td align="left"><div align="center"><?
	   if($rowc1[Source]=="1"){ echo"เงินงบประมาณ"; }
	   if($rowc1[Source]=="2"){ echo"เงินบำรุง รพ."; }
	   if($rowc1[Source]=="3"){ echo"เงินทุนหมุนเวียน"; }
	   if($rowc1[Source]=="4"){ echo"เงินประกันสังคม"; }
	   if($rowc1[Source]=="5"){ echo"เงินกองทุนหลักประกันสุขภาพ"; }
	   if($rowc1[Source]=="6"){ echo"เงินประกันสุขภาพสำหรับแรงงานต่างด้าว"; }
	   if($rowc1[Source]=="7"){ echo"เงินกองทุนแพทย์ศาสตร์"; }
	   if($rowc1[Source]=="8"){ echo"เงินบำรุงหอพักรพ."; }
	   if($rowc1[Source]=="9"){ echo"เงินอุดหนุนรัฐบาล"; }
	   if($rowc1[Source]=="10"){ echo"เงินระบบบริหารการแพทย์ฉุกเฉิน(EMS)"; }
	   ?>  

	   </div></td>
   <td align="center"><div align="center">
<?

 $sqlfin="select * from fin_step where Idfin='$rowc1[Id]' and (Step='26' or Step='28' or Step='29' or Step='42' or Step='31' or Step='32'  or Step='43'  or Step='44') and Date2!=''";
 $queryfin=mysql_query($sqlfin);
$numfin=mysql_num_rows($queryfin);
		 if($numfin>0){ echo"งบลงทุน (ก่อหนี้แล้ว)"; }else{
	   if($rowc1[Result]=="1"){ echo"งบลงทุน (ยังไม่ก่อหนี้)"; }
	   if($rowc1[Result]=="2"){ echo"งบลงทุน (ก่อหนี้แล้ว)"; }
	   if($rowc1[Result]=="3"){ echo"งบลงทุน (ยังไม่ก่อหนี้) กันไว้เบิกเหลี่อมปี"; }
	   if($rowc1[Result]=="4"){ echo"งบลงทุน (ก่อหนี้แล้ว) กันไว้เบิกเหลี่อมปี"; }
	   if($rowc1[Result]=="5"){ echo"งบดำเนินงาน (ก่อหนี้แล้ว)"; }
	   if($rowc1[Result]=="6"){ echo"งบดำเนินงาน (ยังไม่ก่อหนี้)"; }
	   if($rowc1[Result]=="7"){ echo"งบรายจ่ายอื่น"; } }

	   ?>  	   
	   </div></td>
       <td ><div align="center">
	   <?
	   if($rowc1[Typebuy]=="1"){ echo"วิธีคัดเลือก"; }
	   if($rowc1[Typebuy]=="2"){ echo"วิธีเฉพาะเจาะจง"; }
	   if($rowc1[Typebuy]=="3"){ echo"วิธีประกวดราคาอิเล็กทรอนิกส์ (e-bidding)"; }

	   ?>  	
	   </div></td>
       <td align="right"><div align="center"><?=number_format($rowc1[Money],2)?></div></td>
       <td align="right"><div align="center"><?=$rowc1[Egp]?></div></td>
       <td align="right"><div align="center"><strong><span class="page_title">
	   		   <img src="view.jpg" onClick="window.location='viewdata.php?Id=<?=$rowc1[Id]?>'" width="40" style="cursor:pointer">

         </span></strong><strong><span class="page_title">
		   <img src="edit.png" onClick="window.location='editdata.php?Id=<?=$rowc1[Id]?>'" width="30" style="cursor:pointer">
        </span><a href="deletedata.php?Id=<?=$rowc1[Id]?>" onclick = "if (! confirm('คุณแน่ใจหรือไม่ที่จะลบข้อมูล ?')) { return false; }"><img src="delete.png" width="30" style="cursor:pointer" ></a></strong></div></td>
     </tr>
	 <?php } ?>
   </table>
   <?php }else{ ?>
   
   <table width="98%" border="1" align="center" cellpadding="10" cellspacing="0" style="border-collapse:collapse">
     <tr>
       <td width="218" bgcolor="#EFEFEF"><h3 align="center" class="style37">รายการ</h3></td>
       <td width="112" bgcolor="#EFEFEF"><h3 align="center" class="style37">แหล่งเงิน</h3></td>
       <td width="233" bgcolor="#EFEFEF"><h3 align="center" class="style37">ผลการดำเนินการ</h3></td>
       <td width="197" bgcolor="#EFEFEF"><div align="center"><strong>วิธีการจัดซื้อ</strong></div></td>
       <td width="161" bgcolor="#EFEFEF"><div align="center"><strong>งบประมาณหลังปรับโอน</strong></div></td>
       <td width="158" bgcolor="#EFEFEF"><div align="center"><strong>หมายเลขโครงการ EGP</strong></div></td>
       <td width="57" bgcolor="#EFEFEF"><div align="center"><strong>จัดการข้อมูล</strong></div></td>
     </tr>
     <tr>
       <td height="32" colspan="7"><div align="center">
         <p>&nbsp;</p>
         <p><strong>ยังไม่มีข้อมูลกรุณาเพิ่มข้อมูลโดย <span class="style39">กดปุ่มเพิ่มข้อมูล</span> </strong></p>
         <p>&nbsp;</p>
       </div></td>
      </tr>
   </table>
   <?php } ?>
 </blockquote><br />
 <br>
</div>
</body>
</html>

Hacked By AnonymousFox1.0, Coded By AnonymousFox