<%@ 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 DoTitle(addTitle) {
var revisedTitle;
var currentTitle = document.form.bds.value;
revisedTitle = addTitle;
document.form.bds.value=revisedTitle;
document.form.bds.focus();
return; }
function check(){
var mp=document.form.mp.value;
var zm=document.form.zm.value;
var jj=document.form.jj.value;
var sm=document.form.sm.value;
var xzsm=document.form.xzsm.value;
var bds=document.form.bds.value;
if(mp=="" ){alert("提示：门派名不能为空！");return false;}
if(zm=="" ){alert("提示：掌门不能为空！");return false;}
if(sm=="" ){alert("提示：说明不能为空！");return false;}
if(xzsm=="" ){alert("提示：限制说明不能为空！");return false;}
if(bds=="" ){alert("提示：表达式不能为空！");return false;}
if(jj=="" ){alert("提示：基金不能为空！");return false;}
var pattern = /^([0-9])+$/;
if(pattern.test(jj)!=true){alert("提示：基金请使用数字！");return false;}
}
</script>
<form name="form" method="post" action="jhgl.asp?act=addmp" onSubmit="return check(this);">
  <div align="center"></div>
  <table width="500" border=1 align="center" cellpadding=1 cellspacing=0  bordercolor="#000000" bordercolordark="#FFFFFF">
    <tr bgcolor="#d7ebff"> 
      <td colspan="6" align="center">添加门派</td>
    </tr>
    <tr> 
      <td width="67" align="center" bgcolor="#d7ebff">门派</td>
      <td width="86"> <input name="mp" value="门派名" size=10 maxlength=10></td>
      <td width="48" align="center" bgcolor="#d7ebff">掌门</td>
      <td width="123"> <input name="zm" value="掌门名字" size=10 maxlength=10></td>
      <td width="70" align="center" bgcolor="#d7ebff">门派基金</td>
      <td width="80"><input name="jj" value="0" size=10 maxlength=10></td>
    </tr>
    <tr> 
      <td width="67" align="center" bgcolor="#d7ebff">简介</td>
      <td colspan="5"><input name="sm" value="门派的说明" size=55 maxlength=100></td>
    </tr>
    <tr> 
      <td width="67" align="center" bgcolor="#d7ebff" >限制说明</td>
      <td colspan="5"><input name="xzsm" type="text" value="任意加入不限制。" size="55" maxlength="100"></td>
    </tr>
    <tr> 
      <td width="67" height="24" align="center" valign=top bgcolor="#d7ebff">表达式</td>
      <td height="24" colspan="5"> <input name="bds" value="true" size=55 maxlength=200> 
      </td>
    </tr>
    <tr> 
      <td height="24" align="center" valign=top bgcolor="#d7ebff">条件</td>
      <td height="24" colspan="5"><SELECT name=fs onchange=DoTitle(this.options[this.selectedIndex].value)>
          <OPTION selected value="true">[任意加入]</OPTION>
          <OPTION value="false">[不可以加入]</OPTION>
          <OPTION value="jh_dj>=10">[10级以上加入]</OPTION>
          <OPTION value="jh_sex='女'">[仅收女弟子]</OPTION>
          <OPTION value="jh_jhcs=0">[仅收处子之身]</OPTION>
          <OPTION value="jh_hydj<>0" >[会员可以加入]</OPTION>
          <OPTION value="jh_dd>100" >[道德大于100者加入]</OPTION>
          <OPTION value="jh_peiou<>'无'" >[已婚者加入]</OPTION>
          <OPTION value="instr(jh_name,'张')<>0" >[张氏集团]</OPTION>
          <OPTION value="jh_wg>100000" >[武功大于10万加入]</OPTION>
        </SELECT></td>
    </tr>
    <tr> 
      <td height="24" colspan="6" align="center" valign=top bgcolor="#d7ebff"><input type="SUBMIT" name="Submit" value="注册"> 
        <input type="RESET" name="Reset" value="清除"> </td>
    </tr>
  </table>
  <div align="center"> </div>
</form>
</body>
</html>
