<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
    <% 
	data_path="../../" 'ACC连接数据库路径，对SQL无效
	numid="11"
	dir="../err.asp" 
  %>
  <!--#include file="../../conn/conn.asp"-->
<!--#include file="../../inc/safe.asp"-->
<!--#include file="../rolecheck.asp"-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<LINK href="../css/style.css" rel=stylesheet type=text/css>
<script language="javascript">
function ischeckg()
{
var strn=document.modiform.gradename.value;
 	if(strn.replace(/^\s+|\s+$/g,'')=="")
  {
   alert("请输入等级名称！");
   document.modiform.gradename.focus();
   return false;
  }	
}
function isokgo()
{
var i=confirm("你确定要修改这些设置吗？请慎重修改会员表单设置，以免造成不必要的错误!");
if(i)
{
return true;
}
else
{
return false;
}
}
</script>
   </head>
<%
	fid=Replace_Text(request("fid"))
	if fid="" then
	 response.Write("<script >alert('参数传递错误!');history.back(-1);</script>")
     response.End()
	end if
	modiform=Replace_Text(request.Form("modiform"))

 '^修改设置 ^^start ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	
	yzm=Replace_Text(request.Form("yzm"))
	yzmb=Replace_Text(request.Form("yzmb"))
	
	username=Replace_Text(request.Form("username"))
	usernameb=Replace_Text(request.Form("usernameb"))
	 
	pass=Replace_Text(request.Form("pass"))
	passb=Replace_Text(request.Form("passb"))
	
	pass2=Replace_Text(request.Form("pass2"))
	pass2b=Replace_Text(request.Form("pass2b"))
	 
	ques=Replace_Text(request.Form("ques"))
	quesb=Replace_Text(request.Form("quesb"))
	
	ans=Replace_Text(request.Form("ans"))
	ansb=Replace_Text(request.Form("ansb"))
	 
	usertrue=Replace_Text(request.Form("usertrue"))
	usertrueb=Replace_Text(request.Form("usertrueb"))
	  
	sex=Replace_Text(request.Form("sex"))
	sexb=Replace_Text(request.Form("sexb"))
	 
	email=Replace_Text(request.Form("email"))
	emailb=Replace_Text(request.Form("emailb"))
	   
	tm=Replace_Text(request.Form("tm"))
	tmb=Replace_Text(request.Form("tmb"))
	
	 msn=Replace_Text(request.Form("msn"))
	msnb=Replace_Text(request.Form("msnb"))
	  
	tel=Replace_Text(request.Form("tel"))
	telb=Replace_Text(request.Form("telb"))
	  
	comaddr=Replace_Text(request.Form("comaddr"))
	comaddrb=Replace_Text(request.Form("comaddrb"))
	  
	street=Replace_Text(request.Form("street"))
	streetb=Replace_Text(request.Form("streetb"))
	  
	fax=Replace_Text(request.Form("fax"))
	faxb=Replace_Text(request.Form("faxb"))
	
	mobile=Replace_Text(request.Form("mobile"))
	mobileb=Replace_Text(request.Form("mobileb"))
	 
	post=Replace_Text(request.Form("post"))
	postb=Replace_Text(request.Form("postb"))
	 
	comname=Replace_Text(request.Form("comname"))
	comnameb=Replace_Text(request.Form("comnameb"))
	 
	work=Replace_Text(request.Form("work"))
	workb=Replace_Text(request.Form("workb"))
	  
	mainkind=Replace_Text(request.Form("mainkind"))
	mainkindb=Replace_Text(request.Form("mainkindb"))
	 
	mainpro=Replace_Text(request.Form("mainpro"))
	mainprob=Replace_Text(request.Form("mainprob"))
	 
	moshi=Replace_Text(request.Form("moshi"))
	moshib=Replace_Text(request.Form("moshib"))
	
	comdes=Replace_Text(request.Form("comdes"))
	comdesb=Replace_Text(request.Form("comdesb"))
	  if modiform<>"" then 
		 no1=""
		 if yzm<>"" then 
		 no1=yzm
		 if yzmb<>"" then
		 no1=yzm&","&yzmb
		 end if
		 end if
		 no2=",username,usernameb"
		 no3=",pass,passb"
		 no4=",pass2,pass2b"
		 no5=""
		 if ques<>""  then
		  no5=","&ques
		  if quesb<>"" then
		  no5=","&ques&","&quesb
		  end if
		 end if
		 no6=""
		 if ans<>"" then
		 no6=","&ans
		 if ansb<>"" then
		 no6=","&ans&","&ansb
		 end if
		 end if
		 no7=""
		 if usertrue<>""  then
		 no7=","&usertrue
		 if usertrueb<>"" then 
		 no7=","&usertrue&","&usertrueb
		 end if
		 end if
		 no8=""
		 if sex<>"" then 
		  no8=","&sex
		  if sexb<>"" then
		  no8=","&sex&","&sexb
		  end if
		 end if
		 no9=",email,emailb"
		 no10=""
		 if tm<>"" then 
		 no10=","&tm
		 if tmb<>"" then 
		  no10=","&tm&","&tmb
		 end if
		 end if
		 no11=""
		 if msn<>"" then 
		 no11=","&msn
		 if msnb<>"" then
		 no11=","&msn&","&msnb
		 end if
		 end if
		 no12=""
		 if tel<>"" then 
		 no12=","&tel
		 if telb<>"" then 
		  no12=","&tel&","&telb
			end if
		 end if
		 no13=""
		 if comaddr<>"" then 
		 no13=","&comaddr
		 if comaddrb<>"" then
		  no13=","&comaddr&","&comaddrb
		  end if
		 end if
		 no14=""
		 if street<>"" then
		 no14=","&street
		 if streetb<>"" then 
		 no14=","&street&","&streetb
		 end if
		 end if
		 no15=""
		 if fax<>"" then 
		 no15=","&fax
		 if faxb<>"" then 
		 no15=","&fax&","&faxb
		 end if
		 end if
		 no16=""
		 if mobile<>"" then 
			no16=","&mobile
		 if mobileb<>"" then 
		  no16=","&mobile&","&mobileb
		 end if
		 end if
		 no17=""
		 if post<>"" then 
		 no17=","&post
		 if postb<>"" then 
		 no17=","&post&","&postb
		 end if
		 end if
		 no18=",comname,comnameb"
		 no19=""
		 if work<>"" then 
		 no19=","&work
		 if workb<>"" then
		no19=","&work&","&workb
		 end if
		 end if
		  no20=""
		  if mainkind<>"" then 
		  no20=","&mainkind
		  if mainkindb<>"" then
		  no20=","&mainkind&","&mainkindb
		  end if
		  end if
		  no21=""
		  if mainpro<>"" then 
		  
		  no21=","&mainpro
		  if mainprob<>"" then
			 no21=","&mainpro&","&mainprob
			 end if
		  end if
		  no22=""
		  if moshi<>"" then
		  no22=","&moshi
		  if moshib<>"" then
		  no22=","&moshi&","&moshib
		  end if
		  end if
		  no23=""
		  if comdes<>"" then
		  no23=","&comdes
		 if comdesb<>"" then 
			no23=","&comdes&","&comdesb
			end if
		  end if								
  	 set rsf=server.CreateObject("adodb.recordset")
	 sqlf="select reglist from Websen_vipgrade where id="&fid
	 rsf.open sqlf,conn,1,3
	 if not rsf.eof then 
	 rsf("reglist")=no1&no2&no3&no4&no5&no6&no7&no8&no9&no10&no11&no12&no13&no14&no15&no16&no17&no18&no19&no20&no21&no22&no23
	 rsf.update
	 successmsg="<center><font color=red><b>修改成功</b></font>!&nbsp;&nbsp;<a href='grademanage.asp'><font color=blue>返回等级列表</font></a>"
	 rsf.close
	 end if
	 end if
 '^修改设置 ^^end ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 
 '初始设置函数 start-------------------------------------------------------
 function initdata(str,strs)
   if instr(strs,str)>0 then
    resultval="checked"
    else
	resultval=""
    end if
	initdata=resultval
 end function
  '初始设置 start-------------------------------------------------------

