<%@ LANGUAGE=VBScript codepage ="936" %>
<!--#include file="check.asp"-->
<html><head><title>增加房间</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><link href="jh.css" rel="stylesheet" type="text/css"></head>
<SCRIPT language=JavaScript>
function check(){
var name=document.form.name.value;
var zdrs=document.form.zdrs.value;
var dzsj=document.form.dzsj.value;
var xzsm=document.form.xzsm.value;
var bds=document.form.bds.value;
var jrht=document.form.jrht.value;
var title=document.form.title.value;
var ooo=document.form.ooo.value;
var ppp=document.form.ppp.value;
var qqq=document.form.qqq.value;
var rrr=document.form.rrr.value;
var sss=document.form.sss.value;
var ttt=document.form.ttt.value;
var uuu=document.form.uuu.value;
var vvv=document.form.vvv.value;
var www=document.form.www.value;
var ttt1=document.form.ttt1.value;
var ttt2=document.form.ttt2.value;
var ttt3=document.form.ttt3.value;
var sss1=document.form.sss1.value;
var sss2=document.form.sss2.value;
var sss3=document.form.sss3.value;
var sss4=document.form.sss4.value;
var bc=document.form.bc.value;
var gc=document.form.gc.value;
var hbc=document.form.hbc.value;
var hgc=document.form.hgc.value;
var gfc=document.form.gfc.value;
var zmc=document.form.zmc.value;
var dzc=document.form.dzc.value;
var zlc=document.form.zlc.value;
var sxq=document.form.sxq.value;
var xqc=document.form.xqc.value;
var stx=document.form.stx.value;
var txc=document.form.txc.value;
var hcnpc=document.form.hcnpc.value;
var pattern = /^([0-9])+$/;
if(name=="" ){alert("提示：房间名不能为空！");return false;}
if(zdrs=="" ){alert("提示：最大人数不能为空！");return false;}
if(dzsj=="" ){alert("提示：打架时间不能为空！");return false;}
if(xzsm=="" ){alert("提示：限制说明不能为空！");return false;}
if(bds=="" ){alert("提示：表达式不能为空！");return false;}
if(jrht=="" ){alert("提示：今日话题不能为空！");return false;}
if(title=="" ){alert("提示：聊天室标题不能为空！");return false;}
if(ooo=="" ){alert("提示：聊天边背景色为空请输入#号！");return false;}
if(ppp=="" ){alert("提示：聊天边背景图片为空请输入#号！");return false;}
if(qqq=="" ){alert("提示：公聊背景图片为空请输入#号！");return false;}
if(rrr=="" ){alert("提示：公聊背景图片位置不能为空！");return false;}
if(sss=="" ){alert("提示：私聊背景图片为空请输入#号！");return false;}
if(ttt=="" ){alert("提示：私聊背景图片位置不能为空！");return false;}
if(uuu=="" ){alert("提示：公聊字默认背景为空请输入#号！");return false;}
if(vvv=="" ){alert("提示：聊天室默认背景色为空请输入#号！");return false;}
if(www=="" ){alert("提示：聊天室默认文字色为空请输入#号！");return false;}
if(ttt1=="" ){alert("提示：T色彩一为空请输入#号！");return false;}
if(ttt2=="" ){alert("提示：T色彩二为空请输入#号！");return false;}
if(ttt3=="" ){alert("提示：T色彩三为空请输入#号！");return false;}
if(sss1=="" ){alert("提示：标题区背景色为空请输入#号！");return false;}
if(sss2=="" ){alert("提示：标题区文字色为空请输入#号！");return false;}
if(sss3=="" ){alert("提示：状态区背景色为空请输入#号！");return false;}
if(sss4=="" ){alert("提示：状态区文字色为空请输入#号！");return false;}
if(bc=="" ){alert("提示：名单区男色彩为空请输入#号！");return false;}
if(gc=="" ){alert("提示：名单区女色彩为空请输入#号！");return false;}
if(hbc=="" ){alert("提示：名单区男会员色彩为空请输入#号！");return false;}
if(hgc=="" ){alert("提示：名单区女会员色色彩为空请输入#号！");return false;}
if(gfc=="" ){alert("提示：名单区官府符号色彩为空请输入#号！");return false;}
if(zmc=="" ){alert("提示：名单区掌门色彩为空请输入#号！");return false;}
if(dzc=="" ){alert("提示：名单区弟子色彩为空请输入#号！");return false;}
if(zlc=="" ){alert("提示：名单区暂离开色彩为空请输入#号！");return false;}
if(xqc=="" ){alert("提示：名单区心情色彩为空请输入#号！");return false;}
if(pattern.test(zdrs)!=true){alert("提示：聊天室人数请使用数字！");return false;}
if(pattern.test(dzsj)!=true){alert("提示：打架时间请使用数字！");return false;}
if(parseFloat(dzsj)<5){alert("提示：打架时间不应小于5！");return false;}
if(parseFloat(dzsj)>60){alert("提示：打架时间不应大于60！\n当为60时没有时间限制!");return false;}

}
function DoTitle(addTitle) {
var sm="加入房间无限制";
var bds="无限制";
if (addTitle=="0"){var sm="只有会员才可以进入!";var bds="jh_hydj<>0";}
if (addTitle=="1"){var sm="结婚的人才可以进入！";var bds="jh_peiou<>'无' or jh_lover<>'无'";}
if (addTitle=="2"){var sm="官府专用房间!";var bds="jh_mp='官府' and grade>=6";}
if (addTitle=="3"){var sm="30级以上玩家才可以进入!";var bds="jh_dj>=30";}
if (addTitle=="4"){var sm="只有柳叶上的梦才可以进入!";var bds="jh_name='柳叶上的梦'";}
if (addTitle=="5"){var sm="高手才可以，武功大于30万!";var bds="武功>=300000";}
if (addTitle=="6"){var sm="华山派专用房间！";var bds="jh_mp='华山'";}
document.form.xzsm.value=sm;
document.form.bds.value=bds;
document.form.xzsm.focus();
document.form.bds.focus();
return; }
</script>
<body background="IMAGES/strip.jpg">
<form method="post" action="jhgl.asp?act=addroom" name="form" onSubmit="return check(this);">
  <table width="70%" border="1" align="center" cellpadding="3" cellspacing="0" bordercolor="#000000" bordercolordark="#FFFFFF">
    <tr> 
      <td colspan="4" align="center" bgcolor="#d7ebff">世纪万维网江湖房间新增程序</td>
    </tr>
    <tr> 
      <td width="67" align="center" bgcolor="#d7ebff">房间名</td>
      <td width="157"><input type="text" name="name" size="15" maxlength="10"></td>
      <td width="70" align="center" bgcolor="#d7ebff">最大人数</td>
      <td width="178"><input name="zdrs" type="text" value="100" size="5" maxlength="3">
        (进入的最大人数)</td>
    </tr>
    <tr> 
      <td width="67" align="center" bgcolor="#d7ebff">打架时间</td>
      <td width="157"><input name="dzsj" type="text" id="dzsj" value="20" size="4" maxlength="3">
        (设置60没有限制)</td>
      <td width="70" align="center" bgcolor="#d7ebff">发招限制</td>
      <td width="178"><select name=fzxz size=1 >
          <option value='0' selected >允许</option>
          <option value='1' >禁止</option>
        </select> </td>
    </tr>
    <tr> 
      <td width="67" align="center" bgcolor="#d7ebff">事件限制</td>
      <td width="157"><select name=sjxz size=1 >
          <option value='0' selected >允许</option>
          <option value='1' >禁止</option>
        </select> </td>
      <td width="70" align="center" bgcolor="#d7ebff">保护</td>
      <td width="178"><select name=bh size=1 >
          <option value='0' selected>允许</option>
          <option value='1'>禁止</option>
        </select> </td>
    </tr>
    <tr> 
      <td width="67" align="center" bgcolor="#d7ebff">卡片</td>
      <td width="157"> <select name=kp size=1 >
          <option value='0' selected >允许</option>
          <option value='1' >禁止</option>
        </select> </td>
      <td width="70" align="center" bgcolor="#d7ebff">赌博</td>
      <td width="178"><select name=db size=1 >
          <option value='0' selected>允许</option>
          <option value='1' >禁止</option>
        </select></td>
    </tr>
    <tr> 
      <td width="67" align="center" bgcolor="#d7ebff">NPC</td>
      <td><select name=npc size=1 id="npc" >
          <option value='0' selected>允许</option>
          <option value='1' >禁止</option>
        </select></td>
      <td align="center" bgcolor="#d7ebff">进入此房间是否有限制</td>
      <td><select name=xz size=1 >
          <option value="0" selected>无限制任意进入房间</option>
          <option value="1">满足下面的条件可进</option>
        </select> </td>
    </tr>
    <tr> 
      <td width="67" align="center" bgcolor="#d7ebff">进入此房间的限制说明</td>
      <td colspan="1"><input name="xzsm" type="text" value="进入此房间没有限制。" size="33" maxlength="150">
        </td>
