view.asp
资源名称:1.rar [点击查看]
上传用户:ziqing_518
上传日期:2022-08-09
资源大小:446k
文件大小:4k
源码类别:
多媒体编程
开发平台:
ASP/ASPX
- <!--#include file="db/user.asp" -->
- <!--#include file="config.asp" -->
- <!--#include file="function.asp" -->
- <%
- iperr()
- Session.Timeout=10
- strUser=request.QueryString("user")
- Set rs = Server.CreateObject("ADODB.Recordset")
- sql="select * from admin where admin='"&strUser&"'"
- rs.open sql,conn,1,1
- if rs.eof then
- response.write("没有该用户")
- rs.close
- set rs=nothing
- response.end
- else
- if request.QueryString("post")<>"" then
- rs.close
- set rs=nothing
- if session("view")=True then
- response.write("请勿重复投票,每个IP投票间隔10分钟")
- response.end
- end if
- select case request.QueryString("post")
- case "add"
- sql="update admin set admin.top=admin.top+1 where admin='"&strUser&"'"
- case "del"
- sql="update admin set admin.top=admin.top-1 where admin='"&strUser&"'"
- end select
- conn.execute sql
- session("view")=True
- response.write("感谢你的投票,请<a href=javascript:window.close()>关闭窗口</a>")
- response.end
- else
- strUser=rs("admin")
- strRegemail=rs("regemail")
- strUseravatar=rs("useravatar")
- numPicwidth=rs("picwidth")
- numPicheight=rs("picheight")
- numMoneyert=rs("moneyert")
- numTop=rs("top")
- end if
- end if
- rs.close
- set rs=nothing
- %>
- <html>
- <head>
- <meta http-equiv="Content-Language" content="zh-cn">
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <title><%=strHomepage_1%></title>
- <style type="text/css">
- <!--
- body, p, td, tr, input, textarea, select {cursor:default; font-size:9pt; color:#006D91}
- a:link {text-decoration:none; color:#006D91}
- a:visited {text-decoration:none; color:#006D91}
- a:active {text-decoration:none; color:#006D91}
- a:hover {text-decoration:none; color:#888888}
- input, textarea, select {border-style:solid; border-width:1; cursor:default; color:#006D91; background-color:#EFEFEF}
- body {
- scrollbar-face-color:#E1E1E1;
- scrollbar-highlight-color:#E1E1E1;
- scrollbar-shadow-color:#8C8C8D;
- scrollbar-arrow-color:#8C8C8D;
- scrollbar-base-color:#EFEFEF;
- scrollbar-track-color:#EFEFEF;
- scrollbar-darkshadow-color:#EFEFEF;
- }
- textarea {
- scrollbar-face-color:#E1E1E1;
- scrollbar-highlight-color:#E1E1E1;
- scrollbar-shadow-color:#8C8C8D;
- scrollbar-arrow-color:#8C8C8D;
- scrollbar-base-color:#EFEFEF;
- scrollbar-track-color:#EFEFEF;
- scrollbar-darkshadow-color:#EFEFEF;
- }
- .shadow {FILTER: dropshadow(color=#444444,offx=1,offy=1,positive=1)}
- .input {
- margin: 1px;
- padding: 1px;
- border: 1px solid #000000;
- }
- .table {
- margin: 1px;
- padding: 1px;
- border: 1px solid #000000;
- }
- .input2 {
- border-bottom-width: 1px;
- border-bottom-style: solid;
- border-bottom-color: #000000;
- }
- .body {
- font-size: 9px;
- font-style: normal;
- font-weight: normal;
- font-variant: normal;
- }
- -->
- </style>
- <base onmouseover="window.status='<%=strEstate_1%>';return true">
- </head>
- <body bgcolor="#DDDDDD" topmargin="5" leftmargin="5">
- <div align="center">
- <center>
- <table border="1" cellpadding="1" cellspacing="0" style="border-collapse: collapse" bordercolor="#006D91" width="200" height="21">
- <tr>
- <td width="100%" background="../mb/images/21.gif" align="center">
- <p style="margin-top: 2">用 户 资 料</td>
- </tr>
- <tr>
- <td width="100%" bgcolor="#FBFBFB">
- <table width="100%" border="0" cellpadding="3" cellspacing="0" bordercolor="#111111" style="border-collapse: collapse">
- <tr>
- <td colspan="2" align='center'><img src="<%=strUseravatar%>" width="<%=numPicwidth%>" height="<%=numPicheight%>"></td>
- </tr>
- <tr>
- <td width='30%' align='center'>用 户 名:</td>
- <td width='65%'><%=strUser%></td>
- </tr>
- <tr>
- <td width='30%' align='center'>邮件地址:</td>
- <td width='65%'><a href="mailto:<%=strRegemail%>">给 <%=strUser%> 发送邮件</a></td>
- </tr>
- <tr>
- <td width='30%' align='center'>拥有金额:</td>
- <td width='65%'><%=numMoneyert&strMoneyname%></td>
- </tr>
- <tr>
- <td width='35%' align='center'>网友评分:</td>
- <td width='65%'><%=numTop%></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </center>
- </div>
- </body>
- </html>