%>
 <body>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center class="tableBorder">
<tr> 
<th width="100%" height=25 class="tableHeaderText">会员等级信息修改管理</th>
</tr>
<tr>
<td class="forumRowHighlight"> <B>注意： </B><BR> ①.<font color="red">等级ID</font>是会员直属某类等级的直接<font color=red>关联值</font>，关系整个系统的所有会员的一切信息，请不要随意更改，否则将造成严重后果！ 
<br />②.等级ID值不能有重复，如有，后果自负！ 
</td>
</tr>
<tr>
<td class="forumRowHighlight">★<a href="grademanage.asp">等级列表</a>
</td>
</tr>
</table>
<table border="1" cellpadding="0"  bordercolor="#ADE0FD"  cellspacing="0" width="98%" align="center">
<tr>
  <td>
  <%
 if fid<>""  then 
 set rsm=server.CreateObject("adodb.recordset")
sqlm="select *  from Websen_vipgrade where id="&fid
rsm.open sqlm,conn,1,3
if not rsm.eof then 
 %>
  <table width="100%" border="0" align="center" cellpadding="0"  cellspacing="0" bgcolor="#FAFAFA">
  <tr align="center" bgcolor="#F3F3F3">
  <td height="30" align="right" > </td>
  <td align="left"><input type="hidden" name="modiid" value="<%=fid%>" />【<b><font color="#FF0000"><%=rsm("gradename")%></font></b>】---注册表单设置
  &nbsp;&nbsp;<font color="#0099CC">等级ID值</font>：<b><%=rsm("roleid")%></b> <%=successmsg%>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="graderole.asp?rid=<%=rsm("id")%>">权限设置</a>&nbsp;&nbsp;<a href="grademodi.asp?gid=<%=rsm("id")%>">基本设置</a></td> 
