<!--#include file="usertop.asp"-->
<!--#include file="usercookies.asp"-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>修改名片--<%=title%>--<%=web%></title>
</head>

<body>
<script LANGUAGE=JavaScript>
  function textLimitCheck(thisArea, maxLength){
    if (thisArea.value.length > maxLength){
      alert(maxLength + ' 个字限制. \r超出的将自动去除.');
      thisArea.value = thisArea.value.substring(0, maxLength);
      thisArea.focus();
    }
    /*回写span的值，当前填写文字的数量*/
    messageCount.innerText = thisArea.value.length;
  }
</script>
<div align="center">
<script language="JavaScript">
  function isDigit(c)
{
    if(c.length > 1){
        return false;
    }
    ic = c - '0';
    return ic >= 0 && ic <= 9;
}
function checkinput(){
	
            if(form_fox.lxrname.value == ""){
            alert("请输入您真实姓名！");
            form_fox.lxrname.focus();
            return false;
        } 
　　　　　　if(form_fox.usertel.value == ""){
            alert("请输入联系电话！");
            form_fox.usertel.focus();
            return false;
	if(form_fox.company.value.length<2 || form_fox.company.value.length>12 ){
            alert("公司名称在2-12字之间！");
            form_fox.company.focus();
            return false;
        }
        } 
			if(form_fox.dizhi.value == ""){
            alert("请输入通讯地址！");
            form_fox.dizhi.focus();
            return false;
        } 
		　　if(form_fox.code.value == ""){
            alert("请输入邮编！");
            form_fox.code.focus();
            return false;
        } 
	if(form_fox.memo.value.length<15 || form_fox.memo.value.length>500 ){
            alert("内容不合要求！");
            form_fox.memo.focus();
            return false;
        }   
	if(form_fox.email.value == ""){
            alert("请输入您有效的电子邮件,方便我们能联系到您！");
            form_fox.email.focus();
            return false;
        }
    return true;
}  
function isEmail(strEmail) {
 if (strEmail.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1)
  return true;
 else
  alert("请输入您有效的电子邮件,方便我们能联系到您！");
}
</script>
<table cellSpacing="0" cellPadding="0" width="760" border="0" id="table1">
		<tr>
			<td  height="25" colspan="2" class="tdtop"><b>&nbsp;<img border="0" src="images/z1.gif" width="50" height="18"> 您的位置  
			<font color="#FFFFFF">-></font> <a class="scap1" href="index.htm"><%=title%></a>
			<font color="#FFFFFF">-></font> 修改名片：</b></td>
		</tr>
		<tr bgColor="#d9ebe5">
			<td  width="255" bgcolor="#FFFFFF" rowspan="2" valign="top">
            <!--#include file="caozuo.asp"-->
			</td>
		<tr bgColor="#d9ebe5">
			<td valign="top" width="505" height="315" bgcolor="#FFFFFF">
			<table border="1" width="100%" id="table2" bordercolorlight="#D9EBE5" bordercolordark="#D9EBE5" style="border-collapse: collapse" cellpadding="0" cellspacing="0">
				<tr>
					<td class="tdtxt07" bgcolor="#D9EBE5">&nbsp;<img border="0" src="images/a01.gif" width="25" height="25">
用户：<font color="#FF0000"><%=username%></font>，您好，欢迎来到会员中心！您登陆本站共<font color="#FF0000"><%=rsuser("dlcs")%></font>次。<br>
您目前级别：<%if rsuser("huitype")="0" then%><font color="#FF0000"><%=aname%>会员</font><%elseif rsuser("huitype")="1" then%><font color="#FF0000"><%=bname%>会员</font><%elseif rsuser("huitype")="2" then%><font color="#FF0000"><%=cname%>会员</font><%end if%>
，验证状态：<%if rsuser("yz")="0" then%><font color="#FF0000">没有通过验证</font>，验证后才可以享受更多权利！<%elseif rsuser("yz")="1" then%><font color="#FF0000">已通过验证</font>，祝您愉快！<%end if%></td>
				</tr>
				<tr>
					<td class="tdtxt07" bgcolor="#D9EBE5" height="20">
