织梦cms

推荐列表 站点导航

当前位置:首页 > 建站教程 > 织梦cms >

织梦中英双语网站分页导航和面包屑导航制作

来源:网络整理  作者:  发布时间:2020-12-20 21:39
织梦dedecms中英双语网站分页导航和面包屑导航制作 。 在英文站中列表分页导航出现首页 上一页 下一页 末页,当前...

 

 

if($totalpage<=1 && $this->TotalResult>0)

{

 

//option链接

 

在英文站中列表分页导航出现“首页 上一页 下一页 末页”,当前位置:首页>about>,这样的问题改如何解决呢?本文就来解决一下这两个问题。

$optionlist = "<li><select name='sldd' style='width:{$optionlen}px' onchange='location.href=this.options[this.selectedIndex].value;'>\r\n";

 

$endpage="<li><a href='".str_replace("{page}",$totalpage,$tnamerule)."'>".$ualastpage."</a></li>\r\n";

 

* @param string $list_len 列表样式

 

if($this->PageNo!=$totalpage && $totalpage>1)

$optionlist = '';

 

if($optionlen < 36) $optionlen = 36;

 

 

 

$optionlen = $optionlen*12 + 18;

return "<li><span class=\"pageinfo\">".$uatotal." <strong>0</strong> ".$uapage." <strong>".$this->TotalResult."</strong>

$uanext="下一页";

 

 

//下一页,未页的链接

pagelang:en为英文,cn为中文,默认语言中文

$maininfo = "<li><span class=\"pageinfo\">".$uatotal." <strong>{$totalpage}</strong> ".$uapage." <strong>".$this->TotalResult."</strong>

 

 

扩展阅读:

 

{

if($total_list>$totalpage)

* @access public

 

$prepage = $nextpage = '';

 

{dede:pagelist listsize='5'/}

$list_len=3;

/*****************************************************************************************/

 

 

//获得上一页和主页的链接

 

{

{dede:pagelist pagelang='en' listsize='5'/}

 

{

$uahome="首页";

* @return string

$uatotal=" Total ";

 

 

$uapage="页";

 

{

//获得数字链接

}

 

 

 

{

 

 

 

$total_list = $this->PageNo+$list_len;

 

 

 

 

 

{

 

$nextpagenum = $this->PageNo+1;

 

 

 

$uahome=" Home ";

 

 

if($optionlen > 100) $optionlen = 100;

{

 

 

{

 

 

 

 

$listdd="";

$optionlist .= "</select></li>\r\n";

 

* 获取静态的分页列表

".$uarecords."</span></li>\r\n";

 

 

 

 

 

$endpage="<li>".$ualastpage."</li>\r\n";

 

{

{

 

$uanext=" Next ";

".$uarecords."</span></li>\r\n";

$optionlist .= "<option value='".str_replace("{page}",$mjj,$tnamerule)."' selected>$mjj</option>\r\n";

$indexpage="<li><a href='".str_replace("{page}",1,$tnamerule)."'>".$uahome."</a></li>\r\n";

$uapage=" Page ";

$prepage.="<li><a href='".str_replace("{page}",$prepagenum,$tnamerule)."'>".$uaprevious."</a></li>\r\n";

}else{

else

}

 

if($list_len=='' || ereg("[^0-9]",$list_len))

 

 

}

$tnamerule = $this->GetMakeFileRule($this->Fields['id'],"list",$this->Fields['typedir'],$this->Fields['defaultname'],$this->Fields

$total_list = $list_len * 2 + 1;

 

}

织梦dedecms中英双语网站分页导航和面包屑导航制作 。

 

$uaprevious=" Previous ";

$ualastpage=" Last Page ";

".$uarecords."</span></li>\r\n";

}

}

$nextpage.="<li><a href='".str_replace("{page}",$nextpagenum,$tnamerule)."'>".$uanext."</a></li>\r\n";

$indexpage="<li>".$uahome."</li>\r\n";

 

 

if($this->PageNo != 1)

 

}

 

$tnamerule = ereg_replace('^(.*)/','',$tnamerule);

 

$totalpage = ceil($this->TotalResult/$this->PageSize);

 

 

 

}

 

 

if($pagelang='cn'){

}

 

* @param string $list_len 列表宽度

*

 

 

 

$ualastpage="末页";

 

if($this->TotalResult == 0)

 

 

 

 

1:列表分页英文设置教程

 

$total_list=$totalpage;

}

 

 

else

 

else

if($mjj==$this->PageNo)

$j = $this->PageNo-$list_len;

for($mjj=1;$mjj<=$totalpage;$mjj++)

 

{

if($this->PageNo >= $total_list)

 

 

$optionlist .= "<option value='".str_replace("{page}",$mjj,$tnamerule)."'>$mjj</option>\r\n";

$optionlen = strlen($totalpage);

 

['namerule2']);

$uarecords=" Records. ";

 

 

 

 

 

$uaprevious="上一页";

 

 

 

 

}

 

 

return "<li><span class=\"pageinfo\">".$uatotal." <strong>1</strong> ".$uapage." <strong>".$this->TotalResult."</strong>

用arc.listview.class.php覆盖include/arc.listview.class.php

 

/**

 

$uarecords="条记录";

调用方法:

 

$prepagenum = $this->PageNo-1;

 

$purl = $this->GetCurUrl();

 

 

*/

 

$uatotal="共";

 

 

{

function GetPageListST($list_len,$listitem="index,end,pre,next,pageno",$pagelang)

相关热词: 织梦 分页

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://www.juheyunku.com/jz/dedecms/6359.shtml

Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

织梦中英双语网站分页导航和面包屑导航制作

2020-12-20 编辑:

 

 

if($totalpage<=1 && $this->TotalResult>0)

{

 

//option链接

 

在英文站中列表分页导航出现“首页 上一页 下一页 末页”,当前位置:首页>about>,这样的问题改如何解决呢?本文就来解决一下这两个问题。

$optionlist = "<li><select name='sldd' style='width:{$optionlen}px' onchange='location.href=this.options[this.selectedIndex].value;'>\r\n";

 

$endpage="<li><a href='".str_replace("{page}",$totalpage,$tnamerule)."'>".$ualastpage."</a></li>\r\n";

 

* @param string $list_len 列表样式

 

if($this->PageNo!=$totalpage && $totalpage>1)

$optionlist = '';

 

if($optionlen < 36) $optionlen = 36;

 

 

 

$optionlen = $optionlen*12 + 18;

return "<li><span class=\"pageinfo\">".$uatotal." <strong>0</strong> ".$uapage." <strong>".$this->TotalResult."</strong>

$uanext="下一页";

 

 

//下一页,未页的链接

pagelang:en为英文,cn为中文,默认语言中文

$maininfo = "<li><span class=\"pageinfo\">".$uatotal." <strong>{$totalpage}</strong> ".$uapage." <strong>".$this->TotalResult."</strong>

 

 

扩展阅读:

 

{

if($total_list>$totalpage)

* @access public

 

$prepage = $nextpage = '';

 

{dede:pagelist listsize='5'/}

$list_len=3;

/*****************************************************************************************/

 

 

//获得上一页和主页的链接

 

{

{dede:pagelist pagelang='en' listsize='5'/}

 

{

$uahome="首页";

* @return string

$uatotal=" Total ";

 

 

$uapage="页";

 

{

//获得数字链接

}

 

 

 

{

 

 

 

$total_list = $this->PageNo+$list_len;

 

 

 

 

 

{

 

$nextpagenum = $this->PageNo+1;

 

 

 

$uahome=" Home ";

 

 

if($optionlen > 100) $optionlen = 100;

{

 

 

{

 

 

 

 

$listdd="";

$optionlist .= "</select></li>\r\n";

 

* 获取静态的分页列表

".$uarecords."</span></li>\r\n";

 

 

 

 

 

$endpage="<li>".$ualastpage."</li>\r\n";

 

{

{

 

$uanext=" Next ";

".$uarecords."</span></li>\r\n";

$optionlist .= "<option value='".str_replace("{page}",$mjj,$tnamerule)."' selected>$mjj</option>\r\n";

$indexpage="<li><a href='".str_replace("{page}",1,$tnamerule)."'>".$uahome."</a></li>\r\n";

$uapage=" Page ";

$prepage.="<li><a href='".str_replace("{page}",$prepagenum,$tnamerule)."'>".$uaprevious."</a></li>\r\n";

}else{

else

}

 

if($list_len=='' || ereg("[^0-9]",$list_len))

 

 

}

$tnamerule = $this->GetMakeFileRule($this->Fields['id'],"list",$this->Fields['typedir'],$this->Fields['defaultname'],$this->Fields

$total_list = $list_len * 2 + 1;

 

}

织梦dedecms中英双语网站分页导航和面包屑导航制作 。

 

$uaprevious=" Previous ";

$ualastpage=" Last Page ";

".$uarecords."</span></li>\r\n";

}

}

$nextpage.="<li><a href='".str_replace("{page}",$nextpagenum,$tnamerule)."'>".$uanext."</a></li>\r\n";

$indexpage="<li>".$uahome."</li>\r\n";

 

 

if($this->PageNo != 1)

 

}

 

$tnamerule = ereg_replace('^(.*)/','',$tnamerule);

 

$totalpage = ceil($this->TotalResult/$this->PageSize);

 

 

 

}

 

 

if($pagelang='cn'){

}

 

* @param string $list_len 列表宽度

*

 

 

 

$ualastpage="末页";

 

if($this->TotalResult == 0)

 

 

 

 

1:列表分页英文设置教程

 

$total_list=$totalpage;

}

 

 

else

 

else

if($mjj==$this->PageNo)

$j = $this->PageNo-$list_len;

for($mjj=1;$mjj<=$totalpage;$mjj++)

 

{

if($this->PageNo >= $total_list)

 

 

$optionlist .= "<option value='".str_replace("{page}",$mjj,$tnamerule)."'>$mjj</option>\r\n";

$optionlen = strlen($totalpage);

 

['namerule2']);

$uarecords=" Records. ";

 

 

 

 

 

$uaprevious="上一页";

 

 

 

 

}

 

 

return "<li><span class=\"pageinfo\">".$uatotal." <strong>1</strong> ".$uapage." <strong>".$this->TotalResult."</strong>

用arc.listview.class.php覆盖include/arc.listview.class.php

 

/**

 

$uarecords="条记录";

调用方法:

 

$prepagenum = $this->PageNo-1;

 

$purl = $this->GetCurUrl();

 

 

*/

 

$uatotal="共";

 

 

{

function GetPageListST($list_len,$listitem="index,end,pre,next,pageno",$pagelang)

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://www.juheyunku.com/jz/dedecms/6359.shtml

相关文章

风云图片

推荐阅读

返回织梦cms频道首页