Hacked By AnonymousFox

Current Path : C:/AppServ/www/bkup/finan300368/financial/
Upload File :
Current File : C:/AppServ/www/bkup/finan300368/financial/report-dash.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>
<body>
<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>
<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">
                                         <p><br />
                                           <strong><span class="page_title">
                                           <input type="submit" name="button22" id="button22" class="inputlogin" value="กลับหน้าหลัก"  onClick="window.location='home.php'" /><br>

                                           <input type="submit" name="button2" id="button2" class="inputlogin" value="รายงานผล DASHBOARD กราฟสรุปข้อมูลการติดตามเงินงบประมาณ"  onClick="window.location='report-dash2.php'" />
                                         </span></strong></p>
                                         <p><strong><br />
                                         </strong>                                         </p>
  </div>
  <blockquote><strong>
    <h3 align="center">รายงานข้อมูลติดตามงบประมาณ<br />
 </h3>
    </strong>
    <table width="98%" border="1" align="center" cellpadding="10" cellspacing="0" style="border-collapse:collapse">
     <tr>
       <td width="76" bgcolor="#EFEFEF"><h3 align="center" class="style37">ลำดับ</h3></td>
       <td width="135" bgcolor="#EFEFEF"><h3 align="center" class="style37">ประเภท</h3></td>
       <td width="118" bgcolor="#EFEFEF"><h3 align="center" class="style37">กลุ่มงานจัดซื้อ</h3></td>
       <td width="171" bgcolor="#EFEFEF"><h3 align="center" class="style37">หน่วยงาน</h3></td>
       <td width="203" bgcolor="#EFEFEF"><div align="center"><strong>รายการ</strong></div></td>
       <td width="100" bgcolor="#EFEFEF"><div align="center"><strong>จำนวนเงิน (บาท)</strong></div></td>
       <td width="75" bgcolor="#EFEFEF"><div align="center"><strong>จำนวน</strong></div></td>
       <td width="95" bgcolor="#EFEFEF"><div align="center"><strong>ราคาต่อหน่วย</strong></div></td>
       <td width="137" bgcolor="#EFEFEF"><div align="center"><strong>ขั้นตอน</strong></div></td>
      </tr>
<?php	 
	  $sqlc1="select * from fin_data where Idrefer='$System_Session_User_ID' order by Id asc";
 $queryc1=mysql_query($sqlc1);
 $i=1;
