📄 smalltypeupdate.jsp~3~
字号:
<%@ page contentType="text/html; charset=gb2312"%>
<%@page import="java.sql.*"%>
<%@page import="java.util.*"%>
<%@page import="com.domain.SmallTypeForm"%>
<%@page import="com.domain.BigTypeForm"%>
<jsp:useBean id="big" scope="page" class="com.dao.BigTypeDao"/>
<%SmallTypeForm form=(SmallTypeForm)request.getAttribute("small");%>
<%List list=big.selectBig();%>
<script language="javascript">
function checkEmpty(form){
for(i=0;i<form.length;i++){
if(form.elements[i].value==""){
alert("表单信息不能为空");
return false;
}
}
}
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>电子商城的后台</title>
</head>
<link href="css/css.css" rel="stylesheet" type="text/css">
<body>
<table width="755" height="100%" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="104" colspan="2"> <div align="center"><jsp:include page="../upOne.jsp"/> </div> </td>
</tr>
<tr>
<td height="15" colspan="2"><div align="center">
<jsp:include page="../upTwo.jsp"/>
</div></td>
</tr>
<tr>
<td width="24%" height="318"><jsp:include page="../../leftManager.jsp"/> </td>
<td width="76%" height="36"><div align="right"></div>
<div align="center"> <strong>修改商品小类别信息</strong><br>
<form action="smallTypeAction.do?action=2" method="post" name="form" onSubmit="return checkEmpty(form)" >
<table width="90%" height="60" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="25%" height="30"><div align="center">请选择类别名称</div></td>
<td width="75%">
<select name="bigId" >
<option value="">请选择</option>
<%for(int i=0;i<list.size();i++){
BigTypeForm form=(BigTypeForm)list.get(i);
%>
<option value="<%=form.getId()%>"><%=form.getBigName()%></option>
<%}%>
</select>
</td>
</tr>
<tr>
<td width="25%" height="30"><div align="center">小类别名称</div></td>
<td width="75%"> <input name="name" type="text" size="50" value="<%=form.getSmallName()%>"></td>
</tr>
</table>
<p>
<input type="submit" name="Submit2" value="提交">
<input type="reset" name="reset" value="清除">
<input type="button" name="back" value="返回" onClick="javasrcipt:history.go(-1)">
</p>
</form>
<p> </p>
<p> </p>
<p> </p>
</div></td>
</tr>
<tr>
<td height="60" colspan="2"><p align="center"><jsp:include page="../downNews.jsp"/>
</p> </td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -