www.gusucode.com > 盐城分类信息网asp源码程序 > admin/com_editzj.asp

    <!--#include file=conn.asp-->
<!--#include file=cookies.asp-->
<%
dim rs,sql,id
id=trim(request("id"))
if not isnumeric(id) or id="" then
response.write "<li>参数错误!"
response.end
end if
set rs = Server.CreateObject("ADODB.RecordSet")
sql="select * from [com] where id="&cstr(id) 
rs.open sql,conn,1,1
%>
<meta http-equiv="Content-Language" content="zh-cn">
<title>修改资料</title>
<link href="inc_style.css" rel="stylesheet" type="text/css">
<body topmargin="0" leftmargin="0">
<div align="center">
  <center>
<table width="463" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
              <form method="POST" name="thisForm" action="com_editzjchk.asp">
              <tr> 
                <td width="463" bgcolor="#EEEEEE">
                  <table width="463" border="0" cellspacing="0" cellpadding="0" height="413">
                    <tr>
                      <td height="22" bgcolor="#EEEEEE" width="463" colspan="2">
                      <p align="center">修改用户资料</td>
                      </tr>
                    <tr>
                      <td height="25" bgcolor="#EEEEEE" width="107">
                      <p align="right">登陆用户名:</td>
                      <td height="30" bgcolor="#EEEEEE" width="356">
                       <%=rs("username")%></td>
                    </tr>                                                      
                    <tr>
                      <td height="25" bgcolor="#EEEEEE" width="107">
                      <p align="right">密码:</td>
                      <td height="30" bgcolor="#EEEEEE" width="356">
                      <input type="password" maxlength="12" name="password" size="22" value="<%=rs("password")%>"> 
						(不修改保留此项)</td>
                    </tr>                                                      
                    <tr>
                      <td height="17" bgcolor="#EEEEEE" width="463" colspan="2">
                      <hr color="#808080" size="1" style="border-top-style: dotted; border-top-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px"></td>
                    </tr>                                                      
                    <tr>
                      <td height="24" bgcolor="#EEEEEE" width="107">
                      <p align="right">所属类别:</td>
                      <td height="26" bgcolor="#EEEEEE">
<%
dim rsc,sqlc,class2
set rsc=server.createobject("adodb.recordset")
sqlc = "select * from class2 order by paixu desc"
rsc.open sqlc,conn,1,1
if rsc.eof and rsc.bof then
response.write "请先添加栏目。"
response.end
else
%>&nbsp;<SELECT name="class2"  size="1">
<OPTION selected value="">==分类==</OPTION>
<%do while not rsc.eof
%><OPTION <%if rsc("id")=rs("class2") then%>selected<%end if%> value="<%=trim(rsc("id"))%>"><%=trim(rsc("class2"))%></OPTION>
<%
        rsc.movenext
        loop
	    end if
        rsc.close
        set rsc=nothing
%></SELECT>
<font color="#FF0000">*</font></td>
                    </tr>                                                      
                    <tr>
                      <td height="24" bgcolor="#EEEEEE" width="107">
                      <p align="right">公司/店铺名称:</td>
                      <td height="30" bgcolor="#EEEEEE" width="356">
                      &nbsp;<input type="text" maxlength="12" name="com" size="24" value="<%=rs("com")%>">
						<font color="#FF0000">*</font></td>
                    </tr>                                                      
                    <tr> 
                      <td height="100" bgcolor="#EEEEEE" width="107">
                      <p align="right">公司/店铺简介:</td>
                      <td height="100" bgcolor="#EEEEEE" width="356">
                  &nbsp;<textarea rows="8" name="comabout" cols="39"><%=rs("comabout")%></textarea><font color="#FF0000">*</font></td>
                    </tr>
                    <tr> 
                      <td height="24" bgcolor="#EEEEEE" width="107">
                      <p align="right">法人代表姓名:</td>
                      <td height="21" bgcolor="#EEEEEE" width="356">
                      &nbsp;<input type="text" maxlength="12" name="name" size="24" value="<%=rs("name")%>">
						<font color="#FF0000">*</font></td>
                    </tr>
                    <tr> 
                      <td height="24" bgcolor="#EEEEEE" width="107">
                      <p align="right">法人代表证件:</td>
                      <td height="17" bgcolor="#EEEEEE" width="356">
                      &nbsp;<input type="text" maxlength="20" name="idcard" size="24" value="<%=rs("idcard")%>" >(身份证)<font color="#FF0000">*</font></td>
                    </tr>
                    <tr> 
                      <td height="24" bgcolor="#EEEEEE" width="107" align="right">
                      联系电话:</td>
                      <td height="17" bgcolor="#EEEEEE" width="356">
                      &nbsp;<input type="text" maxlength="30" name="dianhua" size="24" value="<%=rs("dianhua")%>" >
                      <font color="#FF0000">*</font></td>
                    </tr>
                    <tr> 
                      <td height="24" bgcolor="#EEEEEE" width="107" align="right">
                      传真:</td>
                      <td height="17" bgcolor="#EEEEEE" width="356">
                      &nbsp;<input type="text" maxlength="20" name="fax" size="24" value="<%=rs("fax")%>" ></td>
                    </tr>
                    <tr> 
                      <td height="24" bgcolor="#EEEEEE" width="107" align="right">
                      QQ:</td>
                      <td height="17" bgcolor="#EEEEEE" width="356">
                      &nbsp;<input type="text" maxlength="30" name="qq" size="24" value="<%=rs("qq")%>" ></td>
                    </tr>
                    <tr> 
                      <td height="24" bgcolor="#EEEEEE" width="107" align="right">
                      email:</td>
                      <td height="17" bgcolor="#EEEEEE" width="356">
                      &nbsp;<input type="text" maxlength="255" name="email" size="24" value="<%=rs("email")%>" ></td>
                    </tr>
                    <tr> 
                      <td height="24" bgcolor="#EEEEEE" width="107" align="right">
                      公司/店铺地址:</td>
                      <td height="17" bgcolor="#EEEEEE" width="356">
                      &nbsp;<input type="text" maxlength="50" name="dizhi" size="36" value="<%=rs("dizhi")%>" ><font color="#FF0000"> *</font></td>
                    </tr>
                    <tr> 
                      <td height="18" bgcolor="#EEEEEE" width="107">
                      <p align="right">
                       </td>
                      <td height="18" bgcolor="#EEEEEE" width="356">
                      <p>
                      <input border="0" type="submit" value="确认修改" name="edit"></td>
                    </tr>
                                        
                  </table>
                </td>
              </tr>
              </table>
          </center>
</div>
<%
rs.close
set rs=nothing
closedb
%>