Viewing file: PlanStdDetail.php (25.63 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( "../include/Function.php" );
/** Create Database Object */
$dbObj = new DBConn;
$Username = $valid_user;
/** Config Table for This Page */
$myTable = "projectstdplan_tb";
$myTable1 = "project_type_tb";
$myTable2 = "faculty_tb";
$myTable3 = "qa_project_tb";
$myTable4 = "projectqa_type_tb";
$myTable5 = "prostrategymap_tb";
$myTable6 = "projectstra_type_tb";
//=== salary_repot_tb
$query = " SELECT * FROM $myTable WHERE Budget_Year='$Budget_Year' AND Faculty_code='$Faculty_code' AND Project_code='$Project_code' ";
$result = $dbObj->execQuery($query);
$rs = $dbObj->fetchArray($result);
$query = " SELECT * FROM $myTable1 WHERE ProjectId='$ProjectId' AND Faculty_code='$Faculty_code' AND Budget_Year='$Budget_Year' ";
$result2 = $dbObj->execQuery($query);
$rss = $dbObj->fetchArray($result2);
} # 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>
<title>ข้อมูลแผนดำเนินงานและรายงาน : ข้อมูลแผนดำเนินการ รายปีงบประมาณ - เพิ่มข้อมูลแผน/โครงการรดำเนินงาน (ข้อหลัก)</title>
<style type="text/css">
<!--
.style2 {font-family: Tahoma; font-weight: bold; }
.style22 {font-size: 14px; font-weight: bold; }
-->
</style>
</head>
<body topmargin="0" rightmargin="0" bottommargin="0" leftmargin="0">
<?php
include("../templates/incHeader.php");
?>
<table width="1003" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="203" align="left" valign="top" style="padding:10px 0px 0px 5px"><?php include("./_incMainMenu.php");?></td>
<td width="800" align="center" valign="top" style="padding:10px 0px 5px 10px"><fieldset>
<table width="780" border="0" cellspacing="0" cellpadding="0">
<form id="myForm" name="myForm" method="post" action="InsertStdPlan.php" onSubmit="return checkData();">
<tr>
<td height="5"></td>
</tr>
<tr>
<td height="30" background="../images/background/bg-head-topic-w780.gif" class="PADDING-LEFT-10"><strong><a href="index.php">หน้าหลัก</a></strong> <strong>» <a href="PlaningByYear.php">ข้อมูลแผนดำเนินการ รายปีงบประมาณ</a> » <span class="NOTE">รายละเอียดโครงการ</span></strong></td>
</tr>
<tr>
<td><table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td 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></td>
</tr>
</table></td>
</tr>
<tr>
<td height="350" align="center" valign="top"><table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#E0E0E0">
<tr bgcolor="#ECD9C6">
<td height="5" colspan="3" bgcolor="#FFFFFF"></td>
</tr>
<tr bgcolor="#EEEEEE">
<td height="10" colspan="2" bgcolor="#FFFFFF"><strong>รหัสโครงการ</strong> <font color="#0033CC" size="2" face="Tahoma"><?php echo htmlspecialchars_decode( $rs['Orderlist'] ); ?></font></td>
<td bordercolor="#006699" bgcolor="#FFFFFF"></td>
</tr>
<tr bgcolor="#EEEEEE">
<td height="10" colspan="2" bgcolor="#FFFFFF"><font color="#000000" size="2" face="Tahoma"><strong>ชื่อโครงการ </strong> <?php echo htmlspecialchars_decode( nl2br( $rs['Project_plan'] ) ); ?></font></td>
<td bordercolor="#006699" bgcolor="#FFFFFF"></td>
</tr>
<tr bgcolor="#EEEEEE">
<td height="10" colspan="2" bgcolor="#FFFFFF"><span class="PATRON">ลักษณะของแผน<span class="PATRON11">
<?php
$strSQL = " SELECT * FROM projectcode_tb WHERE codeId='$rs[codeId]' ";
$result2 = $dbObj->execQuery($strSQL);
$rs2 = $dbObj->fetchArray($result2);
echo $rs2['proCodeName'];
?>
</span></span></td>
<td bordercolor="#006699" bgcolor="#FFFFFF"></td>
</tr>
<tr bgcolor="#EEEEEE">
<td height="10" colspan="2" bgcolor="#FFFFFF"><strong>เจ้าของโครงการ<span class="NOTE">
<?php
$sql1 = " SELECT * FROM faculty_tb WHERE Faculty_code='$Faculty_code' ";
$result1 = $dbObj->execQuery($sql1);
$rs1 = $dbObj->fetchArray($result1);
echo $rs1['Faculty_name'];
?>
</span></strong></td>
<td width="1%" bordercolor="#006699" bgcolor="#FFFFFF"></td>
</tr>
<tr bgcolor="#ECD9C6">
<td colspan="2" bordercolor="#006699" bgcolor="#FFFFFF"><strong>ผู้รับผิดชอบโครงการ</strong></td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td width="11%" bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td width="88%" bordercolor="#006699" bgcolor="#FFFFFF"><font color="#000000" size="2" face="Tahoma"><?php
$Teacher_code1 = $rs['Teacher_code1'];
$sql3 = " SELECT * FROM personal_tb WHERE Teacher_code='$Teacher_code1' ";
$result3 = mysql_query($sql3);
$rs3 = mysql_fetch_array($result3);
echo $rs3['First_name'] ;
echo $rs3['Teacher_name'];
echo $rs3['Teacher_lastname'] ;
?>
</font></td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"><font color="#000000" size="2" face="Tahoma">
<?php
$Teacher_code2 = $rs['Teacher_code2'];
$sql3 = " SELECT * FROM personal_tb WHERE Teacher_code='$Teacher_code2' ";
$result3 = mysql_query($sql3);
$rs3 = mysql_fetch_array($result3);
//echo $rs3['First_name'];
echo $rs3['First_name'] ;
echo $rs3['Teacher_name'];
echo $rs3['Teacher_lastname'] ;
?>
</font></td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"><font color="#000000" size="2" face="Tahoma">
<?php
$Teacher_code3 = $rs['Teacher_code3'];
$sql3 = " SELECT * FROM personal_tb WHERE Teacher_code='$Teacher_code3' ";
$result3 = mysql_query($sql3);
$rs3 = mysql_fetch_array($result3);
//echo $rs3['First_name'];
echo $rs3['First_name'] ;
echo $rs3['Teacher_name'];
echo $rs3['Teacher_lastname'] ;
?>
</font></td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"><font color="#000000" size="2" face="Tahoma"><?php
$Teacher_code4 = $rs['Teacher_code4'];
$sql3 = " SELECT * FROM personal_tb WHERE Teacher_code='$Teacher_code4' ";
$result3 = mysql_query($sql3);
$rs3 = mysql_fetch_array($result3);
//echo $rs3['First_name'];
echo $rs3['First_name'] ;
echo $rs3['Teacher_name'];
echo $rs3['Teacher_lastname'] ;
?>
</font></td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td colspan="2" bordercolor="#006699" bgcolor="#FFFFFF">กลยุทธ์</td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td colspan="2" bordercolor="#006699" bgcolor="#FFFFFF"><table width="98%" border="0" align="left" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF" style="background-color:#eeeeee; border:0px solid gray">
<tr bgcolor="#F0F0F0">
<td height="25" colspan="3" align="left" bordercolor="#999966" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><a href="javascript:;" onclick="MM_openBrWindow('PlanStraListShow.php?Project_code=<?php echo $rs['Project_code'];?>&Budget_Year=<?=$rs['Budget_Year'];?> ','Detail','scrollbars=yes,width=820,height=280')"> <img src="../picture/new.gif" alt="เพิ่มรายการเอกสาร" width="16" height="16" border="0" /></a></font><font color="#000000"> <span class="style22"> เพิ่มแผนกลยุทธ์</span></font></td>
</tr>
<?php
$query = " SELECT * FROM $myTable6 WHERE Project_code = '$Project_code' ";
$result2 = $dbObj->execQuery($query);
$numrows = $dbObj->_numrows;
?>
<?php
$no = 1+($display-1)*$limit;
while( $rs2 = $dbObj->fetchArray($result2) ) {
$bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" : "#FFFFFF";
?>
<tr bgcolor="<?=$bgColor;?>">
<td width="95%" height="20" align="left">กลยุทธ์ที่ <?php
$sql = " SELECT * FROM $myTable5 WHERE StratempId = '$rs2[StratempId]' ";
$result4 = $dbObj->execQuery($sql);
$rs4 = $dbObj->fetchArray($result4);
echo $rs4['Nostrate'] ;
echo htmlspecialchars_decode( nl2br( $rs4['StrateName'] ) );
?></td>
<td width="1%" align="center" class="PADDING-LEFT-5"></a></font></td>
<td width="4%" align="center" class="PADDING-LEFT-5"><div align="center"><strong><font size="2" face="Tahoma">
<script language="JavaScript" type="text/javascript">
function Conf<?=$rs2[ProstrId];?>0(object) {
if (confirm("คุณต้องการลบข้อมูล <?php echo " $rs2[ProstrId]"; ?> หรือไม่?") == true) {
return true;
}
return false;
}
</script>
<a href="javascript:;" onclick="NewWindow('DelStraproject.php?ProstrId=<? echo $rs2['ProstrId']?>','Detail','500','200','yes');"> <img src="../images/icons/cross.png" width="16" height="16" align="absmiddle" border="0" onclick="return Conf<?=$rs2[ProstrId];?>0(this)" alt="ลบข้อมูล" /></a></font></strong></div></td>
</tr>
<?php
//$no++;
} # while
?>
<tr>
<td height="22" colspan="3" align="center" bgcolor="#F8F8F8"><strong>ทั้งหมด <span class="NOTE"><?php echo $numrows; ?></span> รายการ</strong></td>
</tr>
</table></td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td colspan="2" bordercolor="#006699" bgcolor="#FFFFFF"><p><strong>ตัวชี้วัดประกันคุณภาพการศึกษา</strong></p></td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td colspan="2" rowspan="4" bordercolor="#006699" bgcolor="#FFFFFF"><table width="98%" border="0" align="left" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF" style="background-color:#eeeeee; border:0px solid gray">
<tr bgcolor="#F0F0F0">
<td height="25" colspan="4" align="left" bordercolor="#999966" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font size="2" face="Tahoma" ><a href="javascript:;" onclick="NewWindow('Addqa.php?Project_code=<?php echo $rs['Project_code']; ?>&Trem=<?php echo $rs['Budget_Year'];?> ','Detail','500','200','yes')"> <img src="../picture/new.gif" alt="เพิ่มรายการเอกสาร" width="16" height="16" border="0" /></a></font><font color="#000000"> <span class="style22"> เพิ่มตัวชี้วัด QA</span></font></td>
</tr>
<?php
$query = " SELECT * FROM $myTable4 WHERE Project_code = '$Project_code' ";
$result1 = $dbObj->execQuery($query);
$numrows = $dbObj->_numrows;
?>
<?php
$no = 1+($display-1)*$limit;
while( $rs2 = $dbObj->fetchArray($result1) ) {
$bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" : "#FFFFFF";
?>
<tr bgcolor="<?=$bgColor;?>">
<td width="81%" height="20" align="left"><?php
$sql = " SELECT * FROM $myTable3 WHERE projectId = '$rs2[projectId]' ";
$result3 = $dbObj->execQuery($sql);
$rs3 = $dbObj->fetchArray($result3);
//echo $rs3['Ind_code'] ;
echo htmlspecialchars_decode( nl2br( $rs3['Indicate'] ) )
?> </td>
<td width="11%" align="left" class="PADDING-LEFT-5"><font color="#000000" size="2" face="Tahoma"><font color="#000000" size="2" face="Tahoma"><? echo $rs2[ProjectPBRI]?> ,<font color="#000000" size="2" face="Tahoma"><? echo $rs2[ProjectSKA]?><font color="#000000" size="2" face="Tahoma"> ,<? echo $rs2[ProjectSMS]?></font></font></font></font></td>
<td width="4%" align="center" class="PADDING-LEFT-5"><font size="2" face="Tahoma"><a href="javascript:;" onclick="NewWindow('Frmqa.php?ProqaId=<? echo $rs2['ProqaId']?>','Detail','500','200','yes');"><img src="../images/icons/icon-edit.gif" alt="แก้ไขข้อมูล" width="16" height="16" border="0" /></a></font></td>
<td width="4%" align="center" class="PADDING-LEFT-5"><div align="center"><strong><font size="2" face="Tahoma">
<script language="JavaScript" type="text/javascript">
function Conf<?=$rs2[ProqaId];?>0(object) {
if (confirm("คุณต้องการลบข้อมูล <?php echo " $rs2[ProqaId]"; ?> หรือไม่?") == true) {
return true;
}
return false;
}
</script><a href="javascript:;" onclick="NewWindow('DelQa.php?ProqaId=<? echo $rs2['ProqaId']?>','Detail','500','200','yes');">
<img src="../images/icons/cross.png" width="16" height="16" align="absmiddle" border="0" onclick="return Conf<?=$rs2[ProqaId];?>0(this)" alt="ลบข้อมูล" /></a></font></strong></div></td>
</tr>
<?php
//$no++;
} # while
?>
<tr>
<td height="22" colspan="4" align="center" bgcolor="#F8F8F8"><strong>ทั้งหมด <span class="NOTE"><?php echo $numrows; ?></span> รายการ</strong></td>
</tr>
</table></td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td colspan="2" bordercolor="#006699" bgcolor="#FFFFFF"><strong>วัตถุประสงค์</strong></td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"><font color="#0033CC" size="2" face="Tahoma"><?php echo htmlspecialchars_decode( nl2br( $rs['Orderlist_2'] ) ); ?></font></td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td colspan="2" bordercolor="#006699" bgcolor="#FFFFFF"><strong>กลุ่มเป้าหมาย</strong></td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"><font color="#0033CC" size="2" face="Tahoma"><?php echo htmlspecialchars_decode( nl2br( $rs['Period'] ) ); ?></font></td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td colspan="2" bordercolor="#006699" bgcolor="#FFFFFF"><strong>ขั้นตอนการดำเนินการ</strong></td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"><font color="#0033CC" size="2" face="Tahoma"><?php echo htmlspecialchars_decode( nl2br( $rs['Project_rep'] ) ); ?></font></td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td colspan="2" bordercolor="#006699" bgcolor="#FFFFFF"><strong>ระยะเวลาดำเนินการ</strong></td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td colspan="2" bordercolor="#006699" bgcolor="#FFFFFF"><strong>งบประมาณ</strong></td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"><span class="PADDING-RIGHT-10">
<?php
$sql2 = " SELECT SUM(Budget_total) AS SumB1 FROM project_type_tb
WHERE Project_code='$rs[Project_code]' AND Budget_Year='$Budget_Year' AND Faculty_code='$Faculty_code' ";
$result2 = $dbObj->execQuery($sql2);
$rs2 = $dbObj->fetchArray($result2);
echo number_format($rs2['SumB1'],2,'.',',');
?>
บาท</span></td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td colspan="2" bordercolor="#006699" bgcolor="#FFFFFF"><strong>ผลที่คาดว่าจะได้รับ</strong></td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"><font color="#0033CC" size="2" face="Tahoma"><?php echo htmlspecialchars_decode( nl2br( $rs['Period_1'] ) ); ?></font></td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td colspan="2" bordercolor="#006699" bgcolor="#FFFFFF"><strong>ตัวชี้วัดความสำเร็จ</strong></td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"><table width="98%" border="0" align="left" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF" style="background-color:#eeeeee; border:0px solid gray">
<tr bgcolor="#F0F0F0">
<td height="25" colspan="3" align="left" bordercolor="#999966" bgcolor="#FFFFFF" class="PADDING-LEFT-10"><font size="2" face="Tahoma" ><a href="javascript:;" onclick="NewWindow('Addsuccess.php?Project_code=<?php echo $rs['Project_code']; ?>&Trem=<?php echo $rs['Budget_Year'];?> ','Detail','500','200','yes')"> <img src="../picture/new.gif" alt="เพิ่มรายการเอกสาร" width="16" height="16" border="0" /></a></font><font color="#000000"> <span class="style22"> เพิ่มตัวชี้วัดความสำเร็จตามแผน</span></font></td>
</tr>
<?php
$query = " SELECT * FROM $myTable4 WHERE Project_code = '$Project_code' ";
$result1 = $dbObj->execQuery($query);
$numrows = $dbObj->_numrows;
?>
<?php
$no = 1+($display-1)*$limit;
while( $rs2 = $dbObj->fetchArray($result1) ) {
$bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" : "#FFFFFF";
?>
<tr bgcolor="<?=$bgColor;?>">
<td height="20" align="left"><?php
$sql = " SELECT * FROM $myTable3 WHERE projectId = '$rs2[projectId]' ";
$result3 = $dbObj->execQuery($sql);
$rs3 = $dbObj->fetchArray($result3);
//echo $rs3['Ind_code'] ;
echo htmlspecialchars_decode( nl2br( $rs3['Indicate'] ) )
?></td>
<td width="4%" align="center" class="PADDING-LEFT-5"><font size="2" face="Tahoma"><a href="javascript:;" onclick="NewWindow('Frmqa.php?ProqaId=<? echo $rs2['ProqaId']?>','Detail','500','200','yes');"><img src="../images/icons/icon-edit.gif" alt="แก้ไขข้อมูล" width="16" height="16" border="0" /></a></font></td>
<td width="4%" align="center" class="PADDING-LEFT-5"><div align="center"><strong><font size="2" face="Tahoma">
<script language="JavaScript" type="text/javascript">
function Conf<?=$rs2[ProqaId];?>0(object) {
if (confirm("คุณต้องการลบข้อมูล <?php echo " $rs2[ProqaId]"; ?> หรือไม่?") == true) {
return true;
}
return false;
}
</script>
<a href="javascript:;" onclick="NewWindow('DelQa.php?ProqaId=<? echo $rs2['ProqaId']?>','Detail','500','200','yes');"> <img src="../images/icons/cross.png" width="16" height="16" align="absmiddle" border="0" onclick="return Conf<?=$rs2[ProqaId];?>0(this)" alt="ลบข้อมูล" /></a></font></strong></div></td>
</tr>
<?php
//$no++;
} # while
?>
<tr>
<td height="22" colspan="3" align="center" bgcolor="#F8F8F8"><strong>ทั้งหมด <span class="NOTE"><?php echo $numrows; ?></span> รายการ</strong></td>
</tr>
</table></td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#ECD9C6">
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
<td bordercolor="#006699" bgcolor="#FFFFFF"> </td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr></form>
</table>
</fieldset></td>
</tr>
</table>
<?php include("../templates/incFooter.php"); ?>
</body>
</html>
<?php
/** Free Resource */
$dbObj->freeresult($result);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?>
|