while($rowc1=mysql_fetch_array($queryc1)){
?>
     <tr>
       <td height="32"><div align="center">
         <?=$i?>
       </div></td>
       <td height="32"><div align="center">
         <?
	   if($rowc1[Typebuy]=="1"){ echo"วิธีคัดเลือก"; }
	   if($rowc1[Typebuy]=="2"){ echo"วิธีเฉพาะเจาะจง"; }
	   if($rowc1[Typebuy]=="3"){ echo"วิธีประกวดราคาอิเล็กทรอนิกส์ (e-bidding)"; }

	   ?>
       </div></td>
       <td align="left"><div align="center"> <?=$rowc1[Groupbuy]?> 
	   </div></td>
   <td align="center"><div align="center">
<?

 $sqlfin="select * from fin_staff where StaffID='$rowc1[Idrefer]'";
 $queryfin=mysql_query($sqlfin);
$rowfin=mysql_fetch_array($queryfin);
		echo $rowfin[StaffFname];

	   ?>  	   
	   </div></td>
       <td ><div align="center">
	   <?=$rowc1[Record]?>  	
	   </div></td>
       <td align="right"><div align="center">
	   <?php
	   //$tmn=$rowc1[Money];
	   //$am=$rowc1[Amount];
	   //if($rowc1[Amount]!=""){ $totale=($tmn/$am)*100; }
	   ?>
	   <?=number_format($rowc1[Money],2)?></div></td>
       <td align="right"><div align="center"><?=$rowc1[Amount]?></div></td>
       <td align="right"><div align="center"> 
	   <?php if($rowc1[Amount]!=""){ 
	   $tmn=$rowc1[Money];
	   $am=$rowc1[Amount];
	   if($rowc1[Amount]!=""){ $totale=$tmn/$am; }
	   ?>
	   <?=number_format($totale,2)?>
       <?php } ?>
       </div></td>
       <td align="right"><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]=="2"){ echo"1.1 ประกาศแผนการจัดซื้อจัดจ้าง"; }                         
      if($rowc2[Step]=="3"){ echo"1.2 แต่งตั้ง คกก.กำหนดร่างขอบเขตของงาน (TOR) และราคากลาง"; }                          
      if($rowc2[Step]=="4"){ echo"1.3 คกก.กำหนดกำหนดร่างขอบเขตของงาน (TOR) และราคากลาง"; }                      
      if($rowc2[Step]=="5"){ echo"1.4 ขอความเห็นชอบร่างขอบเขตของงาน (TOR) และราคากลาง"; }                          
     if($rowc2[Step]=="6"){ echo"1.5 ผลการประกาศร่าง TOR ทางเว็บไซด์มีผู้วิจารณ์ และ คกก.ทบทวน TOR ใหม่"; }                            
      if($rowc2[Step]=="7"){ echo"1.6 ยกเลิกการประมูลฯ และ คกก. ทบทวน TOR ใหม่"; }                            
      if($rowc2[Step]=="11"){ echo"2.1 รายงานขอซื้อและจัดทำร่างประกาศและร่างเอกสารประกวดราคา"; }                           
      if($rowc2[Step]=="12"){ echo"2.2 นำร่างประกาศและร่างเอกสารประกวดราคาประกาศทางเว็บไซต์ เพื่อรับฟังความคิดเห็น"; }    
      if($rowc2[Step]=="39"){ echo"2.3 รอผลการนำร่างประกาศและร่างเอกสารประกวดราคาประกาศทางเว็บไซต์"; }     
      if($rowc2[Step]=="40"){ echo"2.4 จัดทำเอกสารประกาศประกวดราคา"; }     
      if($rowc2[Step]=="41"){ echo"2.5 เผยแพร่ประกาศและเอกสารประกวดราคาทางเว็บไซด์"; }                           
      if($rowc2[Step]=="14"){ echo"3.1 กำหนดยื่นข้อเสนอด้านราคา"; }                
      if($rowc2[Step]=="16"){ echo"3.2 คกก.พิจารณาผลการเปิดประมูลฯ"; }                           
      if($rowc2[Step]=="17"){ echo"3.3 คกก.รายงานผลการจัดซื้อโดยวิธีประกวดราคา (e-bidding)"; }                           
      if($rowc2[Step]=="20"){ echo"4.1 อนุมัติจัดซื้อ"; }                            
      if($rowc2[Step]=="21"){ echo"4.2 อยู่ระหว่างขออนุมัติเงินประจำงวด"; }                            
      if($rowc2[Step]=="23"){ echo"5.1 รวบรวมเอกสารส่งตรวจร่างสัญญา"; }                          
      if($rowc2[Step]=="24"){ echo"5.2 ตรวจร่างสัญญา"; }                            
      if($rowc2[Step]=="25"){ echo"5.3 อยู่ระหว่างจัดทำสัญญา/ใบสั่งซื้อ"; }                          
      if($rowc2[Step]=="26"){ echo"5.4 ลงนามสัญญา"; }                          
      if($rowc2[Step]=="28"){ echo"6.1 รอส่งมอบของ"; }                           
      if($rowc2[Step]=="29"){ echo"6.2 ส่งมอบของแล้ว อยู่ระหว่าง คกก.ตรวจรับพัสดุ"; }  
      if($rowc2[Step]=="42"){ echo"6.3 รายงานผลการตรวจรับพัสดุ"; }                              
      if($rowc2[Step]=="31"){ echo"7.1 รวบรวมเอกสารตั้งฎีกาเบิกจ่ายเงิน"; }                           
      if($rowc2[Step]=="32"){ echo"7.2  ตรวจสอบฎีกา"; }    
      if($rowc2[Step]=="43"){ echo"7.3  แก้ไขฎีกา"; }    
      if($rowc2[Step]=="44"){ echo"7.4  เบิกจ่ายเงินแล้ว"; }  
	  if($rowc2[Step]=="15"){ echo" ยกเลิกการเปิดซองประกวดราคาฯ"; } 
	  
		  		 if($rowc2[Step]=="33"){ echo"1. เสนอโครงการและขออนุมัติเงินประจำงวด"; }             
			  if($rowc2[Step]=="34"){ echo"2. ประชาสัมพันธ์เชิญชวนกลุ่มเป้าหมายเข้าร่วมกิจกรรม"; }         
			     if($rowc2[Step]=="35"){ echo"3. จัดซื้อวัสดุเพื่อใช้ในการจัดกิจกรรม"; } 
				  if($rowc2[Step]=="36"){ echo" 4. ดำเนินกิจกรรมตามโครงการ"; }    
				  if($rowc2[Step]=="37"){ echo" 5. อยู่ระหว่างดำเนินการตั้งฎีกาเบิกจ่ายเงิน"; } 
				   if($rowc2[Step]=="38"){ echo" 6. เบิกจ่ายเงินแล้ว"; } 		
	   ?>
	    
