Hacked By AnonymousFox
<?
include("../lib/session.php");
include("../lib/config.php");
include("../lib/connect.php");
include("../lib/function.php");
include("../lib/register_global.php");
$inputtea=$_GET['inputtea'];
$inputmonth=$_GET['inputmonth'];
$inputyear=$_GET['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>Curriculum Map</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];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</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 type="text/css">
<!--
.style2 {
color: #30707C;
font-weight: bold;
font-size: 14px;
}
-->
</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" bgcolor="#FFFFFF"><img src="../menuin.jpg" width="532" 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 width="30%" 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" />Hi !
<?=$System_Session_UserName?>|<img src="../images/icon/door.png" width="16" height="15" /><a href="../system/logout.php">Logout</a></td>
</tr>
</table> </td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="top"><table width="100" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="747" valign="top"><table width="747" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="24" rowspan="2" valign="top" background="../images/l/left_menu_02.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../images/l/left_menu_01_l.jpg" width="24" height="27" /></td>
</tr>
<tr>
<td><img src="../images/l/left_menu_02.jpg" width="24" height="1" /></td>
</tr>
</table></td>
<td width="24" colspan="2" rowspan="2" valign="top" background="../images/l/left_menu_02_bg.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="../images/l/left_menu_01_r.jpg" width="197" height="27" /></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="5" cellpadding="0">
<tr>
<td align="left" class="menu_one"><span class="style2"><a href="../system/user_management.php">ระบบบริหารสิทธิ์การใช้งาน</a></span></td>
</tr>
<tr>
<td align="left" class="menu_one"><span class="style2"><a href="student.php">ระบบงานทะเบียนนักศึกษา</a></span></td>
</tr>
<tr>
<td align="left" class="menu_one"><span class="style2"><a href="home.php">ระบบงานทะเบียนหลักสูตรและรายวิชา</a></span></td>
</tr>
<tr>
<td align="left" class="menu_one"><span class="style2"><a href="schedule.php">ระบบตารางเรียน/ตารางสอน</a></span></td>
</tr>
<tr>
<td align="left" class="menu_one"><span class="style2"><a href="point.php">ระบบทะเบียนคะแนน</a></span></td>
</tr>
<tr>
<td align="left" class="menu_one"><span class="style2"><a href="pointstudent1">ระบบทะเบียนประมวลผลและระบบเลื่อนชั้น</a></span></td>
</tr>
<tr>
<td align="left" class="menu_one"><span class="style2"><a href="point.php">ระบบข้อมูลสถานที่เรียน</a></span> </td>
</tr>
<tr>
<td align="left" class="menu_one"><span class="style2"><a href="point.php">ระบบข้อมูลรูปแบบการสอน</a></span> </td>
</tr>
<tr>
<td align="left" class="menu_one"><span class="style2"><a href="money.php">ระบบค่าตอบแทน</a></span> </td>
</tr>
<tr>
<td align="left"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image16','','file:///C|/AppServ/www/images/menu/menu_05_over.png',1)"></a></td>
</tr>
</table></td>
</tr>
</table></td>
<td background="../images/content_border/content_border_02.jpg"><img src="../images/content_border/content_border_01.jpg" width="747" height="11" /></td>
<td background="../images/content_border/content_border_right.jpg"></td>
</tr>
<tr>
<td valign="top" background="../images/content_border/content_border_02.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15" height="300"> </td>
<td align="left" valign="top"><p>
<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>
<p align="center"> </p>
<form action="money.php" method="get">
<table width="80%" border="1" align="center" style="border-collapse:collapse" bordercolor="#666666">
<tr>
<td><div align="center"><br />
อาจารย์
<select name="inputtea">
<option value="" selected="selected">---------กรุณาเลือกอาจารย์------------</option>
<?
$sqltea="select * from mfu_mod_teacher order by name asc";
$querytea=mysql_query($sqltea);
while($rowtea=mysql_fetch_array($querytea)){
?>
<option value="<?=$rowtea[Id]?>" <? if($inputtea=="$rowtea[Id]"){?> selected="selected"<? } ?>><?=$rowtea[name]?> <?=$rowtea[lname]?></option>
<? } ?>
</select>
<br />
<br />
เดือน
<select name="inputmonth">
<option value="" selected="selected">---------กรุณาเลือกเดือน------------</option>
<option value="01" <? if($inputmonth=="01"){?> selected="selected"<? } ?>>มกราคม</option>
<option value="02" <? if($inputmonth=="02"){?> selected="selected"<? } ?>>กุมภาพันธ์</option>
<option value="03" <? if($inputmonth=="03"){?> selected="selected"<? } ?>>มีนาคม</option>
<option value="04" <? if($inputmonth=="04"){?> selected="selected"<? } ?>>เมษายน</option>
<option value="05" <? if($inputmonth=="05"){?> selected="selected"<? } ?>>พฤษภาคม</option>
<option value="06" <? if($inputmonth=="06"){?> selected="selected"<? } ?>>มิถุนายน</option>
<option value="07" <? if($inputmonth=="07"){?> selected="selected"<? } ?>>กรกฏาคม</option>
<option value="08" <? if($inputmonth=="08"){?> selected="selected"<? } ?>>สิงหาคม</option>
<option value="09" <? if($inputmonth=="09"){?> selected="selected"<? } ?>>กันยายน</option>
<option value="10" <? if($inputmonth=="10"){?> selected="selected"<? } ?>>ตุลาคม</option>
<option value="11" <? if($inputmonth=="11"){?> selected="selected"<? } ?>>พฤศจิกายน</option>
<option value="12" <? if($inputmonth=="12"){?> selected="selected"<? } ?>>ธันวาคม</option>
</select>
ปีการศึกษา
<select name="inputyear">
<option value="" selected="selected">---------กรุณาเลือกปี------------</option>
<option value="2016" <? if($inputyear=="2016"){?> selected="selected"<? } ?>>2559</option>
<option value="2017" <? if($inputyear=="2017"){?> selected="selected"<? } ?>>2560</option>
<option value="2018" <? if($inputyear=="2018"){?> selected="selected"<? } ?>>2561</option>
</select>
<input type="submit" name="Submit" value="Submit" />
<br />
<br />
</div></td>
</tr>
</table>
</form>
<p align="center"> </p>
<? if($inputmonth!="") {?>
<?
$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='$inputtea' 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="7" <?
$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="15%" bgcolor="#515151"><div align="center" class="style16">เวลา</div></td>
<td width="23%" bgcolor="#515151"><div align="center" class="style16">ชื่อรายวิชา</div></td>
<td width="21%" bgcolor="#515151"><div align="center" class="style16">เรื่องที่สอน</div></td>
<td width="18%" bgcolor="#515151"><div align="center" class="style16">ประเภทการสอน</div></td>
<td width="11%" bgcolor="#515151"><div align="center" class="style16">อ.ผู้สอน</div></td>
<td width="6%" bgcolor="#515151"><div align="center">จำนวน ชม. </div></td>
<td width="6%" bgcolor="#515151">จำนวนเงิน </td>
</tr>
<?
$sqltime2="select * from cm_mod_detailoverall a,cmteacher b where a.cm_mod_detailoverall_ID=b.cmteacher_DetailoverallID and b.cmteacher_TeacherID='$inputtea' 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">
<?=$rowtime2[cm_mod_detailoverall_TimeFrom]?>
-
<?=$rowtime2[cm_mod_detailoverall_TimeTo]?>
</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">
<?=$rowtime2[cm_mod_detailoverall_Type]?>
</div></td>
<td><div align="center">
<?
$sqlteach="select * from cmteacher a,mfu_mod_teacher b where a.cmteacher_TeacherID=b.Id and a.cmteacher_DetailoverallID='$rowtime2[cm_mod_detailoverall_ID]' order by a.cmteacher_ID asc";
$Queryteach=mysql_query($sqlteach);
while ($Rowteach = mysql_fetch_array($Queryteach)) {
echo $Rowteach[name]; echo" "; echo $Rowteach[lname];
echo "</br>";
}
?>
</div></td>
<td><div align="center">
<? echo $at=$rowtime2[cm_mod_detailoverall_Alltime]?>
</div></td>
<td><div align="center"> <?
if($rowtime2[cm_mod_detailoverall_Type]=="การบรรยาย (lecture)"){$pay=500;}
if($rowtime2[cm_mod_detailoverall_Type]=="การฝึกปฏิบัติทางห้องปฏิบัติการ (laboratory study)"){$pay=1000;}
echo $am=$rowtime2[cm_mod_detailoverall_Alltime]*$pay?><? $g+=$at ; ?> <? $h+=$am ; ?></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%"><? echo $g; ?></td>
</tr>
<tr>
<td><div align="right">รวมเป็นเงิน(บาท)</div></td>
<td><? echo $h; ?></td>
</tr>
</table>
<? } ?>
<p align="center">
<? if($numtime>0){ ?>
<a href="receipt.php?inputtea=<?=$inputtea?>&inputmonth=<?=$inputmonth?>&inputyear=<?=$inputyear?>" target="_blank">ปริ้นท์ใบเสร็จรับเงิน</a>
<? } ?>
</td>
<td width="15"> </td>
</tr>
</table></td>
<td background="../images/content_border/content_border_right.jpg"> </td>
</tr>
<tr>
<td><img src="../images/l/left_menu_03_l.jpg" width="24" height="29" /></td>
<td colspan="2"><img src="../images/l/left_menu_03_r.jpg" width="197" height="29" /></td>
<td><img src="../images/content_border/content_border_03.jpg" width="747" height="29" /></td>
<td><img src="../images/content_border/content_border_right2.jpg" width="17" height="29" /></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
Hacked By AnonymousFox1.0, Coded By AnonymousFox