![]() |
#2
wwm1234567892012-03-04 20:58
|
只有本站会员才能查看附件,请 登录
,网页界面如图
只有本站会员才能查看附件,请 登录
,希望实现的功能是,当我选择的材料名称为“打印纸”时,
型号品牌中选项只有"16k"
单位中选项只有“包”
请指教,谢谢!

<!--#include file="aspcon.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>材料管理系统</title>
</head>
<body bgcolor="#CCFFFF" link="#0000FF" vlink="#0000FF" alink="#FF0000">
<center>
<table width="800" border="1">
<tr>
<td><div align="center">
<h1>耗材领用登记</h1></p>
<form name="form1" method="post" action="aa.asp">
<table width="75%" border="1">
<tr>
<td><font size="+1">材料名称</font>:</td>
<td><font size="+1">
<select name="name" size="1" id="name" style= "background-color:#eeeeee;width:150px;font-size:12px;" onkeydown="catch_keydown(this);" onkeypress="catch_press(this);">
<option></option>
<%
sql="select distinct(name) from rkb order by name" '去掉重复值
set rs=conn.execute(sql)
do while rs.eof=false
%>
<option><%=rs("name")%></option>
<%
rs.movenext
loop
%>
</select>
</font></td>
</tr>
<tr>
<td width="25%"><font size="+1">型号品牌:</font></td>
<td width="75%"><font size="+1">
<select name="xh" size="1" id="xh" style= "background-color:#eeeeee;width:150px;font-size:12px;" onkeydown="catch_keydown(this);" onkeypress="catch_press(this);">
<option></option>
<%
sql="select distinct(xh) from rkb order by xh" '去掉重复值
set rs=conn.execute(sql)
do while rs.eof=false
%>
<option><%=rs("xh")%></option>
<%
rs.movenext
loop
%>
</select>
</font></td>
</tr>
<tr>
<td><font size="+1">单位</font>:</td>
<td><font size="+1">
<select name="dw" size="1" id="dw" style= "background-color:#eeeeee;width:150px;font-size:12px;" onkeydown="catch_keydown(this);" onkeypress="catch_press(this);">
<option></option>
<%
sql="select distinct(dw) from rkb order by dw" '去掉重复值
set rs=conn.execute(sql)
do while rs.eof=false
%>
<option><%=rs("dw")%></option>
<%
rs.movenext
loop
%>
</select>
</font></td>
</tr>
</table>
<table width="75%" border="1">
<td width="25%"><font size="+1">数量:</font></td>
<td width="75%"><font size="+1">
<select name="sl" size="1" id="sl" style= "background-color:#eeeeee;width:150px;font-size:12px;">
<option>1</option>
</select>
</font></td>
</tr>
<tr>
<td><font size="+1">用途:</font>:</td>
<td><font size="+1">
<select name="yt" size="1" id="yt" style= "background-color:#eeeeee;width:150px;font-size:12px;" onKeyDown="catch_keydown(this);" onKeyPress="catch_press(this);">
<option></option>
<option>基本测量</option>
</select>
</font></td>
</tr>
</table>
<table width="75%" border="1">
<tr>
<td><font size="+1">领用人</font>:</td>
<td><font size="+1">
<select name="lyr" size="1" id="lyr" style= "background-color:#eeeeee;width:150px;font-size:12px;" onKeyDown="catch_keydown(this);" onKeyPress="catch_press(this);">
<option></option>
</select>
</font></td>
</tr>
<tr>
<td width="25%"><font size="+1">保管人:</font></td>
<td width="75%"><font size="+1">
<input name="bgr" type="text" style= "background-color:#eeeeee;width:150px;font-size:12px;" id="bgr" readonly value="<%=session("admin")%>" size="10" >
</font></td>
</tr>
<tr>
<td><font size="+1">领用时间</font>:</td>
<td><font size="+1">
<input name="lysj" type="text" style= "background-color:#eeeeee;width:150px;font-size:12px;" id="lysj" value="<%=Date()%>" size="10" >
</font></td>
</tr>
</table>
<p>
<input type="submit" name="Submit23" value="提交">
<input type="reset" name="Submit222" value="重置">
</p>
<p> </p>
</form>
</div></td>
</tr>
</table>
<p> </p>
<div align="center">
<p> </p>
<p> </p>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>材料管理系统</title>
</head>
<body bgcolor="#CCFFFF" link="#0000FF" vlink="#0000FF" alink="#FF0000">
<center>
<table width="800" border="1">
<tr>
<td><div align="center">
<h1>耗材领用登记</h1></p>
<form name="form1" method="post" action="aa.asp">
<table width="75%" border="1">
<tr>
<td><font size="+1">材料名称</font>:</td>
<td><font size="+1">
<select name="name" size="1" id="name" style= "background-color:#eeeeee;width:150px;font-size:12px;" onkeydown="catch_keydown(this);" onkeypress="catch_press(this);">
<option></option>
<%
sql="select distinct(name) from rkb order by name" '去掉重复值
set rs=conn.execute(sql)
do while rs.eof=false
%>
<option><%=rs("name")%></option>
<%
rs.movenext
loop
%>
</select>
</font></td>
</tr>
<tr>
<td width="25%"><font size="+1">型号品牌:</font></td>
<td width="75%"><font size="+1">
<select name="xh" size="1" id="xh" style= "background-color:#eeeeee;width:150px;font-size:12px;" onkeydown="catch_keydown(this);" onkeypress="catch_press(this);">
<option></option>
<%
sql="select distinct(xh) from rkb order by xh" '去掉重复值
set rs=conn.execute(sql)
do while rs.eof=false
%>
<option><%=rs("xh")%></option>
<%
rs.movenext
loop
%>
</select>
</font></td>
</tr>
<tr>
<td><font size="+1">单位</font>:</td>
<td><font size="+1">
<select name="dw" size="1" id="dw" style= "background-color:#eeeeee;width:150px;font-size:12px;" onkeydown="catch_keydown(this);" onkeypress="catch_press(this);">
<option></option>
<%
sql="select distinct(dw) from rkb order by dw" '去掉重复值
set rs=conn.execute(sql)
do while rs.eof=false
%>
<option><%=rs("dw")%></option>
<%
rs.movenext
loop
%>
</select>
</font></td>
</tr>
</table>
<table width="75%" border="1">
<td width="25%"><font size="+1">数量:</font></td>
<td width="75%"><font size="+1">
<select name="sl" size="1" id="sl" style= "background-color:#eeeeee;width:150px;font-size:12px;">
<option>1</option>
</select>
</font></td>
</tr>
<tr>
<td><font size="+1">用途:</font>:</td>
<td><font size="+1">
<select name="yt" size="1" id="yt" style= "background-color:#eeeeee;width:150px;font-size:12px;" onKeyDown="catch_keydown(this);" onKeyPress="catch_press(this);">
<option></option>
<option>基本测量</option>
</select>
</font></td>
</tr>
</table>
<table width="75%" border="1">
<tr>
<td><font size="+1">领用人</font>:</td>
<td><font size="+1">
<select name="lyr" size="1" id="lyr" style= "background-color:#eeeeee;width:150px;font-size:12px;" onKeyDown="catch_keydown(this);" onKeyPress="catch_press(this);">
<option></option>
</select>
</font></td>
</tr>
<tr>
<td width="25%"><font size="+1">保管人:</font></td>
<td width="75%"><font size="+1">
<input name="bgr" type="text" style= "background-color:#eeeeee;width:150px;font-size:12px;" id="bgr" readonly value="<%=session("admin")%>" size="10" >
</font></td>
</tr>
<tr>
<td><font size="+1">领用时间</font>:</td>
<td><font size="+1">
<input name="lysj" type="text" style= "background-color:#eeeeee;width:150px;font-size:12px;" id="lysj" value="<%=Date()%>" size="10" >
</font></td>
</tr>
</table>
<p>
<input type="submit" name="Submit23" value="提交">
<input type="reset" name="Submit222" value="重置">
</p>
<p> </p>
</form>
</div></td>
</tr>
</table>
<p> </p>
<div align="center">
<p> </p>
<p> </p>
</body>
</html>
[ 本帖最后由 wwm123456789 于 2012-3-5 12:01 编辑 ]