<!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=windows-874" /> <title>Untitled Document</title> </head> <body> <table width="1308" height="514" border="1"> <tr> <td width="124" height="57"><a href="add_from.php"></a></td> <td width="905"> </td> <td width="68"> </td> <td width="183"> </td> </tr> <tr> <td height="449"><? include("menu.php");?></td> <td><div align="top"> <? switch ($_GET["menupage"]) { case "funny": include("list_all.php"); break; case "sport": include("sport_list.php"); break; case "horr": include("horr_list.php"); break; case "master": include("master_list.php"); break; case "tech": include("tech_list.php"); break; case "news": include("news_list.php"); break; case "hot": include("hot_list.php"); break; case"add": include("add_from.php"); break; default: include("hot_list.php"); } ?> </div> </td> <td colspan="2"> </td> </tr> </table> </body> </html>
<head> <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <title>menu</title> </head> <body> <table width="93" height="511" border="0" align="left" cellpadding="0" cellspacing="0"> <tr> <td height="31"><div align="left"><a href="index.php?menupage=funny">- ตลก</a></div></td> </tr> <tr> <td height="29"><div align="left"><a href="index.php?menupage=sport">- กีฬา</a></div></td> </tr> <tr> <td height="29"><div align="left"><a href="index.php?menupage=horr">- สยอง</a></div></td> </tr> <tr> <td height="29"><div align="left"><a href="index.php?menupage=master">- สื่อการสอน</a></div></td> </tr> <tr> <td height="29"><a href="index.php?menupage=tech">- เทคโนโลยี</a></td> </tr> <tr> <td height="29"><a href="index.php?menupage=news">- ข่าวดัง</a></td> </tr> <tr> <td height="29"><a href="index.php?menupage=hot">- ร้อนแรง</a></td> </tr> <tr> <td height="20"><a href="add_from.php">เพิ่มคลิป</a><a href="index.php?menupage=add"></a></td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> </table> </body> </html>
<head> <? //include("admin_check.php");?> <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <title>clip all</title> </head> <body> <? include("my_connect.php"); $strSQL = "SELECT * FROM clip"; //ORDER BY fun_id DESC" ; $objQuery=mysql_query($strSQL) or die ("error Query[".$strSQL."]"); $Num_Rows = mysql_num_rows($objQuery); $Per_Page = 1; // Per Page $Page = $_GET["Page"]; if(!$_GET["Page"]) { $Page=1; } $Prev_Page = $Page-1; $Next_Page = $Page+1; $Page_Start = (($Per_Page*$Page)-$Per_Page); if($Num_Rows<=$Per_Page) { $Num_Pages =1; } else if(($Num_Rows % $Per_Page)==0) { $Num_Pages =($Num_Rows/$Per_Page) ; } else { $Num_Pages =($Num_Rows/$Per_Page)+1; $Num_Pages = (int)$Num_Pages; } $strSQL .=" ORDER BY id DESC LIMIT $Page_Start , $Per_Page"; $objQuery = mysql_query($strSQL); ?> <table width="1101" height="69" border="0" cellpadding="2"> <tr> <th width="645" height="30"><div align="left">ชื่อ</div> </div></th> <th width="195">วันที่</div></th> <th width="68">ดู</div></th> <th width="78">ผู้ทำรายการ</th> <th width="33">แก้ไข</th> <th width="44">ลบ</th> </tr> <? while($objResult = mysql_fetch_array($objQuery)) { ?> <tr> <td height="33"><?=$objResult["name"];?></td> <td><?=$objResult["clip_now"];?> <div align="center"></div> <div align="center"></div></td> <td> <div align="center"> <?=$objResult["view"];?> </div></td> <td> <div align="center"> <?=$objResult["user"];?> </div></td> <td ><a href="update_from.php?code=<?=$objResult["id"];?>">แก้ไข</a></td> <td ><a href="JavaScript:if(confirm('Confirm Delete?')==true){window.location='delete.php?code=<?=$objResult["id"];?>';}">ลบ</a></td> </tr> <? } ?> </table> <br> ทั้งหมด <?= $Num_Rows;?> Record : <?=$Num_Pages;?> Page : <? if($Prev_Page) { echo " <a href='$_SERVER[SCRIPT_NAME]?Page=$Prev_Page'><< Back</a> "; } for($i=1; $i<=$Num_Pages; $i++){ if($i != $Page) { echo "[ <a href='$_SERVER[SCRIPT_NAME]?Page=$i'>$i</a> ]"; } else { echo "<b> $i </b>"; } } if($Page!=$Num_Pages) { echo " <a href ='$_SERVER[SCRIPT_NAME]?Page=$Next_Page'>Next>></a> "; } //mysql_close($objConnect); ?> </body> </html>
<head> <? //include("admin_check.php");?> <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <title>clip all</title> </head> <body> <? include("my_connect.php"); $strSQL = "SELECT * FROM clip"; //ORDER BY fun_id DESC" ; $objQuery=mysql_query($strSQL) or die ("error Query[".$strSQL."]"); $Num_Rows = mysql_num_rows($objQuery); $Per_Page = 1; // Per Page $Page = $_GET["Page"]; if(!$_GET["Page"]) { $Page=1; } $Prev_Page = $Page-1; $Next_Page = $Page+1; $Page_Start = (($Per_Page*$Page)-$Per_Page); if($Num_Rows<=$Per_Page) { $Num_Pages =1; } else if(($Num_Rows % $Per_Page)==0) { $Num_Pages =($Num_Rows/$Per_Page) ; } else { $Num_Pages =($Num_Rows/$Per_Page)+1; $Num_Pages = (int)$Num_Pages; } $strSQL .=" ORDER BY id DESC LIMIT $Page_Start , $Per_Page"; $objQuery = mysql_query($strSQL); ?> <table width="1101" height="69" border="0" cellpadding="2"> <tr> <th width="645" height="30"><div align="left">ชื่อ</div> </div></th> <th width="195">วันที่</div></th> <th width="68">ดู</div></th> <th width="78">ผู้ทำรายการ</th> <th width="33">แก้ไข</th> <th width="44">ลบ</th> </tr> <? while($objResult = mysql_fetch_array($objQuery)) { ?> <tr> <td height="33"><?=$objResult["name"];?></td> <td><?=$objResult["clip_now"];?> <div align="center"></div> <div align="center"></div></td> <td> <div align="center"> <?=$objResult["view"];?> </div></td> <td> <div align="center"> <?=$objResult["user"];?> </div></td> <td ><a href="update_from.php?code=<?=$objResult["id"];?>">แก้ไข</a></td> <td ><a href="JavaScript:if(confirm('Confirm Delete?')==true){window.location='delete.php?code=<?=$objResult["id"];?>';}">ลบ</a></td> </tr> <? } ?> </table> <br> ทั้งหมด <?= $Num_Rows;?> Record : <?=$Num_Pages;?> Page : <? if($Prev_Page) { echo " <a href='?menupage=funny&Page=$Prev_Page'><< Back</a> "; } for($i=1; $i<=$Num_Pages; $i++){ if($i != $Page) { echo "[ <a href='?menupage=funny&Page=$i'>$i</a> ]"; } else { echo "<b> $i </b>"; } } if($Page!=$Num_Pages) { echo " <a href ='?menupage=funny&Page=$Next_Page'>Next>></a> "; } //mysql_close($objConnect); ?> </body> </html>
<head> <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <title>Untitled Document</title> </head> <body> <form name="frmSearch" method="post" action="index.php?menupage=search"> <table width="599" border="1"> <tr> <th>ชื่อ <input name="txtKeyword" type="text" id="txtKeyword" value="<?=$_POST["txtKeyword"];?>"> <input type="submit" value="Search"></th> </tr> </table> </form> </body> </html>
case"search": include("search.php"); break;
<head> <? include("admin_check.php"); include("my_connect.php"); include("hi_light.js"); $strSQL = "SELECT * FROM clip WHERE (name LIKE '%".$_POST["txtKeyword"]."%' or clip_key LIKE '%".$_POST["txtKeyword"]."%')"; $objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]"); $Num_Rows = mysql_num_rows($objQuery); $Per_Page = 2; // Per Page $Page = $_GET["Page"]; if(!$_GET["Page"]) { $Page=1; } $Prev_Page = $Page-1; $Next_Page = $Page+1; $Page_Start = (($Per_Page*$Page)-$Per_Page); if($Num_Rows<=$Per_Page) { $Num_Pages =1; } else if(($Num_Rows % $Per_Page)==0) { $Num_Pages =($Num_Rows/$Per_Page) ; } else { $Num_Pages =($Num_Rows/$Per_Page)+1; $Num_Pages = (int)$Num_Pages; } $strSQL .=" order by clip ASC LIMIT $Page_Start , $Per_Page"; $objQuery = mysql_query($strSQL); ?> <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <title>Untitled Document</title> </head> <body> ค้นหา <table id="table" width="100%" height="69" border="0" cellpadding="2"> <tr> <th width="45%" height="30"><div align="left">ชื่อ</div> </div></th> <th width="8%">ประเภท</th> <th width="21%">วันที่</div></th> <th width="6%">ดู</div></th> <th width="9%">ผู้ทำรายการ</th> <th width="5%">แก้ไข</th> <th width="6%">ลบ</th> </tr> <? while($objResult = mysql_fetch_array($objQuery)) { ?> <tr> <td height="33"><?=$objResult["name"];?></td> <td><div align="center"> <?=$objResult["type"];?> </div></td> <td><div align="center"> <?=$objResult["clip_now"];?> </div> <div align="center"></div> <div align="center"></div></td> <td> <div align="center"> <?=$objResult["view"];?> </div></td> <td> <div align="center"> <?=$objResult["user"];?> </div></td> <td ><a href="update_from.php?code=<?=$objResult["id"];?>">แก้ไข</a></td> <td ><a href="JavaScript:if(confirm('Confirm Delete?')==true){window.location='delete.php?code=<?=$objResult["id"];?>';}">ลบ</a></td> </tr> <? } ?> </table> <br> ทั้งหมด <?= $Num_Rows;?> Record : <?=$Num_Pages;?> Page : <? if($Prev_Page) { echo " <a href='?menupage=search&Page=$Prev_Page'><< Back</a> "; } for($i=1; $i<=$Num_Pages; $i++){ if($i != $Page) { echo "[ <a href='?menupage=search&Page=$i'>$i</a> ]"; } else { echo "<b> $i </b>"; } } if($Page!=$Num_Pages) { echo " <a href ='?menupage=search&Page=$Next_Page'>Next>></a> "; } //mysql_close($objConnect); ?> </body> </html>
<a href ='?menupage=$_GET[menupage]&Page=$Next_Page'>Next>></a>
<head> <meta http-equiv="Content-Type" content="text/html; charset=windows-874" /> <title>Untitled Document</title> </head> <body> <form name="frmSearch" method="post" action="index.php?menupage=search"> //แก้จากตรงนี้รึป่าวครับ <table width="599" border="1"> <tr> <th>ชื่อ <input name="txtKeyword" type="text" id="txtKeyword" value="<?=$_POST["txtKeyword"];?>"> <input type="submit" value="Search"></th> </tr> </table> </form> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง