Viewing file: viewPsTable.php (2.89 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="90%" 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="75%" 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);
$name = $char;
if($name!=""){
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 a2th($i+1); ?></font></td>
<td align="left"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"> <? echo $name; ?></font></td>
</tr>
<? $i++;
}
} //end while
if($i == 0) {?>
<tr bgcolor="#FFFFFF">
<td align="center" height="22" colspan="2"><font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2">**
ไม่ปรากฏข้อมูลรายชื่อในแฟ้ม <? echo $n; ?> **</font></td>
</tr>
<?php } ?>
</table>
</table>
</td>
</tr>
</table>
</body>
</html>
|