📄 bigclass_update.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GB2312"%>
<jsp:directive.page import="com.captainli.struts.form.MbigclassForm"/>
<jsp:directive.page import="com.captainli.dboperation.MoneyClassDA"/>
<%
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 'bigclass_update.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.mbc_type.value == "0"){
window.alert("请选择帐务类型!");
form1.mbc_type.focus();
return false;
}
if(form1.mbc_name.value == ""){
window.alert("请输入帐务名称!");
form1.mbc_name.focus();
return false;
}
}
</script>
</head>
<%
int mbc_id = Integer.parseInt(request.getParameter("mbcid"));
MbigclassForm form = new MoneyClassDA().showMbigclass(mbc_id);
%>
<body>
<form name="form1" method="post" action="../mbigclass.do?method=updateMBigClass&mbcid=<%= form.getMbc_id() %>">
<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="mbc_type" id="mbc_type">
<option value="0">--选择帐务类型--</option>
<option value="1" <%if(form.getMbc_type() == 1){ %>selected="selected"<%} %>>收入</option>
<option value="2" <%if(form.getMbc_type() == 2){ %>selected="selected"<%} %>>支出</option>
</select>
<font color="#ff0000">*</font> </td>
</tr>
<tr>
<td height="30" align="right">大类名称:</td>
<td class="category"><input name="mbc_name" type="text" id="mbc_name" value="<%= form.getMbc_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 type="button" value=" 放弃修改返回 " onClick="window.history.go(-1)" class="button">
</td>
</tr>
</table></td>
<td></td>
</tr>
<tr>
<td><img src="../images/system/r_4.gif" alt="" /></td>
<td><br></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 + -