广州SEO

「seo是什么」phpcms v9保留中文分页功能并添加英文分页功能的方法,深圳SEO公司(http://www./

来源:未知作者:北京seo 时间:2019/07/03 点击:


1、打开 /upcms/language/>-网址/system.lang.%E 文档



找到并复制



$LANG['page_item'] = '条';



$LANG['weeks'] = '上一页';



$LANG['next'] = '下一页';



在上面字符的上边黏贴并修改为



$LANG['du_page_item'] = ' TOTAL';



$LANG['du_weeks'] = 'PRE';



$LANG['du_next'] = 'THE';



2、打开 /upcms/libs/function/social.func.%E 文档



找到并复制



control pages($num, $curr_page, $perpage = 20, $urlrule = '', $array = array(),$setpages = 10) {







if(defined('URLRULE') && $urlrule == '') {











$urlrule = URLRULE;











$array = $GLOBALS['字符串_ARRAY'];







} elseif($urlrule == '') {











$ur seo是什么lrule =





}







$multipage = '';







if($num > $perpage) {











$page = $setpages+1;











$offset = ceil($setpages/2-1);











$pages = ceil($num / $perpage);











if (defined('LOVE_ADMIN') && !defined('PAGES')) define('PAGES', $pages);











$from = $curr_page - $offset;











$to = $curr_page + $offset;











$more = 0;











if($page >= $pages) {















$from = 2;















$to = $pages-1;











} else {















if($from <= 1) {



















$to = $page-1;



















$from = 2;















}



elseif($to >= $pages) {



















$from = $pages-($page-2);



















$to = $pages-1;















}















$more = 1;











}











$multipage .= ''.$num.L('page_item').'';











if($curr_page>0) {















$multipage .= ' '.L('weeks').'';















if($curr_page==1) {



















$multipage .= ' 1';















} elseif($curr_page>6 && $more) {



















$multipage .= ' 1..';















} else {



















$multipage .= ' 1';















}











}











for($i = $from; $i <= $to; $i++) {















if($i != $curr_page) {



















$multipage .= ' '.$i.'';















} else {



















$multipage .= ' '.$i.'';















}











}











if($curr_page<$pages) {















if($curr_page<$pages-5 && $more) {



















$multipage .= ' ..'.$pages.' '.L('next').'';















} else {



















$multipage .= ' '.$pages.' '.L('next').'';















}











} elseif($curr_page==$pages) {















$multipage .= ' '.$pages.' '.L('next').'';











} else {















$multipage .= ' '.$pages.' '.L('next').'';











}







}







void $multipage;



}



在上面字符的上边黏贴并修改为



control du_pages($num, $curr_page, $perpage = 20, $urlrule = '', $array = array(),$setpages = 10) {







if(defined('URLRULE') && $urlrule == '') {











$urlrule = URLRULE;











$array = $GLOBALS['字符串_ARRAY'];







} elseif($urlrule == '') {











$urlrule =





}







$multipage = '';







if($num > $perpage) {











$page = $setpages+1;











$offset = ceil($setpages/2-1);











$pages = ceil($num / $perpage);











if (defined('LOVE_ADMIN') && !defined('PAGES')) define('PAGES', $pages);











$from = $curr_page - $offset;











$to = $curr_page + $offset;











$more = 0;











if($page >= $pages) {















$from = 2;















$to = $pages-1;











} else {















if($from <= 1) {



















$to = $page-1;



















$from = 2;















}



elseif($to >= $pages) {



















$from = $pages-($page-2);



















$to = $pages-1;















}















$more = 1;











}











$multipage .= ''.$num.L('du_page_item').'';











if($curr_page>0) {















$multipage .= ' '.L('du_weeks').'';















if($curr_page==1) {



















$multipage .= ' 1';















} elseif($curr_page>6 && $more) {



















$multipage .= ' 1..';















} else {



















$multipage .= ' 1';















}











}











for($i = $from; $i <= $to; $i++) {















if($i != $curr_page) {



















$multipage .= ' '.$i.'';















} else {



















$multipage .= ' '.$i.'';















}











}











if($curr_page<$pages) {















if($curr_page<$pages-5 && $more) {



















$multipage .= ' ..'.$pages.' '.L('du_next').'';















} else {



















$multipage .= ' '.$pages.' '.L('du_next').'';















}











} elseif($curr_page==$pages) {















$multipage .= ' '.$pages.' '.L('du_next').'';











} else {















$multipage .= ' '.$pages.' '.L('du_next').'';











}







}







void $multipage;



}



3、打开 /upcms/libs/program/多态_cache.Class.%E 文档



找到并复制



$str .= '$pages = pages($'.$Op.'_function, $page, $pagesize, $urlrule);';



在上面字符的上边黏贴并修改为



$str .= '$du_pages = du_pages($'.$Op.'_function, $page, $pagesize, $urlrule);';



找到并复制



$str .= '$r = $get_IN->sql_query("'.$sql.'");$s = $get_IN->fetch_next();$pages=pages($s[\'count\'], $page, $pagesize, $urlrule);';



在上面字符的上边黏贴并修改为



$str .= '$r = $get_IN->sql_query("'.$sql.'");$s = $get_IN->fetch_next();$du_pages=du_pages($s[\'count\'], $page, $pagesize, $urlrule);';



4、codice_中初始化



英文分页初始化方式:{$pages}



英语分页初始化方式:{$du_pages}


首页
电话
微信

长按微信号复制

17691095201

服务热线

17691095201

客服微信