Hacked By AnonymousFox

Current Path : C:/AppServ/www/financial/
Upload File :
Current File : C:/AppServ/www/financial/adddata.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);
}
$budget=$_GET["budget"];
//if($budget==1){Header("Location:adddata.php?budget=1");}
 //if($budget==2){Header("Location:adddata.php?budget=2");}
//if($budget==3){Header("Location:adddata.php?budget=3");}

?>
<!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}
.style38 {font-weight: bold}
.style39 {color: #000000; font-weight: bold; }
-->
</style>
<script language="javascript">
function show_tableadd(id) {
if(id == 1) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2 
document.getElementById("tableadd1").style.display = "";
document.getElementById("tableadd2").style.display = "none";
document.getElementById("tableadd3").style.display = "none";
} 
if(id == 2) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2 
document.getElementById("tableadd1").style.display = "none";
document.getElementById("tableadd2").style.display = "none";
document.getElementById("tableadd3").style.display = "";
} 
if(id == 3) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2 
document.getElementById("tableadd1").style.display = "none";
document.getElementById("tableadd2").style.display = "";
document.getElementById("tableadd3").style.display = "none";
} 

}
</script>
<script type="text/javascript">
	function sSelect(){
		index = document.getElementById('input4').value;
		if(index == '5'){
			document.getElementById('input_text').style.display='';
		}else{
					document.getElementById('input_text').style.display='none';
		}
	}
</script>
<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> &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>
                                       <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="save.php" method="post">
    <table width="100%" border="1" cellpadding="10" cellspacing="0" style="border-collapse:collapse">
      <tr>
        <td colspan="2" bgcolor="#EFEFEF"><div align="center">
          <h3><strong>เพิ่มข้อมูลรายการจัดซื้อ</strong></h3>
        </div></td>
      </tr>
      <tr>
        <td bgcolor="#EFEFEF"><div align="left" class="style37 style38">
          <div align="center">ปีงบประมาณ</div>
        </div></td>
        <td class="edit_td"><select name="input9">
          <option value="2568" selected="selected">2568</option>
          <option value="2569">2569</option>
          <option value="2570">2570</option>
		   <option value="2571">2571</option>
          <option value="2572">2572</option>
        </select></td>
      </tr>
      <tr>
        <td width="27%" bgcolor="#EFEFEF"><div align="left" class="style37 style38">
          <div align="center">แหล่งเงิน</div>
        </div></td>
        <td width="73%" class="edit_td"><div align="left">
            <select name="input1">
  <option value="1">เงินงบประมาณ</option>            
  <option value="2">เงินบำรุง รพ.</option>            
  <option value="3">เงินทุนหมุนเวียน</option>            
  <option value="4">เงินประกันสังคม</option>            
  <option value="5">เงินกองทุนหลักประกันสุขภาพ</option>            
  <option value="6">เงินประกันสุขภาพสำหรับแรงงานต่างด้าว</option>            
  <option value="7">เงินกองทุนแพทย์ศาสตร์</option>            
  <option value="8">เงินบำรุงหอพักรพ.</option>            
  <option value="9">เงินอุดหนุนรัฐบาล</option>            
  <option value="10">เงินระบบบริหารการแพทย์ฉุกเฉิน(EMS)</option>            
            </select>
        </div></td>
      </tr>
      <tr>
        <td bgcolor="#EFEFEF"><div align="left" class="style39">
          <div align="center">ผลการดำเนินการ</div>
        </div></td>
        <td class="edit_td"><div align="left">
            <select name="input2">
  <option value="1">งบลงทุน (ยังไม่ก่อหนี้)</option>                          
  <option value="2">งบลงทุน (ก่อหนี้แล้ว)</option>                          
  <option value="3">งบลงทุน (ยังไม่ก่อหนี้) กันไว้เบิกเหลี่อมปี</option>                          
  <option value="4">งบลงทุน (ก่อหนี้แล้ว) กันไว้เบิกเหลี่อมปี</option>                          
  <option value="5">งบดำเนินงาน (ก่อหนี้แล้ว)</option>                          
  <option value="6">งบดำเนินงาน (ยังไม่ก่อหนี้)</option>                          
  <option value="7">งบรายจ่ายอื่น</option>                          
            </select>
        </div></td>
      </tr>
      <tr>
        <td bgcolor="#EFEFEF"><div align="left" class="style39">
          <div align="center">งบประมาณ</div>
        </div></td>
        <td><div align="left">
			<input type="radio" name="input3" id="input3" value="1" onClick="show_tableadd(this.value);" checked="checked" />
                                              งบลงทุน
                                                  <input type="radio" name="input3" id="input3" value="2" onClick="show_tableadd(this.value);" />งบดำเนินงาน
												   <input type="radio" name="input3" id="input3" value="3" onClick="show_tableadd(this.value);" />งบรายจ่ายอื่น
        </div>
		  <table width="100%" border="0" id="tableadd1">
            <tr>
              <td><p>
                <select name="input4" id="input4" onChange="sSelect()">
                  <option value="2">งบลงทุน</option>
				  <option value="5">ค่าครุภัณฑ์</option>
				  <option value="6">ค่าที่ดินและสิ่งก่อสร้าง</option>
                </select>
                <br />
              </p></td>
            </tr>
          </table>
		  <table width="100%" border="0" id="tableadd2" style="display:none">
                                                <tr>
                                                  <td><p>
                <select name="input44" id="input44" onChange="sSelect()">
                  <option value="3">รายจ่ายอื่น</option>
                  <option value="4"> โครงการต่อเนื่อง</option>
                </select>
                                                    <br />
