<!--#include file="pysjzx_conn.asp"-->
<!--#include file="session.asp"-->
<html>
<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>
<link href="../css/style.css" rel="stylesheet" type="text/css">
<body>
<%dim userid
		id=request.querystring("id")
		set rs=server.createobject("adodb.recordset")
		rs.open "select * from [pysjzx_user] where userid="&id ,conn,1,1%>
		<form name="formpub" method="post" action="listcompany.asp?action=save&id=<%=id%>">
  <div align="center">
  <table cellpadding="3" cellspacing="1" border="1" width="100%" class="tableBorder" style="border-collapse: collapse" bordercolor="#C0C0C0">
    <tr align="center"> 
      <td class="tableHeaderText" colspan=2 height=25 bgcolor="#E8F1FF">企业会员详细资料</td>
    </tr>
    <tr>
      <td width="100%" class="forumRowHighlight" colspan="2" bgcolor="#F7F7F7">
		　</td>
    </tr>
    <tr>
      <td width="20%" class="forumRowHighlight" bgcolor="#F7F7F7">
		<p align="right">用 户 名：</td>
      <td width="80%" class="forumRowHighlight" bgcolor="#F7F7F7"><%=trim(rs("username"))%></td>
    </tr>
    <tr> 
      <td class="forumRowHighlight" width="20%" bgcolor="#F7F7F7">
		<p align="right">密&nbsp;&nbsp;&nbsp; 码：</td>
      <td class="forumRowHighlight" bgcolor="#F7F7F7"> <input name="pass" type="text" id="password" size="30" maxlength=20>不改密码请为空! 
		6-20个字符内</td>
    </tr>    <tr> 
      <td class="forumRowHighlight" width="20%" bgcolor="#F7F7F7">
		<p align="right"><span lang="zh-cn">电子邮箱</span>：</td>
      <td class="forumRowHighlight" bgcolor="#F7F7F7">    
		<input name="email" type="text"  value="<%=trim(rs("email"))%>" size=30></td>
    </tr>
	<tr> 
      <td class="forumRowHighlight" width="20%" bgcolor="#F7F7F7">
		<p align="right">服务范围：</td>
      <td class="forumRowHighlight" bgcolor="#F7F7F7">  
		<input class="input1" id="service_sort1" type="checkbox" <%if rs("service_sort1")=1 then%>CHECKED<%end if%>  value="1" name="service_sort1"><label for="service_sort1">新车</label> 
		<input class="input1" id="service_sort2" type="checkbox" <%if rs("service_sort2")=1 then%>CHECKED<%end if%>  value="1" name="service_sort2"><label for="service_sort2">二手车</label>
		<input class="input1" id="service_sort3" type="checkbox" <%if rs("service_sort3")=1 then%>CHECKED<%end if%> value="1" name="service_sort3"><label for="service_sort3">租赁车</label><font face="宋体">
		<font color="#ff0000">*</font></font></td>
    </tr>
	<tr> 
      <td class="forumRowHighlight" width="20%" bgcolor="#F7F7F7">
		　</td>
      <td class="forumRowHighlight" bgcolor="#F7F7F7"> 　</td>
    </tr>
	<tr> 
      <td class="forumRowHighlight" width="20%" bgcolor="#F7F7F7">
		<p align="right">公司名称：</td>
      <td class="forumRowHighlight" bgcolor="#F7F7F7"> 
		<input name="company" type="text" value="<%=trim(rs("company"))%>" size=30></td>
    </tr>
	<tr> 
      <td class="forumRowHighlight" width="20%" bgcolor="#F7F7F7">
		<p align="right">负责人：</td>
      <td class="forumRowHighlight" bgcolor="#F7F7F7"> <input name="linkname" type="text"  value="<%=trim(rs("linkname"))%>" size=30></td>
    </tr>
    <tr> 
      <td class="forumRowHighlight" width="20%" bgcolor="#F7F7F7">
		<p align="right">市区县区：</td>
      <td class="forumRowHighlight" bgcolor="#F7F7F7"><select size="1" name="province" onChange=chsel()  class="wenbenkuang">
          <option value="xxx" selected>--不限省份--</option>
          <%dim tmpShengid
tmpShengid=0
    response.write  rs("province")
set rs1_s=server.createobject("adodb.recordset")
sql2="select * from province  order by shengorder"
rs1_s.open sql2,conn,1,1
while not rs1_s.eof%>

    <%

           if rs("province")=rs1_s("ShengNo") then
          tmpShengid=rs1_s("id")
%>
          <option value="<%=rs1_s("ShengNo")%>" selected ><%=trim(rs1_s("ShengName"))%></option>
          <%
     else
%>
          <option value="<%=rs1_s("ShengNo")%>" ><%=trim(rs1_s("ShengName"))%></option>
            <%
     end if        
 
    rs1_s.movenext
wend
rs1_s.close
set rs1_s=nothing
%>
        </select><select size="1" size="18" name="city"  class="wenbenkuang"  >
                        <option value="" >--不限城市--</option>

            

 <%
