Viewing file: Frm_Edit_Edu1.php (9.84 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start();
if (session_is_registered("valid_user")&&session_is_registered("password"))
{
$Username = $valid_user;
$Password = $password;
include("../../../include/FunctionDB.php");
ConnectDB();
$sql = "Select * From personal_tb Where Username='$Username'";
$result = mysql_query($sql) or die(" Error").mysql_error();
$rs = mysql_fetch_array($result)
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>History Detail</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link rel="stylesheet" href="../../css/cart2.css" type="text/css">
<link href="../../../css/style1.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" >
<tr bgcolor="#FFFFFF" class="table">
<td colspan="3" bgcolor="#0066CC"><img src="../../../Image/Ponallogo.jpg" width="550" height="71"></td>
</tr>
<tr bgcolor="#FFFFFF" class="table">
<td width="20%" background="../../../Image/bart1.jpg" class="table">
<div align="center"><strong><font size="2" face="Tahoma"><a href="../Menu_History.php" class="d">ข้อมูลประวัติ</a></font></strong></div></td>
<td width="20%" background="../../../Image/bart1.jpg" class="table">
<div align="center"><strong><font size="2" face="Tahoma"><a href="Show_Edu_History.php" class="d">แสดงประวัติการศึกษา</a></font></strong></div></td>
<td width="20%" background="../../../Image/bart1.jpg" class="table">
<div align="center"><strong><font size="2" face="Tahoma"><a href="../../../logout.php" class="d">Logout</a></font></strong></div></td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><div align="center"><font color="#000000" size="2" face="Tahoma"><strong>ขณะนี้
อ.</strong></font> <font color="#993333" size="2" face="Tahoma"><strong><?php echo $rs[Teacher_name]?>
<?php echo $rs[Teacher_lastname]?> </strong></font><font color="#000000" size="2" face="Tahoma"><strong>กำลังใช้งานระบบ</strong></font></div></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#EEEEEE" style="border:1px solid gray">
<!--DWLayoutTable-->
<form action="Edit_Edu_his.php" method="POST">
<tr bordercolor="#FFFFFF" bgcolor="#ECF5FF">
<td height="20" colspan="3" nowrap bordercolor="#FFFFFF"> <div align="center"><font color="#FFFFFF" size="4" face="Tahoma"> <strong><font color="#FF0000">แก้ไข</font><font color="#003366">
ประวัติการศึกษา</font></strong></font></div></td>
</tr>
<tr bordercolor="#E7FAFE">
<td width="123" height="20" bordercolor="#FFFFFF" bgcolor="#ECF5FF"> <div align="center"><font color="#003300" size="2" face="Tahoma">วุฒิการศึกษาสูงสุด</font></div></td>
<td width="17" bgcolor="#ECF5FF"><!--DWLayoutEmptyCell--> </td>
<td width="595" bordercolor="#99CCFF" bgcolor="#ECF5FF"> <font size="2" face="Tahoma">
<input type="radio" name="Degree_code" <?php if (!(strcmp("$rs[Degree_code]","1"))){echo "checked";} ?> value="1" onKeyPress="return handleEnter(this, event)">
ปริญญาตรี
<input type="radio" name="Degree_code" <?php if (!(strcmp("$rs[Degree_code]","2"))){echo "checked";} ?> value="2" onKeyPress="return handleEnter(this, event)">
ปริญญาโท
<input type="radio" name="Degree_code" <?php if (!(strcmp("$rs[Degree_code]","3"))){echo "checked";} ?> value="3" onKeyPress="return handleEnter(this, event)">
ปริญญาเอก
<input type="radio" name="Degree_code" <?php if (!(strcmp("$rs[Degree_code]","4"))){echo "checked";} ?> value="4" onKeyPress="return handleEnter(this, event)">
อื่นๆ</font></td>
</tr>
<tr bordercolor="#FFFFFF">
<td colspan="3" nowrap bgcolor="#FFFFFF"> <table width="100%" border="0" cellpadding="0" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#EEEEEE">
<tr>
<td bgcolor="#ECF5FF"> </td>
<td bordercolor="#FFFFFF" bgcolor="#ECF5FF"> </td>
<td bordercolor="#FFFFFF" bgcolor="#ECF5FF"><table width="60%" border="0" cellspacing="1" cellpadding="0">
<tr bgcolor="#eeeeee">
<td width="25%"> <div align="center"><font size="2" face="Tahoma">วุฒิการศึกษา</font></div></td>
<td width="25%" bgcolor="#eeeeee"> <div align="center"><font size="2" face="Tahoma">วิชาเอก</font></div></td>
<td width="25%"> <div align="center"><font size="2" face="Tahoma">สถาบัน</font></div></td>
<td width="25%"> <div align="center"><font size="2" face="Tahoma">ปีที่สำเร็จการศึกษา</font></div></td>
</tr>
</table></td>
</tr>
<tr>
<td width="17%" bgcolor="#ECF5FF"> <div align="center"><font color="#003366" size="2" face="Tahoma">ปริญญาตรี</font></div></td>
<td width="2%" bordercolor="#FFFFFF" bgcolor="#ECF5FF"> </td>
<td width="81%" bordercolor="#FFFFFF" bgcolor="#ECF5FF"><font color="#003366" size="1" face="Tahoma">
<input name="Degree_His1" type="text" id="Degree_His12" value="<? echo $rs[Degree_His1] ; ?>" size="80">
</font><font color="#003366" size="2" face="Tahoma">
<input type="radio" name="Type_degree1" <?php if (!(strcmp("$rs[Type_degree1]","ด้านพยาบาล"))){echo "checked";} ?> value="ด้านพยาบาล" onKeyPress="return handleEnter(this, event)">
</font><font color="#003366" size="1" face="Tahoma"> </font><font size="2" face="Tahoma">ด้านพยาบาล</font><font color="#003366" size="1" face="Tahoma">
</font><font color="#003366" size="2" face="Tahoma">
<input type="radio" name="Type_degree1" <?php if (!(strcmp("$rs[Type_degree1]","ด้านอื่นฯ"))){echo "checked";} ?> value="ด้านอื่นฯ" onKeyPress="return handleEnter(this, event)">
</font><font color="#003366" size="1" face="Tahoma"> </font><font size="2" face="Tahoma">ด้านอื่นฯ
</font><font color="#003366" size="1" face="Tahoma"> </font></td>
</tr>
<tr>
<td bgcolor="#ECF5FF"> <div align="center"><font color="#003366" size="2" face="Tahoma">ปริญญาโท</font></div></td>
<td bgcolor="#ECF5FF"> </td>
<td bgcolor="#ECF5FF"><font color="#003366" size="1" face="Tahoma">
<input name="Degree_His2" type="text" id="Degree_His2" value="<? echo $rs[Degree_His2] ; ?>" size="80">
</font><font color="#003366" size="2" face="Tahoma">
<input type="radio" name="Type_degree2" <?php if (!(strcmp("$rs[Type_degree2]","ด้านพยาบาล"))){echo "checked";} ?> value="ด้านพยาบาล" onKeyPress="return handleEnter(this, event)">
</font><font color="#003366" size="1" face="Tahoma"> </font><font size="2" face="Tahoma">ด้านพยาบาล</font><font color="#003366" size="1" face="Tahoma">
</font><font color="#003366" size="2" face="Tahoma">
<input type="radio" name="Type_degree2" <?php if (!(strcmp("$rs[Type_degree2]","ด้านอื่นฯ"))){echo "checked";} ?> value="ด้านอื่นฯ" onKeyPress="return handleEnter(this, event)">
</font><font color="#003366" size="1" face="Tahoma"> </font><font size="2" face="Tahoma">ด้านอื่นฯ
</font><font color="#003366" size="1" face="Tahoma"> </font></td>
</tr>
<tr>
<td bgcolor="#ECF5FF"> <div align="center"><font color="#003366" size="2" face="Tahoma">ปริญญาเอก</font></div></td>
<td bgcolor="#ECF5FF"> </td>
<td bgcolor="#ECF5FF"><font color="#003366" size="1" face="Tahoma">
<input name="Degree_His3" type="text" id="Degree_His3" value="<? echo $rs[Degree_His3] ; ?>" size="80">
</font><font color="#003366" size="2" face="Tahoma">
<input type="radio" name="Type_degree3" <?php if (!(strcmp("$rs[Type_degree3]","ด้านพยาบาล"))){echo "checked";} ?> value="ด้านพยาบาล" onKeyPress="return handleEnter(this, event)">
</font><font color="#003366" size="1" face="Tahoma"> </font><font size="2" face="Tahoma">ด้านพยาบาล</font><font color="#003366" size="1" face="Tahoma">
</font><font color="#003366" size="2" face="Tahoma">
<input type="radio" name="Type_degree3" <?php if (!(strcmp("$rs[Type_degree3]","ด้านอื่นฯ"))){echo "checked";} ?> value="ด้านอื่นฯ" onKeyPress="return handleEnter(this, event)">
</font><font color="#003366" size="1" face="Tahoma"> </font><font size="2" face="Tahoma">ด้านอื่นฯ
</font><font color="#003366" size="1" face="Tahoma"> </font></td>
</tr>
</table></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="20" colspan="3"> <div align="center">
<input type="hidden" name="Teacher_code" value="<? echo $rs[Teacher_code]?>">
<input type="submit" name="Submit" value=" บันทึก ">
</div></td>
</tr>
</form>
</table>
<p> </p>
</body>
</html>
<?php
}
else
{
echo"<body bgcolor=\"#CCCCCC\">";
echo"<meta http-equiv=\"refresh\" content=\"3;URL=../../../login.php\" target=\"mainFrame\">\n";
echo"<center>";
echo"<br><br><br><b><font face=\"Tahoma\" size=\"4\" color=\"#FF0000\">Please Login</font> </b><br>";
echo"<br><br><font face=\"Tahoma\" size=\"10\" color=\"#000000\"> ERROR 404 PERMISION DENY</font><br>";
echo"<br><font face=\"Tahoma\" size=\"4\" color=\"#000000\"> คุณไม่มีสิทธ์ใช้งาน</font>";
echo"</center>";
echo"</body>";
}
?>
|