Viewing file: viewPsTablereg.php (3.45 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include_once("../../class/clsConnection.php");
include_once("../../class/clsDB.php");
include_once "../global.php";
include_once "../link/function.php";
include_once "../link/keyThai.php";
$oCc = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EPERSON'], $GLOBALS['DBUSER_EPERSON'], $GLOBALS['DBPASS_EPERSON']);
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);
$oDP = new Department($oC);
?>
<html>
<head>
<title>ตารางแสดงรายชื่อผู้ได้รับการรับรอง</title>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="source/style.css" rel="stylesheet" type="text/css">
</head>
<style>
<!--
A:link {text-decoration: none; color: #000000}
A:visited {text-decoration: none; color: #000000}
A:hover {text-decoration: none; font-weight: underline; color: #015181}
-->
</style>
<table width="102%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td height="30" align="left"><strong><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"];?>">
<img src="../picture/search2.jpg" alt="" border="0" >
แสดงข้อมูลนักศึกษาที่ได้รับการรับรอง</font></strong></td></tr>
<td align="center"><br>
<table width="93%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="silver">
<tr align="center" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_9"];?>">
<td width="15%" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><b>ลำดับ</b></font></td>
<td width="18%" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><b>รหัส<br>นักศึกษา</b></font></td>
<td width="60%" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><b>ชื่อ - นามสกุล</b></font></td>
</tr>
<?
$UPath='uploadfile/'.$filename;
$fp = fopen($UPath, "r");
$i = 0;
while(!feof($fp)) {
$mark=0;
$char = fgets($fp);
$stdCode=""; $prefixname=""; $name=""; $surname="";
list($stdCode,$prefixname, $name, $surname) = split('[,]', $char);
if($stdCode!=""){
if(($i%2) == 0)
echo "<tr bgcolor=\"".$GLOBALS["COLOR_BG_TD_5"]."\">";
else
echo "<tr bgcolor=\"".$GLOBALS["COLOR_BG_TD_11"]."\">";
?>
<td align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><? echo ($i+1); ?></font></td>
<td align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"> <? echo $stdCode; ?> </font></td>
<td align="left"> <font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><? echo $prefixname.$name.' '.$surname; ?></font></td>
</tr>
<? $i++;
}
} //end while
if($i == 0) {?>
<tr bgcolor="#FFFFFF">
<td align="center" height="22" colspan="3"><font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2">**
ไม่ปรากฏข้อมูลนักศึกษาในแฟ้ม <? echo $n; ?> **</font></td>
</tr>
<?php } ?>
</table>
<tr><td colspan="2" align="center"><br><a href="#" onClick="window.close()"><font size="2" face="Microsoft Sans Serif">[ปิดหน้าต่าง]</font></a></td></tr>
</table>
</td>
</tr>
</table>
</body>
</html>
|