<td align="center" bgcolor="#d7ebff"><font color=red>此房间是否允许显示红尘NPC</font></td>
      <td><select name=hcnpc size=1 >
          <option value="0" selected>不允许</option>
          <option value="1">允许</option>
        </select> </td>
    </tr>
    <tr> 
      <td width="67" align="center" bgcolor="#d7ebff">表达式</td>
      <td colspan="3"><input name="bds" type="text" value="true"size="33" maxlength="150"> 
        <select name=kscz size=1 onchange=DoTitle(this.options[this.selectedIndex].value)>
          <option value='' selected>快速指令</option>
          <option value='0'>会员进入</option>
          <option value='1'>已婚进入</option>
          <option value='2'>官府进入</option>
          <option value='3'>30级上进</option>
          <option value='4'>指定人进</option>
          <option value='5'>30万武功</option>
          <option value='6'>指定门派</option>
        </select> </td>
    </tr>
    <tr> 
      <td width="67" height="2" align="center" bgcolor="#d7ebff">聊天主题</td>
      <td colspan="3" height="2"><input type="text" name="jrht" value="话题" size="60" maxlength="150"> 
      </td>
    </tr>
    <tr> 
      <td width="67" height="2" align="center" bgcolor="#d7ebff">聊天标题</td>
      <td colspan="3" height="2"><input type="text" name="title" value="感谢大家对柳叶上的梦的支持!" size="60" maxlength="150" > 
      </td>
    </tr>
    <tr> 
      <td width="67" height="2" align="center" bgcolor="#d7ebff">禁用命令</td>
      <td colspan="3" height="2"><input type="text" name="comm" value="" size="60" maxlength="200" title="在聊天室中禁止使用的指令，中间以逗号分开，如：发招,下毒 那么这2个指令将在此房间中不可以使用，全部可以使用时请保留空。"> 
      </td>
    </tr>
    <tr> 
      <td width="67" height="2" align="center" bgcolor="#d7ebff">泡点功能</td>
      <td height="2"><select name=roompd size=1 id="roompd" title="是否允许在此房间中使用泡点功能泡点数！">
          <option value='0' selected>允许</option>
          <option value='1' >禁止</option>
        </select>
        顶公告宽： 
        <input name="turlk" type="text" id="turlk" value="60" size="2" maxlength="2"></td>
      <td height="2" align="center" bgcolor="#d7ebff">公告URL</td>
      <td height="2"><input name="turl" type="text" id="turl" value="guanggao.asp" size="20" maxlength="100"></td>
    </tr>
    <tr bgcolor="#d7ebff"> 
      <td height="2" colspan="4" align="center">以下资料如果不明白请不要修改,<a href="color.asp" target="_blank">颜色选取器</a>!<br> 
        <table width="100%" border="1" cellspacing="0" bordercolor="#000000" bordercolordark="#FFFFFF">
          <tr> 
            <td width="14%" align="center" bgcolor="#d7ebff">聊天边背景</td>
            <td width="33%"><input name="ooo" style="background-color:#4a79b5" type="text" id="ooo" value="#4a79b5" size="7" maxlength="7"></td>
            <td width="16%" align="center" bgcolor="#d7ebff">聊天边背景图</td>
            <td width="37%"><input name="ppp" type="text" id="ppp" value="readonly/bg1.gif" size="20" maxlength="45">
            (见下面)</td>
          </tr>
          <tr> 
            <td align="center" bgcolor="#d7ebff">公聊背景图</td>
            <td><input name="qqq" type="text" id="qqq" value="bg.gif" size="20" maxlength="45"></td>
            <td align="center" bgcolor="#d7ebff">背景图片位置</td>
            <td><select name=rrr size=1 id="rrr" >
                <option value="left center">居左中</option>
                <option value="center center">居中间</option>
                <option value="right center">居右中</option>
                <option value="left bottom">居左下</option>
                <option value="center bottom">居中下</option>
                <option value="right bottom">居下右</option>
                <option value="left top">居左上</option>
                <option value="center top">居中上</option>
                <option value="right top" selected>居右上</option>
              </select></td>
          </tr>
          <tr> 
            <td align="center" bgcolor="#d7ebff">私聊背景图</td>
            <td><input name="sss" type="text" id="sss" value="bg.gif" size="20" maxlength="45"></td>
            <td align="center" bgcolor="#d7ebff">背景图片位置</td>
            <td><select name=ttt size=1 id="ttt" >
                <option value="left">居中左</option>
                <option value="center">居中间</option>
                <option value="right">居中右</option>
                <option value="bottom left">居下左</option>
                <option value="bottom center">居下中</option>
                <option value="bottom right">居下右</option>
                <option value="top left">居上左</option>
                <option value="top center">居上中</option>
                <option value="top right" selected>居上右</option>
              </select></td>
          </tr>
          <tr> 
            <td align="center" bgcolor="#d7ebff">公聊字背景</td>
            <td><input name="uuu" style="background-color:#66CCCC" type="text" id="uuu" value="#66CCCC" size="7" maxlength="7"></td>
            <td align="center" bgcolor="#d7ebff">聊天室背景色</td>
            <td><input name="vvv" style="background-color:#EEEEEE"  type="text" id="vvv" value="#EEEEEE" size="7" maxlength="7"></td>
          </tr>
          <tr> 
            <td align="center" bgcolor="#d7ebff">聊天文字色</td>
            <td> <input name="www" style="color:#660099" type="text" id="www" value="#660099" size="7" maxlength="7"></td>
            <td align="center" bgcolor="#d7ebff">T色彩一</td>
            <td><input name="ttt1" style="color:green" type="text" id="ttt1" value="green" size="7" maxlength="7"></td>
          </tr>
          <tr> 
            <td align="center" bgcolor="#d7ebff">T色彩二</td>
            <td><input name="ttt2"  style="color:red" type="text" id="ttt2" value="red" size="7" maxlength="7"></td>
            <td align="center" bgcolor="#d7ebff">T色彩三</td>
            <td><input name="ttt3"  style="color:blue" type="text" id="ttt3" value="blue" size="7" maxlength="7"></td>
          </tr>
          <tr> 
            <td align="center" bgcolor="#d7ebff">标题区背景</td>
            <td><input name="sss1" type="text" style="background-color:#d7ebff;color:blue;" id="sss1" value="#DDDDFF" size="7" maxlength="7"></td>
            <td align="center" bgcolor="#d7ebff">标题区文字</td>
            <td><input name="sss2" type="text" style="color:blue"  id="sss2" value="blue" size="7" maxlength="7"></td>
          </tr>
          <tr> 
            <td align="center" bgcolor="#d7ebff">状态区背景</td>
            <td><input name="sss3" type="text"  style="background-color:#DDDDFF;color:#000000;" id="sss3" value="#DDDDFF" size="7" maxlength="7"></td>
            <td align="center" bgcolor="#d7ebff">状态区文字</td>
            <td><input name="sss4" type="text"  style="color:#000000;" id="sss4" value="#000000" size="7" maxlength="7"></td>
          </tr>
          <tr> 
            <td align="center" bgcolor="#d7ebff">名单男色彩</td>
            <td><input name="bc" type="text"  style="color:#FFFFFF;" id="bc" value="#FFFFFF" size="7" maxlength="7"></td>
            <td align="center" bgcolor="#d7ebff">名单女色彩</td>
            <td><input name="gc" type="text"  style="color:#00FF00;" id="gc" value="#00FF00" size="7" maxlength="7"></td>
          </tr>
          <tr> 
            <td align="center" bgcolor="#d7ebff">名单男会员</td>
            <td><input name="hbc" type="text"  style="color:#0000FF;" id="hbc" value="#0000FF" size="7" maxlength="7"></td>
            <td align="center" bgcolor="#d7ebff">名单女会员</td>
            <td><input name="hgc" type="text"  style="color:#00FFFF;" id="hgc" value="#00FFFF" size="7" maxlength="7"></td>
          </tr>
          <tr> 
            <td align="center" bgcolor="#d7ebff">官府符号</td>
            <td><input name="gfc" type="text"   id="gfc" value="*" size="7" maxlength="2"></td>
            <td align="center" bgcolor="#d7ebff">掌门门派色</td>
            <td><input name="zmc" type="text"   id="zmc" value="orange" size="7" maxlength="7"></td>
          </tr>
          <tr> 
            <td align="center" bgcolor="#d7ebff">弟子门派色</td>
            <td><input name="dzc" type="text"  style="color:yellow;" id="dzc" value="yellow" size="7" maxlength="7"></td>
            <td align="center" bgcolor="#d7ebff">暂离开色彩</td>
            <td><input name="zlc" type="text"  style="color:black;" id="zlc" value="black" size="7" maxlength="7"></td>
          </tr>
          <tr> 
            <td align="center" bgcolor="#d7ebff">显示心情</td>
            <td><select name=sxq size=1 id="sxq" >
                <option value="1" selected>打开显示心情</option>
                <option value="0">关闭心情显示</option>
              </select></td>
            <td align="center" bgcolor="#d7ebff">心情色彩</td>
            <td><input name="xqc" type="text"  style="color:red;" id="xqc" value="red" size="7" maxlength="7"></td>
          </tr>
          <tr> 
            <td align="center" bgcolor="#d7ebff">显示头像</td>
            <td><select name=stx size=1 id="stx" >
                <option value="1" selected>打开头像</option>
                <option value="0">关闭头像</option>
              </select></td>
            <td align="center" bgcolor="#d7ebff">头像大小</td>
            <td><select name=txc size=1 id="txc" >
                <option value="48">超大头像</option>
                <option value="32">大号头像</option>
                <option value="24" selected>中号头像</option>
                <option value="12">小号头像</option>
              </select></td>
          </tr>
        </table></td>
    </tr>
    <tr align="center"> 
      <td colspan="4" bgcolor="#009933"> <input type="submit" value="确 定"> <input  onClick="javascript:window.document.location.href='roomlist.asp'" value="返 回" type=button name="back"> 
      </td>
    </tr>
  </table>
