K9 通用版 博客版 主题版 地方门户版 企业版 |   企业(ASP) 分类 使用 分享 疑问 模板 建议 帮助 错误 其他
+新建主题 [Ajax]
填写帐号密码即可完成注册
+新建话题 最新回复排序 最新主题排序 精华帖子

前台产品列表页上下页代码的问题

1Next >

yuanle 发表于:11-01-07 22:41 [添加收藏] 楼主 [回复] #Top#
yuanle 人气:19 积分:23 金币:56
如题,本人在生成前台页面列表后发现上下页是英文的,哪位高手知道在哪里可以修改成中文的。谢谢了
Winnerzyy 发表于:11-01-08 01:37 沙发 [回复] #Top#
Winnerzyy 人气:367 积分:2147 金币:25099
KC元老 特殊贡献
asp的吧
搜索了一下


1、打开/page/system/fun.asp

2、搜索到function pagelist(l1,l2,l3,l5)

3 将整个函数
‘pagelist *** Copyright © KingCMS.com All Rights Reserved. ***
function pagelist(l1,l2,l3,l5)
if instr(l1,”$”)=0 then exit function
if l5=0 then exit function
dim l4,k,l6,l7,I2
l2=int(l2):l3=int(l3):l5=int(l5)
if l2>3 then
l4=(”<a href=”””&replace(l1,”$”,””)&”””>1 …</a>”)’
end if
if l2>2 then
l4=l4&(”<a href=”””&replace(l1,”$”,l2-1)&”””>‹‹</a>”)
elseif l2=2 then
l4=l4&(”<a href=”””&replace(l1,”$”,””)&”””>‹‹</a>”)
end if
for k=l2-2 to l2+7
if k>=1 and k<=l3 then
if cstr(k)=cstr(l2) then
l4=l4&(”<strong>”&k&”</strong>”)
else
if k=1 then
l4=l4&(”<a href=”””&replace(l1,”$”,””)&”””>”&k&”</a>”)
else
l4=l4&(”<a href=”””&replace(l1,”$”,k)&”””>”&k&”</a>”)
end if
end if
end if
next
if l2<l3 and l3<>1 then
l4=l4&(”<a href=”””&replace(l1,”$”,l2+1)&”””>››</a>”)
end if
if l2<l3-7 then
l4=l4&(”<a href=”””&replace(l1,”$”,l3)&”””>… “&l3&”</a>”)
end if

I2=split(l1,”$”)

‘ l4=l4&”<kbd><input type=””text”” name=””pid”” size=””2″” onkeydown=””if(event.keyCode==13) {window.location=’”&htm2js(I2(0))&”‘+this.value+’”&htm2js(I2(1))&”‘; return false;}”” /></kbd>”
pagelist=”<span class=””k_pagelist””><em>”&l5&”</em>”&l4&”</span>”
end function
‘l11l *** Copyright © KingCMS.com All Rights Reserved. ***
变更为

‘pagelist *** Copyright © KingCMS.com All Rights Reserved. ***
function pagelist(l1,l2,l3,l5)
if instr(l1,”$”)=0 then exit function
if l5=0 then exit function
dim l4,k,l6,l7,I2
l2=int(l2):l3=int(l3):l5=int(l5)
if l2>3 then
l4=(”<a href=”””&replace(l1,”$”,””)&”””>首页</a>”)’
end if
if l2>2 then
l4=l4&(”<a href=”””&replace(l1,”$”,l2-1)&”””>上一页</a>”)
elseif l2=2 then
l4=l4&(”<a href=”””&replace(l1,”$”,””)&”””>上一页</a>”)
end if
for k=l2-2 to l2+7
if k>=1 and k<=l3 then
if cstr(k)=cstr(l2) then
l4=l4&(”<strong>”&k&”</strong>”)
else
if k=1 then
l4=l4&(”<a href=”””&replace(l1,”$”,””)&”””>”&k&”</a>”)
else
l4=l4&(”<a href=”””&replace(l1,”$”,k)&”””>”&k&”</a>”)
end if
end if
end if
next
if l2<l3 and l3<>1 then
l4=l4&(”<a href=”””&replace(l1,”$”,l2+1)&”””>下一页</a>”)
end if
if l2<l3-7 then
l4=l4&(”<a href=”””&replace(l1,”$”,l3)&”””>尾页</a>”)
end if

I2=split(l1,”$”)

‘ l4=l4&”<kbd><input type=””text”” name=””pid”” size=””2″” onkeydown=””if(event.keyCode==13)

{window.location=’”&htm2js(I2(0))&”‘+this.value+’”&htm2js(I2(1))&”‘; return false;}”” /></kbd>”
pagelist=”<span class=””k_pagelist””>共<em>”&l5&”</em>条”&l4&”</span>”
end function
‘l11l *** Copyright © KingCMS.com All Rights Reserved. ***

文章页的修改
1、打开/page/Article/fun.asp

2、搜索到public function pageslist(l1,l2,l3,l4,l5)

3、找到第一个next,然后在它下面添加下面的代码

if l2<l3 and l2<>1 then
I1=”<a href=”””&pagepath(l1,l2-1)&”””>上一页</a>”&I1& “<a href=”””&pagepath(l1,l2+1)&”””>下一页</a>”
else
if l2=1 then
I1=”<a href=#>上一页</a>”&I1&”<a href=”””&pagepath(l1,l2+1)&”””>下一页</a>”

else
if l2=l3 then
I1=”<a href=”””&pagepath(l1,l2-1)&”””>上一页</a>”&I1& “<a href=#>下一页</a>”
end if
end if
end if
yuanle 发表于:11-01-08 10:37 板凳 [回复] #Top#
yuanle 人气:19 积分:23 金币:56
不是的,我的是php版本的。
fox1383164k 发表于:11-01-08 10:39 4楼 [回复] #Top#
fox1383164k 人气:377 积分:864 金币:3006
KC元老 灌水狂人
PHP的请看官方模板演示
fox1383164k 发表于:11-01-08 10:40 5楼 [回复] #Top#
fox1383164k 人气:377 积分:864 金币:3006
KC元老 灌水狂人
<div class="page">
  {king:pagelist}
   {king:Previous replace='Previous|上一页'/}
   {king:standard/}
   {king:Next replace='Next|下一页'/}
   {king:jump/} 
  {/king:pagelist} 
</div><div class="page">
{king:pagelist}
        {king:standard/}
        {king:Next/}
        {king:jump/}
{/king:pagelist} 
</div>
yuanle 发表于:11-01-09 14:32 6楼 [回复] #Top#
yuanle 人气:19 积分:23 金币:56
谢谢了,问题终于解决了。爱死kingcms了
snoopyfansxr 发表于:11-01-11 21:42 7楼 [回复] #Top#
snoopyfansxr 人气:30 积分:199 金币:585
呵呵 爱死了
xiekewen 发表于:11-04-29 18:00 8楼 [回复] #Top#
xiekewen 人气:19 积分:253 金币:798
哈哈哈

1Next >

发表回复

帐号 匿名发布 审核后可见 [加载完整在线编辑器]
内容
验证码
KingCMS 内容管理系统

关于我们 联系我们 广告报价 付款方式 站点导航

Copyright © 2004-2015 Focuznet All rights reserved.

广州唯众网络科技有限公司 粤ICP备08008106号