<?php <? $id_type=$_GET['id_type']; include "function.php"; include "connect.php"; $sql="select * from tb_new where id_new='$id_view' "; $result=mysql_db_query($dbname,$sql); $r=mysql_fetch_array($result); $id_new=$r[id_new]; $title_new=$r[title_new]; $detail_new=$r[detail_new]; $type_new=$r[type_new]; $photo_new=$r[photo_new]; $date_new=$r[date_new]; $time_new=$r[time_new]; ?> <html> <head><title> ระบบจัดการข่าวสาร </title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css"> <!-- body,td,th { font-family: Arial, Helvetica, sans-serif; } --> </style></head> <body> <H2> :: ระบบจัดการข่าวสาร :: </H2> <TABLE WIDTH="80%" CELLSPACING="3" CELLPADDING="5"> <TR> <TD BGCOLOR="#D4D4D4"> <? echo "<B>$newtype[$type_new] >> $title_new <BR>"; echo "<B>$date_new $time_new <BR>"; ?> </TD> </TR> <TR> <TD BGCOLOR="#F2F2F2"> <? if ($photo_new<>"") { echo "<CENTER><IMG SRC='photo/$photo_new'></CENTER><BR>"; } echo nl2br($detail_new); ?> </TD> </TR> </TABLE> </body> </html> ?>
<?php <html> <head><title> ระบบจัดการข่าวสาร </title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css"> <!-- body,td,th { font-family: Arial, Helvetica, sans-serif; } --> </style></head> <body> <H2> :: ระบบจัดการข่าวสาร :: </H2> <? include "function.php"; include "connect.php"; for ($i=1;$i<=count($newtype);$i++) { echo "<B>$newtype[$i]</B><BR>"; echo "<UL>"; $sql="select * from tb_new where type_new='$i' "; $result=mysql_db_query($dbname,$sql); $total=mysql_num_rows($result); $sql="select * from tb_new where type_new='$i' order by id_new desc limit 0,5"; $result=mysql_db_query($dbname,$sql); while($r=mysql_fetch_array($result)) { $id_new=$r[id_new]; $title_new=$r[title_new]; $type_new=$r[type_new]; $date_new=$r[date_new]; $time_new=$r[time_new]; echo "<LI>[$date_new] <A HREF='view.php?id_view=$id_new' TARGET='_blank'>$title_new</A></LI>"; } if ($total>=5) { echo "<LI> <A HREF='list.php?id_type=$i'>more...</A> </LI>"; } echo "</UL>"; } ?> </body> </html> ?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง