欧美日韩精品在线,国内精品久久久久久久久,一级毛片恃级毛片直播,清纯唯美亚洲综合欧美色

織夢中英雙語網(wǎng)站分頁導(dǎo)航和面包屑導(dǎo)航制作_DedeCms教程

編輯Tag賺U幣
教程Tag:暫無Tag,歡迎添加,賺取U幣!
織夢dedecms中英雙語網(wǎng)站分頁導(dǎo)航和面包屑導(dǎo)航制作 。
在英文站中列表分頁導(dǎo)航出現(xiàn)“首頁 上一頁 下一頁 末頁”,當(dāng)前位置:首頁>about>,這樣的問題改如何解決呢?本文就來解決一下這兩個問題。
 
1:列表分頁英文設(shè)置教程
  1. 用arc.listview.class.php覆蓋include/arc.listview.class.php 
  2. 調(diào)用方法: 
  3. {dede:pagelist listsize='5'/} 
  4. {dede:pagelist pagelang='en' listsize='5'/} 
  5. pagelang:en為英文,cn為中文,默認(rèn)語言中文 
  6. 擴(kuò)展閱讀: 
  7. /** 
  8. * 獲取靜態(tài)的分頁列表 
  9. * @access public 
  10. * @param string $list_len 列表寬度 
  11. * @param string $list_len 列表樣式 
  12. * @return string 
  13. */ 
  14. function GetPageListST($list_len,$listitem="index,end,pre,next,pageno",$pagelang) 
  15. /*****************************************************************************************/ 
  16. if($pagelang='cn'){ 
  17. $uahome="首頁"
  18. $uaprevious="上一頁"
  19. $uanext="下一頁"
  20. $ualastpage="末頁"
  21. $uapage="頁"
  22. $uatotal="共"
  23. $uarecords="條記錄"
  24. }else{ 
  25. $uahome=" Home "
  26. $uaprevious=" Previous "
  27. $uanext=" Next "
  28. $ualastpage=" Last Page "
  29. $uapage=" Page "
  30. $uatotal=" Total "
  31. $uarecords=" Records. "
  32. $prepage = $nextpage = ''
  33. $prepagenum = $this->PageNo-1; 
  34. $nextpagenum = $this->PageNo+1; 
  35. if($list_len=='' || ereg("[^0-9]",$list_len)) 
  36. $list_len=3
  37. $totalpage = ceil($this->TotalResult/$this->PageSize); 
  38. if($totalpage<=1 && $this->TotalResult>0) 
  39. return "<li><span class=\"pageinfo\">".$uatotal." <strong>1</strong> ".$uapage." <strong>".$this->TotalResult."</strong> 
  40. ".$uarecords."</span></li>\r\n"; 
  41. if($this->TotalResult == 0) 
  42. return "<li><span class=\"pageinfo\">".$uatotal." <strong>0</strong> ".$uapage." <strong>".$this->TotalResult."</strong> 
  43. ".$uarecords."</span></li>\r\n"; 
  44. $purl = $this->GetCurUrl(); 
  45. $maininfo = "<li><span class=\"pageinfo\">".$uatotal." <strong>{$totalpage}</strong> ".$uapage." <strong>".$this->TotalResult."</strong> 
  46. ".$uarecords."</span></li>\r\n"; 
  47. $tnamerule = $this->GetMakeFileRule($this->Fields['id'],"list",$this->Fields['typedir'],$this->Fields['defaultname'],$this->Fields 
  48. ['namerule2']); 
  49. $tnamerule = ereg_replace('^(.*)/','',$tnamerule); 
  50. //獲得上一頁和主頁的鏈接 
  51. if($this->PageNo != 1) 
  52. $prepage.="<li><a href='".str_replace("{page}",$prepagenum,$tnamerule)."'>".$uaprevious."</a></li>\r\n"; 
  53. $indexpage="<li><a href='".str_replace("{page}",1,$tnamerule)."'>".$uahome."</a></li>\r\n"; 
  54. else 
  55. $indexpage="<li>".$uahome."</li>\r\n"; 
  56. //下一頁,未頁的鏈接 
  57. if($this->PageNo!=$totalpage && $totalpage>1) 
  58. $nextpage.="<li><a href='".str_replace("{page}",$nextpagenum,$tnamerule)."'>".$uanext."</a></li>\r\n"; 
  59. $endpage="<li><a href='".str_replace("{page}",$totalpage,$tnamerule)."'>".$ualastpage."</a></li>\r\n"; 
  60. else 
  61. $endpage="<li>".$ualastpage."</li>\r\n"; 
  62. //option鏈接 
  63. $optionlist = ''
  64. $optionlen = strlen($totalpage); 
  65. $optionlen = $optionlen*12 + 18; 
  66. if($optionlen < 36) $optionlen = 36
  67. if($optionlen > 100) $optionlen = 100
  68. $optionlist = "<li><select name='sldd' style='width:{$optionlen}px' onchange='location.href=this.options[this.selectedIndex].value;'>\r\n"
  69. for($mjj=1;$mjj<=$totalpage;$mjj++) 
  70. if($mjj==$this->PageNo) 
  71. $optionlist ."<option value='".str_replace("{page}",$mjj,$tnamerule)."' selected>$mjj</option>\r\n"; 
  72. else 
  73. $optionlist ."<option value='".str_replace("{page}",$mjj,$tnamerule)."'>$mjj</option>\r\n"; 
  74. $optionlist ."</select></li>\r\n"
  75. //獲得數(shù)字鏈接 
  76. $listdd=""
  77. $total_list = $list_len * 2 + 1; 
  78. if($this->PageNo >= $total_list) 
  79. $j = $this->PageNo-$list_len; 
  80. $total_list = $this->PageNo+$list_len; 
  81. if($total_list>$totalpage) 
  82. $total_list=$totalpage; 
 僅供大家學(xué)習(xí)參考哦~

查看更多 DedeCms教程  織夢模板  織夢DedeCms視頻教程  織夢dedecms專題

來源:模板無憂//所屬分類:DedeCms教程/更新時間:2020-05-21
相關(guān)DedeCms教程

DedeCms教程教程Rss訂閱Cms教程搜索