mb_free.asp
上传用户:stone001
上传日期:2016-10-28
资源大小:685k
文件大小:1k
- <!--插入html头部分以及数据库接口-->
- <!--#include file="in_conn.asp"-->
- <body>
- <!--插入网站置顶-->
- <% if u_name="" then
- Response.Redirect "log_err.asp"
- else
- %>
- <!--#include file="in_topmb.asp"-->
- <% end if %>
- <table align="center" width="700" height="50" border="0" cellspacing="0" cellpadding="11" class="rdkuang"><tr>
- <td width="100%" height="100%" align="center">
- <%
- '获取传值
- dim vid
- vid=Request.QueryString("id")
- '判断id
- IF isNumeric(vid) THEN
- vid=CLng(vid)
- ELSE
- Response.Redirect "resp.asp?cmd=id_miss"
- END IF
- '找出相应成员
- sqlstr="SELECT name,power FROM tblmates WHERE ID="&vid
- rs.open sqlstr,conn,1,3
- '判断正确性
- if rs.eof AND rs.bof then
- Response.Redirect "resp.asp?cmd=id_miss"
- elseif u_power<2 then
- Response.Redirect "resp.asp?cmd=adm_power"
- elseif rs("power")<>-1 then
- Response.Redirect "resp.asp?cmd=mb_havefree"
- end if
- '命令操作
- rs("power")=1
- rs.update
- %>
- <font class="ft1"><% =rs("name") %></font>已经提前解封!
- <a href="txbook.asp">点击这里返回<font class="ft1">[通 讯 录]</font></a>
- </td>
- </tr></table>
- <%
- rs.close
- %>
- <br>
- <!--插入在线统计-->
- <!--#include file="in_online.asp"-->
- <!--插入网站置底-->
- <!--#include file="in_bottom.asp"-->
- </body>
- </html>