Hacked By AnonymousFox

Current Path : C:/AppServ/www/timetable_teacher/home/
Upload File :
Current File : C:/AppServ/www/timetable_teacher/home/hourwork.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\">";
}
$gw=$_GET["gw"];

if($gw==""){$gw="201638";}
?>
<!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; }
.style20 {color: #FFFFFF}
.style21 {color: #990000}
.style22 {color: #000033}

.style23 {
	color: #FF0000;
	font-weight: bold;
}
</style
	<style type="text/css">
<!--
.style1 {color: #FFFFFF}
.style2 {color: #FFFFFF; font-weight: bold; }
-->
</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>&nbsp;</span></div></td>
      </tr>
      <tr>
        <td bgcolor="2074CA" class="login"><div align="left"><a href="../system/logout.php"> ออกจากระบบ</a>&nbsp;</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="datahour.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>
             <tr>
              <td bgcolor="#282828"><div align="center"><span class="login"><a href="risk.php"><strong>รายงานความเสี่ยงด้านการศึกษา</strong></a></span></div></td>
            </tr>
            <? if($System_Session_User_ID=="82"||$System_Session_User_ID=="167"||$System_Session_User_ID=="27"||$System_Session_User_ID=="157"||$System_Session_User_ID=="38"||$System_Session_User_ID=="107"||$System_Session_User_ID=="53"||$System_Session_User_ID=="128"||$System_Session_User_ID=="294"||$System_Session_User_ID=="93"||$System_Session_User_ID=="9"||$System_Session_User_ID=="105"||$System_Session_User_ID=="3"||$System_Session_User_ID=="143"||$System_Session_User_ID=="203"||$System_Session_User_ID=="190"||$System_Session_User_ID=="76"||$System_Session_User_ID=="217"||$System_Session_User_ID=="68"||$System_Session_User_ID=="164"||$System_Session_User_ID=="77"||$System_Session_User_ID=="192"||$System_Session_User_ID=="72"||$System_Session_User_ID=="184"||$System_Session_User_ID=="189"||$System_Session_User_ID=="173") { ?>
 <tr>
              <td bgcolor="#282828"><div align="center"><span class="login"><a href="report.php"><strong>การส่งต่อข้อมูลภาควิชา(ลับ)</strong></a></span></div></td>
            </tr>       
            <? } ?>
			<tr>
              <td bgcolor="#282828"><div align="center"><span class="login"><a href="suggest.php"><strong>ข้อเสนอแนะ<br />
                ในความเห็นของ<br />
                อาจารย์ที่ปรึกษาชั้นคลินิก</strong></a></span></div></td>
            </tr>
          </table>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p>
          <p>&nbsp;</p></td>
        <td width="81%" bgcolor="#DDDDDD"><div align="left"><strong> &nbsp;&nbsp;&nbsp;&nbsp;ยินดีต้อนรับเข้าสู่ระบบบริหารการศึกษา</strong></div></td>
      </tr>
      <tr>
        <td bgcolor="#FFFFFF" valign="top">
<p align="center"><strong>
		<br />
		ภาระงาน อ.
<?
							$sqlteach="select * from mfu_mod_teacher where Id='$System_Session_User_ID' ";
                             $Queryteach=mysql_query($sqlteach);
                             $Rowteach = mysql_fetch_array($Queryteach);
								echo $Rowteach[name];   echo"&nbsp;&nbsp;"; echo $Rowteach[lname];
							 ?>
                    </strong></p>
                    
                    
                    <?
					$sqlmtime="select * from cm_mod_detailoverall a,cmteacher b where a.cm_mod_detailoverall_ID=b.cmteacher_DetailoverallID  and b.cmteacher_TeacherID   and b.cmteacher_TeacherID='$System_Session_User_ID'  and a.cm_mod_detailoverall_DateFrom like '%$inputyear-$inputmonth%' group by a.cm_mod_detailoverall_Eduyear asc order by a.cm_mod_detailoverall_Eduyear desc";
					$querymtime=mysql_query($sqlmtime);
					while($rowmtime=mysql_fetch_array($querymtime)){
					?>
                    <table width="80%" border="1" align="center" style="border-collapse:collapse" bordercolor="#333333" cellpadding="10">
                      <tr bgcolor="#515151">
                        <td colspan="3"><div align="center" class="style1">ปีการศึกษา
                          <?=$rowmtime[cm_mod_detailoverall_Eduyear]?>
                        </div></td>
                      </tr>
                      <tr bgcolor="#515151">
                        <td><div align="center"><span class="style1">สอน นศ. ชั้นปี</span></div></td>
                        <td><div align="center"><span class="style1">จำนวน ชม.</span></div></td>
                        <td>&nbsp;</td>
                      </tr>
                      <?
					  	$sqltime="select * from cm_mod_detailoverall a,cmteacher b where a.cm_mod_detailoverall_ID=b.cmteacher_DetailoverallID  and b.cmteacher_TeacherID   and b.cmteacher_TeacherID='$System_Session_User_ID'  and a.cm_mod_detailoverall_DateFrom like '%$inputyear-$inputmonth%' and  a.cm_mod_detailoverall_Eduyear='$rowmtime[cm_mod_detailoverall_Eduyear]' group by a.cm_mod_detailoverall_Studentyear"; 
		$querytime=mysql_query($sqltime);
		while($rowtime=mysql_fetch_array($querytime)){
		$bug=$rowtime[cm_mod_detailoverall_Eduyear]-543;
		$bug1=$rowtime[cm_mod_detailoverall_Studentyear];
		?>
                      <tr>
                        <td width="36%"><div align="center">
                          <?=$rowtime[cm_mod_detailoverall_Studentyear]?>
                        </div></td>
                        <td width="40%"><div align="center">
                          <? 
		//$sqltimesum="select sum(cm_mod_detailoverall_Alltime) from cm_mod_detailoverall a,cmteacher b where a.cm_mod_detailoverall_ID=b.cmteacher_DetailoverallID  and b.cmteacher_TeacherID   and b.cmteacher_TeacherID='$System_Session_User_ID'  and a.cm_mod_detailoverall_DateFrom like '%$inputyear-$inputmonth%'"; 
		
		 $sqltimesum="select sum(cm_mod_detailoverall_Alltime) from cm_mod_detailoverall a,cmteacher b where a.cm_mod_detailoverall_ID=b.cmteacher_DetailoverallID and b.cmteacher_TeacherID='$rowtime[cmteacher_TeacherID]' and a.cm_mod_detailoverall_Eduyear='$rowtime[cm_mod_detailoverall_Eduyear]' and a.cm_mod_detailoverall_Studentyear='$rowtime[cm_mod_detailoverall_Studentyear]' "; 
		$querytimesum=mysql_query($sqltimesum);
		$rowtimesum=mysql_fetch_array($querytimesum);
			echo $at=$rowtimesum[0];
			   ?><? $g+=$at ; ?>
                        </div></td>
                        <td width="24%"><div align="center"><a href="hourwork1.php?inputtea=<?=$System_Session_User_ID?>&inputmonth=&inputyear=<?=$bug?>&inputstyear=<?=$bug1?>" target="_blank">ดูข้อมูล</a></div></td>
                      </tr>
                      <? } ?>
                    </table>
                    <? } ?>
                    
                    
                    
                    
                    <table width="80%" border="1" align="center" style="border-collapse:collapse" cellpadding="10">
                      <tr>
                        <td width="36%" bgcolor="#515151"><div align="center" class="style2">รวมจำนวน ชม. </div></td>
                        <td width="40%" align="center"><strong><? echo $g; ?></strong></td>
                        <td width="24%" align="center">&nbsp;</td>
                      </tr>
                    </table>
                    <p align="center">&nbsp;</p>
                    <? if($inputyear!=""){?>
                    <? 
		 $sqltime="select * from cm_mod_detailoverall a,cmteacher b where a.cm_mod_detailoverall_ID=b.cmteacher_DetailoverallID  and b.cmteacher_TeacherID   and b.cmteacher_TeacherID='$System_Session_User_ID'  and a.cm_mod_detailoverall_DateFrom like '%$inputyear-$inputmonth%' group by a.cm_mod_detailoverall_DateFrom asc"; 
		$querytime=mysql_query($sqltime);
		$numtime=mysql_num_rows($querytime);
		if($numtime>0){
		 while($rowtime=mysql_fetch_array($querytime)){
		  ?>
<table width="95%" border="1" align="center" style="border-collapse:collapse">
            <tr>
              <td colspan="5" <?
			  $day=date('l', strtotime($rowtime[cm_mod_detailoverall_DateFrom])); 
			   if($day=="Monday"){echo"bgcolor=#FFFFB9";} if($day=="Tuesday"){echo"bgcolor=#FFCCFF";}if($day=="Wednesday"){echo"bgcolor=#BFFFBF";}if($day=="Thursday"){echo"bgcolor=#FFCC99";}if($day=="Friday"){echo"bgcolor=#A6EDFF";}if($day=="Thursday"){echo"bgcolor=#";}if($day=="Sunday"){echo"bgcolor=#";} ?>><div align="left">
                <? 
			  $day=date('l', strtotime($rowtime[cm_mod_detailoverall_DateFrom])); 
			  if($day=="Monday"){echo"วันจันทร์";} if($day=="Tuesday"){echo"วันอังคาร";}if($day=="Wednesday"){echo"วันพุธ";}if($day=="Thursday"){echo"วันพฤหัสบดี";}if($day=="Friday"){echo"วันศุกร์";}if($day=="Saturday"){echo"วันเสาร์";}if($day=="Sunday"){echo"วันอาทิตย์";}
			  ?>
                  <?=ShowDateLong($rowtime[cm_mod_detailoverall_DateFrom])?>
              </div></td>
            </tr>
            <tr>
              <td width="16%" bgcolor="#515151"><div align="center" class="style16 style1">เวลา</div></td>
              <td width="24%" bgcolor="#515151"><div align="center" class="style16 style1">ชื่อรายวิชา</div></td>
              <td width="22%" bgcolor="#515151"><div align="center" class="style16 style1">เรื่องที่สอน</div></td>
              <td width="16%" bgcolor="#515151"><div align="center" class="style16 style1">ประเภทการสอน</div></td>
              <td width="11%" bgcolor="#515151"><div align="center" class="style1">จำนวน ชม. </div></td>
              </tr>
            <? 
		$sqltime2="select * from cm_mod_detailoverall a,cmteacher b where a.cm_mod_detailoverall_ID=b.cmteacher_DetailoverallID  and b.cmteacher_TeacherID='$System_Session_User_ID' and a.cm_mod_detailoverall_DateFrom = '$rowtime[cm_mod_detailoverall_DateFrom]' order by a.cm_mod_detailoverall_TimeFrom asc"; 
		$querytime2=mysql_query($sqltime2);
		 while($rowtime2=mysql_fetch_array($querytime2)){
		  ?>
            <tr>
              <td><div align="center">
                <?=substr($rowtime2[cm_mod_detailoverall_TimeFrom],0,5)?>
                -
                <?=substr($rowtime2[cm_mod_detailoverall_TimeTo],0,5)?>
              </div></td>
              <td><div align="center"><font color="#000000">
                  <?=$rowtime2[cm_mod_detailoverall_Subject]?>
              </font></div></td>
              <td><div align="center">
                <?=$rowtime2[cm_mod_detailoverall_Course]?>
              </div></td>
              <td><div align="center">
			  <?
			  $sqltype="select mfu_type_Name,mfu_type_Hour from mfu_type where mfu_type_ID='$rowtime2[cm_mod_detailoverall_Type]'";
			  $querytype=mysql_query($sqltype);
			  $rowtype=mysql_fetch_array($querytype);
			  ?>
                <?=$rowtype[0]?>
              </div></td>
              <td><div align="center">
               <? echo $at=$rowtime2[cm_mod_detailoverall_Alltime]?><? $g+=$at ; ?>
              </div></td>
              </tr>
            <? } ?>
          </table>
          <? } }else {?>
          <table width="95%" border="1" align="center" style="border-collapse:collapse">
            <tr>
              <td align="center">ไม่มีข้อมูลการสอน</td>
            </tr>
          </table>
          <p>
            <? } ?>
          </p>
          <table width="95%" border="1" align="center" style="border-collapse:collapse">
            <tr>
              <td width="88%"><div align="right">รวมจำนวน ชม. </div></td>
              <td width="12%" align="center"><? echo $g; ?></td>
            </tr>
          </table>
		  <p align="right">&nbsp;</p>
                    </div>
         <? } ?>
                     
		</p>
            <p>&nbsp;</p>
            <p>&nbsp;</p>
            <p>&nbsp;</p>
            <p>&nbsp;</p>
            <p>&nbsp;</p>
            <p>&nbsp;</p>
            <p>&nbsp;</p>
            <p>&nbsp;</p>
            <p>&nbsp;</p></td>
      </tr>
      
    </table>    </td>
  </tr>
</table>
</body>
</html>

Hacked By AnonymousFox1.0, Coded By AnonymousFox