รบกวนหน่อยคร้า ทำโปรเจคอยู่อ่ะคร่ะ แล้วหน้าเพจมันไม่ดึงข้อมูลให้อ่ะคร่ะ
<?
//session_start();
//require_once("connect/connect.php");
$ServerName = "localhost";
$DatabaseName = "Training";
$User = "root";
$Password = "1234";
$Conn = mysql_connect($ServerName,$User,$Password) or die ("ไม่สามารถติดต่อกับเซิร์ฟเวอร์ได้");
mysql_select_db($DatabaseName,$Conn) or die ("ไม่สามารถติดต่อกับฐานข้อมูลได้");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<title>Training</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link href="sft.css" rel="stylesheet" type="text/css">
<?
$ServerName = "localhost";
$DatabaseName = "Training";
$User = "root";
$Password = "1234";
$Conn = mysql_connect($ServerName,$User,$Password) or die ("ไม่สามารถติดต่อกับเซิร์ฟเวอร์ได้");
mysql_select_db($DatabaseName,$Conn) or die ("ไม่สามารถติดต่อกับฐานข้อมูลได้");
//dbConnect();
$p_Id=$_GET["p_Id"];
//echo $p_Id;
$sql="SELECT * FROM person where p_Id='$p_Id'";
$result = mysql_query($sql) ;
$row = mysql_fetch_array($result);
$p_Code=$row["p_Code"];
$p_Title=$row["p_Title"];
$p_Fname=$row["p_Fname"];
$p_Lname=$row["p_Lname"];
$dept_Id=$row["dept_Id"];
$p_Tel=$row["p_Tel"];
$p_TelExt=$row["p_TelExt"];
$p_Email=$row["p_Email"];
$p_Username=$row["p_Username"];
$p_Password=$row["p_Password"];
$p_IsAdmin=$row["p_IsAdmin"];
/*echo $p_Code;
echo $p_Title;
echo $p_Fname;
echo $p_Lanme;
echo $dept_Id;
echo $p_Tel;
echo $p_TelExt;
echo $p_Email;
echo $p_Username;
echo $p_Password;
echo $p_IsAdmin;*/
//เริ่มรับค่าที่มาจาก Form มาใส่ตัวแปร
if(isset($_POST["ready"])){
$p_Code=$_POST["txtPersonCode"];
$p_Title=$_POST["cbtitle_th"];
$p_Fname=$_POST["txtPersonFirstname"];
$p_Lname=$_POST["txtPersonLastname"];
$dept_Id=$_POST["department"];
$p_Tel=$_POST["txtPersonTel"];
$p_TelExt=$_POST["txtPersonTelExt"];
$p_Email=$_POST["txtPersonEmail"];
$p_Username=$_POST["txtPersonUsername"];
$p_Password=$_POST["txtPersonPassword"];
$p_IsAdmin=$_POST["Permission"];
//echo $p_Code;
//echo $p_Title;
//echo $p_Fname;
//echo $p_Lname;
//echo $dept_Id;
//echo $p_Tel;
//echo $p_TelExt;
//echo $p_Email;
//echo $p_Username;
//echo $p_Password;
//echo $p_IsAdmin;
$SQL = "update Person set p_Code='$p_Code',p_Title='$p_Title',p_Fname='$p_Fname',p_Lname='$p_Lname',dept_Id='$dept_Id',p_Tel='$p_Tel',p_TelExt='$p_TelExt',p_Email='$p_Email',p_Username='$p_Username',p_Password='$p_Password',p_IsAdmin='$p_IsAdmin' where p_Id='$p_Id'";
//echo $SQL;
$result = mysql_query($SQL);
?>
<script language ="JavaScript" >
window.location = "ManagePerson.php";
</script>
<?
}
?>
<style type="text/css">
<!--
.style2 {font-family: Tahoma}
.style3 {
font-weight: bold;
font-size: 14px;
color: #3300CC;
}
body,td,th {
font-size: medium;
}
.style8 {
font-family: Tahoma;
font-size: 14px;
font-weight: bold;
}
.style9 {
font-size: 16px;
font-weight: bold;
color: #FFFFFF;
}
-->
</style>
</head>
<body bgcolor="#8A9299" text="#000000" link="#333333" vlink="#333333" alink="#666666" leftmargin="1" topmargin="1" marginwidth="1" marginheight="1"><!-- StatisticsCounter v:2.4.1 --> <noscript>
</noscript> <!-- StatisticsCounter -->
<!-- Start editing template here -->
<div align="center">
<span class="bg_green">
</span>
<table width="780" height="227" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="780" height="227" valign="top"><img src="images/banner.jpg" alt="" width="784" height="231"></td>
</tr>
</table>
<table width="780" height="38" border="0" cellpadding="0" cellspacing="0" background="images/2a.jpg">
<tr>
<td width="536"> <span class="style2"><span class="style3">ยินดีต้อนรับเข้าสู่ระบบจัดการการลงทะเบียนฝึกอบรมบุคลากรของธุรกิจผลิตรถยนต์</span></span></td>
<td width="244"> </td>
</tr>
</table>
<table width="536" height="411" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="536" height="411" background="images/bg2.jpg"><table width="779" border="0">
<form name="frmAdd" action="<?=$thisfilename?>" method="post" >
<tr>
<th width="72" scope="col"> </th>
<th width="126" scope="col"> </th>
<th width="208" scope="col"> </th>
<th width="104" scope="col"> </th>
<th width="208" scope="col"> </th>
<th width="35" scope="col"> </th>
</tr>
<tr>
<td colspan="6"><span class="style5 style2 style9">การจัดการข้อมูลบุคลากร</span></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><span class="style8">รหัสบุคลากร</span></td>
<td><input name="txtPersonCode" type="text" id="txtPersonCode" value="<? echo $p_Code; ?>" size="25" maxlength="200"></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><span class="style8">คำนำหน้าชื่อ</span></td>
<td><select name="cbtitle_th" id="select8" style="width:70px">
<option value="นาย" selected>นาย</option>
<option value="นาง">นาง</option>
<option value="นางสาว">นางสาว</option>
</select></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><span class="style8">ชื่อ</span></td>
<td><input name="txtPersonFirstname" type="text" id="txtPersonFirstname" value="<? echo $p_Fname; ?>" size="25" maxlength="200"></td>
<td><span class="style8">นามสกุล</span></td>
<td><input name="txtPersonLastname" type="text" id="txtPersonLastname" value="<? echo $p_Lname; ?>" size="25" maxlength="200"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><span class="style8">แผนก</span></td>
<td><select name="department" id="department">
<option value="Engineering">Engineering</option>
<option value="Cooperation">Cooperation</option>
<option value="Safety&Environment">Safety&Environment</option>
<option value="Human Relationship">Human Relationship</option>
<option value="Manufacturing Management">Manufacturing Management</option>
</select></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><span class="style8">เบอร์โทรศัพท์</span></td>
<td><input name="txtPersonTel" type="text" id="txtPersonTel" value="<? echo $p_Tel; ?>" size="25" maxlength="200"></td>
<td><span class="style8">เบอร์ต่อภายใน</span></td>
<td><input name="txtPersonTelExt" type="text" id="txtPersonTelExt" value="<? echo $p_TelExt; ?>" size="25" maxlength="200"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><span class="style8">อีเมลล</span>์</td>
<td><input name="txtPersonEmail" type="text" id="txtPersonEmail" value="<? echo $p_Email; ?>" size="25" maxlength="200"></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><span class="style8">ชื่อผู้ใช้ระบบ</span></td>
<td><input name="txtPersonUsername" type="text" id="txtPersonUsername" value="<? echo $p_Username; ?>" size="25" maxlength="200"></td>
<td><span class="style8">รหัสผ่าน</span></td>
<td><input name="txtPersonPassword" type="text" id="txtPersonPassword" value="<? echo $p_Password; ?>" size="25" maxlength="200"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><span class="style8">ผู้ดูแลระบบ</span></td>
<td><input type="radio" name="Permission" value="1" checked > ใช่
<input type="radio" name="Permission" value="0" checked > ไม่ใช่
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><div align="center"></div></td>
<td><input type="submit" name="Submit" value=" บันทึก " onClick="window.location.href('ManagePerson.php');">
<input type="hidden" name="ready" value="ready">
<input name="Submit2" type="submit" id="Submit23" value="ยกเลิก" onClick=" window.back();">
<input type ="hidden" name ="person_Id" value ="<?=$p_Id?>"></td>
<td> </td>
</tr>
คนที่ทำไว้อ่ะคร่ะ ส่วนอื่นข้อมูลดึงขึ้นได้หมด ยกเว้น 3 จุดที่บอกอ่ะคร่ะ
Date :
2010-08-06 23:11:38
By :
lebellela
ลบพวก <tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
ออกก่อนดีมั้ยครับ มันลายตาหาบรรทัดที่ต้องแกไม่เจอ
Date :
2010-08-07 01:13:43
By :
blacklion
โอเครคร้า ^^
<?
//session_start();
//require_once("connect/connect.php");
$ServerName = "localhost";
$DatabaseName = "Training";
$User = "root";
$Password = "1234";
$Conn = mysql_connect($ServerName,$User,$Password) or die ("ไม่สามารถติดต่อกับเซิร์ฟเวอร์ได้");
mysql_select_db($DatabaseName,$Conn) or die ("ไม่สามารถติดต่อกับฐานข้อมูลได้");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<title>Training</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link href="sft.css" rel="stylesheet" type="text/css">
<?
$ServerName = "localhost";
$DatabaseName = "Training";
$User = "root";
$Password = "1234";
$Conn = mysql_connect($ServerName,$User,$Password) or die ("ไม่สามารถติดต่อกับเซิร์ฟเวอร์ได้");
mysql_select_db($DatabaseName,$Conn) or die ("ไม่สามารถติดต่อกับฐานข้อมูลได้");
//dbConnect();
$p_Id=$_GET["p_Id"];
//echo $p_Id;
$sql="SELECT * FROM person where p_Id='$p_Id'";
$result = mysql_query($sql) ;
$row = mysql_fetch_array($result);
$p_Code=$row["p_Code"];
$p_Title=$row["p_Title"];
$p_Fname=$row["p_Fname"];
$p_Lname=$row["p_Lname"];
$dept_Id=$row["dept_Id"];
$p_Tel=$row["p_Tel"];
$p_TelExt=$row["p_TelExt"];
$p_Email=$row["p_Email"];
$p_Username=$row["p_Username"];
$p_Password=$row["p_Password"];
$p_IsAdmin=$row["p_IsAdmin"];
/*echo $p_Code;
echo $p_Title;
echo $p_Fname;
echo $p_Lanme;
echo $dept_Id;
echo $p_Tel;
echo $p_TelExt;
echo $p_Email;
echo $p_Username;
echo $p_Password;
echo $p_IsAdmin;*/
//เริ่มรับค่าที่มาจาก Form มาใส่ตัวแปร
if(isset($_POST["ready"])){
$p_Code=$_POST["txtPersonCode"];
$p_Title=$_POST["cbtitle_th"];
$p_Fname=$_POST["txtPersonFirstname"];
$p_Lname=$_POST["txtPersonLastname"];
$dept_Id=$_POST["department"];
$p_Tel=$_POST["txtPersonTel"];
$p_TelExt=$_POST["txtPersonTelExt"];
$p_Email=$_POST["txtPersonEmail"];
$p_Username=$_POST["txtPersonUsername"];
$p_Password=$_POST["txtPersonPassword"];
$p_IsAdmin=$_POST["Permission"];
//echo $p_Code;
//echo $p_Title;
//echo $p_Fname;
//echo $p_Lname;
//echo $dept_Id;
//echo $p_Tel;
//echo $p_TelExt;
//echo $p_Email;
//echo $p_Username;
//echo $p_Password;
//echo $p_IsAdmin;
$SQL = "update Person set p_Code='$p_Code',p_Title='$p_Title',p_Fname='$p_Fname',p_Lname='$p_Lname',dept_Id='$dept_Id',p_Tel='$p_Tel',p_TelExt='$p_TelExt',p_Email='$p_Email',p_Username='$p_Username',p_Password='$p_Password',p_IsAdmin='$p_IsAdmin' where p_Id='$p_Id'";
//echo $SQL;
$result = mysql_query($SQL);
?>
<script language ="JavaScript" >
window.location = "ManagePerson.php";
</script>
<?
}
?>
<style type="text/css">
<!--
.style2 {font-family: Tahoma}
.style3 {
font-weight: bold;
font-size: 14px;
color: #3300CC;
}
body,td,th {
font-size: medium;
}
.style8 {
font-family: Tahoma;
font-size: 14px;
font-weight: bold;
}
.style9 {
font-size: 16px;
font-weight: bold;
color: #FFFFFF;
}
-->
</style>
</head>
<body bgcolor="#8A9299" text="#000000" link="#333333" vlink="#333333" alink="#666666" leftmargin="1" topmargin="1" marginwidth="1" marginheight="1"><!-- StatisticsCounter v:2.4.1 --> <noscript>
</noscript> <!-- StatisticsCounter -->
<!-- Start editing template here -->
<div align="center">
<span class="bg_green">
</span>
<table width="780" height="227" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="780" height="227" valign="top"><img src="images/banner.jpg" alt="" width="784" height="231"></td>
</tr>
</table>
<table width="780" height="38" border="0" cellpadding="0" cellspacing="0" background="images/2a.jpg">
<tr>
<td width="536"> <span class="style2"><span class="style3">ยินดีต้อนรับเข้าสู่ระบบจัดการการลงทะเบียนฝึกอบรมบุคลากรของธุรกิจผลิตรถยนต์</span></span></td>
<td width="244"> </td>
</tr>
</table>
<table width="536" height="411" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="536" height="411" background="images/bg2.jpg"><table width="779" border="0">
<form name="frmAdd" action="<?=$thisfilename?>" method="post" >
<tr>
<th width="72" scope="col"> </th>
<th width="126" scope="col"> </th>
<th width="208" scope="col"> </th>
<th width="104" scope="col"> </th>
<th width="208" scope="col"> </th>
<th width="35" scope="col"> </th>
</tr>
<tr>
<td colspan="6"><span class="style5 style2 style9">การจัดการข้อมูลบุคลากร</span></td>
</tr>
<tr>
<td> </td>
<td><span class="style8">รหัสบุคลากร</span></td>
<td><input name="txtPersonCode" type="text" id="txtPersonCode" value="<? echo $p_Code; ?>" size="25" maxlength="200"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><span class="style8">คำนำหน้าชื่อ</span></td>
<td><select name="cbtitle_th" id="select8" style="width:70px">
<option value="นาย" selected>นาย</option>
<option value="นาง">นาง</option>
<option value="นางสาว">นางสาว</option>
</select></td>
<tr>
<td> </td>
<td><span class="style8">ชื่อ</span></td>
<td><input name="txtPersonFirstname" type="text" id="txtPersonFirstname" value="<? echo $p_Fname; ?>" size="25" maxlength="200"></td>
<td><span class="style8">นามสกุล</span></td>
<td><input name="txtPersonLastname" type="text" id="txtPersonLastname" value="<? echo $p_Lname; ?>" size="25" maxlength="200"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><span class="style8">แผนก</span></td>
<td><select name="department" id="department">
<option value="Engineering">Engineering</option>
<option value="Cooperation">Cooperation</option>
<option value="Safety&Environment">Safety&Environment</option>
<option value="Human Relationship">Human Relationship</option>
<option value="Manufacturing Management">Manufacturing Management</option>
</select></td>
<tr>
<td> </td>
<td><span class="style8">เบอร์โทรศัพท์</span></td>
<td><input name="txtPersonTel" type="text" id="txtPersonTel" value="<? echo $p_Tel; ?>" size="25" maxlength="200"></td>
<td><span class="style8">เบอร์ต่อภายใน</span></td>
<td><input name="txtPersonTelExt" type="text" id="txtPersonTelExt" value="<? echo $p_TelExt; ?>" size="25" maxlength="200"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><span class="style8">อีเมลล</span>์</td>
<td><input name="txtPersonEmail" type="text" id="txtPersonEmail" value="<? echo $p_Email; ?>" size="25" maxlength="200"></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><span class="style8">ชื่อผู้ใช้ระบบ</span></td>
<td><input name="txtPersonUsername" type="text" id="txtPersonUsername" value="<? echo $p_Username; ?>" size="25" maxlength="200"></td>
<td><span class="style8">รหัสผ่าน</span></td>
<td><input name="txtPersonPassword" type="text" id="txtPersonPassword" value="<? echo $p_Password; ?>" size="25" maxlength="200"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><span class="style8">ผู้ดูแลระบบ</span></td>
<td><input type="radio" name="Permission" value="1" checked > ใช่
<input type="radio" name="Permission" value="0" checked > ไม่ใช่
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><div align="center"></div></td>
<td><input type="submit" name="Submit" value=" บันทึก " onClick="window.location.href('ManagePerson.php');">
<input type="hidden" name="ready" value="ready">
<input name="Submit2" type="submit" id="Submit23" value="ยกเลิก" onClick=" window.back();">
<input type ="hidden" name ="person_Id" value ="<?=$p_Id?>"></td>
<td> </td>
</tr>
รบกวนช่วยดูให้หน่อยนะคร่ะ ^^
Date :
2010-08-07 01:30:47
By :
lebellela
หาความแตกต่างเองนะครับ
Code (PHP)
<?
//session_start();
//require_once("connect/connect.php");
$ServerName = "localhost";
$DatabaseName = "Training";
$User = "root";
$Password = "1234";
$Conn = mysql_connect($ServerName,$User,$Password) or die ("ไม่สามารถติดต่อกับเซิร์ฟเวอร์ได้");
mysql_select_db($DatabaseName,$Conn) or die ("ไม่สามารถติดต่อกับฐานข้อมูลได้");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<title>Training</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link href="sft.css" rel="stylesheet" type="text/css">
<?
$ServerName = "localhost";
$DatabaseName = "Training";
$User = "root";
$Password = "1234";
$Conn = mysql_connect($ServerName,$User,$Password) or die ("ไม่สามารถติดต่อกับเซิร์ฟเวอร์ได้");
mysql_select_db($DatabaseName,$Conn) or die ("ไม่สามารถติดต่อกับฐานข้อมูลได้");
//dbConnect();
$p_Id=$_GET["p_Id"];
//echo $p_Id;
$sql="SELECT * FROM person where p_Id='$p_Id'";
$result = mysql_query($sql) ;
$row = mysql_fetch_array($result);
$p_Code=$row["p_Code"];
$p_Title=$row["p_Title"];
$p_Fname=$row["p_Fname"];
$p_Lname=$row["p_Lname"];
$dept_Id=$row["dept_Id"];
$p_Tel=$row["p_Tel"];
$p_TelExt=$row["p_TelExt"];
$p_Email=$row["p_Email"];
$p_Username=$row["p_Username"];
$p_Password=$row["p_Password"];
$p_IsAdmin=$row["p_IsAdmin"];
/*echo $p_Code;
echo $p_Title;
echo $p_Fname;
echo $p_Lanme;
echo $dept_Id;
echo $p_Tel;
echo $p_TelExt;
echo $p_Email;
echo $p_Username;
echo $p_Password;
echo $p_IsAdmin;*/
//เริ่มรับค่าที่มาจาก Form มาใส่ตัวแปร
if(isset($_POST["ready"])){
$p_Code=$_POST["txtPersonCode"];
$p_Title=$_POST["cbtitle_th"];
$p_Fname=$_POST["txtPersonFirstname"];
$p_Lname=$_POST["txtPersonLastname"];
$dept_Id=$_POST["department"];
$p_Tel=$_POST["txtPersonTel"];
$p_TelExt=$_POST["txtPersonTelExt"];
$p_Email=$_POST["txtPersonEmail"];
$p_Username=$_POST["txtPersonUsername"];
$p_Password=$_POST["txtPersonPassword"];
$p_IsAdmin=$_POST["Permission"];
//echo $p_Code;
//echo $p_Title;
//echo $p_Fname;
//echo $p_Lname;
//echo $dept_Id;
//echo $p_Tel;
//echo $p_TelExt;
//echo $p_Email;
//echo $p_Username;
//echo $p_Password;
//echo $p_IsAdmin;
$SQL = "update Person set p_Code='$p_Code',p_Title='$p_Title',p_Fname='$p_Fname',p_Lname='$p_Lname',dept_Id='$dept_Id',p_Tel='$p_Tel',p_TelExt='$p_TelExt',p_Email='$p_Email',p_Username='$p_Username',p_Password='$p_Password',p_IsAdmin='$p_IsAdmin' where p_Id='$p_Id'";
//echo $SQL;
$result = mysql_query($SQL);
?>
<script language ="JavaScript" >
window.location = "ManagePerson.php";
</script>
<?
}
?>
<style type="text/css">
<!--
.style2 {font-family: Tahoma}
.style3 {
font-weight: bold;
font-size: 14px;
color: #3300CC;
}
body,td,th {
font-size: medium;
}
.style8 {
font-family: Tahoma;
font-size: 14px;
font-weight: bold;
}
.style9 {
font-size: 16px;
font-weight: bold;
color: #FFFFFF;
}
-->
</style>
</head>
<body bgcolor="#8A9299" text="#000000" link="#333333" vlink="#333333" alink="#666666" leftmargin="1" topmargin="1" marginwidth="1" marginheight="1"><!-- StatisticsCounter v:2.4.1 --> <noscript>
</noscript> <!-- StatisticsCounter -->
<!-- Start editing template here -->
<div align="center">
<span class="bg_green">
</span>
<table width="780" height="227" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="780" height="227" valign="top"><img src="images/banner.jpg" alt="" width="784" height="231"></td>
</tr>
</table>
<table width="780" height="38" border="0" cellpadding="0" cellspacing="0" background="images/2a.jpg">
<tr>
<td width="536"> <span class="style2"><span class="style3">ยินดีต้อนรับเข้าสู่ระบบจัดการการลงทะเบียนฝึกอบรมบุคลากรของธุรกิจผลิตรถยนต์</span></span></td>
<td width="244"> </td>
</tr>
</table>
<table width="536" height="411" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="536" height="411" background="images/bg2.jpg"><table width="779" border="0">
<form name="frmAdd" action="<?=$thisfilename?>" method="post" >
<tr>
<th width="72" scope="col"> </th>
<th width="126" scope="col"> </th>
<th width="208" scope="col"> </th>
<th width="104" scope="col"> </th>
<th width="208" scope="col"> </th>
<th width="35" scope="col"> </th>
</tr>
<tr>
<td colspan="6"><span class="style5 style2 style9">การจัดการข้อมูลบุคลากร</span></td>
</tr>
<tr>
<td> </td>
<td><span class="style8">รหัสบุคลากร</span></td>
<td><input name="txtPersonCode" type="text" id="txtPersonCode" value="<? echo $p_Code; ?>" size="25" maxlength="200"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><span class="style8">คำนำหน้าชื่อ</span></td>
<td><select name="cbtitle_th" id="select8" style="width:70px">
<option value="นาย" <? if($p_Title=="นาย") echo"selected"; ?>>นาย</option>
<option value="นาง" <? if($p_Title=="นาง") echo"selected"; ?>>นาง</option>
<option value="นางสาว" <? if($p_Title=="นางสาว") echo"selected"; ?>>นางสาว</option>
</select></td>
<tr>
<td> </td>
<td><span class="style8">ชื่อ</span></td>
<td><input name="txtPersonFirstname" type="text" id="txtPersonFirstname" value="<? echo $p_Fname; ?>" size="25" maxlength="200"></td>
<td><span class="style8">นามสกุล</span></td>
<td><input name="txtPersonLastname" type="text" id="txtPersonLastname" value="<? echo $p_Lname; ?>" size="25" maxlength="200"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><span class="style8">แผนก</span></td>
<td><select name="department" id="department">
<option value="Engineering" <? if($dept_Id=="Engineering") echo"selected"; ?>>Engineering</option>
<option value="Cooperation" <? if($dept_Id=="Cooperation") echo"selected"; ?>>Cooperation</option>
<option value="Safety&Environment" <? if($dept_Id=="Safety&Environment") echo"selected"; ?>>Safety&Environment</option>
<option value="Human Relationship" <? if($dept_Id=="Human Relationship") echo"selected"; ?>>Human Relationship</option>
<option value="Manufacturing Management" <? if($dept_Id=="Manufacturing Management") echo"selected"; ?>>Manufacturing Management</option>
</select></td>
<tr>
<td> </td>
<td><span class="style8">เบอร์โทรศัพท์</span></td>
<td><input name="txtPersonTel" type="text" id="txtPersonTel" value="<? echo $p_Tel; ?>" size="25" maxlength="200"></td>
<td><span class="style8">เบอร์ต่อภายใน</span></td>
<td><input name="txtPersonTelExt" type="text" id="txtPersonTelExt" value="<? echo $p_TelExt; ?>" size="25" maxlength="200"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><span class="style8">อีเมลล</span>์</td>
<td><input name="txtPersonEmail" type="text" id="txtPersonEmail" value="<? echo $p_Email; ?>" size="25" maxlength="200"></td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><span class="style8">ชื่อผู้ใช้ระบบ</span></td>
<td><input name="txtPersonUsername" type="text" id="txtPersonUsername" value="<? echo $p_Username; ?>" size="25" maxlength="200"></td>
<td><span class="style8">รหัสผ่าน</span></td>
<td><input name="txtPersonPassword" type="text" id="txtPersonPassword" value="<? echo $p_Password; ?>" size="25" maxlength="200"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><span class="style8">ผู้ดูแลระบบ</span></td>
<td><input type="radio" name="Permission" value="1" <? if($p_IsAdmin==1) echo"checked"; ?> > ใช่
<input type="radio" name="Permission" value="0" <? if($p_IsAdmin==0) echo"checked"; ?> > ไม่ใช่
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><div align="center"></div></td>
<td><input type="submit" name="Submit" value=" บันทึก " onClick="window.location.href('ManagePerson.php');">
<input type="hidden" name="ready" value="ready">
<input name="Submit2" type="submit" id="Submit23" value="ยกเลิก" onClick=" window.back();">
<input type ="hidden" name ="person_Id" value ="<?=$p_Id?>"></td>
<td> </td>
</tr>
Date :
2010-08-07 10:05:42
By :
tinthai
Load balance : Server 03