|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /var/www/html/pathumthani_vc/faq/admin/ |
Upload File : |
<?
session_start();
if(session_is_registered("uuname")){
include("../../application/inc/conndb.inc.php");
//include("conndb.inc.php");
$tbname="faq";
$sql="select * from $tbname where id='$id'";
$db=mysql_db_query($dbname,$sql);
$rs=mysql_fetch_array($db);
$id=$rs[id];
$question=$rs[question];
$answer=$rs[answer];
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>:::::: กลุ่มงานพัฒนาระบบราชการ :::::</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link href="../style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #CCCCCC;
}
-->
</style>
<link href="../style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.bold {
color: #000000;
font-family: Tahoma;
font-size: 12px;
font-weight: bold;
}
.normal {
color: #000000;
font-family: Tahoma;
font-size: 11px;
font-weight: normal;
}
-->
</style>
</head>
<body onLoad="getTime()">
<div align="center"> <table width="640" border="0" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
<tr>
<td><table width="640" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="6%"><img src="../images/vc_01.gif" width="131" height="40"></td>
<td width="94%" bgcolor="#4752A3"> </td>
</tr>
</table></td>
</tr>
<tr>
<td><img src="../images/vc_03.gif" width="131" height="118"><img src="../images/vc_04.gif" width="131" height="118"><img src="../images/vc_05.gif" width="131" height="118"><img src="../images/vc_06.gif" width="131" height="118"><img src="../images/vc_07.gif" width="116" height="118"></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><div align="center" class="bold"><strong>ปรับปรุง FAQ </strong></div></td>
</tr>
<tr>
<td><hr size="1" class="normal"></td>
</tr>
<tr>
<td><form name="form1" method="post" action="update.php">
<table width="96%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="30%" valign="top"><div align="right" class="bold">คำถาม : </div></td>
<td width="70%"><textarea name="question" cols="50" rows="5" wrap="virtual" class="normal" id="question"><?=$question?>
</textarea>
<input name="id" type="hidden" class="normal" id="id" value="<?=$id?>"></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td valign="top"><div align="right" class="bold">คำตอบ : </div></td>
<td><textarea name="answer" cols="50" rows="5" wrap="virtual" class="normal" id="answer"><?=$answer?>
</textarea></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><input name="Submit" type="submit" class="bold" value="ปรับปรุง FAQ">
<input name="Submit2" type="reset" class="bold" value="เริ่มใหม่"></td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td><hr size="1" class="normal"></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</div>
</body>
</html>
<?
}else{echo"<meta http-equiv=\"refresh\" content=\0; url=login.php\">";}
?>