0byt3m1n1-V2
Path:
/
home
/
bangtoey
/
domains
/
bangtoey.go.th
/
public_html
/
albums
/
[
Home
]
File: show_albums.php
<? Header("Content-Type: text/html; charset=UTF-8");; include("../include/config.php"); include("../include/function.php"); include("../include/config_db.php"); $limit_start = 1; $limit_stop = 6; //เอากี่อัลบั้ม แก้ไขเลขตรงนี้ ?> <!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> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!--font --> <style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-color:; font-family: 'thai_sans_lite'; font-size:18px; } a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } --> </style> <link href="svstyles.css?v=<?php echo filemtime('svstyles.css');?>" rel="stylesheet" type="text/css" /> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <div align="center" valign="top"> <? echo "<table width=\"520\" border=\"0\" cellspacing=\"20\" cellpadding=\"0\" align=\"center\">\n"; echo "<tr>\n"; $sql = "select * From `activity_album` where 1 "; $sql .= "Order by `order_item` Desc ,`date_publish` Desc ,`id` Desc Limit $limit_start,$limit_stop "; $result = mysql_query($sql); $item = 0; While($row= mysql_fetch_assoc($result)) { $c_id = $row["id"]; $c_alb_title = $row["alb_title"]; if(strlen($c_alb_title) > 60){ $c_alb_title = trim(utf8_substr($c_alb_title,0,60)); } $c_alb_thumb = $row["alb_thumb"]; $c_alb_thumb = trim($c_alb_thumb); $c_date_publish = $row["date_publish"]; $c_date = dateThai_MM($c_date_publish); $c_alb_counter = $row["alb_counter"]; $images = ""; if($c_alb_thumb != "") { $images = "../photoThumbnail/albums/thumb/".$c_alb_thumb; } else { $images = "images/noimage.gif"; } echo " <td align=\"center\" width=\"50%\" valign=\"middle\">\n"; echo " <a href=\"activities.php?salb_id=".$c_id."\" title=\"".$c_alb_title."\" target=\"_blank\"><img src=\"".$images."\" width=\"150\" height=\"110\" alt=\"".$c_alb_title."\" style=\"border:0px solid #80BD14\" class=\"magnifyarea\"></a><br>"; echo " <a href=\"activities.php?salb_id=".$c_id."\" class=\"font9 \" title=\"".$c_alb_title."\" class=\"linktextblack\" target=\"_blank\">".$c_alb_title."</a>\n"; echo " </td>\n"; $item = $item + 1; if (($item % 2) == 0){ echo "</tr>\n"; echo "<tr>\n"; } } //while echo "</tr>\n"; echo "</table>\n"; mysql_free_result($result ); unset($result); include("../include/close_db.php"); ?> </div> </body> </html>
©
2018.