新闻发布系统设计与实现

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

吴珊珊珊 2021-09-19 09:36 396 次浏览 赞 51

最新问答

  • honeybackkom

    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
    %>

    浏览 332赞 69时间 2024-04-17
  • 饭兜兜兜得牢

    站长新闻发布系统 v5.10

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

    浏览 386赞 57时间 2023-12-27
  • 郁敏0729

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

    浏览 270赞 94时间 2023-08-08
  • 蔻蔻妖妖柒

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

    浏览 454赞 135时间 2022-06-27
  • 蛋蛋love祺祺

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

    浏览 222赞 129时间 2021-11-27

新闻发布系统设计与实现

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