Viewing file: MISP104.php (13.39 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start();
/** Define Validate Access */
define( '_VALID_ACCESS', 1 );
/** Check Session User Login */
if( !session_is_registered("valid_user") && !session_is_registered("Priority") ) {
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-874\" />";
echo "<p style=padding-top:115px><p align=center><br /><font color=red><strong>กรุณาทำการ Login ก่อน</strong></font></p></p>";
echo "<meta http-equiv=\"refresh\" content=\"1; URL=../login.php\" />";
exit();
}
else {
/** Configuration */
require_once( "../configuration.php" );
require_once( $_Config_absolute_path . "/includes/framework.php" );
require_once( "../includes/Function.php" );
/** Create Database Object */
$dbObj = new DBConn;
//=== SESSION
$Username = $valid_user;
/** Config Table for This Page */
$myTable ="project_type_tb";
$myTable1 = "project_tb";
$myTable2 = "project_mission";
$myTablePK = "proId";
/** Paging */
$page = $_GET['page'];
if( $page == "" ) { $page = 1; }
/** จำนวนข้อมูล ต่อ 1 หน้า */
$perpage = $_REQUEST['perpage'];
if( $perpage == "" ) { $perpage = 30; }
} # else
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<link href="../css/default.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../js/utilities.js"></script>
<script language="Javascript" src="../charts/charts.js"></script>
<title><?=$_Config_sitename;?></title>
<style type="text/css">
<!--
.style1 {font-size: 14px}
-->
</style>
<script type="text/javascript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
</head>
<body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0">
<table width="1205" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="1270" align="left" valign="top" style="padding:10px 0px 5px 10px">
<fieldset><legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="index.php">หน้าหลัก</a></font><img src="../picture/ico3.gif" width="10" height="10" align="absmiddle" border="0" /></font></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="Menu_Report.php?Budget_Year=<?=$Budget_Year ;?>">รายงานประเภทต่างๆ</a></font><img src="../picture/ico3.gif" width="10" height="10" align="absmiddle" border="0" /></font></font><span class="NOTE">แผนการจัดสรรงบปประมาณตามพันธกิจจำแนกแผนยุทธศาสตร์และแผนประจำ<?php echo $Budget_Year; ?></a></font></span></legend>
<table width="1280" border="0" cellspacing="0" cellpadding="0">
<form id="myForm" name="myForm" method="post" action="<?=$PHP_SELF;?>?Budget_Year=<?=$Budget_Year;?>&ProjectId=<?=$ProjectId;?>&MoneyS_C=<?=$MoneyS_C;?>&page=<?=$page;?>">
<tr>
<td width="1180" height="5"></td>
</tr>
<tr>
<td><table width="97%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="10" colspan="2" align="left"><span style="padding-bottom:5px;">เลือกปีงบประมาณ
<select name="jumpMenu" id="jumpMenu" onchange="MM_jumpMenu('parent',this,0)">
<option>
<?php
$strSQL = " SELECT * FROM project_year ORDER by Budget_Year asc ";
$result4 = mysql_query($strSQL);
while( $rs4 = mysql_fetch_array($result4) ) {
?>
</option>
<option value="MISP104.php?Budget_Year=<?=$rs4['Budget_Year'];?>" <?php if( $rs4['Budget_Year']==$Budget_Year ) echo 'selected'; ?>>
<?=$rs4['Budget_Year'];?>
</option>
<?php
} # while
?>
</select>
</span></td>
</tr>
<tr>
<td height="10" colspan="2" align="right"><span style="padding-bottom:5px;">เลือกหน่วยงาน
<select name="jumpMenu" id="jumpMenu" onchange="MM_jumpMenu('parent',this,0)">
<option>
<?php
$strSQL = " SELECT * FROM faculty_tb Where FacultyStatus ='Y' ORDER by Faculty_code asc ";
$result5 = mysql_query($strSQL);
while( $rs5 = mysql_fetch_array($result5) ) {
?>
</option>
<option value="MISP104.php?Budget_Year=<?=$Budget_Year;?>&Faculty_code=<?=$rs5['Faculty_code'];?>" <?php if( $rs5['Faculty_code']==$Faculty_code ) echo 'selected'; ?>>
<?=$rs5['Faculty_name'];?>
</option>
<?php
} # while
?>
</select>
</span></td>
</tr>
<tr>
<td height="10" colspan="2" align="left"><span class="PADDING-TOP-10 PADDING-BOTTOM-10"><img src="../images/icons/arrow-circle-225-left.png" width="16" height="16" border="0" align="absmiddle" /> <a href="javascript:;" onclick="window.history.back();"><strong>‹ ย้อนกลับ</strong></a></span></td>
</tr>
<tr>
<td width="74%" align="left" style="padding-bottom:5px;">ทั้งหมด: <strong><?=$numrows;?></strong> รายการ</td>
<td width="26%" align="right" style="padding-bottom:5px;"><a href="ExcelReportIndicator.php?Budget_Year=<? echo $Budget_Year; ?>&Faculty_code=<? echo $Faculty_code;?>"><strong>ส่งออกข้อมูล ›</strong></a> <img src="../images/icons/excel.png" width="16" height="16" border="0" align="absmiddle" /></td>
</tr>
</table></td>
</tr>
<tr>
<td height="123" align="center" valign="top"><table width="1280" border="0" align="center" cellpadding="0" cellspacing="0" class="BORDER-GREY">
<tr bgcolor="#F8F8F8">
<td rowspan="2" align="center"class="BORDER">พันธ<br />กิจ</td>
<td rowspan="2" align="center"class="BORDER-LEFT">ประ<br />
เด็น<br />
ยุทธ<br />
ศาสตร์</td>
<td rowspan="2" align="center"class="BORDER-LEFT">PI<br />
กล<br />ยุทธ์</td>
<td rowspan="2" align="center"class="BORDER-LEFT">PI<br />
สบช<br />
(54-58)</td>
<td rowspan="2" align="center"class="BORDER-LEFT">กล<br />
ยุทธ์<br />
สบช<br />
(54-58)</td>
<td rowspan="2" align="center"class="BORDER-LEFT">โครง<br />
การหลัก<br />ตามกล<br />ยุทธ์</td>
<td rowspan="2" align="center"class="BORDER-LEFT">กิจกรรมหลักในโครงการ<br />
อิงวิสัยทัศน์ วิทยาลัย และ<br />
รองรับการประเมินคุณภาพ</td>
<td height="23" colspan="13" align="center" class="BORDER-LEFT">รายละเอียด</td>
</tr>
<tr bgcolor="#F8F8F8">
<td width="79" height="23" align="center" class="BORDER-TOP-LEFT">ค่าเป้าหมาย<br />
ตัวชี้วัดแผน<br />
ปฏิบัติการ</td>
<td width="82" align="center" class="BORDER-TOP-LEFT">พื้นที่ดำเนินการ<br />/กลุ่มเป้าหมาย</td>
<td width="63" align="center" class="BORDER-TOP-LEFT">วัน เริ่ม
ต้น</td>
<td width="54" align="center" class="BORDER-TOP-LEFT">วันสิ้น
สุด</td>
<td width="25" align="center" class="BORDER-TOP-LEFT">นับปี<br />
ก<br />
ศ<br />
ษ</td>
<td width="25" align="center" class="BORDER-TOP-LEFT">นับปี<br />
ง<br />
ป<br />
ม</td>
<td width="62" align="center" class="BORDER-TOP-LEFT">งบประมาณ</td>
<td width="32" align="center" class="BORDER-TOP-LEFT">นับปี<br />
ก<br />
ศ<br />
ษ</td>
<td width="76" align="center" class="BORDER-TOP-LEFT">เงินรายได้</td>
<td width="83" align="center" class="BORDER-TOP-LEFT">เงินงบประมาณ</td>
<td width="74" align="center" class="BORDER-TOP-LEFT">รวมเงิน</td>
<td width="90" align="center" class="BORDER-TOP-LEFT">ผู้รับผิดชอบ</td>
<td width="73" align="center" class="BORDER-TOP-LEFT">ผู้กำกับ</td>
</tr>
<?php
$sql = " SELECT * FROM project_plan Where Faculty_code='$Faculty_code' and Budget_Year='$Budget_Year' " ;
$result19 = $dbObj->execQuery($sql);
$numrows = $dbObj->_numrows;
$no = 1+($display-1)*$limit;
while( $rs = $dbObj->fetchArray($result19) ) {
$bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" : "#FFFFFF";
?>
<tr bgcolor="<?=$bgColor;?>" class="PADDING-RIGHT-10 BORDER-TOP BORDER-LEFT" onmouseover="this.style.backgroundColor='#F5F9F9'" onmouseout="this.style.backgroundColor=''">
<td width="33" align="left" valign="top" class="PADDING-LEFT-15 BORDER-TOP-RIGHT">-</td>
<td width="45" align="left" valign="top" class="PADDING-LEFT-15 BORDER-TOP-RIGHT">-</td>
<td width="32" align="left" valign="top" class="PADDING-LEFT-15 BORDER-TOP-RIGHT">-</td>
<td width="48" align="left" valign="top" class="PADDING-LEFT-15 BORDER-TOP-RIGHT">-</td>
<td width="48" align="left" valign="top" class="PADDING-LEFT-15 BORDER-TOP-RIGHT">-</td>
<td width="45" align="left" valign="top" class="PADDING-LEFT-15 BORDER-TOP-RIGHT">-</td>
<td width="209" height="19" align="left" valign="top" class="PADDING-LEFT-3 BORDER-TOP">[<? echo "$rs[Orderlist]"; ?>]</a> <?=htmlspecialchars_decode( nl2br( $rs['Project_plan'] ) );?>
</a></td>
<td align="center" class="BORDER-TOP BORDER-LEFT">-</td>
<td align="center" class="PADDING-RIGHT-10 BORDER-TOP BORDER-LEFT">-</td>
<td align="center" class="PADDING-RIGHT-3 BORDER-TOP BORDER-LEFT"><?=$rs['Date_start'];?></td>
<td align="center" class="PADDING-RIGHT-3 BORDER-TOP BORDER-LEFT"><?=$rs['Date_finish'];?></td>
<td align="center" class="PADDING-RIGHT-3 BORDER-TOP BORDER-LEFT"><?=$rs['AcademicYear'];?></td>
<td align="center" class="PADDING-RIGHT-3 BORDER-TOP BORDER-LEFT"><?=$rs['Budget_Year'];?></td>
<td align="right" class="PADDING-RIGHT-3 BORDER-TOP BORDER-LEFT">
<?php
$sql = " SELECT SUM(Budget_total) AS B6 FROM project_type_tb pt , project_plan pp Where pp.proId='$rs[proId]' and pp.proId=pt.proId and pp.Budget_Year='$Budget_Year' and pp.Faculty_code='$Faculty_code' ";
$result5 = $dbObj->execQuery($sql);
$rs5 = $dbObj->fetchArray($result5);
echo number_format($rs5['B6'],2,'.',',');
?>
</td>
<td align="left" class="PADDING-RIGHT-3 BORDER-TOP BORDER-LEFT"> </td>
<td align="left" class="PADDING-RIGHT-3 BORDER-TOP BORDER-LEFT"> </td>
<td align="left" class="PADDING-RIGHT-3 BORDER-TOP BORDER-LEFT"> </td>
<td align="right" class="PADDING-RIGHT-3 BORDER-TOP BORDER-LEFT"><?php
$sql = " SELECT SUM(Budget_total) AS B6 FROM project_type_tb pt , project_plan pp Where pp.proId='$rs[proId]' and pp.proId=pt.proId and pp.Budget_Year='$Budget_Year' and pp.Faculty_code='$Faculty_code' ";
$result5 = $dbObj->execQuery($sql);
$rs5 = $dbObj->fetchArray($result5);
echo number_format($rs5['B6'],2,'.',',');
?></td>
<td align="left" class="PADDING-RIGHT-3 BORDER-TOP BORDER-LEFT"> </td>
<td align="left" class="PADDING-RIGHT-3 BORDER-TOP BORDER-LEFT"> </td>
</tr>
<?php
$no++;
} # while
?>
</table>
<?php //} #if ?></td>
</tr>
<tr>
<td> </td>
</tr></form></table>
</fieldset></td>
</tr>
</table>
<?php include("../templates/incFooter.php"); ?>
</body>
</html>
<?php
/** Free Resource */
$dbObj->freeresult($result1);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?>
|