ewebeditor网站编辑器加入分页功能

yzx7758258 2011-07-05 09:59:08
有谁弄过有经验的帮我弄弄。。谢谢啦,加我158351360我发源码看下,照着网上操作不太会弄
...全文
278 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
yzx7758258 2011-07-09
  • 打赏
  • 举报
回复
上面是新闻的。现在新闻调用正常分页,只要后台EW发布文章加入[netpage]前台就能正常显示!
但是现在产品跟案例加入不成功不懂怎么调用!
yzx7758258 2011-07-09
  • 打赏
  • 举报
回复
 <%@ LANGUAGE = VBScript.Encode %>
<!--#include file="class/sub.asp" -->
<!--#include file="function.inc.asp" --><%owen=request("id")%>

<%
id=cstr(request("id"))
'然后取得page的值和link的值:
if request.QueryString("page")="" then
page=1
else
page=request.querystring("page")
end if
link="shownews.asp?id="&request.querystring("id")

Set rsnews=Server.CreateObject("ADODB.RecordSet")
sql="update news set hits=hits+1 where id="&id
conn.execute sql
sql="select * from news where id="&owen
rsnews.Open sql,conn,1,1
title=rsnews("title")
if rsnews.eof and rsnews.bof then
response.Write("数据库出错")
else
%>
<!--#include file="include/top.asp" -->

<div id='content' style='width:990px;height:634px;background:url(effect/source/bg/cbg.gif);margin:0px auto'>


<!-- 图片/FLASH -->

<div id='pdv_12718' class='pdv_class' title='' style='width:990px;height:70px;top:0px;left:0px; z-index:9'>
<div id='spdv_12718' class='pdv_content' style='overflow:hidden;width:100%;height:100%'>
<div class="pdv_border" style="margin:0;padding:0;height:100%;border:0px solid;background:;">
<div style="height:25px;margin:1px;display:none;background:;">
<div style="float:left;margin-left:12px;line-height:25px;font-weight:bold;color:">

</div>
<div style="float:right;margin-right:10px;display:none">
<a href="news/class/-1" style="line-height:25px;color:">更多</a>
</div>
</div>
<div style="padding:0px">


<img src="diy/pics/20100413/1271146066.gif" border="0" width="100%" />

</div>
</div>

</div>
</div>

<!-- 文章一级分类 -->

<div id='pdv_12734' class='pdv_class' title='' style='width:173px;height:200px;top:54px;left:38px; z-index:10'>
<div id='spdv_12734' class='pdv_content' style='overflow:visible;width:100%;'>
<div class="pdv_border" style="border:0px;height:100%;padding:0;margin:0;">
<div style="height:100%;">
<div style="height:54px;border:0px;padding:0;margin:0;background:url(base/border/782/images/title.gif) 0px 0px no-repeat;">
<div style="float:right;width:60px;height:54px;background:url(base/border/782/images/title.gif) -840px 0px no-repeat;"></div>
</div>
<div style="margin:0px;padding:0px;">

<link href="news/templates/css/newsclass_dolphin.css" rel="stylesheet" type="text/css" />
<div class="newsclass_dolphin">


<% call xwleft() %>
</div>

</div>
</div>
</div>

</div>
</div>

<!-- 文章翻页检索 -->

<div id='pdv_12732' class='pdv_class' title='新闻检索' style='width:680px;height:500px;top:106px;left:257px; z-index:11'>
<div id='spdv_12732' class='pdv_content' style='overflow:visible;width:100%;'>
<div class="pdv_border" style="margin:0;padding:0;height:100%;border:0px solid;background:;">
<div style="height:25px;margin:1px;display:none;background:;">
<div style="float:left;margin-left:12px;line-height:25px;font-weight:bold;color:">
新闻检索
</div>
<div style="float:right;margin-right:10px;display:none">
<a href="news/class/-1" style="line-height:25px;color:">更多</a>
</div>
</div>
<div style="padding:0px">

<link href="news/templates/css/newsquery.css" rel="stylesheet" type="text/css" />
<div id="newsquery">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="45" align="center"><strong><%= rsnews("title") %> </strong></td>
</tr>
<tr>
<td height="30" bgcolor="#F2F2F2" style="border-top: 1 solid #666666;border-bottom: 1 solid #666666">  发布者:<%= rsnews("user") %> 发布时间:<%= rsnews("AddDate") %> 阅读:<font color="#FF0000"><%= rsnews("hits") %></font>次 </td>
</tr>
<tr>
<td><br />
<%call contentfy(rsnews("content"),page,link)%>


<%'rsnews("content") %></td>
</tr>


