⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admin_user.asp

📁 网站整站
💻 ASP
📖 第 1 页 / 共 2 页
字号:
elseif rs("user_admin")="3" then
response.write "<font color=red>管理人员</font>"
else
response.write "非法用户"
end if%>
</td>
<td align=center>
<%if rs("pass")=0 then%>
&nbsp;<a href="?action=pass&id=<%=rs("id")%>"><font color=red><b>等待通过</b></font></a>
<%else%>
&nbsp;<a href="?action=nopass&id=<%=rs("id")%>">取消通过</a>
<%end if%>
</td>
<td align=center>&nbsp;<a href="?action=edit&id=<%=rs("id")%>">编辑</a>
</td></tr><tr><td class="hr" colspan="9"></td></tr>
<%
if i=rs.pagesize then exit do end if
i=i+1
rs.movenext
loop
end if
if rs.eof and rs.bof then
response.write"<tr><td colspan=9 height=100 align=center>暂时没有注册用户!</td></tr>"
else%>
<tr class="bg"><td  height=25 colspan=9>
<table width="100%" border="0"><tr><td width=20%>
&nbsp;<input name="chkAll" type="checkbox" id="chkAll" onclick=CheckAll(this.form) value="checkbox">
<input name="submit" type="submit" onClick="document.form.Action.value='Del'" value="删 除" class=adminbutton>
<input name="Action" type="hidden" id="Action" value="Del">
<input name="tab" type="hidden" id="tab" value="YC_user">
<input name="url" type="hidden" id="url" value="admin_user.asp">
</td><td width=80%>
&emsp;&emsp;共有用户<font color=red><%=rs.recordcount%></font>条,每页<font color=red><%=rs.pagesize%></font>条,分<font color=red><%=mypage%></font>/<%=rs.pagecount%>页&emsp;&emsp;&emsp;
<script language="javascript">
showPageLink("?page=",<%=mypage%>,<%=pages%>);
</script>
</td></tr>
</table>
</td></tr>
</form>
<%end if%>
</table>
<%
rs.close
set rs=nothing%>
<%elseif request("action")="new" then%>
<form method="post" name="form" id="form">
<table width="100%" align=center border="0" cellpadding="0" cellspacing="0" bordercolor="<%=border%>" rules=none class=3d>
<tr><td height="22"  class=title><b>&nbsp;<img src=img/ie.gif border=0 width=15 height=15 align=absMiddle>&nbsp;添加用户</b></td></tr>
<tr class="bg" height=25><td>&nbsp;用户名称:<input name="user" type="text" id="user"  size="20" class="yecao" style="width:120px">
</td></tr>
<tr height="25" class="bg"><td>&nbsp;用户密码:<input name="pass" type="password"   size="20" class="yecao" style="width:120px"></td></tr>
<tr height="25" class="bg"><td>&nbsp;保护密码:<input name="code" type="password"  id="pass" size="20" class="yecao" style="width:120px"></td></tr>
<tr height="25" class="bg"><td>&nbsp;用户积分:<input name="exper" type="text"   size="20" class="yecao" style="width:120px" value="<%=rs("user_exper")%>"></td></tr>
<tr class="bg" height="25"><td>&nbsp;用户级别:<select name="admin" class="yecao">
<option value="3">管理人员</option>
<option value="2">收费用户</option>
<option value="1">普通用户</option>
</select>
</td></tr>
<tr height="25" class="bg"><td>&nbsp;真实姓名:<input name="truename" type="text"  id="truename" size="20" class="yecao" style="width:120px"></td></tr>
<TR height=28 class="bg"><TD colspan=2>
<table border=0 width=100%>
<TR height=28><TD width=200>&nbsp;您的性别:<INPUT type="radio"  value="男" name="sex" CHECKED>帅&nbsp;哥&nbsp;&nbsp;<INPUT type="radio" value="女" name="sex">美&nbsp;女</TD><TD rowspan=2 ><img alt=点击选择头像  id=myface src="img/face/1.gif" border="0" width=40 height=40  onclick="document.all.upart.style.display=(document.all.upart.style.display=='none')?'':'none'" style="cursor:hand"></TD></TR>
<TR height=28><TD >&nbsp;选择头像:<input name="face" type="text"  id=face size="20" class="yecao" style="width:120px"></TD></TR></table>
</TD></TR>
<tr height="25" class="bg"><td>&nbsp;用户主页:<input name="web" value="" type="text"  id="web" size="20" class="yecao" style="width:120px"></td></tr>
<tr height="25" class="bg"><td>&nbsp;用户电话:<input name="tel" value="" type="text"  id="tel" size="20" class="yecao" style="width:160px"></td></tr>
<tr height="25" class="bg"><td>&nbsp;身 份 证:<input name="passport" value="" type="text"  id="passport" size="20" class="yecao" style="width:160px" ></td></tr>
<tr height="25" class="bg"><td>&nbsp;邮箱地址:<input name="mail" type="text"  id="mail" size="20" class="yecao" style="width:120px"></td></tr>
<tr height="25" class="bg"><td>&nbsp;腾讯&nbsp;Q&nbsp;Q:<input name="qq" type="text"  id="qq" size="20" class="yecao" style="width:120px"></td></tr>
<tr height="25" class="bg"><td>&nbsp;详细地址:<input name="address" type="text"  id="address" size="20" class="yecao" style="width:120px"></td></tr>
<tr height="25" class="bg"><td>&nbsp;个性签名:<textarea name="about" class="input" style="width:200px;height:60px;" ></textarea></td></tr>
<tr><td class="hr"></td></tr>
<tr height="30" class=foot><td align="center">
<input name="new" type="submit" class="adminbutton" id="new" value="添 加">&nbsp;<input name="Submit2" type="reset" class="adminbutton" value="清 空"></td></tr>
</table> 
</form>
<%elseif request("action")="edit"then
set rs=server.CreateObject("adodb.recordset")
sql="select * from [YC_user] where id="&request.QueryString("id")
rs.open sql,conn,1,3%>
<form method="post" name="form" id="form">
<table width="100%" align=center border="0" cellpadding="0" cellspacing="0" bordercolor="<%=border%>" rules=none class=3d>
<tr><td height="22"  class=title><b>&nbsp;<img src=img/ie.gif border=0 width=15 height=15 align=absmiddle>&nbsp;修改用户</b></td></tr>
<tr class="bg" height=25><td>&nbsp;用户名称:<input name="user" type="text" id="user" value="<%=rs("user_name")%>" size="20" class="yecao" style="width:120px">
</td></tr>
<tr height="25" class="bg"><td>&nbsp;用户密码:<input name="pass" type="password"  id="pass" size="20" class="yecao" style="width:120px">&nbsp;<font color=red>* 不修改请留空!</font></td></tr>
<tr height="25" class="bg"><td>&nbsp;保护密码:<input name="code" type="password"   id="pass" size="20" class="yecao" style="width:120px">&nbsp;<font color=red>* 不修改请留空!</font></td></tr>
<tr height="25" class="bg"><td>&nbsp;用户积分:<input name="exper" type="text"   size="20" class="yecao" style="width:120px" value="<%=rs("user_exper")%>"></td></tr>
<tr class="bg" height="25"><td>&nbsp;用户级别:<select name="admin" class="yecao">
<option value="3" <%if rs("user_admin")="3" then response.write "selected"%>>管理人员</option>
<option value="2" <%if rs("user_admin")="2" then response.write "selected"%>>收费用户</option>
<option value="1" <%if rs("user_admin")="1" then response.write "selected"%>>普通用户</option>
</select>
</td></tr>
<tr height="25" class="bg"><td>&nbsp;真实姓名:<input name="truename" type="text" size="20" class="yecao" style="width:120px" value="<%=rs("user_true_name")%>"></td></tr>
<tr height=28 class="bg"><td colspan=2>
<table border=0 width=100%>
<tr height=28><td width=200>&nbsp;您的性别:<input type="radio" name="sex" value="男" <%if rs("user_sex")="男" then response.write"checked" end if%>>男
<input name="sex" type="radio" value="女" <%if rs("user_sex")="女" then response.write"checked" end if%>>女</td><td rowspan=2 ><img alt=点击选择头像  id=myface src="<%=rs("user_face")%>" border="0" width=40 height=40 onclick="document.all.upart.style.display=(document.all.upart.style.display=='none')?'':'none'" style="cursor:hand"></td></tr>
<tr height=28><td >&nbsp;选择头像:<input name="face" type="text"  id="face" size="20" class="yecao" style="width:120px" value="<%=rs("user_face")%>"></td></tr></table>
</td></tr>
<tr height="25" class="bg"><td>&nbsp;用户电话:<input name="tel"  type="text" size="20" class="yecao" style="width:160px" value="<%=rs("user_tel")%>"></td></tr>
<tr height="25" class="bg"><td>&nbsp;身 份 证:<input name="passport" type="text" size="20" class="yecao" style="width:160px" value="<%=rs("user_passport")%>"></td></tr>
<tr height="25" class="bg"><td>&nbsp;用户主页:<input name="web" value="http://" type="text"  size="20" class="yecao" style="width:160px" value="<%=rs("user_web")%>"></td></tr>
<tr height="25" class="bg"><td>&nbsp;邮箱地址:<input name="mail" type="text"  size="20" class="yecao" style="width:160px" value="<%=rs("user_mail")%>"></td></tr>
<tr height="25" class="bg"><td>&nbsp;腾讯&nbsp;q&nbsp;q:<input name="qq" type="text"   size="20" class="yecao" style="width:160px" value="<%=rs("user_qq")%>"></td></tr>
<tr height="25" class="bg"><td>&nbsp;详细地址:<input name="address" type="text" size="20" class="yecao" style="width:160px" value="<%=rs("user_address")%>"></td></tr>
<tr height="25" class="bg"><td>&nbsp;个性签名:<textarea name="about" class="input" style="width:200px;height:60px;" ><%=rs("user_about")%></textarea></td></tr>
<tr><td class="hr"></td></tr>
<tr height="30" class=foot><td align="center"><input name="edit" type="submit" class="adminbutton" id="edit" value="修 改">&nbsp;<input name="submit2" type="reset" class="adminbutton" value="清 空"></td></tr>
</table></form>
<%end if
rs.close
set rs=nothing%>
<table  align=center border="0" cellpadding="0" cellspacing="0" rules=none class=3d  id=upart style="position:absolute;left:0;top:0;display:none">
<tr onmousedown="MDown(upart)" style="cursor:move" height=22><td colspan="2" class="title"><b>&nbsp;<img src=img/ie.gif border=0 width=15 height=15 align=absMiddle>&nbsp;选择头像</b>
<img onclick="document.all.upart.style.display=(document.all.upart.style.display=='none')?'':'none'" style="position:absolute;right:2;top:5;cursor:hand" border="0" src="img/adminclose.gif" align=absMiddle></td></tr>
<tr class="bg">
<td align=center style=padding:4px>
<img src=img/face/1.gif border="0" style="cursor:hand" 
onClick="form.face.value='img/face/1.gif';form.myface.src='img/face/1.gif';document.all.upart.style.display='none';">
<img src=img/face/2.gif border="0" style="cursor:hand" 
onClick="form.face.value='img/face/2.gif';form.myface.src='img/face/2.gif';document.all.upart.style.display='none';">
<img src=img/face/3.gif border="0" style="cursor:hand" 
onClick="form.face.value='img/face/3.gif';form.myface.src='img/face/3.gif';document.all.upart.style.display='none';">
<img src=img/face/4.gif border="0" style="cursor:hand" 
onClick="form.face.value='img/face/4.gif';form.myface.src='img/face/4.gif';document.all.upart.style.display='none';">
<img src=img/face/5.gif border="0" style="cursor:hand" 
onClick="form.face.value='img/face/5.gif';form.myface.src='img/face/5.gif';document.all.upart.style.display='none';"><br>
<img src=img/face/6.gif border="0" style="cursor:hand" 
onClick="form.face.value='img/face/6.gif';form.myface.src='img/face/6.gif';document.all.upart.style.display='none';">
<img src=img/face/7.gif border="0" style="cursor:hand"
onClick="form.face.value='img/face/7.gif';form.myface.src='img/face/7.gif';document.all.upart.style.display='none';">
<img src=img/face/8.gif border="0" style="cursor:hand" 
onClick="form.face.value='img/face/8.gif';form.myface.src='img/face/8.gif';document.all.upart.style.display='none';">
<img src=img/face/9.gif border="0" style="cursor:hand" 
onClick="form.face.value='img/face/9.gif';form.myface.src='img/face/9.gif';document.all.upart.style.display='none';">
<img src=img/face/10.gif border="0" style="cursor:hand" 
onClick="form.face.value='img/face/10.gif';form.myface.src='img/face/10.gif';document.all.upart.style.display='none';"><br>
<img src=img/face/11.gif border="0" style="cursor:hand" 
onClick="form.face.value='img/face/11.gif';form.myface.src='img/face/11.gif';document.all.upart.style.display='none';">
<img src=img/face/12.gif border="0" style="cursor:hand" 
onClick="form.face.value='img/face/12.gif';form.myface.src='img/face/12.gif';document.all.upart.style.display='none';">
<img src=img/face/13.gif border="0" style="cursor:hand" 
onClick="form.face.value='img/face/13.gif';form.myface.src='img/face/13.gif';document.all.upart.style.display='none';">
<img src=img/face/14.gif border="0" style="cursor:hand" 
onClick="form.face.value='img/face/14.gif';form.myface.src='img/face/14.gif';document.all.upart.style.display='none';">
<img src=img/face/15.gif border="0" style="cursor:hand" 
onClick="form.face.value='img/face/15.gif';form.myface.src='img/face/15.gif';document.all.upart.style.display='none';"><br>
</td></tr></table>
</body></html>
<%call closedata()%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -