include_once("config.inc.php"); include_once("db_conn.php"); include_once("web_set.php"); //include_once("member_session.php"); include_once("include/function/jfunction.php"); include_once("include/class/jsel_page_rwd.php"); $class_DbTable="ebox_news_class"; $this_DbTable="ebox_news_list"; $this_page="news_list.php"; $this_LinkPage="news.php"; $this_ListValue=20; $page_title="最新消息"; $p_class1=JRequest('cid',0); $page=JRequest('page',1); //========================================================================== $p_class_name=""; $web_style=""; $web_head=""; $web_left_side=""; $web_select_page=""; //換頁 $web_content=""; /* $SQL_str="select * from ".$class_DbTable." where sid=".$p_class1; $rs=mysql_query($SQL_str,$conn) or die("資料庫錯誤:".$SQL_str); if($data_list= mysql_fetch_array($rs)){ $p_class_name=$data_list['class_name']; }else { $p_class_name="最新消息"; } */ // news /* if ($p_class1==0){ $SQL_str="select sid from ".$this_DbTable." order by sid"; }else { $SQL_str="select sid from ".$this_DbTable." where cid=".$p_class1." order by sid"; } */ $p_class_name="最新消息"; $SQL_str="select sid from ".$this_DbTable." order by sid"; $count_rs=mysql_query($SQL_str,$conn) or die("db error:01"); $page_count=mysql_num_rows($count_rs); $sel_page=new jsel_page; $sel_page->n_page=$page; $sel_page->page_count=$page_count; $sel_page->displaypg=$this_ListValue; $sel_page->page_link=$this_page."&cid=".$p_class1; $sel_page->css_style="pagination pagination-sm justify-content-center"; $sel_page->page_chgtext=array("first","prew","next","last"); $firstcount=$sel_page->first_count(); if ($p_class1==0){ $SQL_str_list="select * from ".$this_DbTable." order by create_time desc limit ".$firstcount.",".$this_ListValue; }else { $SQL_str_list="select * from ".$this_DbTable." where cid=".$p_class1." order by create_time desc limit ".$firstcount.",".$this_ListValue; } $rs=mysql_query($SQL_str_list,$conn) or die("db error:02"); $i=1; $web_content="