去掉织梦搜索页翻页链接中的中括号“[]”
来源:互联网 发布:金策大数据分析系统 编辑:程序博客网 时间:2024/05/29 14:36
首先,找到控制搜索页的php文件,位置在:include/arc.searchview.class.php
在其中搜索//获得数字链接,代码大致如下:
//获得数字链接 $listdd=""; $total_list = $list_len * 2 + 1; if($this->PageNo >= $total_list) { $j = $this->PageNo - $list_len; $total_list = $this->PageNo + $list_len; if($total_list > $totalpage) { $total_list = $totalpage; } } else { $j=1; if($total_list > $totalpage) { $total_list = $totalpage; } } for($j; $j<=$total_list; $j++) { if($j == $this->PageNo) { $listdd.= "<td>$j </td>\r\n"; } else { $listdd.="<td><a href='".$purl."PageNo=$j'>[".$j."]</a> </td>\r\n"; } } $plist = "<table border='0' cellpadding='0' cellspacing='0'>\r\n"; $plist .= "<tr align='center' style='font-size:10pt'>\r\n"; $plist .= "<form name='pagelist' action='".$this->GetCurUrl()."'>$hidenform"; $plist .= $infos; $plist .= $indexpage; $plist .= $prepage; $plist .= $listdd; $plist .= $nextpage; $plist .= $endpage; if($totalpage>$total_list) { $plist.="<td width='38'><input type='text' name='PageNo' style='width:28px;height:14px' value='".$this->PageNo."' /></td>\r\n"; $plist.="<td width='30'><input type='submit' name='plistgo' value='GO' style='width:30px;height:22px;font-size:9pt' /></td>\r\n"; } $plist .= "</form>\r\n</tr>\r\n</table>\r\n"; return $plist; }
在其中找到 $listdd.="<td><a href='".$purl."PageNo=$j'>[".$j."]</a> </td>\r\n";
,把其中的[".$j."]
替换成".$j."
就可以了。如果想改其它东西,也可以看看这部分代码。
阅读全文
0 0
- 去掉织梦搜索页翻页链接中的中括号“[]”
- 织梦栏目列表页翻页URL链接优化
- WP中去掉固定链接中的index.php和category
- 利用正则去掉各种括号中的内容,包含括号
- 去掉pdf中的网页链接
- 去掉链接中的虚线边框
- shell中的括号(小括号,大括号,中括号)
- shell中的括号(小括号,中括号,大括号)
- shell中的括号(小括号,中括号,大括号)
- shell中的括号(小括号,中括号,大括号)
- shell中的括号(小括号,中括号,大括号)
- shell中的括号(小括号,中括号,大括号)
- Linux文档中翻页和搜索关键字
- shell中的括号(小括号,中括号,大括号/花括号)
- 用技术去掉搜索引擎中的死链接
- iOS Xcode中去掉中括号的方法
- solr中搜索时括号的问题
- liferay6.2.2ga2 中的 搜索portlet的翻页BUG修正
- L
- SSM框架整合方式(二):XML配置文件代码
- Spring的两种代理JDK和CGLIB的区别
- 关于中过的病毒的笔记
- 基于TCP简单的购票系统
- 去掉织梦搜索页翻页链接中的中括号“[]”
- linux下svn修改日志时候显示revprop change blocked by pre-revprop
- cocos2dx tiledmap 45度地图 世界坐标转换 格子坐标
- WIN7如何搭建Java+eclipse+maven的测试环境
- A+B for Input-Output Practice (III)
- logistics回归多样本算法
- 为什么搜索结果只能显示10篇文章?
- git简单使用
- react的学习之路之一(1)-------jsx语法;