<br>
<img src="../CHAT/READONLY/bg1.gif">bg1.gif
<img src="../CHAT/READONLY/bg2.gif">bg2.gif
<img src="../CHAT/READONLY/bg3.gif">bg3.gif
<img src="../CHAT/READONLY/bg4.gif">bg4.gif
<img src="../CHAT/READONLY/bg5.gif">bg5.gif
<img src="../CHAT/READONLY/bg6.gif">bg6.gif
<img src="../CHAT/READONLY/bg7.gif">bg7.gif
<img src="../CHAT/READONLY/bg8.gif">bg8.gif
<img src="../CHAT/READONLY/bg9.gif">bg9.gif
<img src="../CHAT/READONLY/bg10.gif">bg10.gif
<img src="../CHAT/READONLY/bg11.gif">bg11.gif
<img src="../CHAT/READONLY/bg12.gif">bg12.gif
<img src="../CHAT/READONLY/bg13.gif">bg13.gif
<img src="../CHAT/READONLY/bg14.gif">bg14.gif
<img src="../CHAT/READONLY/bg15.gif">bg15.gif
<img src="../CHAT/READONLY/bg16.gif">bg16.gif
<img src="../CHAT/READONLY/bg17.gif">bg17.gif
<img src="../CHAT/READONLY/bg18.gif">bg18.gif
<img src="../CHAT/READONLY/bg19.gif">bg19.gif
<img src="../CHAT/READONLY/bg20.gif">bg20.gif
<img src="../CHAT/READONLY/bg21.gif">bg21.gif

  <br>
  </form>
</body>
</html>