<%dim rso,sqlo
set rso=server.createobject("adodb.recordset")
sqlo="select * from [FOX_mp] where UserName='"&UserName&"' and yz=1"
rso.open sqlo,conn,1,1
if rso.eof then
    Response.Write "<script>alert('还没有发布？或者没有被审核！或者被删除！');this.location.href='userhome.asp';</SCRIPT>"
 else%>
 <table border="0" width="100%" id="table3" cellspacing="1">
						<tr>
							<td bgcolor="#FFFFFF" colspan="2" height="40">
							<p align="center">
							<img border="0" src="images/a01.gif" width="25" height="25"><b>会员名片修改</b>（
							修改一次扣<font color="#FF0000"> <%=xghjf%> </font>分）</td>
						</tr>
	<form name="form_fox" onsubmit="return checkinput()" method="post" action="mpeditchk.asp">
						<tr>
							<td bgcolor="#FFFFFF" width="21%" height="30" align="right">
							用户姓名：</td>
							<td bgcolor="#FFFFFF" height="30" width="78%">
			<input id="topic0" maxLength="4" size="14" name="lxrname" class="button01" value="<%=rso("lxrname")%>">
			<font color="#FF0000">*</font><input name="username" type="hidden" value="<%=rso("username")%>"><input name="huitype" type="hidden" value="<%=rso("huitype")%>"></td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="21%" height="30" align="right">
							联系电话：</td>
							<td bgcolor="#FFFFFF" height="30" width="78%">
			<input id="topic1" maxLength="30" size="14" name="usertel" class="button01" value="<%=rso("usertel")%>">
			<font color="#FF0000">*</font></td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="21%" height="30" align="right">
							常用手机：</td>
							<td bgcolor="#FFFFFF" height="30" width="78%">
			<input id="topic2" maxLength="12" size="14" name="phone" class="button01" value="<%=rso("phone")%>">
			<font color="#FF0000">*</font></td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="21%" height="30" align="right">
							<font color="#FF0000">公司名称：</font></td>
							<td bgcolor="#FFFFFF" height="30" width="78%">
			<input id="topic6" maxLength="12" size="20" name="company" class="button01" value="<%=rso("company")%>"> 
			没有请选择默认</td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="21%" height="30" align="right">
							EMAIL：</td>
							<td bgcolor="#FFFFFF" height="30" width="78%">
			<input id="topic3" maxLength="30" size="23" onblur="isEmail(this.value)" name="email" class="button01" value="<%=rso("email")%>">
			<font color="#FF0000">*</font></td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="21%" height="30" align="right">
							所属地区：</td>
							<td bgcolor="#FFFFFF" height="30" width="78%">
<%dim rsq,sqlq,xiangc,shic,shengc
set rsq=server.createobject("adodb.recordset") 
sqlq = "select * from [FOX_xiang] where id="&rso("xiang")&""
rsq.open sqlq,conn,1,1
xiangc=rsq("xiang")
rsq.close
set rsq=nothing
set rsq=server.createobject("adodb.recordset") 
sqlq = "select * from [FOX_shi] where id="&rso("shi")&""
rsq.open sqlq,conn,1,1
shic=rsq("shi")
rsq.close
set rsq=nothing
set rsq=server.createobject("adodb.recordset") 
sqlq = "select * from [FOX_sheng] where id="&rso("sheng")&""
rsq.open sqlq,conn,1,1
shengc=rsq("sheng")
rsq.close
set rsq=nothing
%><%=shengc%>-><%=shic%>-><%=xiangc%>&nbsp;<font color="#FF0000">*</font><input name="sheng" type="hidden" value="<%=rso("sheng")%>"><input name="shi" type="hidden" value="<%=rso("shi")%>"><input name="xiang" type="hidden" value="<%=rso("xiang")%>"></td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="21%" height="30" align="right">
							详细地址：</td>
							<td bgcolor="#FFFFFF" height="30" width="78%">
			<input id="topic4" maxLength="40" size="30" name="dizhi" class="button01" value="<%=rso("dizhi")%>">
			<font color="#FF0000">*</font></td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="21%" height="30" align="right">
							邮政编码：</td>
							<td bgcolor="#FFFFFF" height="30" width="78%">
			<input id="topic5" maxLength="6" size="6" name="code" class="button01" value="<%=rso("code")%>">
			<font color="#FF0000">*</font></td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="21%" height="30" align="right">
							名片相关介绍：</td>
							<td bgcolor="#FFFFFF" height="30" width="78%">
			<textarea  class="button02" rows="7" onkeyUp="textLimitCheck(this, 500);" name="memo" cols="48"><%=rso("memo")%></textarea>&nbsp;<font color="#FF0000">*</font><br><font color=#666666>限 50-500 个字符  已输入 <font color="#CC0000"><span id="messageCount">0</span></font> 个字</font></td>
						</tr>
						<tr>
							<td bgcolor="#FFFFFF" width="21%" height="30" align="right">
							　</td>
							<td bgcolor="#FFFFFF" height="30" width="78%">
			<input class="inputb" border="0" name="I5" type="submit" value="修改名片"></td>
						</tr></form>
					</table>
					</td>
				</tr>
			</table>
			<%end if
			rso.close
set rso=nothing%>
			</td>
			</tr>

</table>
<%rsuser.close
set rsuser=nothing%>
</div>

</body>
<!--#include file="userbottom.asp"--></body></html>