




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、附录1 附录2 个人存款计算器 jsp源代码<% page language="java" pageEncoding="GBK"%><!DOCTYPE html PUBLIC "-/W3C/DTD XHTML 1.0 Transitional/EN" "/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="/1999/xhtml" ><he
2、ad><title>个人存款计算器</title><link href="./Styles/styles.css;pvf21b76d3545dc298" rel="Stylesheet" type="text/css" /> <script language="javascript"> function perSaving() var amount=document.per_form.amountTextBox.value var yrate=document.
3、per_form.yRateTextBox.value var term=document.per_form.termTextBox.value if (amount="") alert("请输入存款金额!") document.per_form.amountTextBox.focus() window.event.returnValue = false; return if (yrate="") alert("请输入年利率或选择期限种类!") document.per_form.yRateTextBox.focu
4、s() window.event.returnValue = false; return if (term="") alert("请输入存期!") document.per_form.termTextBox.focus() window.event.returnValue = false; return if(isNaN(amount) 1 / 11 alert("请输入数字!") document.per_form.amountTextBox.focus() window.event.returnValue = false; ret
5、urn if(isNaN(yrate) alert("请输入数字!") document.per_form.yRateTextBox.focus() window.event.returnValue = false; return if(isNaN(term) alert("请输入数字!") document.per_form.termTextBox.focus() window.event.returnValue = false; return var taxrate=0.00; var interest=amount*yrate*term*0.01/
6、12 var tax=taxrate*amount*yrate*term*0.01/12 var result=amount*(1+(1-taxrate)*yrate*term*0.01/12) interest=Math.round(interest*100) interest=interest/100 interest=interest+"" document.per_erestTextBox.value=interest tax=Math.round(tax*100) tax=tax/100 tax=tax+"" document.
7、per_form.taxTextBox.value=tax result=Math.round(result*100) result=result/100 result=result+"" document.per_form.resultTextBox.value=result window.event.returnValue = false; </script> <script language="javascript"> function checkTerm() var during=document.per_form.dur
8、ingDropDownlist.value var currencyDropDownList=document.per_form.currencyDropDownList.value if(currencyDropDownList="人民币") if(during="活期") document.per_form.termTextBox.value ="" document.per_form.yRateTextBox.value="0.5000" if(during="通知存款 一天") docu
9、ment.per_form.termTextBox.value ="" document.per_form.yRateTextBox.value="0.9500" if(during="通知存款 七天") document.per_form.termTextBox.value ="" document.per_form.yRateTextBox.value="1.4900" if(during="整存整取三个月") document.per_form.termTextBox.
10、value ="03" document.per_form.yRateTextBox.value="3.1000" if(during="整存整取 半年") document.per_form.termTextBox.value ="06" document.per_form.yRateTextBox.value="3.3000" if(during="整存整取 一年") document.per_form.termTextBox.value ="12"
11、document.per_form.yRateTextBox.value="3.5000" if(during="整存整取 二年") document.per_form.termTextBox.value ="24" document.per_form.yRateTextBox.value="4.4000" if(during="整存整取 三年") document.per_form.termTextBox.value ="36" document.per_form.yRat
12、eTextBox.value="5.0000" if(during="整存整取 五年") document.per_form.termTextBox.value ="60" document.per_form.yRateTextBox.value="5.5000" if(during="零存整取 一年") document.per_form.termTextBox.value ="12" document.per_form.yRateTextBox.value="3
13、.1000" if(during="零存整取 三年") document.per_form.termTextBox.value ="36" document.per_form.yRateTextBox.value="3.3000" if(during="零存整取 五年") document.per_form.termTextBox.value ="60" document.per_form.yRateTextBox.value="3.5000" if(during=
14、"整存零取 一年") document.per_form.termTextBox.value ="12" document.per_form.yRateTextBox.value="3.1000" if(during="整存零取 三年") document.per_form.termTextBox.value ="36" document.per_form.yRateTextBox.value="3.3000" if(during="整存零取 五年") d
15、ocument.per_form.termTextBox.value ="60" document.per_form.yRateTextBox.value="3.5000" if(during="零存零取 一年") document.per_form.termTextBox.value ="12" document.per_form.yRateTextBox.value="3.1000" if(during="零存零取 三年") document.per_form.termT
16、extBox.value ="36" document.per_form.yRateTextBox.value="3.3000" if(during="零存零取 五年") document.per_form.termTextBox.value ="60" document.per_form.yRateTextBox.value="3.5000" if(during="存本取息 一年") document.per_form.termTextBox.value ="12
17、" document.per_form.yRateTextBox.value="3.1000" if(during="存本取息 三年") document.per_form.termTextBox.value ="36" document.per_form.yRateTextBox.value="3.3000" if(during="存本取息 五年") document.per_form.termTextBox.value ="60" document.per_fo
18、rm.yRateTextBox.value="3.5000" if(currencyDropDownList="美元") if(during="活期") document.per_form.termTextBox.value ="" document.per_form.yRateTextBox.value="0.1000" if(during="整存整取 一个月") document.per_form.termTextBox.value ="01" doc
19、ument.per_form.yRateTextBox.value="0.2500" if(during="整存整取 三个月") document.per_form.termTextBox.value ="03" document.per_form.yRateTextBox.value="0.5000" if(during="整存整取 半年") document.per_form.termTextBox.value ="06" document.per_form.yRateT
20、extBox.value="0.7500" if(during="整存整取 一年") document.per_form.termTextBox.value ="12" document.per_form.yRateTextBox.value="1.2500" if(during="整存整取 二年") document.per_form.termTextBox.value ="24" document.per_form.yRateTextBox.value="1.2
21、500" if(currencyDropDownList="英镑") if(during="活期") document.per_form.termTextBox.value ="" document.per_form.yRateTextBox.value="0.1250" if(during="整存整取 一个月") document.per_form.termTextBox.value ="01" document.per_form.yRateTextBox.val
22、ue="0.2180" if(during="整存整取 三个月") document.per_form.termTextBox.value ="03" document.per_form.yRateTextBox.value="0.8050" if(during="整存整取 半年") document.per_form.termTextBox.value ="06" document.per_form.yRateTextBox.value="0.9760"
23、 if(during="整存整取 一年") document.per_form.termTextBox.value ="12" document.per_form.yRateTextBox.value="1.0760" if(during="整存整取 二年") document.per_form.termTextBox.value ="24" document.per_form.yRateTextBox.value="1.0760" if(currencyDropDownLi
24、st="欧元") if(during="活期") document.per_form.termTextBox.value ="" document.per_form.yRateTextBox.value="0.1000" if(during="整存整取 一个月") document.per_form.termTextBox.value ="01" document.per_form.yRateTextBox.value="0.7500" if(during
25、="整存整取 三个月") document.per_form.termTextBox.value ="03" document.per_form.yRateTextBox.value="1.0000" if(during="整存整取 半年") document.per_form.termTextBox.value ="06" document.per_form.yRateTextBox.value="1.1250" if(during="整存整取 一年")
26、 document.per_form.termTextBox.value ="12" document.per_form.yRateTextBox.value="1.2500" if(during="整存整取 二年") document.per_form.termTextBox.value ="24" document.per_form.yRateTextBox.value="1.3125" if(currencyDropDownList="日元") if(during=&q
27、uot;活期") document.per_form.termTextBox.value ="" document.per_form.yRateTextBox.value="0.0001" if(during="整存整取 一个月") document.per_form.termTextBox.value ="01" document.per_form.yRateTextBox.value="0.0100" if(during="整存整取 三个月") document
28、.per_form.termTextBox.value ="03" document.per_form.yRateTextBox.value="0.0100" if(during="整存整取 半年") document.per_form.termTextBox.value ="06" document.per_form.yRateTextBox.value="0.0100" if(during="整存整取 一年") document.per_form.termTextBox.
29、value ="12" document.per_form.yRateTextBox.value="0.0100" if(during="整存整取 二年") document.per_form.termTextBox.value ="24" document.per_form.yRateTextBox.value="0.0100" if(currencyDropDownList="港币") if(during="活期") document.per_form
30、.termTextBox.value ="" document.per_form.yRateTextBox.value="0.0200" if(during="整存整取 一个月") document.per_form.termTextBox.value ="01" document.per_form.yRateTextBox.value="0.1500" if(during="整存整取 三个月") document.per_form.termTextBox.value =&q
31、uot;03" document.per_form.yRateTextBox.value="0.4000" if(during="整存整取 半年") document.per_form.termTextBox.value ="06" document.per_form.yRateTextBox.value="0.5000" if(during="整存整取 一年") document.per_form.termTextBox.value ="12" document.
32、per_form.yRateTextBox.value="0.8000" if(during="整存整取 二年") document.per_form.termTextBox.value ="24" document.per_form.yRateTextBox.value="1.1000" if(currencyDropDownList="加拿大元") if(during="活期") document.per_form.termTextBox.value ="&qu
33、ot; document.per_form.yRateTextBox.value="0.0400" if(during="整存整取 一个月") document.per_form.termTextBox.value ="01" document.per_form.yRateTextBox.value="0.2165" if(during="整存整取 三个月") document.per_form.termTextBox.value ="03" document.per_for
34、m.yRateTextBox.value="0.3915" if(during="整存整取 半年") document.per_form.termTextBox.value ="06" document.per_form.yRateTextBox.value="0.5100" if(during="整存整取 一年") document.per_form.termTextBox.value ="12" document.per_form.yRateTextBox.value=&
35、quot;0.7315" if(during="整存整取 二年") document.per_form.termTextBox.value ="24" document.per_form.yRateTextBox.value="0.7315" if(currencyDropDownList="瑞士法郎") if(during="活期") document.per_form.termTextBox.value ="" document.per_form.yRateTe
36、xtBox.value="0.0001" if(during="整存整取 一个月") document.per_form.termTextBox.value ="01" document.per_form.yRateTextBox.value="0.0100" if(during="整存整取 三个月") document.per_form.termTextBox.value ="03" document.per_form.yRateTextBox.value="0.
37、0100" if(during="整存整取 半年") document.per_form.termTextBox.value ="06" document.per_form.yRateTextBox.value="0.0100" if(during="整存整取 一年") document.per_form.termTextBox.value ="12" document.per_form.yRateTextBox.value="0.0100" if(during=&
38、quot;整存整取 二年") document.per_form.termTextBox.value ="24" document.per_form.yRateTextBox.value="0.0100" if(currencyDropDownList="澳大利亚元") if(during="活期") document.per_form.termTextBox.value ="" document.per_form.yRateTextBox.value="0.2375&quo
39、t; if(during="整存整取 一个月") document.per_form.termTextBox.value ="01" document.per_form.yRateTextBox.value="1.2400" if(during="整存整取 三个月") document.per_form.termTextBox.value ="03" document.per_form.yRateTextBox.value="1.3875" if(during="整
40、存整取 半年") document.per_form.termTextBox.value ="06" document.per_form.yRateTextBox.value="1.5075" if(during="整存整取 一年") document.per_form.termTextBox.value ="12" document.per_form.yRateTextBox.value="1.5750" if(during="整存整取 二年") document
41、.per_form.termTextBox.value ="24" document.per_form.yRateTextBox.value="1.5750" if(currencyDropDownList="新加坡元") if(during="活期") document.per_form.termTextBox.value ="" document.per_form.yRateTextBox.value="0.0001" if(during="整存整取 一个月&q
42、uot;) document.per_form.termTextBox.value ="01" document.per_form.yRateTextBox.value="0.0100" if(during="整存整取 三个月") document.per_form.termTextBox.value ="03" document.per_form.yRateTextBox.value="0.0100" if(during="整存整取 半年") document.per_fo
43、rm.termTextBox.value ="06" document.per_form.yRateTextBox.value="0.7500" if(during="整存整取 一年") document.per_form.termTextBox.value ="12" document.per_form.yRateTextBox.value="0.0100" if(during="整存整取 二年") document.per_form.termTextBox.value =
44、"24" document.per_form.yRateTextBox.value="0.0100" </script></head><body> <form name="per_form" method="post" action="xxx_check.jsp" id="per_form"> <div > <table class="black" cellSpacing="0&q
45、uot; cellPadding="0" width="723" border="0"><tr><td vAlign="top" height="366"><table cellSpacing="0" cellPadding="0" width="100%" align="middle" borderColorDark="#ffffff" borderColor
46、Light="#cccccc" border="1"><tr bgColor="#e0e0e0"><td colSpan="4" height="30"><div class="20" align="center"><font color="#cc0000"><strong>个 人 存 款 计 算 器</strong></font></div
47、></td></tr><tr><td align="center" valign="top"><br><table cellSpacing="0" bgColor="#ffffff" borderColorDark="#ffffff" cellPadding="3" width="80%" borderColorLight="darkgray"border=&quo
48、t;1"><tr><td align="right"><span class="content">币种</span></td><td align="left"><select name="currencyDropDownList" onchange="on_currencyDropDownList_selected()" id="currencyDropDownList">&l
49、t;option selected="selected" value="人民币">人民币</option><option value="美元">美元</option><option value="英镑">英镑</option><option value="欧元">欧元</option><option value="日元">日元</option><option
50、 value="港币">港币</option><option value="加拿大元">加拿大元</option><option value="瑞士法郎">瑞士法郎</option><option value="澳大利亚元">澳大利亚元</option><option value="新加坡元">新加坡元</option></select></td></t
51、r><tr><td align="right"><span class="content">期限种类</span></td><td align="left"><select name="duringDropDownlist" onchange="javascript:checkTerm();" id="duringDropDownlist"><option selected=&qu
52、ot;selected" value="请选择期限种类">请选择期限种类</option><option value="活期">活期</option><option value="通知存款 一天">通知存款 一天</option><option value="通知存款七天">通知存款七天</option><option value="整存整取 三个月">整存整取 三个月</opt
53、ion><option value="整存整取 半年">整存整取 半年</option><option value="整存整取 一年">整存整取 一年</option><option value="整存整取 二年">整存整取 二年</option><option value="整存整取 三年">整存整取 三年</option><option value="整存整取 五年">整存整取
54、五年</option><option value="零存整取 一年">零存整取 一年</option><option value="零存整取三年">零存整取三年</option> <option value="零存整取五年">零存整取五年</option> <option value="整存零取 一年">整存零取 一年</option> <option value="整存零取三年"&
55、gt;整存零取三年</option> <option value="整存零取 五年">整存零取 五年</option> <option value="存本取息 一年">存本取息 一年</option> <option value="存本取息 三年">存本取息 三年</option> <option value="存本取息 五年">存本取息 五年</option></select></td&g
56、t;</tr><tr><td align="right"><span class="content">存款金额</span></td><td align="left"><input name="amountTextBox" type="text" id="amountTextBox" style="width:130px;" /><span class=&
57、quot;content">元</span></td></tr><tr><td align="right"><span class="content">年利率</span></td><td align="left"><input name="yRateTextBox" type="text" id="yRateTextBox" style=&quo
58、t;color:#404040;width:130px;" /><span class="content">(%)</span></td></tr><tr><td align="right"><span class="content">存期</span></td><td align="left"><input name="termTextBox" type
59、="text" id="termTextBox" style="width:130px;" /><span class="content">月</span></td></tr><tr bgColor="#e0e0e0"><td align="right"><span class="content">利息</span></td><td al
60、ign="left"><input name="interestTextBox" type="text" readonly="readonly" id="interestTextBox" style="width:130px;" /><span class="content">元</span></td></tr><tr bgColor="#e0e0e0">&l
61、t;td align="right"><span class="content">扣除利息税</span></td><td align="left"><input name="taxTextBox" type="text" readonly="readonly" id="taxTextBox" style="width:130px;" /><span class=&
62、quot;content">元</span></td></tr><tr bgColor="#e0e0e0"><td align="right"><span class="content">本息合计(税后)</span></td><td align="left"><input name="resultTextBox" type="text" read
63、only="readonly" id="resultTextBox" style="width:130px;" /><span class="content">元</span><input type="image" name="calculateImageButton" id="calculateImageButton" src="./images/calculator_button.gif" alt="计算" align="bottom" onclick="javascript:perSaving();" style="height:21px;border-width:0px;" /></td></tr></table><br></td></tr></table></td></tr></table><P></P> </div> </
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年度钢管租赁与建筑节能合同
- 2025版汽车整车出口运输服务合同书
- 2025年度信息技术安全评估与改进合同
- 二零二五年度地质灾害防治勘察设计技术服务合同
- 二零二五年度装配式建筑生产与施工合同
- 二零二五版水产品电商平台大数据分析服务合同
- 2025版特种机械设备特种买卖合同
- 2025版高标准沙石料存放场地租赁合同书
- 二零二五年度电力工程信息安全与防护合同
- 句容分散采购管理办法
- 甘肃低空经济政策
- 2024年北京市海淀区招聘社区工作者考试真题
- 交通信号控制系统检验批质量验收记录表
- VS1真空断路器说明书
- JTT230-2021汽车导静电橡胶拖地带_(高清-最新)
- 监理周例会总承包单位工作汇报PPT课件
- 生态融合绿色发展(EOD)示范项目可行性研究报告模板
- 四大经典之温病
- 24kV环网柜技术规范
- 产品质量保证大纲
- 初中物理总复习笔记
评论
0/150
提交评论