ผลการค้นหา $keyword พบจำนวน $NRow เรื่อง
"; ?> $keyword",$title1); $abstract1=$row3["abstract"]; $picture2=$row3["picture"]; $abstract1=substr($abstract1,0,60); $m_post_date=$row3["post_date"]; $voting=$row3["voting"]; $read_count= $row3["read_count"]; $vote_time=$row3["vote_time"]; $comment=$row3["comment"]; if($cat_id==40){ $newurl="blog/view.php?article_id="; }else{ $newurl="view.php?article_id="; } if($user_login=="yes"){ $picsize="100%"; }else{ $picsize="100%"; } echo"

$title1
"; if($_SESSION[admin_login]=='yes'){ echo" | | | | "; ?> ')" target='_self' title='?'> | [$m_post_date]
$abstract1....(อ่าน $read_count/$comment ครั้ง)
คะแนน "; show_vote($voting,$vote_time); echo"
"; } echo""; echo"
"; echo "\t
กำลังแสดงหน้า $page จาก $totalpage หน้า
\n"; echo"
    "; if($page>1 && $page<=$totalpage) { $prevpage = $page-1; echo "\t
  • <<หน้าก่อน
  • \n"; } for($i=1 ; $i<$page ; $i++) { echo "\t
  • $i
  • \n"; } echo "\t
  • $page
  • \n"; for($i=$page+1 ; $i<=$totalpage ; $i++) { echo "\t
  • $i
  • \n"; } if($page!=$totalpage) { $nextpage = $page+1; echo "\t
  • หน้าต่อไป>>
  • \n"; } echo"
"; //-----------------------------------------user profile }else if($member!=""){ echo"
"; $sql3 = "select * from user where id=$member"; $result3 = mysql_db_query($dbname,$sql3) or die (""); $row3 = mysql_fetch_array($result3) ; $aa_user_id = $row3["id"]; $u_name = $row3["name"]; $u_surname=$row3["surname"]; $u_province=$row3["province"]; $u_picture1=$row3["picture"]; $vemail = $row3["email"]; if($member==0){ $u_picture1=$_SESSION['cur_picture1']; $u_province=$_SESSION['province']; $u_name=$_SESSION['name']; } $t="thumbnail_member.php?im="; // then using image 36022.jpg as an example $f="members_pic/$u_picture1"; $file = $t .$f; $v=""; $ij++; if($_SESSION[user_id]==$_GET[member]){ echo"\n"; } $sql = "select * from article_data1 where (publish=1 and auther_id=$member) order by article_id desc"; $result = mysql_db_query($dbname,$sql) or die (""); $NRow = mysql_num_rows($result); $rt = $NRow%$list_page; if($rt!=0) { $totalpage = floor($NRow/$list_page)+1; } else { $totalpage = floor($NRow/$list_page); } $goto = ($page-1)*$list_page; $sql3 = "select * from article_data1 where publish=1 and auther_id=$member order by article_id desc limit $goto,$list_page"; echo"

$v $u_name $u_surname


โพสต์โดย$cat_name $page_title
"; $result3 = mysql_db_query($dbname,$sql3) or die (""); echo""; $ij=0; $num_of_column=3;//-----จะเอากี่คอลัมน์ $cellpad=100/$num_of_column; while ($row3 = mysql_fetch_array($result3)) { $article_id = $row3["article_id"]; $cat_id = $row3["cat_id"]; $title1 = $row3["title"]; $abstract1=$row3["abstract"]; $picture2=$row3["picture"]; $abstract1=substr($abstract1,0,200); $post_by=$row3['post_by']; $auther_id=$row3['auther_id']; $m_post_date=$row3["post_date"]; $read_count= $row3["read_count"]; $voting=$row3["voting"]; $vote_time=$row3["vote_time"]; $comment=$row3["comment"]; $ij++; $f="thumbnail_v1.php?im=news_pic/$picture2"; //$file = $t .$f; $v=""; if($post_date==$m_post_date){ $mynew=""; $pday="$m_post_date"; }else{ $mynew=""; $pday=$m_post_date; } if($read_count>500){ $show_hot=""; }else{ $show_hot=""; } echo""; if($ij==$num_of_column){ echo""; $ij=0; } } echo"

$title1
$mynew$show_hot"; if($_SESSION[admin_login]=='yes'){ echo" | | | | "; ?> ')" target='_self' title='ลบ'> | วันที่โพสต์ $m_post_date โดย $post_by อ่าน $read_count ครั้ง"; echo"
"; echo "\t

กำลังแสดงหน้า $page จาก $totalpage หน้า

