日期:2014-05-17  浏览次数:20932 次

请帮我看一下这个asp网页的权限如何设定,其中在数据库表Admin中purview表示权限(=1是超级管理员;2是普通管理员)只有超级管理员有添加
<%
set   rs=server.createobject( "adodb.recordset ")
sqltext= "select   *   from   admin "
rs.open   sqltext,conn,1,1
%>
<script   language= "javascript ">
function   confirmdel(id){
if   (confirm( "真的要删除此管理员帐号? "))
window.location.href= "Delmanager.asp?id= "+id+ "     "       }
</script>
<SCRIPT   language=javascript   id=clientEventHandlersJS>
<!--
function   myform_onsubmit()
{
if   (document.myform.Password.value!=document.myform.ConPassword.value)
{
alert   ( "新密码和确认密码不一致。 ");
document.myform.Password.value= ' ';
document.myform.ConPassword.value= ' ';
document.myform.Password.focus();
return   false;
}
}
//-->
</SCRIPT>
<!--   #include   file= "Inc/Head.asp "   -->
<table   width= "100% "   height= "100% "   border= "0 "   cellpadding= "0 "   cellspacing= "0 ">
    <tr>  
        <td   align= "center "   valign= "top ">   <br>   <strong> <br>
            </strong>   <table   width= "560 "   border= "0 "   cellpadding= "2 "   cellspacing= "1 "   class= "table_southidc ">
                <tr>  
                    <td   class= "back_southidc "   width= "598 "   height= "25 "   >   <div   align= "center "> <strong> 添加管理员 </strong> </div> </td>
                </tr>
                <tr   class= "tr_southidc ">  
                    <FORM   language=javascript   name=myform     onsubmit= "return   myform_onsubmit() "
action=addmanagerok.asp   method=post>
                        <td> <table   width= "50% "   border= "0 "   align= "center "   >
                                <tr>  
                                    <td   height= "25 "   colspan= "2 "> &nbsp; </td>
                                </tr>
                                <tr>  
                                    <td   width= "29% "   height= "22 ">   <div   align= "right "&g