otherSubsidy-add.jsp 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@include file="/context/mytags.jsp"%>
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <title>其它补贴</title>
  7. <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  8. <script src="plug-in/layer/layer.js"></script>
  9. <script>
  10. function btn_ok(){
  11. $("#btnsub").click();
  12. }
  13. function callback(data){
  14. if(data.success){
  15. layer.alert(data.msg, function(index){
  16. window.location.href="otherSubsidyController.do?list"
  17. layer.close(index);
  18. });
  19. }
  20. else{
  21. layer.alert(data.msg);
  22. }
  23. }
  24. </script>
  25. <script type="text/javascript">
  26. //编写自定义JS代码
  27. </script>
  28. </head>
  29. <body>
  30. <t:formvalid formid="formobj" dialog="false" usePlugin="password" layout="table" action="otherSubsidyController.do?doAdd" tiptype="1" callback="callback">
  31. <input id="id" name="id" type="hidden" value="${otherSubsidyPage.id }"/>
  32. <table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
  33. <tr>
  34. <td align="right">
  35. <label class="Validform_label">
  36. 补贴名称:
  37. </label>
  38. </td>
  39. <td class="value">
  40. <input id="subsidyName" name="subsidyName" type="text" style="width: 150px" class="inputxt" datatype="*" ignore="checked" />
  41. <span class="Validform_checktip"></span>
  42. <label class="Validform_label" style="display: none;">补贴名称</label>
  43. </td>
  44. </tr>
  45. <tr>
  46. <td align="right">
  47. <label class="Validform_label">
  48. 补贴金额:
  49. </label>
  50. </td>
  51. <td class="value">
  52. <input id="subsidyMoney" name="subsidyMoney" type="text" style="width: 150px" class="inputxt" datatype="*" ignore="checked" />
  53. <span class="Validform_checktip"></span>
  54. <label class="Validform_label" style="display: none;">补贴金额</label>
  55. </td>
  56. </tr>
  57. <tr>
  58. <td height="50px" align="center" colspan="2">
  59. <a style="margin-left:80px" href="#" class="easyui-linkbutton l-btn" plain="true" iconcls="icon-le-back" onclick="history.go(-1)">返回</a>
  60. <div style="display:none"><input type="submit" id ="btnsub" value=""/></div>
  61. <a href="#" class="easyui-linkbutton l-btn" iconcls="icon-le-ok" onclick="btn_ok()">提交</a>
  62. </td>
  63. </tr>
  64. </table>
  65. </t:formvalid>
  66. </body>
  67. <script src = "webpage/cn/com/lzt/othersubsidy/otherSubsidy.js"></script>