Hacked By AnonymousFox
<?
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);
$Id=$_GET["Id"];
$sqlc1="select * from fin_data where Id='$Id'";
$queryc1=mysql_query($sqlc1);
$rowc1=mysql_fetch_array($queryc1);
$sqlc2="select * from fin_step where Idfin='$Id'";
$queryc2=mysql_query($sqlc2);
$numc2=mysql_num_rows($queryc2);
$rowc2=mysql_fetch_array($queryc2);
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);
}
function ShowDateLongTh($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;
}
-->
</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;
}
</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>
<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>
<br />
<strong><br />
</strong>
<blockquote><strong>
<h3><span class="page_title">
<input type="submit" name="button2" id="button2" class="inputlogin" value="กลับหน้าหลัก" onClick="window.location='home.php'" />
</span><br />
</h3>
</strong>
<form action="saveedit.php" method="post">
<table width="100%" border="1" cellpadding="10" cellspacing="0" style="border-collapse:collapse">
<tr>
<td colspan="2" align="left" bgcolor="EFEFEF"><div align="center">
<h3><strong>ดูข้อมูลรายการจัดซื้อ</strong></h3>
</div></td>
</tr>
<tr>
<td align="left" bgcolor="EFEFEF"><div align="center"><strong>ปีงบประมาณ</strong></div></td>
<td><?=$rowc1[Yearfin]?></td>
</tr>
<tr>
<td align="left" bgcolor="EFEFEF"><div align="center"><strong>แหล่งเงิน</strong></div></td>
<td><?
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)"; }
?></td>
</tr>
<tr>
<td align="left" bgcolor="EFEFEF"><div align="center"><strong>ผลการดำเนินการ</strong></div></td>
<td><?
$sqlfin="select * from fin_price where Idfin='$rowc1[Id]' and (Step2='26' or Step2='28' or Step2='29' or Step2='42' or Step2='31' or Step2='32' or Step2='43' or Step2='44')";
$queryfin=mysql_query($sqlfin);
$numfin=mysql_num_rows($queryfin);
// if($numfin>0&&$rowc1[Result]=="1"){ echo"งบลงทุน (ก่อหนี้แล้ว)"; }else if($numfin>0&&$rowc1[Result]=="3"){ echo"งบลงทุน (ก่อหนี้แล้ว)"; }else if($numfin>0&&$rowc1[Result]=="6"){ echo"งบลงทุน (ก่อหนี้แล้ว)"; }
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"งบรายจ่ายอื่น"; } }
?>
</td>
</tr>
<tr>
<td align="left" bgcolor="EFEFEF"><div align="center"><strong>งบประมาณ</strong></div></td>
<td><?
if($rowc1[Budget]=="1"){ echo"<strong>งบลงทุน</strong>"; }
if($rowc1[Budget]=="2"){ echo"<strong>งบดำเนินงาน</strong>"; }
if($rowc1[Budget]=="3"){ echo"<strong>งบรายจ่ายอื่น</strong>"; }
?> <?
if($rowc1[Value]=="2"){ echo"งบลงทุน"; }
if($rowc1[Value]=="5"){ echo"ค่าครุภัณฑ์"; }
if($rowc1[Value]=="6"){ echo"ค่าที่ดินและสิ่งก่อสร้าง"; }
if($rowc1[Value]=="3"){ echo"รายจ่ายอื่น"; }
if($rowc1[Value]=="4"){ echo"โครงการต่อเนื่อง"; }
if($rowc1[Value]=="1"){ echo"ค่าตอบแทน ใช้สอย และวัสดุ"; }
?> </td>
</tr>
<tr>
<td align="left" bgcolor="EFEFEF"><div align="center"><strong>กลุ่มงานจัดซื้อ</strong></div></td>
<td><?=$rowc1[Groupbuy]?></td>
</tr>
<tr>
<td align="left" bgcolor="EFEFEF"><div align="center"><strong>รายการ</strong></div></td>
<td><?=$rowc1[Record]?></td>
</tr>
<tr>
<td align="left" bgcolor="EFEFEF"><div align="center"><strong>จำนวน</strong></div></td>
<td><?=$rowc1[Amount]?></td>
</tr>
<tr>
<td align="left" bgcolor="EFEFEF"><div align="center"><strong>รายละเอียด</strong></div></td>
<td><?=$rowc1[Detail]?></td>
</tr>
<tr>
<td align="left" bgcolor="EFEFEF"><div align="center"><strong>วิธีการจัดซื้อ</strong></div></td>
<td><?
if($rowc1[Typebuy]=="1"){ echo"วิธีคัดเลือก"; }
if($rowc1[Typebuy]=="2"){ echo"วิธีเฉพาะเจาะจง"; }
if($rowc1[Typebuy]=="3"){ echo"วิธีประกวดราคาอิเล็กทรอนิกส์ (e-bidding)"; }
?></td>
</tr>
<tr>
<td align="left" bgcolor="EFEFEF"><div align="center"><strong>งบประมาณหลังปรับโอน</strong></div></td>
<td><?=number_format($rowc1[Money],2)?></td>
</tr>
<tr>
<td width="454" align="left" bgcolor="EFEFEF"><div align="center"><strong>วงเงินได้ผู้รับจ้าง</strong></div></td>
<td width="736"><?=number_format($rowc1[Moneyco],2)?></td>
</tr>
<tr>
<td align="left" bgcolor="EFEFEF"><div align="center"><strong>คาดการณ์เบิกจ่ายงบประมาณ (ครั้งที่ 1)</strong></div></td>
<td align="left">
<?php if($rowc1[Round1]=="1"){ ?>ต.ค. 67-ม.ค.68<?php } ?>
<?php if($rowc1[Round1]=="2"){ ?>ก.พ.68-พ.ค.68<?php } ?>
<?php if($rowc1[Round1]=="3"){ ?>มิ.ย.68-ก.ย.68<?php } ?> </td>
</tr>
<tr>
<td align="left" bgcolor="EFEFEF"><div align="center"><strong>ยอดเงินการเบิกจ่าย (ครั้งที่ 1)</strong></div></td>
<td><?=number_format($rowc1[Money1],2)?></td>
</tr>
<tr>
<td align="left" bgcolor="EFEFEF"><div align="center"><strong>คาดการณ์เบิกจ่ายงบประมาณ (ครั้งที่ 2)</strong></div></td>
<td> <?php if($rowc1[Round2]=="1"){ ?>ต.ค. 67-ม.ค.68<?php } ?>
<?php if($rowc1[Round2]=="2"){ ?>ก.พ.68-พ.ค.68<?php } ?>
<?php if($rowc1[Round2]=="3"){ ?>มิ.ย.68-ก.ย.68<?php } ?></td>
</tr>
<tr>
<td align="left" bgcolor="EFEFEF"><div align="center"><strong>ยอดเงินการเบิกจ่าย (ครั้งที่ 2)</strong></div></td>
<td><?=number_format($rowc1[Money2],2)?></td>
</tr>
<tr>
<td width="454" align="left" bgcolor="EFEFEF"><div align="center"><strong>คาดการณ์เบิกจ่ายงบประมาณ (ครั้งที่ 3)</strong></div></td>
<td> <?php if($rowc1[Round3]=="1"){ ?>ต.ค. 67-ม.ค.68<?php } ?>
<?php if($rowc1[Round3]=="2"){ ?>ก.พ.68-พ.ค.68<?php } ?>
<?php if($rowc1[Round3]=="3"){ ?>มิ.ย.68-ก.ย.68<?php } ?></td>
</tr>
<tr>
<td align="left" bgcolor="EFEFEF"><div align="center"><strong>ยอดเงินการเบิกจ่าย (ครั้งที่ 3)</strong></div></td>
<td><?=number_format($rowc1[Money3],2)?></td>
</tr>
<tr>
<td align="left" bgcolor="EFEFEF"><div align="center"><strong>หมายเลขโครงการ EGP</strong></div></td>
<td><?=$rowc1[Egp]?></td>
</tr>
<tr>
<td align="left" bgcolor="EFEFEF"><div align="center"><strong>ชื่อบริษัท</strong></div></td>
<td><?=$rowc1[Namecompany]?></td>
</tr>
<tr>
<td colspan="2"><div align="center"><br />
<table width="100%" border="1" align="center" cellpadding="10" cellspacing="0" style="border-collapse:collapse">
<tr height="32">
<td height="32" bgcolor="#EFEFEF"><div align="center"><strong>รายการ</strong></div></td>
<td width="21%" align="left" bgcolor="#EFEFEF"><div align="center"><strong>ขั้นตอนการดำเนินการ</strong></div></td>
<td width="7%" align="left" bgcolor="#EFEFEF"><div align="center"><strong>ครั้งที่</strong></div></td>
<td width="12%" align="left" bgcolor="#EFEFEF"><div align="center"><strong>รายละเอียด</strong></div></td>
<td width="11%" bgcolor="#EFEFEF"><div align="center"><strong>วันที่<br>
คาดการ</strong><strong>ณ์</strong></div></td>
<td width="10%" bgcolor="#EFEFEF"><div align="center"><strong>วันที่<br>
ดำเนินการ</strong></div></td>
<td width="14%" bgcolor="#EFEFEF"><div align="center"><strong>หมายเหตุ</strong></div></td>
<td width="13%" bgcolor="#EFEFEF"><div align="center"><strong>วันเวลาที่ปรับปรุง</strong></div></td>
</tr>
<?php
$sqlc2="select * from fin_stepold a,namestep b where a.Step=b.No and a.Idfin='$Id' order by b.Id asc";
$queryc2=mysql_query($sqlc2);
$numc2=mysql_num_rows($queryc2);
if($numc2>0){
while($rowc2=mysql_fetch_array($queryc2)){
$sqled="select * from fin_stepold where Idfin='$Id' and Step='$rowc2[Step]'";
$queryed=mysql_query($sqled);
$rowed=mysql_fetch_array($queryed);
?>
<tr height="32">
<td height="32"><div align="center">
<?=$rowc1[Record]?>
</div></td>
<td align="center"><div align="left">
<?
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></td>
<td align="center"><?=$rowed[No]?></td>
<td align="center"><?=$rowc2[Detail]?></td>
<td align="center"><?=$rowc2[Date1]?>
<?=$rowc2[Date3]?></td>
<td align="center"><?=$rowc2[Date2]?></td>
<td align="center"><?=$rowc2[Comment]?></td>
<td align="center"><?=ShowDateLongTh($rowc2[Datetimesave])?> <?=substr($rowc2[Datetimesave],11,8)?></td>
</tr>
<?php } } ?>
</table>
<br />
</div></td>
</tr>
</table>
</form>
</blockquote><br />
<br>
</div>
</body>
</html>
Hacked By AnonymousFox1.0, Coded By AnonymousFox