Viewing file: PersonalData_bkp.php (6.08 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start();
if (session_is_registered("valid_user") && session_is_registered("Priority") )
{
include("../include/FunctionDB.php");
include("admin_menu.php");
ConnectDB();
$sql = "Select * From personal_tb Where StatusId='1' Order By Faculty_code,Teacher_id, Teacher_name ASC";
$result = mysql_query($sql) or die(" Error").mysql_error();
$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">
<style type="text/css">
<!--
.style5 {font-size: 14px}
-->
</style>
<table width="814" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="814"><br />
<fieldset>
<legend><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><span class="style5"><a href="menu_manage.php" >หน้าหลัก</a><a href="EducationData.php"></a><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" />ข้อมูลส่วนตัวบุคลากรทั้งหมด</span></font></legend>
<label></label>
<div align="center">
<form id="form1" name="form1" method="post" action="InsertSalary.php">
<p align="left"><font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()" width="85" height="22" border="0" /></font></p>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#006699" style="border:0px solid gray">
<tr bgcolor="#FCF9E2">
<td width="51" style="border:1px solid gray"><div align="center" class="style5"><font color="#000000" face="Tahoma">ลำดับ</font></div></td>
<td width="65" align="center" bordercolor="#0066CC" bgcolor="#FCF9E2" style="border:1px solid gray"><span class="style5"><font color="#000000" face="Tahoma">รหัส</font></span></td>
<td width="228" bgcolor="#FCF9E2" style="border:1px solid gray"><div align="center" class="style5"><font color="#000000" face="Tahoma">ชื่อ-นามสกุล</font></div></td>
<td width="188" style="border:1px solid gray"><div align="center" class="style5"><font color="#000000" face="Tahoma">ตำแหน่งราชการ</font></div></td>
<td width="83" style="border:1px solid gray"><div align="center" class="style5"><font face="Tahoma">เงินเดือน</font></div></td>
<td width="182" bgcolor="#FCF9E2" style="border:1px solid gray"><div align="center" class="style5"><font face="Tahoma">สังกัดกลุ่มฝ่าย</font></div></td>
</tr>
<?
$i = 1;
while($rs = mysql_fetch_array($result))
{
if($count==0)
{
?>
<tr bgcolor="#F9FEFF">
<td height="21" align="center" bordercolor="#EBFAFE"><font size="2" face="Tahoma"><? echo $i?></font></td>
<td bordercolor="#EBFAFE"><font size="2" face="Tahoma"><? echo $rs[Teacher_id]?></font></td>
<td bordercolor="#EBFAFE"><a href="PersonalDetail.php?Teacher_code=<? echo $rs[Teacher_code]?>" class="d"> <font size="2" face="Tahoma"> <? echo $rs[First_name]?> <? echo $rs[Teacher_name]?> <? echo $rs[Teacher_lastname]?> </font> </a> </td>
<td bordercolor="#EBFAFE"><div align="left"><font size="2" face="Tahoma"><? echo $rs[Gover_pos]?></font></div></td>
<td bordercolor="#EBFAFE"><div align="left"><font size="2" face="Tahoma"><? echo $rs[Salary_1]?></font></div></td>
<td bordercolor="#EBFAFE" bgcolor="#F9FEFF"><div align="left"><font size="2" face="Tahoma">
<?php
$Faculty_code = $rs[Faculty_code];
$sql1 ="Select * From faculty_tb Where Faculty_code='$Faculty_code'";
$result2 = mysql_query($sql1);
$row = mysql_fetch_array($result2);
echo "$row[Faculty_name]";
?>
</font></div></td>
</tr>
<?
$count=1;
}
else
{
?>
<tr bgcolor="#FFFFFF">
<td align="center" bordercolor="#FFFFFF"><font size="2" face="Tahoma"><?echo $i?></font></td>
<td bordercolor="#FFFFFF"><font size="2" face="Tahoma"><?echo $rs[Teacher_id]?></font></td>
<td bordercolor="#FFFFFF"><a href="PersonalDetail.php?Teacher_code=<? echo $rs[Teacher_code]?>" class="d"> <font size="2" face="Tahoma"> <? echo $rs[First_name]?> <? echo $rs[Teacher_name]?> <? echo $rs[Teacher_lastname]?> </font></a></td>
<td bordercolor="#FFFFFF"><div align="left"><font size="2" face="Tahoma"><? echo $rs[Gover_pos]?></font></div></td>
<td bordercolor="#FFFFFF"><div align="left"><font size="2" face="Tahoma"><? echo $rs[Salary_1]?></font></div></td>
<td bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div align="left"><font size="2" face="Tahoma">
<?php
$Faculty_code = $rs[Faculty_code];
$sql1 ="Select * From faculty_tb Where Faculty_code='$Faculty_code'";
$result2 = mysql_query($sql1);
$row = mysql_fetch_array($result2);
echo "$row[Faculty_name]";
?>
</font></div></td>
</tr>
<?
$count=0;
}
$i++;
}
?>
<tr bgcolor="#FCF9E2">
<td height="29" colspan="6" align="center" bgcolor="#FFFFFF"><div align="center"><span class="style5"><font color="#003366" face="Tahoma">ทั้งหมด</font></span><strong><font color="#FF0000" size="2" face="Geneva, Arial, Helvetica, sans-serif"> <? echo $num ?> </font></strong><font color="#FF0000" face="Geneva, Arial, Helvetica, sans-serif"><span class="style5"><font color="#003399" face="Tahoma">คน </font></span></font> </div></td>
</tr>
</table>
</form>
</div>
</fieldset>
<br />
<font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>"><span class="style5"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อ</span></font><font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><br />
</font></td>
</tr>
</table>
<?php
}
else
{
echo"<meta http-equiv=\"refresh\" content=\"3;URL=../login.php\">\n";
echo"Please Login ";
}
?>
|