<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="java.util.*,com.tisson.business.*,com.tisson.jdbc.*"%>
<%@ taglib uri="/tld/selecttaglib.tld" prefix="SelectTagLib"%>
<%@ taglib uri="/tld/selectarraytaglib.tld" prefix="SelectArrayTagLib" %>
<%
String deptid = request.getParameter("deptid");
CarService cs = CarServiceFactory.getCarService();
RowSet rs = cs.getCarArgument();
%>
<html>
<head>
<title>汽车信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type=text/javascript>
var onecount;
onecount=0;
subcat = new Array();
<%
int count = 0;
for(int i=0; i<rs.length(); i++) {
Row row = (Row)rs.get(i);
String argid = row.get("ARGUMENTID").toString();
String aname = row.get("ARGUMENTNAME").toString();
String supid = row.get("SUPID").toString();
%>
subcat[<%=count %>] = new Array('<%=argid %>','<%=aname %>','<%=supid %>');
<%
count++;
}
%>
onecount=<%=count %>;
function changeSecond(locationid, secondCode)
{
document.frm.DETAILED_TYPE.length = 0;
var k;
for (k=0;k < onecount; k++)
{
if (subcat[k][2] == locationid)
{
document.frm.DETAILED_TYPE.options[document.frm.DETAILED_TYPE.length] = new
Option(subcat[k][1], subcat[k][0]);
if(subcat[k][0].toString() == secondCode) {
document.frm.DETAILED_TYPE.options[document.frm.DETAILED_TYPE.length-1].selected=true;
}
}
}
}
</script>
</head>
<body class="Sfont">
<center><br>
<form action="AddPage.jsp" name="frm" οnsubmit="return check();">
<table width="600" cellspacing="0" cellpadding="0" border="0" class="uniformstyle" id="myform">
<tr height="19" >
<td height="19" class="tdBgColor">类型</td>
<td ><select style="width:110" name="CAR_TYPE" οnchange="changeSecond(this.value, ' ')">
<SelectTagLib:SelectTagLib selectName="ARGUMENTID,ARGUMENTNAME"
fromName="ARGUMENT"
whereName=" ARGUMENTID like '000100110%' and length(ARGUMENTID)=12" orderName="ARGUMENTID"
selectedName="" databaseName="" />
</select>
</td>
</table>
</form>
</center>
</body>
</html>
<script type="text/javascript">
<!--
function check() {
return true;
}
//-->
</script>
一级关联
最新推荐文章于 2023-09-09 11:24:26 发布