set rs1_s=server.createobject("adodb.recordset")
sql2="select * from city where shengid="&tmpShengid&" order by shiorder"
rs1_s.open sql2,conn,1,1
while not rs1_s.eof

%>
  <option value="<%=rs1_s("ShiNo")%>" <%if rs("city")=rs1_s("ShiNo") then%>selected<%end if%>><%=trim(rs1_s("ShiName"))%></option>

      
          <%
    rs1_s.movenext
wend
rs1_s.close
set rs1_s=nothing
%>
					 </select> <font color="#FF0000">*   
		　</td>
    </tr>

    <tr> 
      <td class="forumRowHighlight" width="20%" bgcolor="#F7F7F7">
		<p align="right">联系地址：</td>
      <td class="forumRowHighlight" bgcolor="#F7F7F7">  
		<input name=address type=text value="<%=trim(rs("address"))%>" size=30></td>
    </tr>
    <tr> 
      <td class="forumRowHighlight" width="20%" bgcolor="#F7F7F7">
		<p align="right">联系电话：</td>
      <td class="forumRowHighlight" bgcolor="#F7F7F7">  
		<input name=tel type=text value="<%=trim(rs("tel"))%>" size=30></td>
    </tr>
    <tr> 
      <td class="forumRowHighlight" width="20%" bgcolor="#F7F7F7">
		<p align="right">传真：</td>
      <td class="forumRowHighlight" bgcolor="#F7F7F7">  
		<font face="宋体"><input id="name4"  size=30 name="fax" value="<%=trim(rs("fax"))%>"></font></td>
    </tr>
    <tr> 
      <td class="forumRowHighlight" width="20%" bgcolor="#F7F7F7">
		<p align="right">邮编：</td>
      <td class="forumRowHighlight" bgcolor="#F7F7F7">  
		<font face="宋体"><input id="name5"  size=30 name="zip" value="<%=trim(rs("zip"))%>"></font></td>
    </tr>
    <tr> 
      <td class="forumRowHighlight" width="20%" bgcolor="#F7F7F7">
		<p align="right">网址：</td>
      <td class="forumRowHighlight" bgcolor="#F7F7F7">  
		<font face="宋体"><input id="name6"  size=30 name="web" value="<%=trim(rs("web"))%>"></font></td>
    </tr>
    <tr> 
      <td class="forumRowHighlight" width="20%" bgcolor="#F7F7F7">
		<p align="right">简介：</td>
      <td class="forumRowHighlight" bgcolor="#F7F7F7">  
		<textarea name="info" rows="10" cols="50"><%=rs("info")%></textarea> </td>
    </tr>
    <tr> 
      <td class="forumRowHighlight" width="20%" bgcolor="#F7F7F7">
		<p align="right">会员类型：</td>
      <td class="forumRowHighlight" bgcolor="#F7F7F7">  
		企业会员</td>
    </tr>
    <tr> 
      <td class="forumRowHighlight" width="20%" bgcolor="#F7F7F7">
		<p align="right">会员级别：</td>
      <td class="forumRowHighlight" bgcolor="#F7F7F7">  
		<%if rs("reglx")=1 then%>普通会员<%end if%>
      <%if rs("reglx")=2 then%>高级会员<%end if%></td>
    </tr>
    <tr> 
      <td class="forumRowHighlight" width="20%" bgcolor="#F7F7F7">
		　</td>
      <td class="forumRowHighlight" bgcolor="#F7F7F7">　</td>
    </tr>
    
    <tr> 
      <td class="forumRowHighlight" width="20%" bgcolor="#F7F7F7">
		<p align="right">注册时间：</td>
      <td class="forumRowHighlight" bgcolor="#F7F7F7"><%=rs("adddate")%></td>
    </tr>
    
    <tr> 
      <td class="forumRowHighlight" width="20%" bgcolor="#F7F7F7">
		<p align="right">登陆次数：</td>
      <td class="forumRowHighlight" bgcolor="#F7F7F7"><%=rs("logins")%>次　</td>
    </tr><tr> 
      <td class="forumRowHighlight" width="20%" bgcolor="#F7F7F7">
		<p align="right">最后登陆：</td>
      <td class="forumRowHighlight" bgcolor="#F7F7F7"><%=rs("lastlogin")%></td>
    </tr>
    <tr> 
      <td class="forumRowHighlight" width="20%" bgcolor="#F7F7F7">
		<p align="right">登后登录<span lang="en-us">IP</span>：</td>
      <td class="forumRowHighlight" bgcolor="#F7F7F7"><%=rs("userLastIP")%></td>
    </tr>  
    <tr> 
      <td height="28" colspan="2" class="forumRowHighlight" bgcolor="#F7F7F7">　</td>
    </tr>

    <tr> 
      <td height="28" colspan="2" class="forumRowHighlight"> <div align="center"> 
     <input type="submit" name="submit" value="确认提交">
          &nbsp;&nbsp;&nbsp; 
        
          <input  type="button" name="Submit2" value="返回上一页" onClick='javascript:history.go(-1)'> 
        
        </div></td>
    </tr>
  </table>
  </div>
  </form> 
  