Viewing file: SubGroupList.php (4.05 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include("./include/FunctionDB.php");
include("admin_menu.php");
include("./include/Function.php");
ConnectDB();
$strSQL = "SELECT * FROM subject_group_tb ";
$result = mysql_query($strSQL);
$total = 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">
<style type="text/css">
<!--
.style1 {font-size: 14px}
-->
</style>
<table width="741" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="741" ><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> <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="87%" border="0" align="center" cellpadding="0" cellspacing="1" style="border:0px solid gray">
<tr bordercolor="#003366" bgcolor="#BCDBEB">
<td colspan="4" align="center" bgcolor="#FFFFFF"><div align="left"><font size="2" face="Tahoma"><img src="./picture/previous.gif" onclick="window.history.back()" width="85" height="22" border="0" /></font></div></td>
</tr>
<tr bordercolor="#003366" bgcolor="#BCDBEB">
<td colspan="4" align="center" bgcolor="#FFFFFF"><font color="#003366" face="Tahoma"><span class="style1"> <strong>กลุ่มวิชาทั้งหมด</strong></span></font></td>
</tr>
<tr bordercolor="#003366" bgcolor="#CCCCCC">
<td width="41"><div align="center" class="style1"><font color="#003366" face="Tahoma">ลำดับ</font></div></td>
<td width="97"><div align="center" class="style1"><font color="#003366" face="Tahoma">ชื่อย่อ</font></div></td>
<td width="274"><div align="center" class="style1"><font color="#003366" face="Tahoma">ชื่อกลุ่มวิชา
Eng </font></div></td>
<td width="320"><div align="center" class="style1"><font color="#003366" face="Tahoma">ชื่อกลุ่มวิชา
Thai</font></div></td>
</tr>
<?
$i = 1;
while($rs = mysql_fetch_array($result))
{
if($count==0)
{
?>
<tr bordercolor="#CCCCCC" bgcolor="#EEEEEE">
<td align="center" bgcolor="#FFFFFF"><font size="2" face="Tahoma"><?echo $i?></font></td>
<td align="center" bgcolor="#FFFFFF"><font size="2" face="Tahoma"><?echo $rs[Short_name]?></font></td>
<td align="center" bgcolor="#FFFFFF"><div align="left"><font size="2" face="Tahoma"><?echo $rs[Eng_name]?></font></div></td>
<td bgcolor="#FFFFFF"><font size="2" face="Tahoma"><? echo $rs[Thai_name]?></font></td>
</tr>
<?
$count=1;
}
else
{
?>
<tr bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<td align="center" bgcolor="#FFFFFF"><font size="2" face="Tahoma"><?echo $i?></font></td>
<td align="center" bgcolor="#FFFFFF"><font size="2" face="Tahoma"><?echo $rs[Short_name]?></font></td>
<td align="center" bgcolor="#FFFFFF"><div align="left"><font size="2" face="Tahoma"><?echo $rs[Eng_name]?></font></div></td>
<td bgcolor="#FFFFFF"><font size="2" face="Tahoma"><? echo $rs[Thai_name]?></font></td>
</tr>
<?
$count=0;
}
$i++;
}
?>
<tr bordercolor="#003366" bgcolor="#BCDBEB">
<td height="22" colspan="4" align="center" bgcolor="#FFFFFF"><div align="center"><span class="style1"><font color="#003366" face="Tahoma">ทั้งหมด</font></span><strong><font color="#FFFFFF" size="2" face="Geneva, Arial, Helvetica, sans-serif"> <? echo $num ?> </font></strong><font color="#FFFFFF" face="Geneva, Arial, Helvetica, sans-serif"><font face="Tahoma"><span class="style1"><font color="#003366">รายการ</font> </span></font></font> </div></td>
</tr>
</table>
</form>
</fieldset>
<br>
<font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อ<br>
</font></td>
</tr>
</table>
|