<%
end if
rsnews.close
set rsnews=nothing
%>
</table>
</div>

</div>
</div>

</div>
</div>

<!-- 当前位置提示条 -->

<div id='pdv_12731' class='pdv_class' title='当前位置' style='width:688px;height:30px;top:49px;left:254px; z-index:12'>
<div id='spdv_12731' class='pdv_content' style='overflow:hidden;width:100%;height:100%'>
<div class="pdv_border" style="border:0px;background:url(base/border/788/images/title.gif) no-repeat;padding:0px;margin:0px;height:41px">

<link href="news/templates/css/nav.css" rel="stylesheet" type="text/css" />
<div id="nav">
您现在的位置:<a href="index.asp"><%=SiteTitle%></a>

> <a href="news.asp?BigClass=<%= BigClass %>" ><%= BigClass %></a>

</div>

</div>

</div>
</div>

<!-- 文章搜索表单 -->
</div>
<% call newslook %>


<%
rs.close
set rs=nothing
call CloseConn()
%></body>
</html>

这是shownews源代,红色为修改部分!
yzx7758258 2011-07-09
  • 打赏
  • 举报
回复
因为好多源码。不好贴。。能帮忙看下不?
凯浩柱子 2011-07-09
  • 打赏
  • 举报
回复
最好把代码贴出来看看,个人感觉你的分页可能只针对新闻版块了
yzx7758258 2011-07-09
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 lzp4881 的回复:]

这个跟ewebeditor没关系,ewebeditor只是一个编辑器,它只负责输入数据,显示数据时根本用不着它。
网上有长文章分页代码,你可以直接拿来用。
http://hi.baidu.com/lz0830/blog/item/7a670d248c3900064d088d64.html
[/Quote]


问题现在是新闻版块分页成功了。但是产品跟案例说明调用不到分页,因为我是在后台EW加入了一个按钮,自由分页[netpage]
lzp4881 2011-07-06
  • 打赏
  • 举报
回复
这个跟ewebeditor没关系,ewebeditor只是一个编辑器,它只负责输入数据,显示数据时根本用不着它。
网上有长文章分页代码,你可以直接拿来用。
http://hi.baidu.com/lz0830/blog/item/7a670d248c3900064d088d64.html
ewebeditor 4.8商业版精简通用版本(集成asp版本) 增加高级服务器端文件浏览及共享库功能按钮,充分利用已有文件及共享文件。包括图片库、Flash库、媒体库、附件库。超级界面效果:文件夹目录树、4种文件多种查看模式、8种文件排序方式、文件类型图示。文件查看模式包括:详细资料模式、列表模式、图标模式、缩略图模式,其中缩略图模式支持图片及Flash的预览。文件排序方式包括:按名称排序、按类型排序、按文件大小排序、按修改时间排序,每种排序还包括正序和倒序。后台可设置此功能的开关。[试用] 增加11种语言包。包括:日语,西班牙语,俄语,德语,法语,意大利语,荷兰语,瑞典语,葡萄牙语,挪威语,丹麦语。 增加IeSpell拼写检查接口调用功能按钮。 增加插入打印分页功能按钮。 增加字母大写、小写转换功能按钮,同时光标精确定位。 增加Excel多OWC版本兼容对话框选项。 字体大小、名称、颜色,全部使用样式优化。格式化不再使用标签,使用符合标准的标签。 多语言界面优化。使得对话框界面在各种语言下都能更完好表现。 修正背景图片对话框未按后台设置优化显示用户界面。 修正本地图片在IE7下不能预览问题。 修正自定义上传文件路径接口参数取值有可能的错误。 优化用户友好,增强图片的实时预览。 修正当拷贝的是一个控件时,纯文本粘贴时的错误。 ASP版,修正大内容时有可能出现的内容重复问题。 JSP版,修正可能的文件上传问题。 ewebeditor 4.8 精简通用版本(集成asp版本) 为建站铺搜集整理、制作。 4.6版本的水印功能基本上完成,但是没有放到这个版本中。 4.6版本会单独发行,不和本版本一起发行。 本版本最多称为 4.8 预览版本。 除了没有服务器插件文件外,其他都很齐全。 能够上传图片。支持水印功能。 服务器插件第一版本(可以在网上下) eWebEditor是eWebSoft.com旗下eWeb团队开发的基于网页的、所见即所得的在线HTML编辑器。她能够在网页上实现许多桌面编辑软件(如:Word)所具有的强大可视编辑功能;她是一个真正的绿色软件,不需要在计算机上安装任何的客户端软件;她的易用使得WEB开发人员只要一行代码即可完成调用。

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