Hacked By AnonymousFox
<?
include("../lib/session.php");
include("../lib/config.php");
include("../lib/connect.php");
include("../lib/function.php");
include("../lib/register_global.php");
if($System_Session_User_ID=="")
{
echo"<meta http-equiv=\"refresh\" content=\"0;URL=../index.php\">";
}
$inputStyear=$_POST["inputStyear"];
$inputYear=$_POST["inputYear"];
?>
<!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" />
<title>ระบบประเมินรายวิชา/การสอนอาจารย์ </title>
<script type="text/javascript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<link href="../css/menu.css" rel="stylesheet" type="text/css" />
<link href="../css/font.css" rel="stylesheet" type="text/css" />
<link href="../css/piya_style.css" rel="stylesheet" type="text/css" />
<link href="../css/table.css" rel="stylesheet" type="text/css" />
<style>
.input1{
background: #006600;
font-family:Tahoma, Geneva, sans-serif;
font-size:14px;
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);
border-left:none;
border-top:none;
margin:10px 0 10px 0;
}
.input1:hover{
background: #62A062;
}
.input2{
background:#F50000;
font-family:Tahoma, Geneva, sans-serif;
font-size:14px;
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;
}
.input2:hover{
background:#FF4B1A;
}
.input3{
background: #999999;
font-family:Tahoma, Geneva, sans-serif;
font-size:14px;
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);
border-left:none;
border-top:none;
margin:10px 0 10px 0;
}
.input3:hover{
background: #D5D5D5;
}
.input31 {
background: #999999;
font-family:Tahoma, Geneva, sans-serif;
font-size:14px;
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);
border-left:none;
border-top:none;
margin:10px 0 10px 0;
}
.graph {
position: relative; /* IE is dumb */
width: 400px;
border: 1px solid #000000;
padding: 2px;
}
.graph .barred {
display: block;
position: relative;
background: #FFA29B;
text-align: center;
color: #333;
height: 2em;
line-height: 2em;
}
.graph .bargreen {
display: block;
position: relative;
background: #89B889;
text-align: center;
color: #333;
height: 2em;
line-height: 2em;
}
.graph .bar span { position: absolute; left: 1em; }
</style>
</head>
<body onload="MM_preloadImages('../images/menu/menu_03.png','../images/menu/menu_01_over.png','../images/menu/menu_05_over.png')">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="49%" height="100" align="center" bgcolor="#0866C6" ><img src="logo.png" width="567" height="102" /></td>
<td width="51%" align="center" bgcolor="#0866C6" ><table width="60%" border="0" align="right" cellpadding="5" cellspacing="5">
<tr>
<td width="31%" rowspan="3"><div align="center">
<?php
$sqlpic="select picture from mfu_mod_teacher where Id='$System_Session_User_ID'";
$querypic=mysql_query($sqlpic);
$rowpic=mysql_fetch_array($querypic);
if( file_exists("../../mfu/upload/member/$rowpic[0]") )
{ ?>
<img src="../../mfu/upload/member/<?=$rowpic[0]?>" alt="Photo" width="87" height="109" border="3" style="border-color:#3984D0" />
<? }
else
{ ?>
<img src="pic/nopic.jpg" alt="Photo" height="130" border="3" style="border-color:#3984D0" />
<? } ?>
</div></td>
<td width="69%" class="login"><div align="left">
<? if($System_Session_Sex==1){echo"นพ.";}if($System_Session_Sex==2){echo"พญ.";} if($System_Session_Sex==""&&$System_Session_Prefix=="นาย"){echo"นพ.";}if($System_Session_Sex==""&&$System_Session_Prefix=="นาง"){echo"พญ.";}if($System_Session_Sex==""&&$System_Session_Prefix=="นางสาว"){echo"พญ.";}?><?=$System_Session_FullName?>
</div></td>
</tr>
<tr>
<td bgcolor="2074CA"><div align="left"><span class="login"><a href="changepass.php">เปลี่ยนรหัสผ่าน</a> </span></div></td>
</tr>
<tr>
<td bgcolor="2074CA" class="login"><div align="left"><a href="../system/logout.php"> ออกจากระบบ</a> </div></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" align="center" valign="top"><table width="100%" border="0">
<tr>
<td width="19%" rowspan="2" valign="top" bgcolor="#282828"><table width="100%" border="1" style="border-collapse:collapse" bordercolor="#232323" cellpadding="7" cellspacing="7">
<tr>
<td bgcolor="#232323"><div align="center" class="login">เมนู</div></td>
</tr>
<tr>
<td bgcolor="#282828"><div align="center"><strong><span class="login"><a href="home.php">ประกาศ</a></span></strong></div></td>
</tr>
<tr>
<td bgcolor="#282828"><div align="center"><strong><span class="login"><a href="datastudent.php">ข้อมูลนักศึกษา</a></span></strong></div></td>
</tr>
<tr>
<td bgcolor="#282828"><div align="center"><strong><span class="login"><a href="table.php">ตารางสอน</a></span></strong></div></td>
</tr>
<tr>
<td bgcolor="#282828"><div align="center"><span class="login"><a href="money.php"><strong>ค่าตอบแทน</strong></a></span></div></td>
</tr>
<tr>
<td bgcolor="#282828"><div align="center"><span class="login"><a href="train.php"><strong>ข้อมูลประวัติการอบรม</strong></a></span></div></td>
</tr>
<tr>
<td bgcolor="#282828"><div align="center"><span class="login"><a href="stat.php"><strong>สถิติการเข้าใช้ระบบ</strong></a></span></div></td>
</tr>
<tr>
<td bgcolor="#282828"><div align="center"><span class="login"><a href="student_report.php"><strong>Student Report</strong></a></span></div></td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p></td>
<td width="81%" bgcolor="#DDDDDD"><div align="left"><strong> ยินดีต้อนรับเข้าสู่ระบบบริการการศึกษา</strong></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF" valign="top"><br />
<table width="95%" border="0" align="center" cellpadding="3" cellspacing="0">
<tbody>
<tr>
<td width="10"></td>
<td width="100%"><div align="left"><font face="CordiaUPC" color="#000080" size="6"><b>ระบบติดตามความก้าวหน้าการเรียนของนักศึกษาแพทย์ </b></font></div></td>
</tr>
</tbody>
</table>
<br />
<table width="95%" border="0" align="center">
<tr>
<td><div align="right"><a href="stat_report.php" target="_blank"><strong><? if($System_Session_User_ID!="190"&&$System_Session_User_ID!="34") { ?>ข้อมูลรายงานความก้าวหน้านักศึกษาแพทย์ (สถิติการรายงานของท่าน)<? } else{ ?>ดูรายงานความก้าวหน้านักศึกษาแพทย์ทั้งหมด<? } ?></strong></a></div></td>
</tr>
</table>
<br />
<?
$sqlte1="select * from consult where ID_Teacher='$System_Session_User_ID' or ID_Teacher2='$System_Session_User_ID' group by ID_Student";
$queryte1=mysql_query($sqlte1);
$numte1=mysql_num_rows($queryte1);
if($numte1>0){
?>
<table width="95%" border="0" align="center" cellpadding="3" cellspacing="0">
<tbody>
<tr>
<td width="10"></td>
<td width="100%"><div align="left"><font face="CordiaUPC" color="#000080" size="6"><b>ข้อมูลนักศึกษาที่ อ.เป็นที่ปรึกษา </b></font></div></td>
</tr>
</tbody>
</table>
<table width="95%" border="0" align="center">
<tr align="center" bordercolor="#E8E7E1" class="menu_table_header">
<td width="11%" bgcolor="#F7F6F0" class="table_title2">รูป</td>
<td width="16%" bgcolor="#F7F6F0" class="table_title2">ชื่อ</td>
<td width="18%" bgcolor="#F7F6F0" class="table_title2">นามสกุล</td>
<td width="22%" height="24" bgcolor="#F7F6F0" class="table_title2">จำนวนรายงานความก้าวหน้า</td>
<td width="17%" bgcolor="#F7F6F0" class="table_title2">จำนวนการกรอกข้อมูล<br />
ของอาจารย์ที่ปรึกษา</td>
<td width="16%" bgcolor="#F7F6F0" class="table_title2">กรอกข้อมูล<br />
ของอาจารย์ที่ปรึกษา</td>
</tr>
<?
$sqlte="select * from consult where ID_Teacher='$System_Session_User_ID' or ID_Teacher2='$System_Session_User_ID' group by ID_Student";
$queryte=mysql_query($sqlte);
while($rowte=mysql_fetch_array($queryte)){
?>
<?
$sqlst="select * from evaluateicm_system_student where evaluateicm_system_student_ID='$rowte[ID_Student]'";
$queryst=mysql_query($sqlst);
$Row=mysql_fetch_array($queryst);
if($myClassRow=="table_row1") { $myClassRow="table_row2"; } else { $myClassRow="table_row1"; }
?>
<tr class="<?=$myClassRow?>">
<td height="30" align="center"><img src="../../mfu/webengine/images/student/<?=$Row[evaluateicm_system_student_UserName]?>.jpg" width="80" height="80"/></td>
<td height="30"><div align="center"><strong> <span class="menu_one">
<?=$Row[evaluateicm_system_student_FName]?> (<?=$Row[Nickname]?>)
</span> </strong></div></td>
<td height="30"><div align="center"><strong> <span class="menu_one"> </span>
<?=$Row[evaluateicm_system_student_LName]?>
<span class="menu_one"><a href="../system/mod_dataoverall/indexadmin.php?listid=<?=$Row[evaluateicm_system_student_ID]?>&subject=<?=$Row[cm_listsubject_Name]?>&studentyear=<?=$Row[evaluateicm_system_student_UserName]?>"></a></span> </strong></div></td>
<td height="30" align="center"><div align="center">
<?
$sqlnum1="select * from report_st where Idstudent='$Row[evaluateicm_system_student_ID]'";
$querynum1=mysql_query($sqlnum1);
$rownum1=mysql_fetch_array($querynum1);
$num1=mysql_num_rows($querynum1);
echo $num1;
?></div></td>
<td height="30" align="center"><div align="center"> <?
$sqlnum1="select * from report_st where Idstudent='$Row[evaluateicm_system_student_ID]' and Consult_text!=''";
$querynum1=mysql_query($sqlnum1);
$num1=mysql_num_rows($querynum1);
echo $num1;
?></div></td>
<td height="30" align="center"><a href="add_consult.php?Idcs=<?=$Row[evaluateicm_system_student_ID]?>">กรอกข้อมูล</a></td>
</tr>
<? } ?>
</table>
<? } ?>
<br />
<form action="student_report.php" method="post">
<table width="95%" border="1" align="center" cellpadding="10" cellspacing="10" style="border-collapse:collapse">
<tbody>
<tr bgcolor="#A0A0A0">
<td bgcolor="#E8E8E8"><div align="center">กรุณาเลือกชั้นปี และปีการศึกษาและกดแสดงข้อมูลเพื่อรายงานความก้าวหน้านักศึกษาแพทย์</div></td>
</tr>
<tr bgcolor="#A0A0A0">
<td bgcolor="#E8E8E8"><div align="center">
ชั้นปี
<select name="inputStyear" id="inputStyear">
<option value="" selected="selected">---เลือกชั้นปี---</option>
<option value="4" <? if($inputStyear=="4"){?> selected="selected"<? } ?>>4</option>
<option value="5" <? if($inputStyear=="5"){?> selected="selected"<? } ?>>5</option>
<option value="6" <? if($inputStyear=="6"){?> selected="selected"<? } ?>>6</option>
</select>
ปีการศึกษา
<select name="inputYear" id="inputYear">
<option value="" selected="selected">---เลือกปีการศึกษา---</option>
<option value="2559" <? if($inputYear=="2559"){?> selected="selected"<? } ?>>2559</option>
<option value="2560" <? if($inputYear=="2560"){?> selected="selected"<? } ?>>2560</option>
</select>
<input type="submit" name="button" id="button" value="แสดงข้อมูล" />
</div></td>
</tr>
</tbody>
</table>
</form>
<table width="95%" border="1" align="center" cellpadding="10" cellspacing="10" style="border-collapse:collapse">
<tbody>
<?
$sql="select * from evaluateicm_system_student where evaluateicm_system_student_Eduyear='$inputYear' and year='$inputStyear'";
$query=mysql_query($sql);
while($row=mysql_fetch_array($query)){
?>
<tr bgcolor="#A0A0A0">
<td width="105" bgcolor="#FFFFFF"><div align="center"><img src="../../mfu/webengine/images/student/<?=$row[evaluateicm_system_student_UserName]?>.jpg" width="80" height="80"/></div></td>
<td width="211" bgcolor="#FFFFFF"><div align="left">
<?=$row[2]?><?=$row[evaluateicm_system_student_FName]?>
<?=$row[evaluateicm_system_student_LName]?>
(
<?=$row[Nickname]?>
)</div></td>
<td width="332" bgcolor="#FFFFFF"><div align="left"><span class="report"><a href="student_report2.php?Id= <?=$row[evaluateicm_system_student_ID]?>&Styear=<?=$inputStyear?>&Eduyear=<?=$inputYear?>">รายงานความก้าวหน้า</a></span></div></td>
</tr>
<? } ?>
</tbody>
</table>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p></td>
</tr>
</table> </td>
</tr>
</table>
</body>
</html>
Hacked By AnonymousFox1.0, Coded By AnonymousFox