|
|
|
ช่วยดู code ให้หน่อยครับ ทำไมมันถึงไม่ยอมเปลี่ยนครับ |
|
|
|
|
|
|
|
code อันนี้ครับ
<html><head>
<title>ระบบจัดการข้อสอบออนท์ไลท์ มหาวิทยาลัยราชภัฏนครปฐม</title>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<meta name="GENERATOR" content="Microsoft FrontPage 12.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<link href="../script/template_css.css" type="text/css" rel="stylesheet">
<style type="text/css">
<!--
.style3 {color: #666666}
#Layer1 {
position:absolute;
left:810px;
top:62px;
width:59px;
height:60px;
z-index:1;
}
-->
</style>
</head>
<body>
<div><a id="top" name="top"></a>
<table width="100%" align="center" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td><img src="../image/space.gif" width="775" height="1"></td></tr>
<tr>
<td>
<div class="background">
<center>
<table width="775" background="../image/center.jpg" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="26"><img src="../image/left.jpg" width="26" height="129"></td>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="title" style="padding-top: 14px;" colspan="2" height="100">
<table style="border-collapse: collapse;" id="AutoNumber1" width="100%" border="0" bordercolor="#111111" cellpadding="0" cellspacing="0" height="55">
<tbody><tr>
<td class="title" width="31%" height="55">
<p align="center">ระบบจัดการข้อสอบ<br>
ออนท์ไลน์</p> </td>
<td width="69%" height="55" valign="bottom"> <a href="" target="_blank" class="title">มหาวิทยาลัยราชภัฏนครปฐม</a></td>
</tr>
</tbody></table>
</td></tr>
<tr>
<td width="400" height="29">
<div id="search">
<form method="get" action="http://www.google.com/search" name="frmsearchgg" target="_blank">
<div class="search" align="left">
<input name="ie" value="windows-874" type="hidden">
<input name="domains" value="" type="hidden">
<input name="sitesearch" value="" type="hidden">
<input class="inputbox" id="mod_search_searchword" onBlur="if(this.value=='') this.value='ค้นหา...';" onFocus="if(this.value=='ค้นหา...') this.value='';" size="20" name="q" value="ค้นหา..." type="text">
</div>
</form>
</div>
</td>
<td class="mainlevel-nav" width="100%" height="29" valign="bottom">
<table class="moduletable" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td align="left">
<ul id="mainlevel-nav">
<li>
กลับไปหน้าแรก</li>
</ul></td></tr></tbody></table></td></tr></tbody></table></td>
<td width="26"><img src="../image/right.jpg" width="26" height="129"></td></tr></tbody></table>
<table width="775" align="center" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="11" background="../image/shadowl.jpg" height="25">
<div></div></td>
<td style="border-top: 5px solid rgb(255, 255, 255); border-bottom: 1px solid rgb(153, 153, 153);" bgcolor="#f1f1f1" height="25"><span class="pathway">ขณะนี้คุณอยู่ที่ : แำก้ไขข้อมูลอาจารย์ </span></td>
<td style="border-top: 5px solid rgb(255, 255, 255); border-bottom: 1px solid rgb(153, 153, 153);" align="right" bgcolor="#f1f1f1" height="25">
<div class="date">
<script language=JavaScript
src="../script/date.js"></script>
</div></td>
<td width="11" align="right" background="../image/shadowr.jpg" height="25"> </td></tr></tbody></table>
<table width="775" align="center" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="padding-left: 8px; background-repeat: repeat-y;" background="../image/shadowl.jpg" valign="top"> </td>
<td style="background-repeat: repeat-y;" background="file:///C|/AppServ/www/image/lb.gif" valign="top">
<div class="leftrow" style="width: 168px; height: 360px;">
<table width="96%" cellpadding="0" cellspacing="0" class="moduletable">
<tbody>
<tr>
<th valign="top"><center>
<span class="style3">Main Menu</span>
</center> </th></tr>
<tr align="left">
<td><a class="mainlevel" href="index.php">หน้าแรก</a></td>
</tr>
<tr align="left">
<td><a class="mainlevel" href="add_tea.php">เพิ่มข้อมูลอาจารย์</a></td>
</tr>
<tr align="left">
<td><a class="mainlevel" href="delete_tea.php">ลบข้อมูลอาจารย์</a></td>
</tr>
<tr align="left">
<td><a class="mainlevel" href="edit_tea.php">แก้ไขข้อมูลอาจารย์</a></td>
</tr>
<tr align="left">
<td> </td>
</tr>
<tr align="left">
<td><div align="center"><a class="mainlevel" href="../logout.php">ออกจากระบบ</a></div></td>
</tr>
<tr>
<td> </td>
</tr></tbody></table>
</div></td>
<td width="100%" bgcolor="#fafafa" valign="top">
<div class?main?="">
<table width="100%" height="361" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="border-top: 3px solid rgb(255, 255, 255);" width="100%" bgcolor="#f1f1f1" valign="top">
<?
include ("config.inc.php");
if ($tea_id>0){
$sql = "UPDATE `npru_student`,`teacher`
SET `tea_title` = '$tea_title',
'tea_name` = '$tea_name',
'tea_room'='$tea_room',
'tea_mobile'='$tea_mobile'
WHERE `teacher`,`tea_id` ='$tea_id' ;";
mysql_query($sql);
}
$sql = "SELECT * FROM `teacher`";
$result = mysql_query($sql);
echo"<table width='50%' border='1' bordercolor='#A59A1B' bgcolor='#D3BC38' ><tr align='center'><td><b>รหัส</b></td>
<td> <b>คำนำหน้า</b></td>
<td><b>ชื่อ-นามสกุล</b></td>
<td><b>ห้อง</b></td>
<td><b>เบอร์โทรศัพท์</b>
<td><b></b>
</td></tr>";
while($row=mysql_fetch_array($result)){
$tea_id = $row["tea_id"];
$tea_title = $row["tea_title"];
$tea_name = $row["tea_name"];
$tea_room = $row["tea_room"];
$tea_mobile = $row["tea_mobile"];
echo "<tr bgcolor='#D3BC38' align='center'><form id='form1' name='form1' method='post' action='edit_tea1.php'>";
echo"<td>$tea_id<input name='tea_id' type='hidden' value='$tea_id'></td><td><input name='tea_title' type='text' value='$tea_title'></td>";
echo "<td><input name='tea_name' type='text' value='$tea_name'></td>";
echo "<td><input name='tea_room' type='text' value='$tea_room'></td>";
echo "<td><input name='tea_mobile' type='text' value='$tea_mobile'></td>";
echo "<td><input type='submit' name='Delete' id='Edit' value='Edit' onclick=" ?>"return confirm('คุณแน่ใจว่าต้องการแก้ไขข้อมูลนี้ ? ')" /><? "/>";
echo "</td></form></tr>";
}
echo "</table>";
?>
</td>
</tr>
<tr bgcolor="#f1f1f1">
<td style="border-top: 3px solid rgb(255, 255, 255);" colspan="3" width="100%" align="center" valign="top"> </td></tr></tbody></table>
</div></td>
<td style="background-repeat: repeat-y;" background="../image/rb.gif" valign="top"> </td>
<td style="padding-right: 8px; background-repeat: repeat-y;" background="../image/shadowr.jpg" valign="top"> </td></tr></tbody></table>
<table width="775" background="../image/center2.jpg" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="26"><img src="../image/left2.jpg" width="26" height="92"></td>
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td width="30" align="left"><a href="#top">
<img alt="ขึ้นไปข้างบนสุด" src="../image/ltop.jpg" width="30" border="0" height="20"></a> </td>
<td align="middle">
<div class="footer">
<div align="center"><b>Copyright © 2011 ALL RIGHTS RESERVED</b><br>
คณะวิทยาศาสตร์และเทคโนโลยี มหาวิทยาลัยราชภัฏนครปฐม
</div>
</div></td>
<td width="30" align="right"><a href="#top">
<img alt="ขึ้นไปข้างบนสุด" src="../image/rtop.jpg" width="30" border="0" height="20"></a></td></tr></tbody></table></td>
<td width="26">
<img src="../image/right2.jpg" width="26" height="92"></td></tr></tbody></table></center></div></td></tr></tbody></table></div>
</body></html>
|
|
|
|
|
Date :
2011-10-03 17:05:13 |
By :
ออฟ มือใหม่ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 01
|