六月婷婷综合激情-六月婷婷综合-六月婷婷在线观看-六月婷婷在线-亚洲黄色在线网站-亚洲黄色在线观看网站

明輝手游網中心:是一個免費提供流行視頻軟件教程、在線學習分享的學習平臺!

用ASP完成免費計數器提供-2

[摘要]4.用戶管理程序 <%Response.Expires=0 dim input() thisfile = server.mappath("counter.asp") Set fs = CreateObject("Scripting.FileSystemObjec...

4.用戶管理程序
<%Response.Expires=0
dim input()
thisfile = server.mappath("counter.asp")
Set fs = CreateObject("Scripting.FileSystemObject")
Set thisfile = fs.OpenTextFile(thisfile,1,False)
count = 0
do while not thisfile.AtEndOfStream
thisline = thisfile.readline
Redim preserve input(count)
input(count) = thisline
count = count + 1
loop
thisfile.Close
number=(count-1)/5
set fs=nothing
%>
<html>
<title>計數器管理系統</title>
<body>
<p align="center"><font style="font-size: 20pt">計數器管理系統</font></p>
<p align="center">目前保留用戶 <%=number%>個</p>
<table width="760">
<tr>
<td width="100" ><font color="#FF00FF">編號</font></td>
<td width="200"><font color="#FF00FF">用戶名</font></td>
<td width="360" ><font color="#FF00FF">網站名</font></td>
<td width="100" ><font color="#FF00FF">刪除</font></td>
</tr>
<%x=""
for i=1 to number
x=input((i-1)*5+1)
Response.Write "<tr><td width='100'><font color=#00ffFF>" &i & "</font>"
Response.Write "<td width=200 ><font color=#FFffFF>"&input((i-1)*5+1)&"</font></td>" Response.Write "<td
width=360 ><font color=#FF00FF>"&input((i-1)*5+4)&"</font></td>"
Response.Write "<td width=100 align=left><a href=dele.asp?id=" &x& ">刪除</a></td></tr>"
next
%>
</table>
</body>
</html>
5.用戶刪除處理程序dele.asp
<%Response.Expires=0
dim input()
id=Request.QueryString("id")
thisfile = server.mappath("counter.asp")
Set fs = CreateObject("Scripting.FileSystemObject")
Set infile = fs.OpenTextFile(thisfile,1,False)
counter = 0
do while not infile.AtEndOfStream
thisline = infile.readline
Redim preserve input(counter)
input(counter) = thisline
counter = counter + 1
loop
infile.Close
number=(counter-1)/5
Set outfile = fs.CreateTextFile(thisfile)
outfile.WriteLine input(0)
for i=1 to number
if input((i-1)*5+1)<>id then
outfile.WriteLine input((i-1)*5+1)
outfile.WriteLine input((i-1)*5+2)
outfile.WriteLine input((i-1)*5+3)
outfile.WriteLine input((i-1)*5+4)
outfile.WriteLine input((i-1)*5+5)
end if
next
outfile.Close
set fs=nothing
Response.Redirect "manage.asp"
%>
---------------------------------------------------
(出處:熱點網絡)


主站蜘蛛池模板: 亚久久 | 视频在线观看免费视频 | 欧美笫一页 | 色综合久久天天综合 | 日韩a在线看免费观看视频 日韩a在线观看免费观看 | 亚洲国产成人久久综合一 | 天天做天天爱天天一爽一毛片 | 天天躁狠狠躁夜躁2021 | 五月婷综合 | 天天婷婷 | 日韩高清的天堂在线观看免费 | 视频一区二区三区在线观看 | 日韩免费不卡 | 英国美女一级毛片视频 | 亚洲高清在线播放 | 欧美在线高清brazzers在线 | 永久网站 | 亚洲一区在线免费 | 午夜影院在线看 | 天天看片夜夜爽 | 中文字幕在线观看第一页 | 亚洲自偷自偷图片在线高清 | 亚洲网站在线 | 青娱乐国产视频 | 日本高清视频在线观看 | 日韩高清在线不卡 | 天堂网在线新版www 天堂网在线网站成人午夜网站 | 天天看片天天干 | 亚洲图片色| 亚洲国产成人精品一区91 | 午夜影视网站 | 欧美亚洲一区二区三区四 | 最近韩国中文字幕更新 | 亚洲伊人久久精品 | 日本一道高清不卡免费 | 日韩免费精品一级毛片 | 四虎网址换成什么了2021 | 亚洲免费视频网站 | 最近免费的中文字幕一 | 欧美亚洲国产日韩综合在线播放 | 色黄网站成年女人色毛片 |