📄 currencyeditor.jsp
字号:
<%@ page language="java" contentType="text/html; charset=gb2312" pageEncoding="GB2312"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<html>
<head>
<title>JSP for CurrencyEditorForm form</title>
<meta http-equiv="content-type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../../STYLE/AJAXSTYLE.css" type="text/css" />
<link rel="stylesheet" href="../../STYLE/Styles.css" type="text/css" />
<script type="text/javascript" src="../../JS/jquery.js"></script>
<script type="text/javascript" src="../../JS/iutil.js"></script>
<script type="text/javascript" src="../../JS/idrag.js"></script>
<script type="text/javascript" src="../../JS/jquery.form.js"></script>
<script type="text/javascript" src="../../JS/waiting.js"></script>
<script type="text/javascript" src="../../JS/FelyTools.js"></script>
<script type="text/javascript">
function btn_add_onclick(){
$("#oper").val("add");
submitForm();
}
function btn_edit_onclick(){
$("#oper").val("edit");
submitForm();
}
function btn_delete_onclick(){
$("#oper").val("delete");
submitForm();
}
function submitForm(){
var MyWait = new wait(150,30,'请稍候,正在等待数据','../../IMAGES/processing.gif');
MyWait.show();
$("#currencyEditor").ajaxSubmit(
function(data)
{
MyWait.hidden();
$("#Data").empty();
try{
$(data).appendTo("#Data");
$("#currencyEditor").clearForm();
}catch(e){}
});
}
function clickTR(Row)
{
$("#cur_id").val(Row.cells[0].innerHTML);
$("#cur_desc").val(Row.cells[1].innerHTML);
ResetFocus("#Data",Row);
}
//页面加载时执行
$(
function(){
submitForm();
}
)
</script>
</head>
<body>
<html:form action="/currencyEditor" styleId="currencyEditor">
<div class="command">
<input type="button" name="btn_add" id="btn_add" value="添加" onClick="btn_add_onclick();">
<input type="button" name="btn_edit" id="btn_edit" value="修改" onClick="btn_edit_onclick();">
<input type="button" name="btn_delete" id="btn_delete" value="删除" onClick="btn_delete_onclick();">
</div>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table1">
<tr>
<td width="13%"> 货币ID:</td>
<td width="20%">
<html:text property="cur_id" styleId="cur_id"/>
<html:errors property="cur_id"/></td>
<td width="13%"> 货币名称:</td>
<td width="20%">
<html:text property="cur_desc" styleId="cur_desc"/>
<html:errors property="cur_desc"/></td>
<td width="14%"> </td>
<td width="20%">
<input type="hidden" value="getList" name="oper" id="oper"></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table2">
<tr class="fixedHeaderTr" id="Header">
<th width="40%">货币ID</th>
<th>货币名称</th>
</tr>
<tbody id="Data">
<tr>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>
</html:form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -