人人做人人澡人人爽欧美,国产主播一区二区,久久久精品五月天,羞羞视频在线观看免费

當前位置:蘿卜系統下載站 > 技術開發教程 > 詳細頁面

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

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

更新時間:2022-07-17 文章作者:未知 信息來源:網絡 閱讀次數:


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

溫馨提示:喜歡本站的話,請收藏一下本站!

本類教程下載

系統下載排行

網站地圖xml | 網站地圖html
主站蜘蛛池模板: 上虞市| 宝应县| 兴化市| 农安县| 黄陵县| 郴州市| 垦利县| 封开县| 始兴县| 东安县| 沁源县| 吐鲁番市| 垣曲县| 青铜峡市| 剑河县| 和平县| 天祝| 襄樊市| 磐石市| 进贤县| 武乡县| 铁力市| 绥阳县| 辽阳县| 红安县| 阜新| 利川市| 云梦县| 丹江口市| 永川市| 同仁县| 太仆寺旗| 佛坪县| 岢岚县| 松桃| 辽阳县| 永靖县| 墨玉县| 赤壁市| 江西省| 子长县|