<!--#include file=webhead.asp-->
<!--#include file=cookie.asp-->
<title><%=webname%>-会员中心-</title>
<div align="center">
<table border="0" width="784" cellspacing="0" cellpadding="0" bordercolor="#000000" style="border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px" >
		<tr>
			<td bgcolor="#E9E9E9" height=2></td>
				</tr>
		<tr>
			<td height=5></td>
				</tr>
		<tr>
			<td align="center"><p align="center"><%if ad2451class=0 then%><a target="_blank" href="<%=ad2451url%>"><img  alt="<%=ad2451name%>" src="<%=ad2451%>"  border="0" width=777 height=123></a>
	<%else%>
													<object classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" id="obj1" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" border="0" width="777" height="123">
	<param name="movie" value="<%=ad2451%>">
	<param name="quality" value="High">
	<embed src="<%=ad2451%>" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" name="obj1" width="777" height="123"></object>

	<%end if%>
	
												
			
			　</td>
				</tr>
		<tr>
			<td height=5></td>
				</tr>
		<tr>
			<td height=5></td>
				</tr>
			</table>
<%
set rs7=server.CreateObject ("adodb.recordset")
sql="select * from byshop_user where user='"&replace(request.cookies("byshop")("user"),"'","")&"'"
rs7.open sql,conn,1,1
%>
	<table border="0" width="784" style="border-collapse: collapse; border-left-style: solid; border-left-width: 1px; border-right-style: solid; border-right-width: 1px; border-top-width: 1px; border-bottom-width: 1px" bordercolor="#000000" cellpadding="0">
		<tr>
			<td width="200" valign="top"><!--#include file="mume.asp"--></td>			<td width=3 bgcolor="#ffffff"></td>
			<td width=1 bgcolor="#E9E9E9"></td>
			<td width=3 bgcolor="#ffffff"></td>
			<td width="600" valign="top">
			<table border="0" width="100%">
				<tr>
					<td>
					
<script language=JavaScript>
<%dim i_1,j_1
	set rs_s=server.createobject("adodb.recordset")
	sql="select * from province order by shengorder"
	rs_s.open sql,conn,1,1
%>
	var selects=[];
	selects['xxx']=new Array(new Option('-请选择市-','xxx'));
<%
	for i=1 to rs_s.recordcount
%>
	selects['<%=rs_s("ShengNo")%>']=new Array(

new Option('-请选择县-','xxx'),
<%
	set rs_s1=server.createobject("adodb.recordset")
	sql="select * from city where shengid="&rs_s("id")&" order by shiorder"
	rs_s1.open sql,conn,1,1
	if rs_s1.recordcount>0 then 
	%>


	<%		for j=1 to rs_s1.recordcount
		if j=rs_s1.recordcount then 
%>
		new Option('<%=trim(rs_s1("shiname"))%>','<%=trim(rs_s1("shiNo"))%>'));
<%		else
%>
		new Option('<%=trim(rs_s1("shiname"))%>','<%=trim(rs_s1("shiNo"))%>'),
<%
		end if
		rs_s1.movenext
		next
	else 
%>
		new Option('','0'));
<%
	end if
	rs_s1.close
	set rs_s1=nothing
	rs_s.movenext
	next
rs_s.close
set rs_s=nothing
%>
	function chsel(){
		with (document.formpub){
			if(province.value) {
				city.options.length=0;
				for(var i=0;i<selects[province.value].length;i++){
					city.add(selects[province.value][i]);
				}
			}
		}
	}



</script>
<script language="JavaScript">
<!--
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}

