📄 bank_update.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GB2312"%>
<jsp:directive.page import="com.captainli.struts.form.BankForm"/>
<jsp:directive.page import="com.captainli.dboperation.BankDA"/>
<%
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 'bank_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="javascipt">
function check(){
if(form1.b_name.value == ""){
window.alert("请输入银行名称!");
form1.b_name.focus();
return false;
}
if(form1.b_amount.value == ""){
window.alert("银行期初金额如果没有请填写”0“");
form1.b_amount.value = "0";
form1.b_amount.focus();
return false;
}
}
</script>
</head>
<%
int b_id = Integer.parseInt(request.getParameter("bid"));
BankForm form = new BankDA().showBankByID(b_id);
%>
<body>
<form name="form1" method="post" action="../bank.do?method=updateBank&bid=<%= form.getB_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"><input name="b_name" type="text" id="b_name" value="<%= form.getB_name() %>" style="width:200px">
<font color="#ff0000">*</font></td>
</tr>
<tr>
<td height="30" align="right">期初金额:</td>
<td class="category"><input name="b_amount" type="text" id="b_amount" value="<%= form.getB_amount() %>" style="width:200px" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))">
</td>
</tr>
<tr>
<td height="30" align="right">银行备注:</td>
<td class="category"><textarea name="b_note" cols="60" rows="3" id="b_note"><%= form.getB_note() %></textarea>
</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></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 + -