</p>                                                  </td>
                                                </tr>
            </table>	
			<table width="100%" border="0" id="tableadd3" style="display:none">
                                                <tr>
                                                  <td><p>
                <select name="input444" id="input444" onChange="sSelect()">
                  <option value="1">ค่าตอบแทน ใช้สอย และวัสดุ</option>
                </select>
                                                    <br />
</p>                                                  </td>
                                                </tr>
            </table>				</td>
      </tr>
      <tr>
        <td bgcolor="#EFEFEF"><div align="left" class="style39">
          <div align="center">กลุ่มงานจัดซื้อ</div>
        </div></td>
        <td><input name="inputnew" type="text" size="70" required></td>
      </tr>
      
      <tr>
        <td height="67" bgcolor="#EFEFEF"><div align="left" class="style39">
          <div align="center">รายการ</div>
        </div></td>
        <td align="left">
		
          <input name="input5" type="text" size="70" required>
        <div id="input_text" style="display:none">  <br>
<strong>จำนวน</strong>
		  <input type="number" name="inputam" size="5" />
        </div></td>
      </tr>
      <tr>
        <td bgcolor="#EFEFEF"><div align="left" class="style39">
          <div align="center">รายละเอียด</div>
        </div></td>
        <td><textarea name="input6" cols="70" rows="5"></textarea></td>
      </tr>
      <tr>
        <td bgcolor="#EFEFEF"><div align="left" class="style39">
          <div align="center">วิธีการจัดซื้อ</div>
        </div></td>
        <td><div align="left">
            <select name="input7">
         <option value="1">วิธีคัดเลือก</option>                          
            <option value="2">วิธีเฉพาะเจาะจง</option>                          
         <option value="3">วิธีประกวดราคาอิเล็กทรอนิกส์ (e-bidding)</option>                          
            </select>
        </div></td>
      </tr>
      <tr>
        <td bgcolor="#EFEFEF"><div align="left" class="style39">
          <div align="center">งบประมาณหลังปรับโอน</div>
        </div></td>
        <td><div align="left">
          <input name="input8" type="number" size="70">
        </div></td>
      </tr>
      <tr>
        <td colspan="2"><div align="center"><strong><span class="page_title">
          <input type="submit" name="button22" id="button22" class="inputlogin" value="เพิ่มข้อมูล"  onClick="window.location='adddata.php'" />
        </span></strong><br />
            <br />
        </div></td>
      </tr>
    </table>
	</form>
  </blockquote><br />
 <br>
</div>
</body>
</html>

Hacked By AnonymousFox1.0, Coded By AnonymousFox