function checkform() {
    if(checkspace(document.formpub.address.value)) {
    alert("请输入地段要求！");
	formpub.address.focus();
	return false;
	  }
	    if(formpub.province.value == "xxx") {
    alert("请选择市！");
	formpub.province.focus();
	return false;
	  }
	  if(formpub.city.value == "xxx") {
    alert("请选择县！");
	formpub.city.focus();
	return false;
	  }
	
      if(checkspace(document.formpub.usearea.value)) {
    alert("请输入面积大小！"); 
	formpub.usearea.focus();
	return false;			
	  }
	      for ( iii = 1 ; iii <= formpub.usearea.value.length ; iii++ ) {
        chara =formpub.usearea.value.charAt(iii-1);
        if  ( chara != 0 && chara != 1 && chara != 2 && chara != 3 && chara != 4 && chara != 5 && chara != 6 && chara != 7 && chara != 8  && chara != 9 && chara != ".") {
        alert("面积大小格式错误！");
        formpub.usearea.focus(); 
        		return false;
         }
  }
        if(checkspace(document.formpub.floor.value)) {
    alert("请输入楼！"); 
	formpub.floor.focus();
	return false;			
	  }
	      for ( iii = 1 ; iii <= formpub.floor.value.length ; iii++ ) {
        chara =formpub.floor.value.charAt(iii-1);
        if  ( chara != 0 && chara != 1 && chara != 2 && chara != 3 && chara != 4 && chara != 5 && chara != 6 && chara != 7 && chara != 8  && chara != 9 ) {
        alert("楼格式错误！");
        formpub.floor.focus(); 
        		return false;
         }
  }
     if(checkspace(document.formpub.floor2.value)) {
    alert("请输入层！"); 
	formpub.floor2.focus();
	return false;			
	  }
	      for ( iii = 1 ; iii <= formpub.floor2.value.length ; iii++ ) {
        chara =formpub.floor2.value.charAt(iii-1);
        if  ( chara != 0 && chara != 1 && chara != 2 && chara != 3 && chara != 4 && chara != 5 && chara != 6 && chara != 7 && chara != 8  && chara != 9 ) {
        alert("层格式错误！");
        formpub.floor2.focus(); 
        		return false;
         }
  }

     if(checkspace(document.formpub.money.value)) {
    alert("请输入求租价格！"); 
	formpub.money.focus();
	return false;			
	  }
	      for ( iii = 1 ; iii <= formpub.money.value.length ; iii++ ) {
        chara =formpub.money.value.charAt(iii-1);
        if  ( chara != 0 && chara != 1 && chara != 2 && chara != 3 && chara != 4 && chara != 5 && chara != 6 && chara != 7 && chara != 8  && chara != 9 && chara != ".") {
        alert("求租价格格式错误！");
        formpub.money.focus(); 
        		return false;
         }
  }
      if(checkspace(document.formpub.content.value)) {
    alert("请输入详细介绍！"); 
	formpub.content.focus();
	return false;
  }

  if(formpub.content.value.length > 1000){
  	alert("详细介绍不得超过1000个字符！");
	formpub.content.focus();	
	return false;		
  }
  if(checkspace(document.formpub.linkman.value)) {
    alert("请输入联系人！"); 
	formpub.linkman.focus();
	return false;
  }
  if(checkspace(document.formpub.mobile.value)) {
    alert("请输入电话号码！"); 
	formpub.mobile.focus();
	return false;
  }
    for ( iii = 1 ; iii <= formpub.mobile.value.length ; iii++ ) {
        chara =formpub.mobile.value.charAt(iii-1);
        if  ( chara != 0 && chara != 1 && chara != 2 && chara != 3 && chara != 4 && chara != 5 && chara != 6 && chara != 7 && chara != 8  && chara != 9 ) {
        alert("电话格式格式错误！");
        formpub.mobile.focus(); 
        		return false;
         }
  }

} 
// -->
</script>
<table width="100%" border="1" bordercolor="#E9E9E9" style="border-collapse: collapse" cellspacing="1" cellpadding="3"><form name="formpub" method="post"  onsubmit="return checkform()" action="saverent2.asp?action=add" onsubmit="return checkform()">
                <tr> 
                  <td  colspan="3"> <p align="center"><b>放款信息-添加</b></td>
                </tr>
                <tr> 
                  <td  colspan="3"> <p align="right">审核状态：等待 </select></td>
                </tr>
                <tr> 
                  <td width="710" colspan="3">房屋信息</td>
                </tr>
                <tr bordercolor="#C0C0C0"> 
                  <td bgcolor="#F7F7F7">　</td>
                  <td bgcolor="#F7F7F7"> 放贷数额</td>
                  <td bgcolor="#F7F7F7"> <input class="wenbenkuang" maxLength="40" name="address" style="WIDTH: 60px"> 
                    <font color="#ff0000"> * 请注明</font></td>
                </tr>
                <tr bordercolor="#C0C0C0"> 
                  <td bgcolor="#F7F7F7">　</td>
                  <td bgcolor="#F7F7F7">放贷期限</td>
                  <td bgcolor="#F7F7F7"> <input class="wenbenkuang" maxLength="40" name="company" style="WIDTH: 60px"> 
                    <font color="#ff0000"> *</font></td>
                </tr>
                <tr bordercolor="#C0C0C0"> 
                  <td bgcolor="#F7F7F7">　</td>
                  <td bgcolor="#F7F7F7">借款方式</td>
                  <td bgcolor="#F7F7F7"> <select id="Select10" name="sort">
                      <option value="4">房地产</option>
                      <option value="5">金融债券</option>
                      <option value="7">厂房</option>
                      <option value="11">其他</option>
                    </select> <font color="#ff0000">&nbsp; </font></td>
                </tr>
                <tr bordercolor="#C0C0C0"> 
                  <td bgcolor="#F7F7F7">　</td>
                  <td bgcolor="#F7F7F7">期望利息</td>
                  <td bgcolor="#F7F7F7"> <input class="wenbenkuang" maxLength="5" name="area"  style="WIDTH: 60px" >
                    % <font color="#ff0000">&nbsp; </font></td>
                </tr>
                <tr bordercolor="#C0C0C0"> 
                  <td bgcolor="#F7F7F7">　</td>
                  <td bgcolor="#F7F7F7">拟放贷地区</td>
                  <td bgcolor="#F7F7F7"> <input name="floor" id="TB_Layer"  maxlength="40"> 
                    &nbsp;<font color="#ff0000">*</font> </td>
                </tr>
                <tr> 
                  <td width="710" colspan="3">其它要求</td>
                </tr>
                <tr> 
                  <td width="710">　</td>
                  <td width="710" colspan="2"> （最多1000字。当前字数：<span id="spanCommentContentLength356431584" style="COLOR: red">0</span>）<font color="red">*</font><br> 
                    <textarea onkeyup="if(event.ctrlKey &amp;&amp; (10 == event.keyCode || 13 == event.keyCode) &amp;&amp; form.onsubmit()) form.submit(); else onchange();" onpropertychange="onchange()" name="content" rows="5" cols="60" onchange="document.getElementById('spanCommentContentLength356431584').innerHTML=value.length;" class="wenbenkuang"></textarea> 
                  </td>
                </tr>
                <tr> 
                  <td width="710" colspan="3">联系方式 <%
				set rs=server.CreateObject ("adodb.recordset")
