Viewing file: Menu_Course.php (5.98 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include("./includes/FunctionDB.php");
include("admin_menu.php");
include("./includes/Function.php");
ConnectDB();
$strSQL = "SELECT * FROM Program Where programStatus ='Y' ";
$result = mysql_query($strSQL);
$num = mysql_num_rows( $result );
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<link href="./source/style.css" rel="stylesheet" type="text/css">
<script type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<style type="text/css">
<!--
.style2 {font-size: 14px}
-->
</style>
<table width="816" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="816" ><br>
<fieldset>
<legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="index.php">หน้าหลัก</a> <img src="./picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="menuEdu.php">ข้อมูลการฝ่ายวิชาการ </a></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="./picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="course.php">รายวิชาที่เปิดสอน</a></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="menuEdu.php"></a></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"> </font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="./picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="showSchedule.php">ปฏิทินการศึกษา</a></font> <font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="./picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"> รายชื่อหลักสูตร</font></legend>
<label>
<form id="form1" name="form1" method="post" action="">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#999999" style="border:0px solid gray">
<tr bgcolor="#CCEEFF">
<td height="25" colspan="3" bgcolor="#FFFFFF"><font size="2" face="Tahoma"><img src="./picture/previous.gif" onclick="window.history.back()" width="85" height="22" border="0" /></font></td>
</tr>
<tr bgcolor="#CCEEFF">
<td height="25" colspan="3" bgcolor="#FFFFFF"><div align="center" class="style2"><font color="#000000" face="Tahoma">รายขื่อหลักสูตรที่เปิดสอน</font></div></td>
</tr>
<tr bgcolor="#DADADA">
<td width="45" height="23" ><div align="center" class="style2"><font color="#000000" face="Tahoma">No.</font></div></td>
<td width="658" ><div align="center" class="style2"><font color="#000000" face="Tahoma"><b>ชื่อหลักสูตร</b></font></div></td>
<td width="144"><div align="center" class="style2"><font color="#000000" face="Tahoma">โครงสร้างหลักสูตร</font></div></td>
</tr>
<?php
$i = 1;
while($row = mysql_fetch_array($result))
{
if($count==0)
{
?>
<tr bordercolor="#CCCCCC" bgcolor="#EEEEEE" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#EEEEEE'" >
<td align="center" bgcolor="#EBFAFE" ><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="./picture/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></font></td>
<td align="center" bgcolor="#EBFAFE" ><div align="left"> <font color="#996600" size="2" face="Tahoma"> <a href="ProgramDetail.php?programId=<?=$row["programId"]?>"title="Click to see Detail" class="d" ></a><a href="#"></a> </font>
<div align="center" onclick="MM_openBrWindow('ProgramDetail.php?programId=<?=$row["programId"]?>','Detail','scrollbars=yes,width=600,height=250')">
<div align="left"><font color="#996600" size="2" face="Tahoma"><a href="#"><? echo $row["programName"]?></a></font></div>
</div>
</div></td>
<td align="center" bgcolor="#EBFAFE" ><font face="Tahoma"><a href="programs.php?programId=<? echo $row[programId]?>" class="d style2">รายละเอียด</a></font></td>
</tr>
<?
$count=1;
}
else
{
?>
<tr bordercolor="#CCCCCC" bgcolor="#FFFFFF" onmouseover="this.style.backgroundColor='#FCFCF3'" onmouseout="this.style.backgroundColor='#FFFFFF'">
<td align="center" bgcolor="#FFFFFF" ><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><img src="./picture/linesub.gif" width="16" height="16" border="0" align="absmiddle" /></font></td>
<td height="18" align="center" bgcolor="#FFFFFF" ><div align="left"> <font color="#996600" size="2" face="Tahoma"> <a href="ProgramDetail.php?programId=<?=$row["programId"]?>"title="Click to see Detail" class="d" ></a><a href="#"></a> </font>
<div align="center" onclick="MM_openBrWindow('ProgramDetail.php?programId=<?=$row["programId"]?>','Detail','scrollbars=yes,width=600,height=250')">
<div align="left"><font color="#996600" size="2" face="Tahoma"><a href="#"><? echo $row["programName"]?></a></font></div>
</div>
</div></td>
<td align="center" bgcolor="#FFFFFF" ><font face="Tahoma"><a href="programs.php?programId=<? echo $row[programId]?>" class="d style2">รายละเอียด</a></font></td>
</tr>
<?
$count=0;
}
$i++;
}
CloseDB();
?>
<tr bgcolor="#CCEEFF">
<td height="22" colspan="3" align="center" bgcolor="#FFFFFF"><div align="center"><font color="#000000" face="Tahoma"><span class="style2">ทั้งหมด</span></font><font color="#000000" size="2" face="Tahoma"><strong> <? echo $num ?> </strong></font><font color="#000000" face="Tahoma"><span class="style2">รายการ</span></font><span class="style2"><strong><font color="#000000" face="Tahoma"> </font> </strong></span></div></td>
</tr>
</table>
</form>
</fieldset>
<br>
<font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อ<br>
</font></td>
</tr>
</table>
|