- NowPage = $pageNo;
- //获得当前页面编号
- $this->Fields['cpagenum'] = $this->NowPage;
- if($this->SplitPageField!="" &&
- isset($this->Fields[$this->SplitPageField]))
- {
- $this->Fields[$this->SplitPageField] = $this->SplitFields[$pageNo - 1];
- } @H_301_7@
Fields['cpagenum'] = $this->NowPage; @H_301_7@
函数,修改为:
TotalPage = count($this->SplitFields); } //获得当前页面总数 $this->Fields['totalpage'] = $this->TotalPage; $this->LoadTemplet(); $this->ParseTempletsFirst(); } @H_301_7@增加了如下代码用来获得总页码:
Fields['totalpage'] = $this->TotalPage; @H_301_7@ 页面和动态页面以及向下翻页 显示的模板,增加如下js代码:@H_301_7@ 0){ if(npage==1) filename = curl.substr(0,r); else filename = curl.substr(0,r1);
if(npage==totalpage){ location.href = filename+".html"; } else{ location.href = filename+"_"+(npage+1)+".html"; } }else{ if(npage==totalpage){ location.href = "view.PHP?aid={dede:field/}"; } else{ location.href = "view.PHP?aid={dede:field/}&pageno="+(npage+1); } } } @H_301_7@ 方法goNextPic用来切换到下一个图片。 修改图片输出代码,完成goNextPic方法调用
修改include/inc_channel_unit.PHP
分页式图集”的部分。
修改类似(仔细看代码,需要修改好几个地方):@H_301_7@
$alt
\r\n" ;="" @h_301_7@
$alt
\r\n" ;="" @h_@H_301_7@
$alt
\r\n" ;="" @h_
$alt
" ;="" @h_301_7@
$alt
\r\n" ;="" @h_
$alt
" ;="" @h_
$alt
\r\n" ;="" @h_
$alt
" ;="" @h_@H_301_7@
$alt
\r\n" ;="" @h_
$alt
" ;="" @h_@H_301_7@
$alt
\r\n" ;="" @h_
$alt
" ;="" @h_301_7@
$alt
\r\n" ;="" @h_
$alt
" ;="" @h_
$alt
\r\n" ;="" @h_
$alt
" ;="" @h_