Viewing file: CommitByYearDetail.php (21.66 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" );
/** Chart */
include ("../includes/charts.php");
/** Create Database Object */
$dbObj = new DBConn;
/** Config Table for This Page */
$myTable = "committee_tb";
$myTableFK = "Year_com";
$myTableGroup = "Teacher_code";
/** Parameters */
$params = "Teacher_code=$Teacher_code&Year_com=$Year_com";
/** Table --> personal_tb */
/*
$query = " SELECT * FROM $myTable WHERE Year_std='$Year_std' ORDER BY Date_start DESC ";
$result = $dbObj->execQuery($query);
$numrows = $dbObj->_numrows;
*/
/** Paging */
$page = $_GET['page'];
if( $page == "" ) { $page = 1; }
/** จำนวนข้อมูล ต่อ 1 หน้า */
$perpage = $_REQUEST['perpage'];
if( $perpage == "" ) { $perpage = 10; }
} # 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>ข้อมูลการพัฒนาบุคลากร - ข้อมูลการเป็นกรรมการวิชาการแก่สังคมของอาจารย์ ปี พ.ศ. <?=$Year_com;?></title>
</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" height="440" align="center" valign="top" style="padding:10px 0px 5px 10px">
<?php
/** Query */
$query = " SELECT * FROM personal_tb WHERE Teacher_code='$Teacher_code' ";
$result1 = $dbObj->execQuery($query);
$row = $dbObj->fetchArray($result1);
$Teacher_code = $row['Teacher_code'];
$query = " SELECT * FROM $myTable WHERE Teacher_code='$Teacher_code' ";
$result = $dbObj->execQuery($query);
$num = $dbObj->_numrows;
?>
<fieldset>
<table width="780" border="0" cellspacing="0" cellpadding="0">
<form id="myForm" name="myForm" method="post" action="<?=$PHP_SELF;?>">
<tr>
<td height="5"></td>
</tr>
<tr>
<td height="30" background="../images/background/bg-head-topic-w780.gif"><span class="PADDING-LEFT-10"><strong><a href="index.php">หน้าหลัก</a></strong> <strong>» <a href="Menu_Training.php">ข้อมูลการพัฒนาบุคลากร</a> » <a href="CommitByYear.php">ข้อมูลการเป็นกรรมการบริการวิชาการ</a> » <a href="PersonalList.php?Year_com=<?=$Year_com;?>">การเป็นกรรมการวิชาการแก่สังคม</a></strong></span></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td align="center" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#EEEEEE" style="border:0px solid gray">
<tr bgcolor="#AED7FF">
<td height="25" colspan="4" align="center" bgcolor="#F0F0F0"><strong><font color="#003366" face="Tahoma">ข้อมูลการเป็นกรรมการให้บริการวิชาการแก่สังคม
ปี พ.ศ.<font color="#FF0000"> <?php echo $Year_com; ?></font></font></strong></td>
</tr>
<tr bgcolor="#AED7FF">
<td height="25" colspan="4" align="left" bgcolor="#F8F8F8"><span class="PADDING-LEFT-5"><strong>ชื่อ-นามสกุล : <span class="TEXT-GREEN10"><?php echo $row['First_name'];?><?php echo $row['Teacher_name'];?> <?php echo $row['Teacher_lastname'];?></span></strong></span></td>
</tr>
<tr bordercolor="#0066CC" bgcolor="#CCE6FF">
<td colspan="2" align="center" bgcolor="#CCE6FF" style="border:1px solid gray"> </td>
<td width="157" align="center" bgcolor="#CCE6FF" style="border:1px solid gray"><font size="1" face="Tahoma">แยกประเภทตาม
สมศ. </font></td>
<td align="center" style="border:1px solid gray"><font size="1" face="Tahoma">แยกประเภทตามการเป็นกรรมการ</font> <font size="1" face="Tahoma">ให้บริการวิชาการอื่นฯ</font></td>
</tr>
<tr bordercolor="#0066CC" bgcolor="#CCE6FF">
<td width="30" height="26" align="center" bgcolor="#DFEBF9" style="border:1px solid gray"><font color="#000000" size="1" face="Tahoma">ลำดับ</font></td>
<td width="265" align="center" bgcolor="#DFEBF9" style="border:1px solid gray"><span class="style14"><font color="#000000" face="Tahoma">ชื่อเรื่อง</font></span></td>
<td align="center" style="border:1px solid gray"><table width="100%" height="35" border="0" align="center" cellpadding="0" cellspacing="1">
<tr bgcolor="#DFEBF9">
<td width="33%" align="center" bgcolor="#DFEBF9" style="border:1px solid gray"><font size="1" face="Tahoma">วิชาการ</font></td>
<td width="34%" align="center" bgcolor="#DFEBF9" style="border:1px solid gray"><font size="1" face="Tahoma">วิชาชีพ</font></td>
<td width="33%" align="center" bgcolor="#DFEBF9" style="border:1px solid gray"><font size="1" face="Tahoma">วิทยานิพนธ์</font></td>
</tr>
</table></td>
<td width="313" align="center" style="border:1px solid gray"><table width="100%" height="37" border="0" align="center" cellpadding="0" cellspacing="1">
<tr bgcolor="#DFEBF9">
<td width="20%" align="center" bgcolor="#DFEBF9" style="border:1px solid gray"><font size="1" face="Tahoma">ตรวจ<br />
เครื่องมือ</font></td>
<td width="20%" align="center" bgcolor="#DFEBF9" style="border:1px solid gray"><font size="1" face="Tahoma">คปสข.10</font></td>
<td width="20%" align="center" bgcolor="#DFEBF9" style="border:1px solid gray"><font size="1" face="Tahoma">ครือข่าย<br />
ภาคกลาง 1</font></td>
<td width="20%" align="center" bgcolor="#DFEBF9" style="border:1px solid gray"><font size="1" face="Tahoma">การเป็น<br />
วิทยากร</font></td>
<td width="20%" align="center" bgcolor="#DFEBF9" style="border:1px solid gray"><font size="1" face="Tahoma">กรรมการ<br />
อื่นๆ</font></td>
</tr>
</table></td>
</tr>
<?php
$no = 1;
while( $rs2 = $dbObj->fetchArray($result) ) {
$bgColor = ( $bgColor == "#FFFFFF" ) ? "#F9FBFB" : "#FFFFFF";
?>
<tr bgcolor="<?=$bgColor;?>">
<td align="center" bordercolor="#EBFAFE"><font size="2" face="Tahoma"><?php echo $no; ?></font></td>
<td bordercolor="#EBFAFE"><font size="2" face="Tahoma"> <?php echo $rs2['Title'];?></font></td>
<td bordercolor="#EBFAFE"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td width="33%" height="18"><div align="center"><font color="#993333" size="2" face="Tahoma"><?php echo $rs2['Edu'];?></font></div></td>
<td width="34%"><div align="center"><font color="#993333" size="2" face="Tahoma"><?php echo $rs2['Edu_job'];?></font></div></td>
<td width="33%"><div align="center"><font color="#993333" size="2" face="Tahoma"><?php echo $rs2['Tsis'];?></font></div></td>
</tr>
</table></td>
<td bordercolor="#EBFAFE" bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td width="20%" height="18"><div align="center"><font color="#993333" size="2" face="Tahoma"><?php echo $rs2[Check_tool];?></font></div></td>
<td width="20%"><div align="center"><font color="#993333" size="2" face="Tahoma"><?php echo $rs2['Scp10'];?></font></div></td>
<td width="20%"><div align="center"><font color="#993333" size="2" face="Tahoma"><?php echo $rs2['Club_bcnlp'];?></font></div></td>
<td width="20%"><div align="center"><font color="#993333" size="2" face="Tahoma"><?php echo $rs2['North_network'];?></font></div></td>
<td width="20%"><div align="center"><font color="#993333" size="2" face="Tahoma"><?php echo $rs2['Else_commit'];?></font></div></td>
</tr>
</table></td>
</tr>
<?php
$no++;
} # while
?>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10"></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" >
<tr>
<td width="54%" align="right" bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma">จำนวนการเป็นกรรมการ
(แยกตามประเภท) </font></td>
<td width="17%"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td width="25%" bgcolor="#FDFCEC"><div align="center"><font color="#993333" size="2" face="Tahoma">
<?php
//$Teacher_code = $row['Teacher_code'];
$sql1 = " SELECT * FROM committee_tb WHERE Edu='Yes' AND Teacher_code='$Teacher_code' AND Year_com='$Year_com' ";
$result1 = mysql_query($sql1);
$Srs1 = mysql_num_rows($result1);
mysql_free_result($result1);
echo $Srs1;
?>
</font></div></td>
<td width="25%" bgcolor="#FDFCEC"><div align="center"><font color="#993333" size="2" face="Tahoma">
<?php
//$Teacher_code = $row['Teacher_code'];
$sql5 = " SELECT * FROM committee_tb WHERE Edu_job='Yes' AND Teacher_code='$Teacher_code' AND Year_com='$Year_com' ";
$result5 = mysql_query($sql5);
$Srs5 = mysql_num_rows($result5);
mysql_free_result($result5);
echo $Srs5;
?>
</font></div></td>
<td width="25%" bgcolor="#FDFCEC"><div align="center"><font color="#993333" size="2" face="Tahoma">
<?php
//$Teacher_code = $row[Teacher_code];
$sql8 = " SELECT * FROM committee_tb WHERE Tsis='Yes' AND Teacher_code='$Teacher_code' AND Year_com='$Year_com' ";
$result8 = mysql_query($sql8);
$Srs8 = mysql_num_rows($result8);
mysql_free_result($result8);
echo $Srs8;
?>
</font></div></td>
</tr>
</table></td>
<td width="29%" colspan="2"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td width="20%" bgcolor="#FDFCEC"><div align="center"><font color="#993333" size="2" face="Tahoma">
<?php
// $Teacher_code = $row[Teacher_code];
$sql1 = " SELECT * FROM committee_tb WHERE Check_tool='Yes' AND Teacher_code='$Teacher_code' AND Year_com='$Year_com' ";
$result1 = mysql_query($sql1);
$rs10 = mysql_num_rows($result1);
mysql_free_result($result1);
echo $rs10;
?>
</font></div></td>
<td width="20%" bgcolor="#FDFCEC"><div align="center"><font color="#993333" size="2" face="Tahoma">
<?php
//$Teacher_code = $row[Teacher_code];
$sql8 = " SELECT * FROM committee_tb WHERE Scp10 ='Yes' AND Teacher_code='$Teacher_code' AND Year_com='$Year_com' ";
$result8 = mysql_query($sql8);
$rs11 = mysql_num_rows($result8);
mysql_free_result($result8);
echo $rs11;
?>
</font></div></td>
<td width="20%" bgcolor="#FDFCEC"><div align="center"><font color="#993333" size="2" face="Tahoma">
<?php
//$Teacher_code = $row[Teacher_code];
$sql5 = " SELECT * FROM committee_tb WHERE Club_bcnlp='Yes' AND Teacher_code='$Teacher_code' AND Year_com='$Year_com' ";
$result5 = mysql_query($sql5);
$rs12 = mysql_num_rows($result5);
mysql_free_result($result5);
echo $rs12;
?>
</font></div></td>
<td width="20%" bgcolor="#FDFCEC"><div align="center"><font color="#993333" size="2" face="Tahoma">
<?php
//$Teacher_code = $row[Teacher_code];
$sql5 = " SELECT * FROM committee_tb WHERE North_network='Yes' AND Teacher_code='$Teacher_code' AND Year_com='$Year_com' ";
$result5 = mysql_query($sql5);
$rs13 = mysql_num_rows($result5);
mysql_free_result($result5);
echo $rs13;
?>
</font></div></td>
<td width="20%" bgcolor="#FDFCEC"><div align="center"><font color="#993333" size="2" face="Tahoma">
<?php
//$Teacher_code = $row[Teacher_code];
$sql8 = " SELECT * FROM committee_tb WHERE Else_commit ='Yes' AND Teacher_code='$Teacher_code' AND Year_com='$Year_com' ";
$result8 = mysql_query($sql8);
$rs14 = mysql_num_rows($result8);
mysql_free_result($result8);
echo $rs14;
?>
</font></div></td>
</tr>
</table></td>
</tr>
<tr>
<td align="right" bgcolor="#FFFFFF"><font size="2" color="#003366" face="Tahoma">จำนวนการไม่เป็นกรรมการ
(แยกตามประเภท) </font></td>
<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td width="25%" bgcolor="#FFFFFF"><div align="center"><font color="#993333" size="2" face="Tahoma">
<?php
//$Teacher_code = $row[Teacher_code];
$sql3 = " SELECT * FROM committee_tb WHERE Edu='No' AND Teacher_code='$Teacher_code' AND Year_com='$Year_com' ";
$result3 = mysql_query($sql3);
$Srs3 = mysql_num_rows($result3);
mysql_free_result($result3);
echo $Srs3;
?>
</font></div></td>
<td width="25%" bgcolor="#FFFFFF"><div align="center"><font color="#993333" size="2" face="Tahoma">
<?php
//$Teacher_code = $row[Teacher_code];
$sql6 = " SELECT * FROM committee_tb WHERE Edu_job='No' AND Teacher_code='$Teacher_code' AND Year_com='$Year_com' ";
$result6 = mysql_query($sql6);
$Srs6 = mysql_num_rows($result6);
mysql_free_result($result6);
echo $Srs6;
?>
</font></div></td>
<td width="25%" bgcolor="#FFFFFF"><div align="center"><font color="#993333" size="2" face="Tahoma">
<?php
//$Teacher_com = $row[Teacher_code];
$sql8 = " SELECT * FROM committee_tb WHERE Tsis='No' AND Teacher_code='$Teacher_code' ";
$result8 = mysql_query($sql8);
$Srs9 = mysql_num_rows($result8);
mysql_free_result($result8);
echo $Srs9;
?>
</font></div></td>
</tr>
</table></td>
<td colspan="2"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td width="20%" bgcolor="#FFFFFF"><div align="center"><font color="#993333" size="2" face="Tahoma">
<?php
//$Teacher_code = $row[Teacher_code];
$sql1 = " SELECT * FROM committee_tb WHERE Check_tool='No' AND Teacher_code='$Teacher_code' AND Year_com='$Year_com' ";
$result1 = mysql_query($sql1);
$rs15 = mysql_num_rows($result1);
mysql_free_result($result1);
echo $rs15;
?>
</font></div></td>
<td width="20%" bgcolor="#FFFFFF"><div align="center"><font color="#993333" size="2" face="Tahoma">
<?php
//$Teacher_code = $row[Teacher_code];
$sql8 = "SELECT * FROM committee_tb WHERE Scp10 ='NO' AND Teacher_code='$Teacher_code' AND Year_com='$Year_com' ";
$result8 = mysql_query($sql8);
$rs16 = mysql_num_rows($result8);
mysql_free_result($result8);
echo $rs16;
?>
</font></div></td>
<td width="20%" bgcolor="#FFFFFF"><div align="center"><font color="#993333" size="2" face="Tahoma">
<?php
//$Teacher_code = $row[Teacher_code];
$sql5 = " SELECT * FROM committee_tb WHERE Club_bcnlp='No' AND Teacher_code='$Teacher_code' AND Year_com='$Year_com' ";
$result5 = mysql_query($sql5);
$rs17 = mysql_num_rows($result5);
mysql_free_result($result5);
echo $rs17;
?>
</font></div></td>
<td width="20%" bgcolor="#FFFFFF"><div align="center"><font color="#993333" size="2" face="Tahoma">
<?php
//$Teacher_code = $row[Teacher_code];
$sql5 = " SELECT * FROM committee_tb WHERE North_network='No' AND Teacher_code='$Teacher_code' AND Year_com='$Year_com' ";
$result5 = mysql_query($sql5);
$rs18 = mysql_num_rows($result5);
mysql_free_result($result5);
echo $rs18;
?>
</font></div></td>
<td width="20%" bgcolor="#FFFFFF"><div align="center"><font color="#993333" size="2" face="Tahoma">
<?php
//$Teacher_code = $row['Teacher_code'];
$sql8 = " SELECT COUNT(Else_commit ) AS sum8 FROM committee_tb WHERE Else_commit ='No' AND Teacher_code='$Teacher_code' AND Year_com='$Year_com' ";
$result8 = mysql_query($sql8);
$rs19 = mysql_num_rows($result8);
mysql_free_result($result8);
echo $rs19;
?>
</font></div></td>
</tr>
</table></td>
</tr>
<tr>
<td align="right" bgcolor="#FFFFFF"><font size="2" color="#003366" face="Tahoma">จำนวนการเป็นกรรมการวิชาการ/วิชาชีพ/วิทยานิพนธ์ </font></td>
<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td width="25%"> </td>
<td width="25%"> </td>
<td width="25%" bgcolor="#FFFFFF"><div align="center"><font color="#009966" size="2" face="Tahoma">
<?php
$SumCommit = $Srs1 + $Srs5 + $Srs8;
echo "$SumCommit";
?>
</font></div></td>
</tr>
</table></td>
<td colspan="2"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td width="20%" bgcolor="#FFFFFF"> </td>
<td width="20%" bgcolor="#FFFFFF"> </td>
<td width="20%" bgcolor="#FFFFFF"> </td>
<td width="20%" bgcolor="#FFFFFF"> </td>
<td width="20%" bgcolor="#FFFFFF"><div align="center"><font color="#009966" size="2" face="Tahoma">
<?php
$SumCommit = $rs10 + $rs11 + $rs12 + $rs13 + $rs14 ;
echo "$SumCommit";
?>
</font></div></td>
</tr>
</table></td>
</tr>
<tr>
<td align="right" bgcolor="#FFFFFF"><font size="2" color="#003366" face="Tahoma">จำนวนการไม่เป็นกรรมการวิชาการ/วิชาชีพ/วิทยานิพนธ์ </font></td>
<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td width="25%"> </td>
<td width="25%"> </td>
<td width="25%" bgcolor="#FFFFFF"><div align="center"><font color="#FF0000" size="2" face="Tahoma">
<?php
$SumUCommit = $Srs3 + $Srs6 + $Srs9;
echo "$SumUCommit";
?>
</font></div></td>
</tr>
</table></td>
<td colspan="2"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr bgcolor="#FCF4E9">
<td width="20%" bgcolor="#FFFFFF"> </td>
<td width="20%" bgcolor="#FFFFFF"> </td>
<td width="20%" bgcolor="#FFFFFF"> </td>
<td width="20%" bgcolor="#FFFFFF"> </td>
<td width="20%" bgcolor="#FFFFFF"><div align="center"><font color="#FF0000" size="2" face="Tahoma">
<?php
$SumCommit = $rs15 + $rs16 + $rs17 + $rs18 + $rs19;
echo"$SumCommit";
?>
</font></div></td>
</tr>
</table></td>
</tr>
<tr bgcolor="#CCE6FF">
<td colspan="4" align="center" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#CCE6FF">
<td colspan="4" align="center" bgcolor="#FFFFFF"><strong><font color="#003366" size="2" face="Tahoma">ทั้งหมด</font><font color="#FF0000" size="2" face="Tahoma, Geneva, Arial, Helvetica, sans-serif"> <?php echo $num; ?><font color="#003366" face="Tahoma"> เรื่อง</font></font></strong></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center"> </td>
</tr>
<tr>
<td align="center"><input type="button" name="button" id="button" value="« ย้อนกลับ" onclick="window.history.back();" /></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td><font color="#FF0000" face="Tahoma"><u>หมายเหตุ</u></font></td>
</tr>
<tr>
<td><font face="Tahoma"><font color="#993333">Y</font> = เป็น</font><font size="2" face="Tahoma"> </font></td>
</tr>
<tr>
<td><font color="#990000" face="Tahoma">N</font><font size="2" face="Tahoma"> = ไม่เป็น</font><font size="2" face="Tahoma"> </font></td>
</tr>
<tr>
<td> </td>
</tr>
</table></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);
?>
|