Hacked By AnonymousFox
<?
include("../../lib/session.php");
include("../../lib/config.php");
include("../../lib/connect.php");
include("../../lib/function.php");
include("../../lib/register_global.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"><!-- InstanceBegin template="/Templates/main_pm.dwt" codeOutsideHTMLIsLocked="false" -->
<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" 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 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="../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"><span class="style2">ระบบข้อมูลรายวิชา</span></td>
</tr>
<tr>
<td align="left" class="menu_one">
<ul class="menu_one">
<li><a href="../../home/home.php">ข้อมูลรายวิชา</a></li>
</ul> </td>
</tr>
<tr>
<td align="left"><span class="style2">ระบบผู้ใช้งาน</span></td>
</tr>
<tr>
<td align="left"><ul class="menu_one">
<? if($System_Session_Level=="Administrator") { ?>
<li><a href="../user_management.php">ข้อมูลผู้ใช้งานในระบบ</a></li>
<? } ?>
<? if($System_Session_Level=="Staff") { ?>
<li><a href="../user_managementperson.php">ข้อมูลผู้ใช้งานในระบบ</a></li>
<? } ?>
<? if($System_Session_Level=="Admin") { ?>
<li><a href="../user_managementperson.php">ข้อมูลผู้ใช้งานในระบบ</a></li>
<? } ?>
</ul></td>
</tr>
<? if($System_Session_Level=="Administrator") { ?>
<tr>
<td align="left"><span class="style2">ระบบข้อมูลที่เกี่ยวข้อง</span></td>
</tr>
<tr>
<td align="left"><ul class="menu_one">
<li><a href="standard.php">เพิ่มข้อมูลมาตรฐานการเรียนรู้</a></li>
<li><a href="council.php">เพิ่มข้อมูลแพทยสภา</a></li>
<li><a href="report.php">ระบบรายงานผล</a></li>
</ul></td>
</tr> <? } ?>
<tr>
<td align="left"> </td>
</tr>
<tr>
<td align="left"> </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"><!-- InstanceBeginEditable name="content" -->
<h3><ul class="menu_two"><a href="report.php">ระบบรายงานผลแต่ละรายวิชา</a> | <a href="reportall.php">ระบบรายงานผลรวมทุกรายวิชา</a></ul><br />
</h3>
<?
## Load Module Configuration Variable ############################################
## Default Value ############################################
$SystemModule_defaultPageSize = 10;
$SystemModule_defaultPageShow = 1;
$SystemModule_MaxPage = 20;
$SystemModule_ReduceRange = 10; // +,- from current page show
$SystemModule_ASCDESC = "DESC";
$SystemModule_OrderBy = $myModule_Table."_ID";
#########################################################
?>
<?
# Check to set default value #########################
if($PageSize=="") { $PageSize = $SystemModule_defaultPageSize; }
if($PageShow=="") { $PageShow = $SystemModule_defaultPageShow; }
if($ASCDESC=="") { $ASCDESC = $SystemModule_ASCDESC; }
if($OrderBy=="") { $OrderBy = $SystemModule_OrderBy; }
if($action=="switchorder") {
if($ASCDESC=="ASC") { $ASCDESC = "DESC"; } else { $ASCDESC="ASC"; }
}
if($PageSearch!="") { $PageSearch=trim($PageSearch); }
if($GroupID=="") { $GroupID=0; }
# Count total record size #########################
$sql = "SELECT * FROM cm_listsubject";
$Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("<br><br><b><font color=#FF0000>ไม่สามารถใช้งานระบบได้<br>หากคุณเข้าใช้งานเป็นครั้งแรก<br><a href=\"#\" onClick=\"Popup('popupCreateDatabaseWindow','createdatabase.php',220,180,1);\">กรุณาคลิ๊กที่นี่</a><br>เพื่อทำการสร้างฐานข้อมูลใหม่</font></b>\n");
if($PageSearch=="") {
$sql = "SELECT * FROM cm_listsubject";
} else {
$sql = $sql." WHERE (cm_listsubject_Name LIKE '%$PageSearch%') ";
}
$Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("<br><br><b><font color=#FF0000>ไม่สามารถใช้งานระบบได้<br>หากคุณเข้าใช้งานเป็นครั้งแรก<br><a href=\"#\" onClick=\"Popup('popupCreateDatabaseWindow','createdatabase.php',220,180,1);\">กรุณาคลิ๊กที่นี่</a><br>เพื่อทำการสร้างฐานข้อมูลใหม่</font></b>\n");
$TotalRecordCount=MYSQL_NUMROWS($Query);
# Find max page size #########################
if($TotalRecordCount>$PageSize) {
$NoOfPage= ceil($TotalRecordCount/$PageSize);
} else {
$NoOfPage=1;
}
# Recover page show into range #########################
if($PageShow>$NoOfPage) { $PageShow=$NoOfPage; }
# Select only paging range #########################
$RecordStart = ($PageShow-1)*$PageSize;
$sql.=" ORDER BY cm_listsubject_Studentyear ASC LIMIT $RecordStart , $PageSize";
$Query=MYSQL_DB_QUERY($System_DataBase_Name,$sql) OR DIE("Error: เกิดความผิดพลาด <br>$sql<br>\n");
$RecordCount=MYSQL_NUMROWS($Query);
?>
<table width="95%" border="0" align="center" cellpadding="2" cellspacing="0" >
<form action="" method="post" name="mySearchForm1" id="mySearchForm1" onsubmit="return false;">
<input name="SystemModuleKey" type="hidden" id="SystemModuleKey" value="<?=$SystemModuleKey?>" />
<input name="SystemMenuID2" type="hidden" id="SystemMenuID2" value="<?=$SystemMenuID?>" />
<tr>
<td>
<div align="right">
<input name="toolbarPageSearch1" type="text" style="height:15px"class="input_left" id="toolbarPageSearch1" value="<?=$PageSearch?>" size="20" maxlength="50" />
<input name="btPageSearch" type="button" class="button_60" id="btPageSearch" value="ค้นหาข้อมูล" onclick="
document.myForm.PageSearch.value=document.mySearchForm1.toolbarPageSearch1.value;
document.myForm.submit();
" />
</div></td></tr>
</form>
</table>
<br />
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" class="table_border">
<tr>
<td bgcolor="#FFFFFF"> <table style="border-collapse: collapse" border="1" width="98%" align="center" cellpadding="0" cellspacing="1" class="table_border" bordercolor="#E8E7E1">
<form action="?" method="post" name="myForm" id="myForm">
<input name="GroupID" type="hidden" id="GroupID" value="<?=$GroupID?>">
<input name="SystemModuleKey" type="hidden" id="SystemModuleKey" value="<?=$SystemModuleKey?>">
<input name="SystemMenuID" type="hidden" id="SystemMenuID" value="<?=$SystemMenuID?>">
<input name="action" type="hidden" id="action">
<input name="PageSize" type="hidden" id="PageSize" value="<?=$PageSize?>">
<input name="PageShow" type="hidden" id="PageShow" value="<?=$PageShow?>">
<input name="ASCDESC" type="hidden" id="ASCDESC" value="<?=$ASCDESC?>">
<input name="OrderBy" type="hidden" id="OrderBy" value="<?=$OrderBy?>">
<input name="PageSearch" type="hidden" id="PageSearch" value="<?=$PageSearch?>">
<input name="SelectStatus" type="hidden" id="SelectStatus">
<tr align="center" class="menu_table_header">
<td height="24" colspan="6" bgcolor="#F7F6F0" class="table_title1"><div align="left">ข้อมูลรายวิชา</div></td>
</tr>
<tr align="center" class="menu_table_header">
<td width="50" height="24" align="center" bgcolor="#F7F6F0" class="table_title2">ลำดับ.</td>
<? if($DisplayStyle!="Link"){?>
<? }?>
<td width="137" height="24" bgcolor="#F7F6F0" class="table_title2">รายวิชา</td>
<td width="104" bgcolor="#F7F6F0" class="table_title2">นักศึกษาที่เรียน</td>
<td width="80" bgcolor="#F7F6F0" class="table_title2">ข้อมูลที่เพิ่ม</td>
<td width="128" height="24" bgcolor="#F7F6F0" class="table_title2">รายงานผล มคอ.</td>
<td width="145" height="24" bgcolor="#F7F6F0" class="table_title2">รายงานผลแพทยสภา</td>
</tr>
<?
$index=1;
if($RecordCount>0) {
while($index<$RecordCount+1) {
if($myClassRow=="table_row1") { $myClassRow="table_row2"; } else { $myClassRow="table_row1"; }
$Row=MYSQL_FETCH_ARRAY($Query);
?>
<tr class="<?=$myClassRow?>">
<td width="50" height="30" align="center">
<? if($ASCDESC=="DESC") { echo $RecordStart+$index; } else { echo ($TotalRecordCount-($RecordStart+$index)+1); } ?></td>
<td height="30">
<div align="center"><strong>
<span class="menu_one">
<a href="../mod_dataoverall/indexadmin.php?listid=<?=$Row[cm_listsubject_ID]?>&subject=<?=$Row[cm_listsubject_Name]?>&studentyear=<?=$Row[cm_listsubject_Studentyear]?>"><?=$Row[cm_listsubject_Name]?></a></span>
</strong></div></td>
<td height="30"><div align="center"><strong>
<?=$Row[cm_listsubject_Studentyear]?>
</strong></div></td>
<td height="30" align="center">
<font color="#990000"><b>
<? $sqlamount="select * from cm_mod_detailoverall where cm_mod_detailoverall_ListsubjectID='$Row[cm_listsubject_ID]'";
$queryamount=mysql_query($sqlamount);
echo $numamount=mysql_num_rows($queryamount);
?></b></font></td>
<td width="128" height="30" align="center">
<img src="../../img/icons/report.png" width="16" height="16" onclick="window.location='createreport_excel.php?Listid=<?=$Row[cm_listsubject_ID]?>'" style="cursor:pointer" /> </td>
<td width="145" height="30" align="center" valign="middle">
<img src="../../img/icons/report.png" width="16" height="16" onclick="window.location='createreport_excel2.php?Listid=<?=$Row[cm_listsubject_ID]?>&Subject=<?=$Row[cm_listsubject_Name]?>'" style="cursor:pointer" /></td>
</tr>
<?
$index++;
}
} else { ?>
<tr class="table_row1">
<td height="80" colspan="8" align="center"> ไม่พบข้อมูล!</td>
</tr>
<? } ?>
<input name="TotalCheckBoxID" type="hidden" id="TotalCheckBoxID" value="<?=$index-1?>">
</form>
</table>
<table width="100%" height="24" border="0" cellpadding="3" cellspacing="0">
<form action="?" method="post" name="mySearchForm" id="mySearchForm" onSubmit="return false;">
<input name="GroupID" type="hidden" id="GroupID" value="<?=$GroupID?>">
<input name="SystemModuleKey" type="hidden" id="SystemModuleKey" value="<?=$SystemModuleKey?>">
<input name="SystemMenuID" type="hidden" id="SystemMenuID" value="<?=$SystemMenuID?>">
<tr align="right">
<td colspan="4" align="right" class="table_footer"><div class="menu_one">
<div align="left">หน้า
<?
if($NoOfPage>1) {
?>
<select name="toolbarPageShow" class="select" onchange="document.myForm.PageShow.value=this.value; document.myForm.submit(); ">
<?
if($NoOfPage<$SystemModule_MaxPage) {
// Show page list #########################
for($i=1;$i<=$NoOfPage;$i++) {
echo "<option value=\"$i\"";
if($i==$PageShow) { echo " selected"; }
echo ">$i</option>";
}
} else {
// # If total page count greater than default max page value then reduce page select size #########################
$starti = $PageShow-$SystemModule_ReduceRange;
if($starti<1) { $starti=1; }
$endi = $PageShow+$SystemModule_ReduceRange;
if($endi>$NoOfPage) { $endi=$NoOfPage; }
//#####################
for($i=$starti ;$i<=$endi;$i++) {
echo "<option value=\"$i\"";
if($i==$PageShow) { echo " selected"; }
echo ">$i</option>";
}
}
?>
</select>
<?
} else {
echo "1";
}
?>
จาก
<?=$NoOfPage?>
| ค้นพบทั้งหมด
<?=$TotalRecordCount?>
รายการ</div>
</div></td>
</tr>
</form>
</table></td>
</tr>
</table>
<!-- InstanceEndEditable --> </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>
<!-- InstanceEnd --></html>
Hacked By AnonymousFox1.0, Coded By AnonymousFox