<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>Webboard</title> <link href="stylesheet.css" rel="stylesheet" type="text/css"/> <script language="javascript"> function addEmo(num) { document.frmReply.detail.value = document.frmReply.detail.value + '[' + num + ']'; } function checkNull () { if (document.frmReply.detail.value=="" || document.frmReply.detail.value==null){ alert ('Please insert subject !'); document.frmReply.detail.focus(); return false; } document.frmReply.submit(); } </script> </head> <body> <br/> <?php include ("connect.php"); include ("function.php"); $sql = "update webboard_post set view=view+1 where question_id=".$_REQUEST['id']; $query = mysql_query($sql) or die (mysql_error()); $sql = "select * from webboard_post where question_id=".$_REQUEST['id']; $query = mysql_query($sql) or die (mysql_error()); $row = mysql_fetch_array($query); ?> <table border="0" cellspacing="0" cellpadding="3"align="center" bgcolor="FAEBD7"> <tr height="300"> <td width="1010" background="images_1/images/branner1.gif" ></td> </tr> <tr height="35"> <td> <a href="index.php">Home</a>  |   <a href="Profiles.php" >Profiles</a>  |   <a href="Album.php" >Album</a>  |   <a href="About.php" >About</a>  |   <a href="Photo.php" >Photo</a>  |   <a href="webboard.php">Webboard</a> </td> </tr> </table> <table width="1012" class="square" cellpadding="4" cellspacing="1" align="center" valign="top"> <tr> <td> <a href="index.php"><br>   <u><font size="3px"color="FF3333" face ="Verdana, Arial, Helvetica, sans-serif">กลับไปสู่หน้าแรก</font></u></a> </td> </tr> <TR> <TD></TD> </TR> <TR><TD><TABLE BORDER WIDTH=100%></TR> </table> <table width="700" class="square" cellpadding="4" cellspacing="1" align="center"> <tr align="right"> <td width="20%" class="square" align="center">Subject</td> <td width="80%" class="square" align="left"><?php echo $row['subject']?></td> </tr> <tr align="right"> <td width="20%" class="square" align="center">Detail</td> <td width="80%" class="square" align="left"> <?php echo showEmo (badword($row['subject_detail']))?> </td> </tr> <? if ($row['attach_file']<>"") { ?> <tr align="right"> <td width="20%" class="square" align="center">Attach file</td> <td width="80%" class="square" align="left"> <?php echo showAttachfile($row['attach_file']) ?> </td> </tr> <? } ?> <tr align="right"> <td width="20%" class="square" align="center">Name</td> <td width="80%" class="square" align="left"><?php echo $row['name']?></td> </tr> <tr> <td width="100" colspan="2" class="square" align="center"> Date : <?php echo dateShow ($row['datadate']) ?> IP : <?php echo showIP ($row['ip_address']) ?> View : <?php echo $row['view'] ?> Reply : <?php echo $row['reply'] ?> </td> </tr> </table><br/> <?php $sql = "select * from webboard_reply where question_id=".$_REQUEST['id']; $query = mysql_query($sql) or die (mysql_error()); $num = mysql_num_rows($query); if ($num>0){ for($i=0;$i<$num;$i++){ $row = mysql_fetch_array($query); ?> <table width="700" class="square" cellpadding="4" cellspacing="1" align="center"> <tr align="center"> <td width="20%" class="square" align="center">Detail</td> <td width="80%" class="square" align="left"> <?php echo showEmo(badword($row['reply_detail'])) ?> </td> </tr> <? if ($row['attach_file']<>"") { ?> <tr align="center"> <td width="20%" class="square" align="center">Attach file</td> <td width="80%" class="square" align="left"> <?php echo showAttachfile ($row['attach_file']) ?> </td> </tr> <? } ?> <tr align="center"> <td width="20%" class="square" align="center">Name</td> <td width="80%" class="square" align="left"><?php echo $row['name'] ?></td> </tr> <br/> <tr> <td width="100%" colspan="2"class="square" align="center"> Date : <?php echo dateShow ($row['datadate']) ?> IP : <?php echo showIP($row['ip_address']) ?> </td> </tr> </table><br/> <? } } ?><br/> <form id="frmReply" name="frmReply" enctype="multipart/form-data" method="post" action="insertreply.php" onsubmit="checkNull();return false;"> <table width="700" class="square" cellpadding="4" cellspacing="1" align="center"> <tr align="right"> <td width="20%" class="square" align="center">Detail</td> <td width="20%" class="square" align="left"> <textarea name="detail" rows="4" class="verdana" id="detail" style="width : 500px"></textarea> </td> </tr> <tr align="right"> <td width="20%" class="square" align="center">Emo</td> <td width="80%" class="square" align="left"> <? for($i=1;$i<15;$i++) { ?> <img src="emo/<?php echo $i?>.gif" onclick="addEmo (<?php echo $i?>)" width="8%"/> <? } ?> </td> </tr> <tr> <td width="20%" class="square" align="center">Attach file</td> <td width="80%" class="square" align="left"> <input type="file" id="attach" name="attach" class="verdana" /> </td> </tr> <tr> <td width="20%" class="square" align="center">Name</td> <td width="80%" class="square" align="left"> <input type="text" id="name" name="name" style="width : 444px" class="verdana" /> <input type="hidden" id="id" name="id" value="<? echo $_REQUEST['id'] ?>" /> <input type="submit" value="Post" class="verdana" /> </td> </tr> </table><br> </form> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง