📄 muser_update.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="sub/conn.asp"-->
<!--#include file="sub/rightnav.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="cbody.css" rel="stylesheet" type="text/css" />
<link href="nav.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!--#include file="sub/mheader.asp"-->
<div id="abody">
<div id="lbody">
<div class="zh1">
<%
dim id,idd
idd=Request.QueryString("id")
if idd="" then
Response.Write("<h5>请选择其中一项进行修改!!!</h5>")
else
id=idd
%>
<%
set rs=Server.CreateObject("ADODB.RecordSet")
sql="select * from room where id='"&id&"'"
rs.open sql,conn,1,3
%>
<%
dim asd,pic
asd=Request.QueryString("img")
if asd="" then
pic=rs(9)
else
pic=asd
end if
'获取图片
%>
<form name="yulan" method="post" enctype="multipart/form-data" action="upfile/sub_update.asp" onSubmit="return checkForm(this);">
<div id="zh1-1">
<p><img src="ownerpic/<%= pic %>" alt="" width="100" height="120" style="background-color: #000000" /></p>
<p><input name="file" type="file" size="1" />
<input name="Submit" type="submit" id="Submit" value="预览" IsShowProcessBar="True"/>
</p>
<span class="fzhusi">小于2M图片文件(*.gif、*.jpg、*.png、*.bmp), 预览后再提交</span>
</div>
</form>
<form action="muser_updo.asp" method="post" name="zhdj" id="zhdj" >
<input type="hidden" name="pic" value="<%= pic %>" />
<input type="hidden" name="id" value="<%= id %>" />
<div class="zh1-2">
<ol>
<li>住户姓名:
<input name="oname" type="text" id="oname" value="<%= rs(7) %>" size="10" />
</li>
<%
dim check,abc
check=rs(4)
select case check
case "男"
boy="checked='checked'"
case "女"
girl="checked='checked'"
case "不限"
none="checked='checked'"
end select
%>
<li>性别:
男<input name="sex" type="radio" class="sex" value="男" <%= boy %>/>
女<input name="sex" type="radio" class="sex" value="女" <%= girl %>/>
不限<input name="sex" type="radio" class="sex" value="不限" <%= none %>/>
</li>
<li>身份证号:<input name="indentity" type="text" id="indentity" value="<%= rs(8) %>" size="20" />
</li>
<li>房间号:<input name="room_id" type="text" id="room_id" value="<%= rs(1) %>" size="15" /><input type="hidden" name="yroom_id" value="<%= rs(1) %>" />
</li>
<li>家庭人口数:<input name="person" type="text" id="person" value="<%= rs(3) %>" size="10" />
</li>
<li>房子大小:<input name="room_size" type="text" id="room_size" value="<%= rs(2) %>" size="15" />
</li>
<li>汽车:<input name="car" type="text" id="car" value="<%= rs(5) %>" size="15" />
</li>
<%
dim odate,oyear,omanth,oda
odate=rs(6)
oyear=split(odate,"年")
omanth=split(oyear(1),"月")
oda=split(omanth(1),"日")
%>
<li>迁入日期:
<label>
<select name="oyear" id="oyear">
<option><%= oyear(0) %></option>
<% for n=2000 to 2015 %>
<option><%= n %></option>
<% next %>
</select>
</label>
年
<label>
<select name="omonth" id="omonth">
<option><%= omanth(0) %></option>
<% for y=1 to 12 %>
<option><%= y %></option>
<% next %>
</select>
</label>
月
<label>
<select name="odate" id="odate">
<option><%= oda(0) %></option>
<% for i=1 to 31 %>
<option><%= i %></option>
<% next %>
</select>
</label>
日 </li>
</ol>
</div>
<div class="zh1-3">
<ol>
<li>住户简历:
<textarea name="jianli" cols="10" id="jianli"><%= rs(10) %></textarea>
</li>
<li>
<label>
<input type="submit" name="Submit" value=" 修改 " />
</label>
<label>
<input name="reset" type="reset" id="reset" value=" 重置 " />
</label>
</li>
</ol>
</div>
</form>
<%
rs.close
set rs=nothing
end if
%>
</div>
</div>
<div id="rbody">
<% call rightnav() %>
</div>
</div>
<!--#include file="sub/cbottom.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -