📄 accounttakemoney.jsp
字号:
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<script type="text/javascript">
function validatePrice(obj)
{
//var obj = document.getElementById("price");
var str = obj.value;
if(str!=null)
{
var index = str.indexOf('.');
if (index!=-1)
{
var decimal = str.substring(index+1,str.length);
if(decimal.length > 2)
{
alert("价格只能带有两位小数!");
obj.focus();
return false;
}
}
}
}
function clearFields()
{
document.getElementById("accountNo").value="";
document.getElementById("amount").value="";
document.getElementById("password").value="";
}
</script><html:javascript formName="takeMoneyForm" dynamicJavascript="true" staticJavascript="true"/>
<html:form action="takeMoney" styleId="takeMoneyForm" onsubmit="return validateTakeMoneyForm(this)">
<table border="0" width="100%">
<tr>
<td class="thd" colspan="2" align="center">
<bean:message key="financialAccount.takeMoney"/>
</td>
</tr>
<tr>
<td class="tdata" colspan="2" align="center"> </td>
</tr>
<tr>
<td class="tdata" width="50%">
<bean:message key="financialAccount.takeMoney.accountNo"/>
<font color="red">*</font>
</td>
<td class="tdata" width="50%">
<html:text styleClass="inputstyle" styleId="accountNo" property="accountNo"/>
</td>
</tr>
<tr>
<td class="tdata" width="50%">
<bean:message key="financialAccount.takeMoney.amount"/>
<font color="red">*</font>
</td>
<td class="tdata" width="50%">
<html:text styleClass="inputstyle" styleId="amount" property="amount" onblur="validatePrice(this)"/>
</td>
</tr>
<tr>
<td class="tdata" width="50%">
<bean:message key="financialAccount.takeMoney.password"/>
<font color="red">*</font>
</td>
<td class="tdata" width="50%">
<html:password styleClass="inputstyle" styleId="password" property="password"/>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<html:submit styleClass="btnaction">
<bean:message key="financialAccount.takeMoney.submit"/>
</html:submit>
<!-- html : reset styleClass="btnaction" >< bean : message key="button.reset"/ >< /html:reset -->
<input type="button" name="clear" value="取消" class="btnaction" onClick="javascript:clearFields()">
</td>
</tr>
</table>
</html:form>
<html:errors/>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -