<? include('config.php'); include('chksession.php'); if(empty($_SESSION['cart'])) { $_SESSION['cart'] = array(); } else { } ?> <!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>:: SKETCHER ::บริการจัดจำหน่าย ภาพถ่าย ภาพILLUS เพื่อใช้ในการออกแบบในด้านต่างๆ</title> <link href="css/body_content.css" rel="stylesheet" type="text/css" /> </head> <body> <table width="1002" border="0" cellspacing="0" cellpadding="0"> <tr> <th valign="top" scope="row"> <?php include('inc_head.php'); include('inc_flash.php');?> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="100"></td> <td height="20" valign="top"><?php include('inc_search.php'); ?></td> </tr> <tr> <td></td> <td height="20"></td> </tr> <tr> <td></td> <td height="20" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" style="background:url(images/content_m.jpg) left top repeat-y;"> <tr> <td width="60" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="pictures/advance_search.gif" width="231" height="84" /></td> </tr> </table> <form action="gallery.php" method="post"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="4" bgcolor="#e7f1f5"> </td> <td height="200" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="1" bgcolor="#EAEEF1"></td> </tr> <tr> <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="11"></td> <td height="14"></td> <td width="13"></td> </tr> <tr> <td> </td> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="11" valign="top"><table width="100%" height="5" border="0" cellpadding="0" cellspacing="0"> <tr> <td></td> </tr> </table> <img src="pictures/bullet_green.gif" width="5" height="5" /></td> <td width="81" align="left">Keyword :</td> <td align="left"><input name="akey" type="text" class="input3" id="akey" style="width:96%"/></td> </tr> <tr> <td></td> <td height="8"></td> <td></td> </tr> <tr> <td width="11" valign="top"><table width="100%" height="5" border="0" cellpadding="0" cellspacing="0"> <tr> <td></td> </tr> </table> <img src="pictures/bullet_green.gif" width="5" height="5" /></td> <td align="left">ประเภท :</td> <td align="left"><select name="atype" class="input3" id="atype" style="width:99%"> <option value="not" selected="selected">- กรุณาเลือก -</option> <option value="Photo">Photo</option> <option value="Illustrator">Illustrator</option> </select></td> </tr> <tr> <td></td> <td height="8"></td> <td></td> </tr> <tr> <td><img src="pictures/bullet_green.gif" width="5" height="5" /></td> <td align="left">หมวดหมู่ :</td> <td><select name="catalogies" class="input3" id="catalogies" style="width:99%"onchange="callSurgeon" > <option value="not">- กรุณาเลือก -</option> <?php include ("config.php"); $sql ="select * from catalogies order by catalogies_id asc"; $result=mysql_query($sql); while($query_data=mysql_fetch_array($result)) { echo "<option value=".$query_data["catalogies_id"].">".$query_data["catalogies_name"]."</option>"; } ?> </select></td> </tr> <tr> <td></td> <td height="8"></td> <td></td> </tr> <tr> <td><img src="pictures/bullet_green.gif" width="5" height="5" /></td> <td align="left">รูปแบบถาพ</td> <td height="8"><label> <select name="itypewh" id="itypewh" class="input3" style="width:99%"> <option value="not" selected="selected">- กรุณาเลือก -</option> <option value="1">แนวตั้ง</option> <option value="2">แนวนอน</option> </select> </label></td> </tr> <tr> <td> </td> <td height="17"> </td> <td> </td> </tr> <tr> <td> </td> <td height="17"> </td> <td> </td> </tr> <tr> <td></td> <td height="17"></td> <td align="right"><input name="a" type="hidden" id="a" value="1" /> <img src="pictures/oder_by.png" width="71" height="36" /> </td> </tr> <tr> <td></td> <td height="17"></td> <td> </td> </tr> </table> </td> <td> </td> </tr> <tr> <td></td> <td align="right" class="TextBlack12B01"></td> <td></td> </tr> <tr> <td> </td> <td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="11"><img src="pictures/bullet_green.gif" width="5" height="5" /></td> <td width="81" height="8" align="left">จัดเรียงตาม :</td> <td align="left"><select name="select_date" class="input3" id="select_date" style="width:99%"> <option value="not" selected="selected">- กรุณา -</option> <option value="1">วัน</option> <option value="2">จำนวนการดาวน์โหลด</option> <option value="3">ราคา</option> </select></td> </tr> <tr> <td height="8"></td> <td height="8" align="left"></td> <td align="left"></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="11" valign="top"><table width="100%" height="5" border="0" cellpadding="0" cellspacing="0"> <tr> <td></td> </tr> </table> <img src="pictures/bullet_green.gif" width="5" height="5" /></td> <td width="81" align="left">จำนวนการ<br /> แสดงภาพ :</td> <td align="left"><select name="image_page" class="input3" id="image_page" style="width:99%" > <option value="20">- กรุณาเลือก -</option> <option value="30">30</option> <option value="35">35</option> <option value="40">40</option> <option value="45">45</option> <option value="50">50</option> </select> </td> </tr> <tr> <td></td> <td height="20"></td> <td></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="center"><input name="Submit" type="image" id="Submit" value="Submit" src="pictures/button_search.gif" border="0" /></td> </tr> </table></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="25" class="TextGray12N02" style="border-bottom: dashed 1px #95C4DB"> </td> </tr> <tr> <td height="20"></td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="2"></td> <td align="center"><img src="pictures/paypal.gif" width="121" height="45" /></td> </tr> <tr> <td></td> <td> </td> </tr> <tr> <td></td> <td align="center"><img src="pictures/twitter.gif" width="121" height="41" /></td> </tr> </table></td> </tr> </table></td> <td> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="43"> </td> </tr> <tr> <td> </td> </tr> </table></td> </tr> </table></td> <td width="4" bgcolor="#e7f1f5"> </td> </tr> </table></form> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="14" style="background:url(pictures/gallery_vdo_bottom.gif) top no-repeat"></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> <tr> <td> </td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0" id="gallery"> <tr> <td height="25" align="right" style="background:url(images/gallery_topic.gif) 120px top no-repeat"><img src="pictures/gallery.png" width="80" height="18" /></td> </tr> <tr> <td height="105" valign="top"><table width="216" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="7"><img src="pictures/gallery_left_tcorner.gif" width="7" height="7" /></td> <td style="background:url(pictures/gallery_top_border.gif) top repeat-x"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="7"><img src="pictures/gallery_left_tcorner2.gif" width="7" height="7" /></td> <td><img src="pictures/spacer.gif" width="1" height="7" /></td> <td width="7"><img src="pictures/gallery_right_tcorner2.gif" width="7" height="7" /></td> </tr> </table></td> <td width="7" height="7"><img src="pictures/gallery_right_tcorner.gif" width="7" height="7" /></td> </tr> <tr> <td style="background:url(pictures/gallery_left_border.gif) top repeat-y"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="7"><img src="pictures/gallery_left_tcorner3.gif" width="7" height="7" /></td> </tr> <tr> <td height="77"><img src="pictures/spacer.gif" width="1" height="1" /></td> </tr> <tr> <td height="7"><img src="pictures/gallery_left_bcorner2.gif" width="7" height="7" /></td> </tr> </table></td> <td><a href="gallery.php"><img src="pictures/pic_gallery2.jpg" width="202" height="91" border="0" /></a></td> <td style="background:url(pictures/gallery_right_border.gif) top repeat-y"><table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="7"><img src="pictures/gallery_right_tcorner3.gif" width="7" height="7" /></td> </tr> <tr> <td height="77"><img src="pictures/spacer.gif" width="1" height="1" /></td> </tr> <tr> <td height="7"><img src="pictures/gallery_right_bcorner3.gif" width="7" height="7" /></td> </tr> </table></td> </tr> <tr> <td height="7"><img src="pictures/gallery_left_bcorner.gif" width="7" height="7" /></td> <td style="background:url(pictures/gallery_bottom_border.gif) top repeat-x"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="7"><img src="pictures/gallery_left_bcorner3.gif" width="7" height="7" /></td> <td><img src="pictures/spacer.gif" width="1" height="7" /></td> <td width="7"><img src="pictures/gallery_right_bcorner2.gif" width="7" height="7" /></td> </tr> </table></td> <td><img src="pictures/gallery_right_bcorner.gif" width="7" height="7" /></td> </tr> </table></td> </tr> <tr> <td height="117"> </td> </tr> </table></td> <td width="61" valign="top"> </td> <td valign="top"><? if(isset($_POST['a'])||isset($_GET['Page'])){ $akey=$_POST['akey']; $atype=$_POST['atype']; $catalogies=$_POST['catalogies']; $select_date=$_POST['select_date']; $type=$_POST['itypewh']; $image_page=$_POST['image_page']; if(!empty($akey)){ //echo "akey =".$akey ; $strSQL = "SELECT * FROM image WHERE image_name LIKE '%".$akey."%' or image_keyword LIKE '%".$search_key."%' and typeofsize='xs'"; }else if($atype!="not"){ //echo "atype =".$atype ; $strSQL = "SELECT * FROM image WHERE image_type LIKE '%".$atype."%' and typeofsize='xs'"; }else if($catalogies!="not"){ //echo "catalogies =".$catalogies ; $strSQL = "SELECT * FROM image WHERE catalogies_id = '".$catalogies."' and typeofsize='xs'"; }else if($select_date!="not"){ //echo "select_date =".$select_date ; if($select_date=="1"){ $strSQL = "SELECT * FROM image WHERE image_price LIKE '%".$select_date."%'"; } else if($select_date=='2'){ $strSQL = "SELECT * FROM image WHERE image_count LIKE '%".$select_date."%'"; } else if($select_date=='3'){ $strSQL = "SELECT * FROM image WHERE image_date LIKE '%".$select_date."%'"; } }else if($type=='1'){ //echo "type =".$type ; $strSQL = "SELECT * FROM image WHERE image_width < image_height"; }else if($type=='2'){ //echo "type =".$type ; $strSQL = "SELECT * FROM image WHERE image_width > image_height"; }else{ //$strSQL = "SELECT * FROM image where member_id='".$_SESSION['sess_username']."'"; } $query = mysql_query($strSQL); //$res = mysql_fetch_array($query); $Num_Rows = mysql_num_rows($query); //$sql ="select * from image where image_name like '%$k%' and typeofsize='xs'"; /*if($_POST['image_page']!="not"){ $Per_Page = $_POST['image_page']; // Per Page }else{ $Per_Page = 20; }*/ $Per_Page = 20; $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 image_id DESC LIMIT $Page_Start , $Per_Page"; $query = mysql_query($strSQL); //$res = mysql_fetch_array($query); $numr = mysql_num_rows($query); } //echo $numr; $printrow = $numr/5; //echo $printrow; echo $fname; echo "<br>"; echo $rxs['image_id']; ?> <table width="100" border="0" cellpadding="0" cellspacing="0"> <? for($i=1;$i<=ceil($printrow);$i++) { // echo "a"; ?> <tr> <? for($j=1;$j<=5;$j++) { //echo "j=".$numr; $rxs = mysql_fetch_array($query); //print_r($rxs); $name = explode('-',$rxs['image_name']); //print_r($name); //username $uname = $name[0]; //imagename $iname = $name[1]; //filename $fname = $name[2]; if(empty($fname)){ exit; } if($rxs['typeofsize']=="xs"){ $folder = "MyResizeXS"; $typeofimg= "XS"; $folderi = "imagesXS"; } if($rxs['typeofsize']=="s"){ $folder = "MyResizeS"; $typeofimg= "S"; $folderi = "imagesS"; } if($rxs['typeofsize']=="m"){ $folder = "MyResizeM"; $typeofimg= "M"; $folderi = "imagesM"; } if($rxs['typeofsize']=="l"){ $folder = "MyResizeL"; $typeofimg= "L"; $folderi = "imagesL"; } if($rxs['typeofsize']=="xl"){ $folder = "MyResizeXL"; $typeofimg= "XL"; $folderi = "imagesXL"; } ?> <td align="left" valign="top"><table width="128" border="0" cellpadding="0" cellspacing="0" id="LoopPhoto" style="float:left"> <tr> <td width="5"> </td> <td height="123" align="center" style="border:solid 1px #E7F1F5"><a href="view-image-list.php?fname=<?=$rxs['image_id']?>&itype=<?=$folderi?>"><img width="100" height="100" src="<?=$folder?>/thumsnail<?=$typeofimg?>_<?=$fname?>" border="0" /></a></a></td> <td width="5"> </td> </tr> <tr> <td></td> <td height="7"></td> <td></td> </tr> <tr> <td> </td> <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="6"></td> <td align="left" class="textblue11B01"><?=$iname?></td> </tr> </table></td> <td> </td> </tr> <tr> <td></td> <td height="25"></td> <td></td> </tr> </table></td> <? } ?> </tr> <? } ?><br /> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <br><br> Total <?=$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> "; } ?></td> </tr> </table> <br /> </td> </tr> </table></td> </tr> </table> </th> <th width="51" scope="row"> </th> </tr> </table> <?php include('inc_footer.php'); ?> </body> </html>
<?php /*** By Weerachai Nukitram ***/ /*** http://www.ThaiCreate.Com ***/ ?> <html> <head> <title>ThaiCreate.Com Multiple Column</title> </head> <body> <div align="center"> <? $objConnect = mysql_connect("localhost","root","root") or die("Error Connect to Database"); $objDB = mysql_select_db("mydatabase"); $strSQL = "SELECT * FROM gallery ORDER BY GalleryID ASC "; $objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]"); echo"<table border=\"0\" cellspacing=\"1\" cellpadding=\"1\"><tr>"; $intRows = 0; while($objResult = mysql_fetch_array($objQuery)) { $intRows++; echo "<td>"; ?> <table width="91" border="0" cellspacing="0" cellpadding="0"> <tr> <td><div align="center"><a href="gallery/<?=$objResult["Picture"];?>" target="_blank"><img src="gallery/<?=$objResult["Thumbnails"];?>" width="70" height="53" border="0"></a></div></td> </tr> <tr> <td><div align="center"><?=$objResult["GalleryName"];?></div></td> </tr> </table> <? echo"</td>"; if(($intRows)%2==0) { echo"</tr>"; } else { echo "<td>"; } } echo"</tr></table>"; ?> <? mysql_close($objConnect); ?> </div> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง