Viewing file: PersonalData2.php (7.46 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 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> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="PersonalData.php">ข้อมูลส่วนตัวบุลากร</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><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 bordercolor="#0066CC" bgcolor="#CCE6FF">
<td width="36" align="center" class="style5" style="border:1px solid gray"><span class="style5"><font color="#000000" face="Tahoma">ลำดับ</font></span></td>
<td width="45" align="center" class="style5" style="border:1px solid gray"><span class="style5"><font color="#000000" face="Tahoma">รหัส</font></span></td>
<td width="183" align="center" bgcolor="#CCE6FF" class="style5" style="border:1px solid gray"><span class="style5"><font color="#000000" face="Tahoma">ชื่อ-นามสกุล</font></span></td>
<td width="152" align="center" class="style5" style="border:1px solid gray"><div align="center" class="style5"><font color="#000000" face="Tahoma">สังกัด ภาค / ฝ่าย </font></div></td>
<td width="176" align="center" class="style5" style="border:1px solid gray"><span class="style5"><font color="#000000" face="Tahoma">ตำแหน่งการบริหาร</font></span></td>
<td width="91" align="center" class="style5" style="border:1px solid gray"><span class="style5"><font face="Tahoma">ประเภทอาจารย์</font></span></td>
<td width="95" align="center" class="style5" style="border:1px solid gray"><span class="style5"><font face="Tahoma">ประเภทบุคลากร</font></span></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"><div align="center"><font size="2" face="Tahoma"><?echo $rs[Teacher_id]?></font></div></td>
<td bordercolor="#EBFAFE"><font size="2" face="Tahoma"> <?echo $rs[First_name]?> <?echo $rs[Teacher_name]?> <?echo $rs[Teacher_lastname]?></a></font></td>
<td bordercolor="#EBFAFE"><div align="left"><font size="2" face="Tahoma">
<?php
$Faculty_code = $rs["Faculty_code"];
$sql = "Select * From faculty_tb Where Faculty_code='$Faculty_code'";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rss = mysql_fetch_array($result1);
echo "$rss[Faculty_name] ";
?>
</font></div></td>
<td bordercolor="#EBFAFE"><div align="left"><font size="2" face="Tahoma"><? echo $rs[Manage_pos]?></font></div></td>
<td bordercolor="#EBFAFE"><div align="left"><font size="2" face="Tahoma">
<?
$Teacher_type = $rs[Teacher_type];
$sql1 = "SELECT * FROM teacher_type_tb Where Ttype_code='$Teacher_type'";
$result1 = mysql_query($sql1);
$rs1 = mysql_fetch_array($result1);
echo $rs1[Ttype_name];
?>
</font></div></td>
<td bordercolor="#EBFAFE"><div align="left"><font size="2" face="Tahoma">
<?
$Person_type = $rs[Person_type];
$sql2 = "SELECT * FROM person_type_tb Where Ptype_code='$Person_type'";
$result2 = mysql_query($sql2);
$rs2 = mysql_fetch_array($result2);
echo $rs2[Ptype_name];
?>
</font></div></td>
</tr>
<?
$count=1;
}
else
{
?>
<tr bordercolor="#FFFFFF" bgcolor="#FFFFFF">
<td align="center"><font size="2" face="Tahoma"><?echo $i?></font></td>
<td><div align="center"><font size="2" face="Tahoma"><?echo $rs[Teacher_id]?></font></div></td>
<td><font size="2" face="Tahoma"><?echo $rs[First_name]?> <?echo $rs[Teacher_name]?> <?echo $rs[Teacher_lastname]?></font></td>
<td><div align="left"><font size="2" face="Tahoma">
<?php
$Faculty_code = $rs["Faculty_code"];
$sql = "Select * From faculty_tb Where Faculty_code='$Faculty_code'";
$result1 = mysql_query($sql) or die("Error".mysql_error());
$rss = mysql_fetch_array($result1);
echo "$rss[Faculty_name] ";
?>
</font></div></td>
<td><div align="left"><font size="2" face="Tahoma"><?echo $rs[Manage_pos]?></font></div></td>
<td><div align="left"><font size="2" face="Tahoma">
<?
$Teacher_type = $rs[Teacher_type];
$sql1 = "SELECT * FROM teacher_type_tb Where Ttype_code='$Teacher_type'";
$result1 = mysql_query($sql1);
$rs1 = mysql_fetch_array($result1);
echo $rs1[Ttype_name];
?>
</font></div></td>
<td><div align="left"><font size="2" face="Tahoma">
<?
$Person_type = $rs[Person_type];
$sql2 = "SELECT * FROM person_type_tb Where Ptype_code='$Person_type'";
$result2 = mysql_query($sql2);
$rs2 = mysql_fetch_array($result2);
echo $rs2[Ptype_name];
?>
</font></div></td>
</tr>
<?
$count=0;
}
$i++;
}
?>
<tr bgcolor="#CCE6FF">
<td height="19" colspan="7" align="center" bgcolor="#FFFFFF"><div align="center"><strong><font color="#003366" size="2" face="Tahoma">ทั้งหมด</font><font color="#FF0000" size="2" face="Geneva, Arial, Helvetica, sans-serif"> <? echo $num ?><font color="#003399" face="Tahoma"> คน </font> </font></strong></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 ";
}
?>
|