\n"; echo"
"; if($page>1 && $page<=$totalpage) { $prevpage = $page-1; echo "\t\n"; } for($i=1 ; $i<$page ; $i++) { echo "\t \n"; } echo "\t \n"; for($i=$page+1 ; $i<=$totalpage ; $i++) { echo "\t \n"; } if($page!=$totalpage) { $nextpage = $page+1; echo "\t\n"; } echo"
"; echo"
"; echo""; //-------------------------------------------original show }else if($cat_id!=''){ if($cat_id!=""){ $cat_list=" and cat_id=$cat_id or cat_link=$cat_id"; }else{ $cat_list=""; } echo"
"; $sql = "select * from article_data1 where publish=1 $cat_list order by article_id desc"; $result = mysql_db_query($dbname,$sql) or die (""); $NRow = mysql_num_rows($result); $rt = $NRow%$list_page; if($rt!=0) { $totalpage = floor($NRow/$list_page)+1; } else { $totalpage = floor($NRow/$list_page); } $goto = ($page-1)*$list_page; $sql3 = "select * from article_category where cat_id=$cat_id"; $result3 = mysql_db_query($dbname,$sql3) or die (""); $row3 = mysql_fetch_array($result3); $cat_name = $row3["cat_name"]; $cat_pic = $row3["cat_pic"]; $blog = $row3["blog"]; $cat_detail=$row3["cat_detail"]; if($blog==1){ $shblog="Blog ของ"; }else{ $shblog="+"; } //$t="thumbnail_s.php?im="; // then using image 36022.jpg as an example $f="cat_pic/$cat_pic"; //$file = $t .$f; $v=""; $sql3 = "select * from article_data1 where publish=1$cat_list order by article_id desc limit $goto,$list_page"; $result3 = mysql_db_query($dbname,$sql3) or die (""); echo"

$v $cat_name


"; echo"$cate_website_button"; echo"$cat_name $page_title $cat_detail
"; ?> "; echo"

เลือกหมวดหมู่

\n"; echo"
"; while ($row31 = mysql_fetch_array($result31)) { $t++; $cat_name31=$row31["cat_name"]; $shdata=$row31["cat_id"]; echo"$cat_name31"; }//end while echo"
"; //----------------จบการแสดงหมวดหมู่------------------------ ?> "; if($_GET[cview]==""){ echo""; $nav_icon="fas fa-th-large"; }else{ echo""; $nav_icon="fas fa-th-list"; } echo""; //---------------จบการเลือกมุมมองการแสดงผล----------------// //-----------------------------กำหนดตัวแปรแสดงผลแบบตาราง หรือแบบลิสต์---------------------------// $view_table=""; $view_list=""; //-----------------------จบการกำหนดตัวแปรแสดงผลแบบตาราง หรือแบบลิสต์-------------------------// $view_table=$view_table.""; $view_list=$view_list."
"; $ij=0; $num_of_column=2;//-----จะเอากี่คอลัมน์ $view_table=$view_table."
"; $view_list=$view_list."

$cat_name

"; $cellpad=round(100/$num_of_column); while ($row3 = mysql_fetch_array($result3)) { $article_id = $row3["article_id"]; $cur_cat_id = $row3["cat_id"]; $title1 = $row3["title"]; $abstract1=$row3["abstract"]; $picture2=$row3["picture"]; $abstract1=substr($abstract1,0,200); $post_by=$row3['post_by']; $auther_id=$row3['auther_id']; $m_post_date=$row3["post_date"]; $read_count= $row3["read_count"]; $voting=$row3["voting"]; $vote_time=$row3["vote_time"]; $comment=$row3["comment"]; $ij++; $show_control=""; $f="news_pic/$picture2"; //$file = $t .$f; $v=""; if($post_date==$m_post_date){ $mynew=""; $pday="$m_post_date"; }else{ $mynew=""; $pday=$m_post_date; } if($read_count>500){ $show_hot=""; }else{ $show_hot=""; } //-------start round div $view_table=$view_table.""; if($ij==$num_of_column){ $view_table=$view_table.""; $ij=0; } } $view_table=$view_table."

$cat_name


"; $view_table=$view_table."

$title1

"; $view_list=$view_list."

$title1

"; if($_SESSION[admin_login]=='yes'){ $show_control=" | | | | "; $show_control=$show_control." |"; } $view_table=$view_table.$show_control; $view_list=$view_list.$show_control; $view_table=$view_table." $m_post_date $read_count
$post_by"; $view_table=$view_table."
";//----end round div $view_table=$view_table."
"; $view_list=$view_list.""; //-----------------------------สั่งแสดงผลแบบตาราง หรือแบบลิสต์---------------------------// if($_GET[cview]=="list"){ echo"$view_list"; $c_view="&cview=list"; }else{ echo"$view_table"; $c_view=""; } //--------------------------จบการสั่งแสดงผลแบบตาราง หรือแบบลิสต์----------------------// echo"

กำลังแสดงหน้า $page จาก $totalpage หน้า

\n"; echo"
"; if($page>1 && $page<=$totalpage) { $prevpage = $page-1; echo "\t\n"; } for($i=1 ; $i<$page ; $i++) { echo "\t \n"; } echo "\t \n"; for($i=$page+1 ; $i<=$totalpage ; $i++) { echo "\t \n"; } if($page!=$totalpage) { $nextpage = $page+1; echo "\t\n"; } echo"
"; ?>