</div><br>
    <div id="container <?=$i?>" style="width:150px"></div>
		<script type="text/javascript">
Highcharts.chart('container <?=$i?>', {

    chart: {
        type: 'gauge',
        plotBackgroundColor: null,
        plotBackgroundImage: null,
        plotBorderWidth: 0,
        plotShadow: false,
        height: '95%'
    },

    title: {
        text: ''
    },

    pane: {
        startAngle: -90,
        endAngle: 89.9,
        background: null,
        center: ['50%', '75%'],
        size: '120%'
    },

    // the value axis
    yAxis: {
        min: 0,
        max: 100,
        tickPixelInterval: 72,
        tickPosition: 'inside',
        tickColor: Highcharts.defaultOptions.chart.backgroundColor || '#FFFFFF',
        tickLength: 20,
        tickWidth: 2,
        minorTickInterval: null,
        labels: {
            distance: 20,
            style: {
                fontSize: '14px'
            }
        },
        lineWidth: 0,
        plotBands: [{
            from: 1,
            to: 21,
            color: '#df0b08', // red
            thickness: 20,
            borderRadius: '50%'
        }, {
            from: 22,
            to: 84,
            color: '#fe9900', // orange
            thickness: 20,
            borderRadius: '50%'
        }, {
            from: 85,
            to: 92,
            color: '#ffff01', // yellow
            thickness: 20
        }, {
            from: 93,
            to: 100,
            color: '#09c407', // green
            thickness: 20
        }]
    },

    series: [{
        name: '',
        data: [<?php
	   	   if($rowc2[Step]=="2"){ echo"4"; }
	   if($rowc2[Step]=="3"){ echo"8"; }
       if($rowc2[Step]=="4"){ echo"13"; }                          
       if($rowc2[Step]=="5"){ echo"17"; }                      
       if($rowc2[Step]=="6"){ echo" 21"; }                        
      if($rowc2[Step]=="7"){ echo"25"; }                     
      if($rowc2[Step]=="8"){ echo"29"; }                      
       if($rowc2[Step]=="9"){ echo"33"; }                        
       if($rowc2[Step]=="11"){ echo"38"; }                    
       if($rowc2[Step]=="12"){ echo"42"; }                         
       if($rowc2[Step]=="14"){ echo"46"; }          
     if($rowc2[Step]=="16"){ echo"50"; }                        
      if($rowc2[Step]=="17"){ echo"54"; }                         
      if($rowc2[Step]=="18"){ echo"58"; }                       
      if($rowc2[Step]=="20"){ echo"63"; }                          
      if($rowc2[Step]=="21"){ echo"67"; }                         
       if($rowc2[Step]=="23"){ echo" 71"; }                       
       if($rowc2[Step]=="24"){ echo"75"; }                     
      if($rowc2[Step]=="25"){ echo"79"; }                        
       if($rowc2[Step]=="26"){ echo"83"; }                       
       if($rowc2[Step]=="28"){ echo"88"; }                        
      if($rowc2[Step]=="29"){ echo" 92"; }                        
       if($rowc2[Step]=="31"){ echo"96"; }                        
          if($rowc2[Step]=="32"){ echo"100"; } 
		  ?>],
        tooltip: {
            valueSuffix: ''
        },
        dataLabels: {
            format: '',
            borderWidth: 0,
            color: (
                Highcharts.defaultOptions.title &&
                Highcharts.defaultOptions.title.style &&
                Highcharts.defaultOptions.title.style.color
            ) || '#333333',
            style: {
                fontSize: '16px'
            }
        },
        dial: {
            radius: '80%',
            backgroundColor: 'gray',
            baseWidth: 12,
            baseLength: '0%',
            rearLength: '0%'
        },
        pivot: {
            backgroundColor: 'gray',
            radius: 6
        }

    }]

});

// Add some life
setInterval(() => {
    const chart = Highcharts.charts[0];
    if (chart && !chart.renderer.forExport) {
        const point = chart.series[0].points[0],
            inc = Math.round((Math.random() - 0.5) * 20);

        let newVal = point.y + inc;
        if (newVal < 0 || newVal > 200) {
            newVal = point.y - inc;
        }

        //point.update(newVal);
    }

}, 3000);
</script>
</td>
      </tr>
	 <?php $i++; } ?>
   </table>
  </blockquote>
  <br />
 <br>
</div>



</body>
</html>

Hacked By AnonymousFox1.0, Coded By AnonymousFox