Viewing file: Menu_Course.php (5.19 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">
<script type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<table width="793" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="793" ><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:1px solid gray">
<tr bgcolor="#CCEEFF">
<td height="25" colspan="3"><div align="center"><font color="#000000" size="4" face="Tahoma"><strong>รายขื่อหลักสูตรที่เปิดสอน</strong></font></div></td>
</tr>
<tr bgcolor="#DADADA">
<td width="45" ><div align="center"><font color="#000000" size="2" face="Tahoma"><b>No.</b></font></div></td>
<td width="658" ><div align="center"><font color="#000000" size="2" face="Tahoma"><b>ชื่อหลักสูตร</b></font></div></td>
<td width="144"><div align="center"><font color="#000000" size="2" face="Tahoma"><strong>โครงสร้างหลักสูตร</strong></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" ><font color="#000000" size="2" face="Tahoma">
<?=$i?>
</font></strong></td>
<td align="center" ><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" ><font size="2" face="Tahoma"><a href="programs.php?programId=<? echo $row[programId]?>" class="d">รายละเอียด</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" ><font color="#000000" size="2" face="Tahoma">
<?=$i?>
</font></strong></td>
<td height="18" align="center" ><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" ><font size="2" face="Tahoma"><a href="programs.php?programId=<? echo $row[programId]?>" class="d">รายละเอียด</a></font></td>
</tr>
<?
$count=0;
}
$i++;
}
CloseDB();
?>
<tr bgcolor="#CCEEFF">
<td height="22" colspan="3" align="center"><div align="center"><font color="#000000" size="2" face="Tahoma">ทั้งหมด<strong> <? echo $num ?> </strong>รายการ</font><strong><font color="#000000" size="2" face="Tahoma"> </font> </strong></div></td>
</tr>
</table>
</form>
</fieldset>
<br>
<font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อ<br>
</font></td>
</tr>
</table>
|