📄 smallclass_add.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GB2312"%>
<jsp:directive.page import="com.captainli.dboperation.MoneyClassDA"/>
<jsp:directive.page import="com.captainli.struts.form.MbigclassForm"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'smallclass_add.jsp' starting page</title>
<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">
<link rel="stylesheet" type="text/css" href="../css/sys.css">
<style type="text/css">
<!--
body {
margin-left: 5px;
margin-top: 5px;
margin-right: 5px;
margin-bottom: 5px;
background-color: #FFFFFF;
}
a:link {
color: #1A438E;
text-decoration: underline;
}
a:visited {
text-decoration: underline;
}
a:hover {
text-decoration: none;
color: #000000;
}
a:active {
text-decoration: underline;
}
.style1 { color: #1A438E;
font-size: 12px;
}
.style2 { color:#FF0000;
font-size: 12px;
}
-->
</style>
<script type="text/javascript" language="javascript">
function check(){
if(form1.msc_mbc_id.value == "0"){
window.alert("请选择所属帐务大类!");
form1.msc_mbc_id.focus();
return false;
}
if(form1.msc_name.value == ""){
window.alert("请输入帐务小类名称!");
form1.msc_name.focus();
return false;
}
}
</script>
</head>
<%
ArrayList arryMBig = new MoneyClassDA().showMBigClass();
%>
<body>
<form name="form1" method="post" action="../msmallclass.do?method=addMSmallClass">
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
<tr>
<td><img src="../images/system/r_1.gif" alt="" /></td>
<td width="100%" background="../images/system/r_0.gif">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td> 添加小类(带*号的为必填项)</td>
<td align="right"> </td>
</tr>
</table></td>
<td><img src="../images/system/r_2.gif" alt="" /></td>
</tr>
<tr>
<td></td>
<td>
<table align="center" cellpadding="4" cellspacing="1" class="toptable grid" border="1">
<tr>
<td width="25%" height="30" align="right">所属帐务大类:</td>
<td width="75%" class="category">
<select name="msc_mbc_id" id="msc_mbc_id">
<option value="0">--选择帐务大类--</option>
<%for(int i = 0;i < arryMBig.size();i++){ MbigclassForm form = (MbigclassForm)arryMBig.get(i);%>
<option value="<%= form.getMbc_id() %>"><%= form.getMbc_name() %></option><%} %>
</select>
<font color="#ff0000">*</font> </td>
</tr>
<tr>
<td height="30" align="right">帐务小类名称:</td>
<td class="category">
<input type="text" name="msc_name" id="msc_name" style="width:300px">
<font color="#ff0000">*</font></td>
</tr>
<tr>
<td height="30"> </td>
<td class="category">
<input name="submit" type="submit" onClick="return check()" value=" 确 认 " class="button">
<input name="reset" type="reset" value=" 重新填写 " class="button">
<input name="button" type="button" class="button" onClick="window.history.go(-1)" value=" 放弃添加返回 ">
</td>
</tr>
</table></td>
<td></td>
</tr>
<tr>
<td><img src="../images/system/r_4.gif" alt="" /></td>
<td></td>
<td><img src="../images/system/r_3.gif" alt="" /></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -