<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<%
if Request.Form("submit")="更新投票结果" and Request.Form("psw")="zj" then
'根据投票结果选定最好的文章作为故事的后续章节
phypath=server.MapPath("/project4_local")
if Request.Form("selchap")<>"" then
mfilename=Request.Form("selchap")
set fsys=server.CreateObject("scripting.filesystemobject")
for i=1 to 100
if not fsys.FileExists(phypath & "/chapter" & i & ".html") then
destfname="/chapter" & i & ".html"
exit for
end if
next
if fsys.FileExists(phypath & "/new1/" & mfilename) then
sourcename="/new1/" & mfilename
fsys.CopyFile phypath & "/" & sourcename,phypath & "/" & destfname
end if
end if
set mfile=fsys.OpenTextFile(phypath & "/story.txt",8,true)
set mfile2=fsys.OpenTextFile(phypath & "/" & destfname,1,true)
'打开文件读取标题
mcontent=mfile2.readall
'取得文章的标题
pos1=instr(1,mcontent,"<title>",1)
pos2=instr(pos1,mcontent,"</title>",1)
title=mid(mcontent,pos1+7,pos2-pos1-7)
'取得文章的作者
pos1=instr(1,mcontent,"作者:",1)
pos2=instr(pos1,mcontent,"<",1)
author=mid(mcontent,pos1+3,pos2-pos1-3)
mfile.writeline "/project4_local" & destfname & " " & "第" & i & "章:" & title & "(作者:" & author & ")"
mfile2.close
mfile.close
'将文章全部删除
fsys.DeleteFile phypath & "/new1/*.*"
set fsys=nothing
'清除数据库里所有的内容
set conn=server.CreateObject("adodb.connection")
conn.ConnectionString="dsn=vote"
conn.Open
conn.Execute("delete * from tbvote")
conn.Execute("delete * from tbcomment")
conn.Close
set conn=nothing
Response.Write "更新投票结果<br>"
Response.Write "得票最多的新文章加入到新的一章中去了"
else
'更新投票结果如果没有输入口令,则显示提示信息
Response.Write "<font size=4><strong>"
Response.Write "注意:<br>只有管理者才能根据投票结果更新文章"
Response.Write "</strong></font>"
end if
%>
</BODY>
</HTML>
故事接龙3 new.asp
时间: 2025-01-20 23:47:57
故事接龙3 new.asp的相关文章
故事接龙9 top.asp
<%@ Language=VBScript %><html><head><meta NAME="GENERATOR" Content="Microsoft Visual Studio 6.0"></head><body><p align="center"><strong><font color="crimson" face=&
故事接龙4 post.asp
<%@ Language=VBScript %><HTML><HEAD><META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0"></HEAD><BODY><%'该变量取得当前发表的故事是第几章dim xchapterstrfilename=server.MapPath("story.txt")set co
故事接龙7 showmessage.asp
<%@ Language=VBScript %><HTML><HEAD><META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0"></HEAD><BODY><P><FONT color=darkviolet face="" size=2>网上故事接龙</FONT></P&
故事接龙6 readold.asp
ado <%@ Language=VBScript %><HTML><HEAD><Title>故事接龙</Title></HEAD><BODY><font size=2><%strfilename=server.MapPath("story.txt")set fsys=server.CreateObject("scripting.filesystemobject")
故事接龙10 viewcomment.asp
<%@ Language=VBScript %><HTML><HEAD><META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0"></HEAD><BODY><FORM action="new.asp" target=mainFrame method=post id=form1 name=form1>&
故事接龙5 readnew.asp
<%@ Language=VBScript %><HTML><HEAD><META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0"></HEAD><BODY><FORM action="handlevote.asp" target=mainFrame method=post id=form1 name=fo
故事接龙2 handlevote.asp
<%@ Language=VBScript %><%'以下为处理投票的asp程序if Request.ServerVariables("http_method")="POST" then if Request.Form("voteradio")<>"" then '只有用户选择了认为续写得好得文章才进行处理 set rec=server.CreateObject(
故事接龙8 start.asp
<%@ Language=VBScript %><html><head><title>Untitled Document</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head><frameset rows="80,273*" frameborder=
请问谁有曹衍龙的《ASP/ASP.NET数据库开发实用工程案例精选》这本书的源代码啊?
问题描述 请问谁有曹衍龙的<ASP/ASP.NET数据库开发实用工程案例精选>这本书的源代码啊?想学习一下!谢谢同志们 解决方案 解决方案二:我也在找呀,找到了喊一声呀