Hacked By AnonymousFox

Current Path : C:/AppServ/www/timetable_student/system/mod_other/
Upload File :
Current File : C:/AppServ/www/timetable_student/system/mod_other/home.php

<? 
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\">";
}
?>
<!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; }
.style23 {color: #A97E0B}
</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 height="100" align="center" background="../images/head/sky.jpg" ><img src="../images/head/Sirirajlogo.gif" width="126" height="120" /></td>
  </tr>
  <tr>
    <td height="22" background="../images/head/bar.jpg"><table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td>
		<table border="0" align="right" cellpadding="0" cellspacing="0" class="login">
            <tr>
              <td align="right"><img src="../images/icon/people_1.png" width="13" height="14" />ยินดีต้อนรับ ! 
                
                คุณหมอ<?=$System_Session_FullName?> เข้าสู่ระบบ  |  <img src="../images/icon/door.png" width="16" height="15" /><a href="../system/logout.php"> ออกจากระบบ</a></td>
              </tr>
            </table>        </td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td align="center" valign="top"><br />
      <table width="90%" border="0">
      
      <tr>
        <td bgcolor="#FFFFFF"><p>&nbsp;</p>
          <div align="center">
          <h3><span class="style18">ระบบประเมิน ระหว่างวันที่ <span class="style23">25</span> มีนาคม ถึงวันที่ <span class="style23">26</span> เมษายน <span class="style23">2556<br /></span></h3>
            <br />
            <strong>สถานะการประเมิน</strong>&nbsp;&nbsp;&nbsp;&nbsp; <img src="reddot.jpg" width="20" height="20" /> ยังไม่ได้ทำแบบประเมิน&nbsp;&nbsp;&nbsp;&nbsp; <img src="yellowdot.jpg" width="20" height="20" /> ทำแบบประเมินไม่ครบ&nbsp;&nbsp;&nbsp;&nbsp; <img src="greendot.jpg" width="20" height="20" /> ทำแบบประเมินครบเรียบร้อย&nbsp;&nbsp;&nbsp;&nbsp; <img src="graydot.jpg" width="20" height="20" /> ยังไม่ถึงวันประเมิน
            <br />
            <br />
            <table width="95%" border="1" style="border-collapse:collapse" bordercolor="#999999" cellpadding="15">
            <tr>
              <?
$sql="select * from evaluate_system_course group by evaluate_system_course_Date order by evaluate_system_course_Date asc";
$objQuery=mysql_query($sql);
$i=0;
while($objResult = mysql_fetch_array($objQuery))
{
$i++;
?>
              <td><?
$intRows++;
?>
                  <div align="center">
                    <p align="center">&nbsp;</p>
            <?        
            $sql1="select * from evaluate_system_course where evaluate_system_course_Date='$objResult[evaluate_system_course_Date]' and evaluate_system_course_Statusteacher='0'";
			$objQuery1=mysql_query($sql1);
			$num=mysql_num_rows($objQuery1);
			
			$sql4="select * from evaluate_system_course where evaluate_system_course_Date='$objResult[evaluate_system_course_Date]' and evaluate_system_course_Group LIKE '%$System_Session_Level%' group by evaluate_system_course_Time";
			$objQuery4=mysql_query($sql4);
			$num4=mysql_num_rows($objQuery4);
			
			$sql2="select * from evaluate_subject a,evaluate_system_course b where a.evaluate_subject_CourseID=b.evaluate_system_course_ID and a.evaluate_subject_StudentID ='$System_Session_User_ID' and b.evaluate_system_course_Date='$objResult[evaluate_system_course_Date]'";
			$objQuery2=mysql_query($sql2);
			$num2=mysql_num_rows($objQuery2);
			
			$sql3="select * from evaluate_teacher a,evaluate_system_course b where a.evaluate_teacher_CourseID=b.evaluate_system_course_ID and a.evaluate_teacher_StudentID ='$System_Session_User_ID' and b.evaluate_system_course_Date='$objResult[evaluate_system_course_Date]'";
			$objQuery3=mysql_query($sql3);
			$num3=mysql_num_rows($objQuery3);
			
			//echo $num;
			//echo"<br>";
			//echo $num4;
			
			$totalmain=$num+$num4;
			$totaldone=$num2+$num3;
             ?>
             <? 
             $today_date=date("Ymd"); 
			  	$a1f1=substr($objResult[evaluate_system_course_Date],0,4);
				$a1f2=substr($objResult[evaluate_system_course_Date],5,2);
				$a1f3=substr($objResult[evaluate_system_course_Date],8,2);
				$totala1=$a1f1.$a1f2.$a1f3;
			   if($totala1<=$today_date){ 
               ?>    
             		<? if($totalmain>$totaldone&&$totaldone!=0){ ?>  
                    <img src="yellowdot.jpg" width="20" height="20" alt="ทำแบบประเมินยังไม่ครบ"/>
                    <p align="center">
                      <font color="#B2C40C"><b><?=ShowDateLongTh($objResult[evaluate_system_course_Date]);?></b></font>
                    </p>
                    <form method="post" action="selectdate.php">
                    <input type="hidden" name="dateeva" value="<?=$objResult[evaluate_system_course_Date]?>" />
                     <input type="submit" name="button6" id="button6" value="ทำแบบประเมิน" />
                     </form>
                    <? } ?>
                    <? if($totalmain==$totaldone){ ?>  
                    <img src="greendot.jpg" width="20" height="20"  alt="ทำแบบประเมินครบเรียบร้อย"/>
                    <p align="center">
                      <font color="#6AA46A"><b><?=ShowDateLongTh($objResult[evaluate_system_course_Date]);?></b></font>
                    </p>
                    <? } ?>
                     <? if($totalmain>$totaldone&&$totaldone==0){ ?>  
                    <img src="reddot.jpg" width="20" height="20"  alt="ยังไม่ได้ทำแบบประเมิน" />
                    <p align="center">
                      <font color="#dd2828"><b><?=ShowDateLongTh($objResult[evaluate_system_course_Date]);?></b></font>
                    </p>
                     <form method="post" action="selectdate.php">
                     <input type="hidden" name="dateeva" value="<?=$objResult[evaluate_system_course_Date]?>" />
                     <input type="submit" name="button6" id="button6" value="ทำแบบประเมิน" />
                     </form>
                    <? } ?>
                    <? } else { ?>
                    <img src="graydot.jpg" width="20" height="20"  alt="ยังไม่ถึงวันประเมิน" />
                    <p align="center">
                      <font color="#707169"><b><?=ShowDateLongTh($objResult[evaluate_system_course_Date]);?></b></font>
                    </p>
                    <? } ?>
                    <p align="center">&nbsp;</p>
                  </div></td>
              <?
if(($intRows)%5==0)// จำนวนคอลั่ม
{
?>
            </tr>
            <?
}
} 
?>
          </table>
          <br />
          </div></td>
      </tr>
    </table>
    <p>&nbsp;</p></td>
  </tr>
</table>
</body>
</html>

Hacked By AnonymousFox1.0, Coded By AnonymousFox