sql="select * from byshop_user where user='"&replace(request.cookies("byshop")("user"),"'","")&"'"
rs.open sql,conn,1,1
					%></td>
                </tr>
                <tr> 
                  <td width="710">　</td>
                  <td width="710">联 系 人</td>
                  <td width="710"> <input class="wenbenkuang" maxLength="40" name="linkman" value="<%=rs("name")%>"> 
                    <font color="#ff0000"> *</font></td>
                </tr>
                <tr> 
                  <td width="710">　</td>
                  <td width="710">电话号码</td>
                  <td width="710"> <input class="wenbenkuang" maxLength="40" name="mobile" value="<%=rs("tel")%>" > 
                    <font color="#ff0000"> *</font></td>
                </tr>
                <tr> 
                  <td width="710">　</td>
                  <td width="710">手机号码</td>
                  <td width="710"> <input class="wenbenkuang" maxLength="40" name="tel" value="<%=rs("mobile")%>" ></td>
                </tr>
                <tr> 
                  <td width="710">　</td>
                  <td width="710">电子邮件</td>
                  <td width="710"> <input class="wenbenkuang" maxLength="15" name="email" value="<%=rs("email")%>" ></td>
                </tr>
                <tr> 
                  <td width="710">　</td>
                  <td width="710"> 联系方式</td>
                  <td width="710"> <input class="input1" id="Contract_QQ" type="radio" <%if rs("contract")="qq" then%> CHECKED <%end if%> value="qq" name="Contract"> 
                    <label for="Contract_QQ">QQ</label> <input class="input1" id="Contract_MSN" type="radio" <%if rs("contract")="msn" then%> <%end if%> value="msn" name="Contract"> 
                    <label for="Contract_MSN">MSN</label> <input class="wenbenkuang" maxLength="15" size="16" name="Contract2" value="<%=rs("Contract2")%>"></td>
                </tr>
                <tr> 
                  <td width="710">　</td>
                  <td width="710">有 效 期</td>
                  <td width="710"> <select id="period" name="period">
                      <option value="7" selected>一星期</option>
                      <option value="15">半个月</option>
                      <option value="30">一个月</option>
                      <option value="90">一季度</option>
                      <option value="180">半年</option>
                    </select></td>
                </tr>
                <tr> 
                  <td width="710">　</td>
                  <td width="710">登记日期</td>
                  <td width="710"> <%=Date()%></td>
                </tr>
                <tr> 
                  <td valign="top" width="710" colspan="3"><input type=hidden name=pubsort value=<%=rs("usersort")%>> 
                    <input type=hidden name=userid value=<%=rs("id")%>>
                    　 <%rs.close
  set rs=nothing%>
                    　</td>
                </tr>
                <tr> 
                  <td valign="top" width="710" colspan="3"><div align="center">&nbsp;　 
                      <input type="submit" name="Submit" value="添  加"  class=wenbenkuang >
                      <input type="reset" name="Submit7" value="清  除"  class=wenbenkuang >
                    </div></td>
                </tr></form>
              </table>
</td>
				</tr>
			</table>
			</td>
		</tr>
	</table>
</div>
<!--#include file=webfoot.asp-->