新闻发布系统设计与实现

头像
吴珊珊珊   2021-09-19   7109浏览
已有125条回答
头像
honeybackkom
2023-12-21

senddate.asp(发送界面)




发给:*


标题:
*


内容:



附件:
(不能超过100K)







*************************************************************************
senddateindb.asp(把要发送的文件保存到库)






<%
'On Error Resume Next
oabusyname=request.cookies("oabusyname")
oabusyusername=request.cookies("oabusyusername")
oabusyuserdept=request.cookies("oabusyuserdept")
oabusyuserlevel=request.cookies("oabusyuserlevel")
if oabusyusername="" then response.redirect "default.asp"
%>






企业管理系统


<%
call bghead()
%>









发送




<%
call bgmid()
%>

<%
if Request.ServerVariables("REQUEST_METHOD") = "POST" Then
'---------------------------
'response.write "开始发送
"
'---------------------------
Dim Fields
UploadSizeLimit=100000
Set Fields = GetUpload()
dim Field
For Each Field In Fields.Items
if Field.name="title" then title=BinaryToString(Field.value)
if Field.name="content" then content=BinaryToString(Field.value)
if Field.name="sendto" then sendto=BinaryToString(Field.value)
if Field.name="file1" then
filename=field.FileName
fileContentType=field.ContentType
filevalue=field.value
end if
next
'--------------------------------------
'response.write "title=" & title & "
"
'response.write "content=" & content & "
"
'response.write "sendto=" & sendto & "
"
'response.write "filedname=" & filename & "
"
'response.write "fileContentType=" & fileContentType & "
"
'----------------------------------------
dim mysendto
mysendto=split(sendto,"|",-1,1)
for each sendtoinf in mysendto
userdeptpoint=InStr(sendtoinf,":")
if userdeptpoint>0 then
sendtoinflen=len(sendtoinf)
recipientusername=right(sendtoinf,sendtoinflen-userdeptpoint)
if recipientusername="所有人" then
recipientusername="所有人"
else
usernamepoint=Instr(recipientusername,"(")
usernamelen=len(recipientusername)
recipientusername=left(recipientusername,usernamelen-1)
recipientusername=right(recipientusername,usernamelen-1-usernamepoint)
end if
recipientuserdept=left(sendtoinf,userdeptpoint-1)
set conn=opendb("oabusy","conn","accessdsn")
set rs=server.createobject("ADODB.recordset")
sql = "select * from senddate"
rs.Open sql,conn,1,3
rs.addnew
rs("title")=title
rs("content")=content
rs("sender")=oabusyusername
rs("recipientusername")=recipientusername
rs("recipientuserdept")=recipientuserdept
if filename<>"" then
rs("filename")=filename
rs("fileContentType")=fileContentType
rs("filevalue").appendchunk filevalue
end if
rs.update
rs.close
set rs=nothing
set conn=nothing

end if

next

%>



发送完成

<%
end if
%>
<%
call bgback()
%>



*****************************************************************
listsendfile.asp (把库里面的文件取出来并,如果是文本或图像会直接打开)

<%
set conn=opendb("oabusy","conn","accessdsn")
Set rs=Server.CreateObject("ADODB.recordset")
'request("id")是从上一个文件传过来的值,表示这个文件在库里的位置
sql="select filevalue,fileContentType from senddate where id=" & trim(request("id"))
rs.open sql,conn,1,1
Response.ContentType = rs("fileContentType")
Response.BinaryWrite rs("filevalue").getChunk(7500000)
rs.close
set rs=nothing
set conn=nothing
%>

135

头像
饭兜兜兜得牢
2023-07-05

站长新闻发布系统 v5.10

功能介绍:
1、模块化的程序设计,使得前台页面设计与程序设计几乎完全分离。在前台页面采用过程调用方法。在修改页面设计时只需要在相应位置调用设计好的过程就可以了。另外,这些过程还了不同的调用参数,以实现不同的效果;
2、阅读等级功能,可以加密文章,进行收费管理;
3、可以完全可视化编辑文章内容,所见即所得;也可直接编辑HTML源代;
4、无组件上传文件,服务器无需安装任何上传组件,无需支持FSO,即可上传文件。可文件上传的类型和文件大小。上传的图片和FLAS会自动显示出来,其他文件则以UBB代显示;
5、支持无限级文章分类;
6、支持管理员:超级用户、普通管理员、文章录入员;
7、文章评能;
8、发送邮件功能(需要服务器安装JMail组件)
9、最新的防库代,最新的防SOL注入,最新的容错代,防止%5c探测库;
:s.net/soft/5694.htm

170

头像
郁敏0729
2023-01-02

为了200分,顶了.你可以去百度网页搜索一下看看,看能不能找到,只能祝你好运咯!!!!

105

头像
蔻蔻妖妖柒
2022-09-30

200分呐。。。。真服了你们这了。,。。。

126

头像
蛋蛋love祺祺
2021-11-30

太多新闻发布了,你会不会做网站哟..要是不会,直接找个全站下..去站长站吧.

33

相关问题

新闻发布系统设计与实现
天使之懿727 1970-01-01

asp代码+access数据库技术相关的英文翻译5000字

Java新闻发布系统实现思路?
fionazhang77 1970-01-01

我看见163的所有新闻链接点开都是html结尾,请问用Java实现的思路是什么,有何性能优势,我了解了一下,这种应用是用JSP生成静态页面,求详细实现思路。

新闻发布系统 jsp
起舞徘徊风露下 1970-01-01

谁有源程序和报告给个谢谢。邮箱 szszyt@163.com

java新闻发布系统
非非1227 1970-01-01

谁有java新闻发布系统给我发一份 数据库 源码 可以实现 增删改查就可以需要界面 可以运行的!!!! 主要用毕业

新闻发布管理系统国内外研究现状
欧阳安Muse 1970-01-01

毕业论文的开题报告要用,字数希望多一些

求用jsp做的新闻发布系统
天道酬勤1212 1970-01-01

eclipse+mysql

最新问答

排水论文在哪发?
伊兰0518 2021-09-19

小区市外排水论文发哪个杂志可以呢?我需要发表一篇这方面的论文。

word转pdf,为什么不显示图片图片?
花花的老妈 2021-09-19

我想把论文从word格式转换成PDF格式,用的金山WPS,可转换完成之后,里面的流程图就不见了,空白~~这是为什么呢?谁能帮我解决一下!谢谢!

公众号与小程序有什么区别
汤糖躺烫湯 2021-09-19

公众号与小程序有什么区别

如何制作电子小报
dream959595 2021-09-19

镀铬什么意思
autumngold 2021-09-19

镀铬什么意思

中国电影艺术的思想
幸福顺延 2021-09-19

中国针灸大纲作者是谁?
王子麻麻 2021-09-19

热门问答

排水论文在哪发?
伊兰0518 2021-09-19

小区市外排水论文发哪个杂志可以呢?我需要发表一篇这方面的论文。

word转pdf,为什么不显示图片图片?
花花的老妈 2021-09-19

我想把论文从word格式转换成PDF格式,用的金山WPS,可转换完成之后,里面的流程图就不见了,空白~~这是为什么呢?谁能帮我解决一下!谢谢!

公众号与小程序有什么区别
汤糖躺烫湯 2021-09-19

公众号与小程序有什么区别

如何制作电子小报
dream959595 2021-09-19

镀铬什么意思
autumngold 2021-09-19

镀铬什么意思

中国电影艺术的思想
幸福顺延 2021-09-19

中国针灸大纲作者是谁?
王子麻麻 2021-09-19

Coptyright © www.lw85.com电脑版