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

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

用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"
%>
---------------------------------------------------
(出處:熱點網絡)


主站蜘蛛池模板: 欧美视频在线播放观看免费福利资源 | 亚洲无限乱码一二三四区 | 日韩精品一区二三区中文 | 香蕉精品在线 | 五月婷婷六月色 | 青青国产成人久久91网站站 | 日韩国产欧美成人一区二区影院 | 亚洲免费mv| 婷婷5月天| 色噜噜狠狠成人中文小说 | 青青碰| 欧美一区二区三区免费观看视频 | 香蕉久久一区二区三区 | 日韩a毛片 | 日韩美女免费线视频网址 | 亚洲欧洲综合 | 日本福利片在线观看 | 青青青青久在线观看视频 | 午夜涩涩 | 四虎国产精品永久在线 | 四虎影院免费视频 | 午夜不卡av免费 | 欧洲成品大片在线播放 | 欧美亚洲国产精品久久 | 一级做a爰片久久毛片毛片 一级做a爰片久久毛片看看 | 欧美一线高本道高清在线 | 天堂福利视频 | 亚洲区欧美中文字幕久久 | 青青久久久 | 在线观看亚洲免费 | 欧美在线日韩在线 | 自拍视频免费 | 日韩欧美视频在线播放 | 四虎国产精品影库永久免费 | 亚洲精品在线看 | 日韩精品福利视频一区二区三区 | 亚洲欧美天堂 | 特级黄一级播放 | 性欧美xxx极品另类 性欧美xxxx性 | 中文天堂在线视频 | 日韩 欧美 亚洲国产 |