%PDF-1.5 % ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY
Server IP : 122.155.17.190 / Your IP : 3.148.145.200 Web Server : Apache/2 System : Linux cat17190.thaihostserver.com 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 User : bungkla ( 1054) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/bungkla/public_html/travels/ |
Upload File : |
<? Header("Content-Type: text/html; charset=UTF-8");; include("../include/config.php"); include("../include/function.php"); include("../include/config_db.php"); //$sql = "select * From `travel_album` where (`alb_default`=1) and (`sst_id`=1) "; $sql = "select * from `travel_album` where 1 order by `order_item` Desc ,`date_publish` Desc ,`id` Desc limit 1 "; $result = mysql_query($sql) or die("Can't send query !A"); $c_alb_id = 0; $num_rows = mysql_num_rows($result); if($num_rows>0){ $c_alb_id = mysql_result($result, 0,"id"); $c_alb_title = mysql_result($result, 0,"alb_title"); //$c_alb_counter = mysql_result($result, 0,"alb_counter"); //$c_alb_counter = $c_alb_counter + 1; //$sql = "update `travel_album` set `alb_counter`='$c_alb_counter' where (`id`='$c_alb_id')"; //$dbquery = mysql_query($sql) or die("ไม่สามารถบันทึกข้อมูลได้ !B"); //unset($dbquery); } mysql_free_result($result); unset($result); ?> <!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" /> <script type="text/javascript"> //If using image buttons as controls, Set image buttons' image preload here true //(use false for no preloading and for when using no image buttons as controls): var preload_ctrl_images=true; //And configure the image buttons' images here: var previmg='left.gif'; var stopimg='stop.gif'; var playimg='play.gif'; var nextimg='right.gif'; var slides2=[]; //SECOND SLIDESHOW //optional properties for these images: //slides2.no_nameriptions=1; //use for no descriptions displayed //slides2.desc_prefix='<b>Description:<\/b> '; //string prefix for image descriptions display slides2.controls_top=0; //use for top controls slides2.counter=0; //use to show image count //slides2.specs='width=900, height=600'; //global specifications for this show's new window(s) slides2.width=300; //use to set width of widest image if dimensions vary slides2.height=230; //use to set height of tallest image if dimensions vary //slides2.no_auto=1; //use to make show completely user operated (no play button, starts in stopped mode) //slides2.use_alt=1; //use for descriptions as images alt attributes //slides2.use_title=1; //use for descriptions as images title attributes //slides2.nofade=1; //use for no fade-in, fade-out effect for this show slides2.border=1; //set border width for images slides2.border_color=''; //set border color for images slides2.image_controls=0; //use images for controls slides2.button_highlight='#cccccc'; //onmouseover background-color for image buttons (requires image_controls=1) //slides2.random=1; //set a random slide sequence on each page load slides2.manual_start=0; //start show in manual mode (stopped) slides2.delay=3000; //will set miliseconds delay between slides for a given show, may also be set in the call as the last parameter slides2.fadecolor='#fff'; //will set fading images background color, defaults to white slides2.pause=0; //use for pause onmouseover //Notes: //slides#.target will set a target for a slide group, will be overridden by slides#[#][3], if present //slides#.no_controls will set a slide show with no controls //slides#.jumpto=1 will display added controls to jump to a particular image by its number //slides#.no_added_linebreaks=1; use for no added line breaks in formatting of texts and controls </script> <script src="slideshow_home.js" type="text/javascript"></script> <link rel="icon" href= "../logo/logo01.png" type="image/x-icon"/> <link href="../styles.css" rel="stylesheet" type="text/css" /> <!--font--> <link href="https://fonts.googleapis.com/css?family=Chakra+Petch|Kanit|Pridi&display=swap" rel="stylesheet"> <!--font--> <!--body --> <style type="text/css"> body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; font-family: 'Kanit', sans-serif; } </style> <style type="text/css"> a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } </style> <!--body --> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" font-family: 'Kanit', sans-serif; > <div align="center" valign="top"> <? echo "<div style=\"position: absolute; left: 0px; top: 0px; width: 318px; text-align: center;\">"; if($num_rows>0) { $sql = "select * From `travel_album_detail` where (`alb_id`='$c_alb_id') "; $sql .= "Order by `id` Asc "; $result = mysql_query($sql) or die("Can't send query !B"); $num_pic = mysql_num_rows($result); $item = 0; While($row= mysql_fetch_assoc($result)) { $c_ald_id = $row["id"]; $c_ald_name = $row["ald_name"]; $str = $c_ald_name; $order = array("\r\n", "\n", "\r"); $replace = '<br>'; $newstr = str_replace($order, $replace, $str); $newstr = str_replace('"', "'", $newstr); $c_ald_photopath = ($row["ald_photopath"]); if($c_ald_photopath != "") { $images = $_web_path."/photoThumbnail/travels/a".$c_alb_id."_a/".$c_ald_photopath; $link = $_web_path."/travels/travel.php?salb_id=".$c_alb_id; ?> <script type="text/javascript"> slides2[<?=$item;?>] = ["<?=$images;?>", "<?=$newstr;?>", "<?=$link;?>", "_blank", "", ""]; </script> <? } $item = $item + 1; }//while mysql_free_result($result); unset($result); ?> <script type="text/javascript"> new inter_slide(slides2) </script> <? echo "<div style=\"position: absolute; left: 0px; top: 305px; width: 318px; text-align: center;\"><font size=2; font-family: 'Kanit', sans-serif;><b>".$c_alb_title."</b></font></div>"; } else { echo "<br /><font size=\"3\"><b>..ยังไม่มีอัลบั้มภาพ..</b></font>"; } echo "</div>"; include("../include/close_db.php"); ?> </div> </body> </html>