0byt3m1n1-V2
Path:
/
home
/
bangtoey
/
domains
/
bangtoey.go.th
/
public_html
/
webboard
/
[
Home
]
File: admindel_reply.php
<? session_start(); if($user==""){ $message = "กรุณา Login ก่อน."; $url = "../admin/index.php"; include("../admin/alert.php"); exit; } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><!-- InstanceBegin template="/Templates/template_a.dwt.php" codeOutsideHTMLIsLocked="false" --> <head> <!-- InstanceBeginEditable name="doctitle" --> <!-- InstanceEndEditable --> <?php require_once('../admin/Connections/conndb.php'); mysql_select_db($database_conndb, $conndb); ?> <title>องค์การบริหารส่วนตำบลบางเตย ที่อยู่ 8/8 หมู่2 ตำบลบางเตย อำเภอเมืองฉะเชิงเทรา จังหวัดฉะเชิงเทรา 24000 ::www.bangtoey.go.th</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-874"> <link href="../styles.css" rel="stylesheet" type="text/css"> <!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable --> <style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-color: #3CFFFF; } --> </style> <!--styles --> <link href="../styles.css" rel="stylesheet" type="text/css" /> <link href="../css/Hover%20Buttons.css" rel="stylesheet" type="text/css"/> <link href="../css/Hoverable-Sidenav.css" rel="stylesheet" type="text/css"/> <!--<script src="https://platform-api.sharethis.com/js/sharethis.js#property=5d255a83d97c100012d80679&product='inline-share-buttons' async='async" type='text/javascript'> --> </script> <!--styles --> <!--menutop hover --> <link href="../imagehover.css-master/css/demo-page.css" rel="stylesheet" media="all"> <link href="../imagehover.css-master/css/imagehover.min.css" rel="stylesheet" media="all"> <link rel='shortcut icon' type='image/x-icon' href='/favicon.ico' /> <!--end --> <style type="text/css"> <!-- a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } .style6 {color: #FFFFFF} --> </style></head> <body background="../images/0bg1.png" style="background-repeat:no-repeat; background-position:top"> <!--<div id="mySidenav" class="sidenav"> <a href="http://new.huayyai.go.th/index.php" id="about"> </a> <a href="http://new.huayyai.go.th/news.php?cat_id=1" id="blog"> </a> <a href="http://new.huayyai.go.th/news.php?cat_id=4" id="projects"> </a> <a href="http://new.huayyai.go.th/albums/index.php" id="contact"> </a> </div> --> <!-- content --> <div align="center"> <table width="950" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center" valign="top"><tr> <td height="650" align="center" valign="top" background="../images/head-1.png" style="background-repeat:no-repeat"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="515" align="center" valign="top"> </td> </tr> <tr> <td height="364" align="center" valign="top"><iframe src="/title_head.html" width="980" height="335" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe></td> </tr> <tr> <td align="center" valign="top"><iframe src="/menu-top.html" width="980" height="53" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe></td> </tr> <tr> <td height="150" align="center" valign="top"> </td> </tr> </table></td> </tr> </td> </tr> <tr> <td align="center" valign="top"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center" valign="top"> </td> </tr> <tr> <td align="center" valign="top"><!-- InstanceBeginEditable name="EditRegion3" --> <table width="750" border="0" cellspacing="0" cellpadding="0"> <TR> <TD class="title2"><div align="center"><img src="../images/botton/borad.png" width="640" height="78"></div></TD> </TR> <tr> <td><div align="center"></div></td> </tr> <tr> <td><div align="center"> <? include("./config.inc.php"); //ตั้งค่าต่างๆของเวปบอร์ด include("./function.php"); //ฟังก์ชั่นที่ใช้ในเวปบอร์ด ?> </div></td> </tr> <tr align="center" > <td align="left" class="styles1"> </td> </tr> <tr align="center" > <td align="left" class="styles1"><div align="right"><a href="../admin/main.php" class="styles2">หน้า Admin</a> | <a href="admin.php" class="styles2">กระดานเสวนา </a>| <a href="../admin/signout.php" class="styles2">ออกจากระบบ </a></div></td> </tr> <tr> <td> </td> </tr> <tr> <td><div align="center"><font face="MS Sans Serif, Tahoma, sans-serif"> <? // อ่านข้อมูลจากไฟล์ คำถามขึ้นมาแสดง if(file_exists("./$dataDir/$No.txt")) { $FILE=file("./$dataDir/$No.txt"); for ($i=0;$i<count($FILE);$i++){ echo $FILE[$i]; } } echo "<br>"; // ตรวจสอบว่ามีไฟล์ คำตอบ หรือไม่ ถ้ามีให้อ่านและแสดงคำตอบ if(file_exists("./$dataDir/R$No.txt")) { $FReply=file("./$dataDir/R$No.txt"); for ($i=0 ; $i<sizeof($FReply) ; $i++) { $display=explode("||",$FReply[$i]); // แบ่งข้อมูลออกเป็น ฟิลด์ ย่อย // ถ้าฟิลด์ที่ 0 ของข้อมูลที่แบ่งออกมา มีค่าไม่ตรงกับ "IS_reply" (ตัวแบ่งที่สร้างไว้) // ให้แสดงข้อมูลในบรรทัดนั้นๆ กล่าวคือถ้าตรงกัน จะไม่แสดง เพราะฉะนั้นบรรทัดที่มีข้อความว่า "IS_reply" จึงไม่ปรากฎออกมาให้เห็น if(substr($display[0],0,8) != "IS_reply"){ echo $FReply[$i]; }else{ $N = substr($display[0],8); echo "[ <a href=\"./edit.php?key=$key&select=1&admin_Q=$No&admin_R=$N\" class=\"styles2\">ลบคำตอบที่ $N</a> ]<br><br>\n"; } }//จบลูป for i }//จบ if ?> </font></div></td> </tr> </table> <!-- InstanceEndEditable --></td> </tr> </table></td> </tr> <tr> <td align="center" valign="top"> </td> </tr> <tr> <td align="center" valign="top"> </td> </tr> <tr> <td align="center" valign="top" style="background-repeat:no-repeat"><img src="../images/foot.png"></td> </tr> </table> </div> <!-- end_content --> <tr><td><a style="display:scroll;position:fixed;bottom:5px;right:5px;" class="backtotop" href="#top" rel="nofollow" title="Back to Top"><img src="../images/up.png" border="0" /></a></td> </tr> <map name="Map6" id="Map6"><area shape="rect" coords="210,1,302,41" href="http://www.tratlocal.go.th/index.php" target="_blank" /> </map> </body> <!-- InstanceEnd --></html>
©
2018.