|
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 order by id asc";
$db=mysql_db_query($dbname,$sql);
$ro=mysql_num_rows($db);
?>
<!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">
<!--
.style24 {
color: #FFCC00;
font-weight: bold;
}
.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>
<script language="JavaScript" type="text/JavaScript">
<!--
function del(){
if(confirm("Do you want to DELETE this data ?")== true){ return true;}
else{ return false;}
}
function edit(){
if(confirm("Do you want to EDIT this data ?")== true ){ return true;}
else{ return false;}
}
//-->
</script>
<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><table width="640" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr bgcolor="#000033">
<td width="1001" height="20" bgcolor="#000033">
<div align="center" class=" style24">ถาม/ตอบ<br>
แนวทางการดำเนินการ คำรับรองปฏิบัติราชการปี 2549<br>
กพร .สพฐ.</div></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
<?
for($i=0;$i<$ro;$i++){
$rs=mysql_fetch_array($db);
$id=$rs[id];
$question=$rs[question];
$answer=$rs[answer];
?>
<table width="640" border="0" cellpadding="1" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td align="left" bgcolor="#AABBCC" class="bold"> คำถาม : <?=$question?></td>
</tr>
<tr>
<td bgcolor="#EFEFEF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="4%"> </td>
<td width="96%" align="left" class="bold">คำตอบ : <?=$answer?></td>
</tr>
</table>
<?
echo "<br><a href=delete.php?id=$id onClick=\"return del(this)\">ลบ</a> <a href=edit.php?id=$id onClick=\"return edit(this)\">แก้ไข</a>";
}
?> </td>
</tr>
</table></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><div align="center"><a href="add.php">เพิ่ม FAQ ใหม่</a> </div></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><div align="center"><a href="logout.php">ออกจากระบบ</a></div></td>
</tr>
</table>
</div>
</body>
</html>
<?
}else{echo "<meta http-equiv=\"refresh\" content=\"0; url=login.php\">";} ?>