</tr>
<tr><td colspan="2" height="1" bgcolor="#CCCCCC" ></td></tr>
<tr><td colspan="5" height="1"   bgcolor="#FFFFFF" ></td></tr>
 </table> 
  <table width="100%" border="0" align="center" cellpadding="0"  cellspacing="0"  >
 <form name="modiforms" method="post" action=""   onsubmit="return isokgo();">
 <tr  bgcolor="#7E9EDF"  height="25"  style=" color:#FFFFFF; font-weight:bold" ><td width="8%" ></td><td width="26%" align="left">表单项名称</td>
 <td  width="13%"  >是否启用</td>
 <td width="17%"  >是否必填</td>
 <td width="36%"  >用途说明</td>
 </tr>
 <tr  height="25"  onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#D7E3F3'"  ><td></td><td>验证码</td><td><input type="checkbox" name="yzm" value="yzm"  <%=initdata("yzm",rsm("reglist"))%>  /></td><td><input type="checkbox" name="yzmb" value="yzmb"   <%=initdata("yzmb",rsm("reglist"))%>   /></td><td style="color:#999999">用于防止恶意的批量注册</td></tr>
 
 <tr  bgcolor="#F5F5F5" onMouseOut="this.style.backgroundColor='#F5F5F5'" onMouseOver="this.style.backgroundColor='#D7E3F3'" height="25"><td></td><td>会员登录名</td><td><input type="checkbox" name="username" value="username"   checked  readonly disabled /></td><td><input type="checkbox" name="usernameb" value="usernameb"   checked  readonly disabled /></td><td style="color:#999999">用于用户登录操作</td></tr>
 
  <tr  height="25" onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#D7E3F3'"><td></td><td>登录密码</td><td><input type="checkbox" name="pass" value="pass"   checked  readonly  disabled/></td><td><input type="checkbox" name="passb" value="passb"   checked  readonly  disabled/></td><td style="color:#999999">用于用户登录密码验证</td></tr>
  
   <tr  bgcolor="#F5F5F5"  onMouseOut="this.style.backgroundColor='#F5F5F5'" onMouseOver="this.style.backgroundColor='#D7E3F3'"     height="25"><td></td><td>确认密码</td><td><input type="checkbox" name="pass2" value="pass2"  disabled   checked  readonly/></td><td><input type="checkbox" name="pass2b" value="pass2b"   checked disabled  readonly /></td><td style="color:#999999">用于防止用户输入密码的不确定性和输入出错情况</td></tr>
   
  <tr  height="25"  onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#D7E3F3'" ><td></td><td>密码提示问题</td><td><input type="checkbox" name="ques" value="ques"  <%=initdata("ques",rsm("reglist"))%> /></td><td><input type="checkbox" name="quesb" value="quesb"  <%=initdata("quesb",rsm("reglist"))%> /></td><td style="color:#999999">用于用户忘记密码时找回密码情况</td></tr>
  
  <tr  bgcolor="#F5F5F5" onMouseOut="this.style.backgroundColor='#F5F5F5'" onMouseOver="this.style.backgroundColor='#D7E3F3'"
 height="25"><td></td><td>密码提示答案</td><td><input type="checkbox" name="ans" value="ans"  <%=initdata("ans",rsm("reglist"))%>/></td><td><input type="checkbox" name="ansb" value="ansb"  <%=initdata("ansb",rsm("reglist"))%>/></td><td style="color:#999999">用于用户忘记密码时找回密码情况</td></tr>
 
 <tr  onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#D7E3F3'"><td></td><td>真实姓名</td><td><input type="checkbox" name="usertrue" value="usertrue" <%=initdata("usertrue",rsm("reglist"))%> /></td><td><input type="checkbox" name="usertrueb" value="usertrueb"  <%=initdata("usertrueb",rsm("reglist"))%>/></td><td style="color:#999999">用于防止提供虚假商务信息</td></tr>
 
  <tr  bgcolor="#F5F5F5" onMouseOut="this.style.backgroundColor='#F5F5F5'" onMouseOver="this.style.backgroundColor='#D7E3F3'" height="25"><td></td><td>性别</td><td><input type="checkbox" name="sex" value="sex" <%=initdata("sex",rsm("reglist"))%> /></td><td><input type="checkbox" name="sexb" value="sexb"  <%=initdata("sexb",rsm("reglist"))%>/></td><td style="color:#999999">用于对客户的全面联系了解信息</td></tr>
  
 <tr height="25" onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#D7E3F3'"><td></td><td>电子邮箱</td><td><input type="checkbox" name="email" value="email" disabled   checked  readonly/></td><td><input type="checkbox" name="emailb" value="emailb"  checked  disabled readonly /></td><td style="color:#999999">用于对用户的及时联系交流信息</td></tr>
 
 <tr  bgcolor="#F5F5F5" onMouseOut="this.style.backgroundColor='#F5F5F5'" onMouseOver="this.style.backgroundColor='#D7E3F3'" height="25"><td></td><td>即时通讯TM号</td><td><input type="checkbox" name="tm" value="tm"  <%=initdata("tm",rsm("reglist"))%> /></td><td><input type="checkbox" name="tmb" value="tmb"   <%=initdata("tmb",rsm("reglist"))%>/></td><td style="color:#999999">用于用户间的即时通讯联系交流信息</td></tr>
 
 
 
 <tr onMouseOut="this.style.backgroundColor='#F5F5F5'" onMouseOver="this.style.backgroundColor='#D7E3F3'"  bgcolor="#F5F5F5" height="25"><td></td><td>固定电话</td><td><input type="checkbox" name="tel" value="tel"  <%=initdata("tel",rsm("reglist"))%>/></td><td><input type="checkbox" name="telb" value="telb" <%=initdata("telb",rsm("reglist"))%> /></td><td style="color:#999999">用于和用户的联系审核交流信息</td></tr>
 
 <tr height="25"  onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#D7E3F3'"><td></td><td>公司所在地</td><td><input type="checkbox" name="comaddr" value="comaddr"   <%=initdata("comaddr",rsm("reglist"))%>/></td><td><input type="checkbox" name="comaddrb" value="comaddrb"  <%=initdata("comaddr",rsm("reglist"))%> /></td><td style="color:#999999">用于防止用户虚假情况</td></tr> 
 
 <tr  onMouseOut="this.style.backgroundColor='#F5F5F5'" onMouseOver="this.style.backgroundColor='#D7E3F3'"  bgcolor="#F5F5F5" height="25"><td></td><td>街道地址</td><td><input type="checkbox" name="street" value="street" <%=initdata("street",rsm("reglist"))%> /></td><td><input type="checkbox" name="streetb" value="streetb"  <%=initdata("streetb",rsm("reglist"))%>/></td><td style="color:#999999">用于防止用户虚假情况</td></tr> 
 
 <tr height="25" onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#D7E3F3'" ><td></td><td>传真</td><td><input type="checkbox" name="fax" value="fax"  <%=initdata("fax",rsm("reglist"))%>/></td><td><input type="checkbox" name="faxb" value="faxb" <%=initdata("faxb",rsm("reglist"))%> /></td><td style="color:#999999">用于和用户的联系审核交流信息</td></tr>  
 
 <tr onMouseOut="this.style.backgroundColor='#F5F5F5'" onMouseOver="this.style.backgroundColor='#D7E3F3'"  bgcolor="#F5F5F5" height="25"><td></td><td>手机</td><td><input type="checkbox" name="mobile" value="mobile"  <%=initdata("mobile",rsm("reglist"))%>/></td><td><input type="checkbox" name="mobileb" value="mobileb" <%=initdata("mobileb",rsm("reglist"))%> /></td><td style="color:#999999">用于和用户的联系审核交流信息</td></tr> 
 
 <tr height="25"  onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#D7E3F3'"><td></td><td>邮政编码</td><td><input type="checkbox" name="post" value="post"   <%=initdata("post",rsm("reglist"))%>/></td><td><input type="checkbox" name="postb" value="postb"   <%=initdata("postb",rsm("reglist"))%>/></td><td style="color:#999999">用于和用户的联系审核交流信息</td></tr>  
 
 <tr onMouseOut="this.style.backgroundColor='#F5F5F5'" onMouseOver="this.style.backgroundColor='#D7E3F3'"  bgcolor="#F5F5F5" height="25"><td></td><td>贵公司名称</td><td><input type="checkbox" name="comname" value="comname" disabled  checked  readonly/></td><td><input type="checkbox" name="comnameb" value="comnameb"  disabled  checked  readonly/></td><td style="color:#999999">用于和用户的联系审核交流信息</td></tr>  
 
 <tr  onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#D7E3F3'" height="25"><td></td><td>您的职位</td><td><input type="checkbox" name="work" value="work"  <%=initdata("work",rsm("reglist"))%>/></td><td><input type="checkbox" name="workb" value="workb" <%=initdata("workb",rsm("reglist"))%> /></td><td style="color:#999999">用于和用户的联系审核交流信息</td></tr>  
 
 <tr  onMouseOut="this.style.backgroundColor='#F5F5F5'" onMouseOver="this.style.backgroundColor='#D7E3F3'" bgcolor="#F5F5F5" height="25"><td></td><td>主营行业</td><td><input type="checkbox" name="mainkind" value="mainkind" <%=initdata("mainkind",rsm("reglist"))%> /></td><td><input type="checkbox" name="mainkindb" value="mainkindb" <%=initdata("mainkindb",rsm("reglist"))%> /></td><td style="color:#999999">用于和用户的联系审核交流信息</td></tr>
 
  <tr onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#D7E3F3'" height="25" ><td></td><td>主营产品/服务</td><td><input type="checkbox" name="mainpro" value="mainpro"   <%=initdata("mainpro",rsm("reglist"))%>/></td><td><input type="checkbox" name="mainprob" value="mainprob"   <%=initdata("mainprob",rsm("reglist"))%>/></td><td style="color:#999999">用于和用户的联系审核交流信息</td></tr> 
  
 <tr onMouseOut="this.style.backgroundColor='#F5F5F5'" onMouseOver="this.style.backgroundColor='#D7E3F3'"  bgcolor="#F5F5F5" height="25"><td></td><td>经营模式</td><td><input type="checkbox" name="moshi" value="moshi"  <%=initdata("moshi",rsm("reglist"))%> /></td><td><input type="checkbox" name="moshib" value="moshib"  <%=initdata("moshib",rsm("reglist"))%> /></td><td style="color:#999999">用于和用户的联系审核交流信息</td></tr> 
 
   <tr height="25"  onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#D7E3F3'"><td></td><td>公司简介</td><td><input type="checkbox" name="comdes" value="comdes"   <%=initdata("comdes",rsm("reglist"))%>/></td><td><input type="checkbox" name="comdesb" value="comdesb"  <%=initdata("comdesb",rsm("reglist"))%> /></td><td style="color:#999999">用于展示用户形象</td></tr> 
   
 <tr><td colspan="5"  height="1" bgcolor="#7E9EDF"></td></tr>
  <tr><td colspan="5"  height="70" align="center"><input type="submit" name="modiform" value=" 修  改 " /></td></tr>
 </form>
</table> 
 <%
end if
end if
%>
  </td>
</tr></table>
</body>
</html>
