sethint.jsp
上传用户:lm2018
上传日期:2015-12-12
资源大小:30449k
文件大小:3k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page language="java" pageEncoding="GBK"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  3. <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
  4. <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
  5. <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
  6. <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
  7. <html>
  8. <head>
  9. <style type="text/css">
  10. .tableHead{ /*表头*/
  11. font-size:12px;
  12. font-weight:bold;
  13. height:20pt;
  14. background:url(img/bg.bmp);
  15. text-align:buttom;
  16. }
  17. .myTable{
  18. border:#00A8FF 1px solid;
  19. border-collapse:collapse;
  20. /*padding:0px 0px 0px 0px;*/
  21. }
  22. .myTable TD{
  23. border:#00A8FF 1px solid;
  24. font-family:"宋体";
  25. font-size:10pt;
  26. /*height:22px;*/
  27. padding:0px 0px 0px 0px;
  28. }
  29. .text{
  30. font-family:"宋体";
  31. font-size:10pt;
  32. /*height:22px;*/
  33. padding:0px 0px 0px 0px;
  34. width:200px;
  35. height:22px;
  36. }
  37. </style>
  38. <script>
  39. function setDisplay(state){
  40. form1.hshowtime.style.display = state;
  41. }
  42. function check(){
  43.     var showtime = form1.hshowtime.value;
  44.     if(showtime!=null){
  45.     if (isNaN(showtime)){
  46.     alert("间隔时间只能输入数字!");
  47. return false;
  48. }
  49. }
  50.     }
  51.    
  52. </script>
  53. </head>
  54. <logic:equal name="hint" property="hshowtype" value="0">
  55. <body onload="setDisplay('none');">
  56. </logic:equal>
  57. <logic:equal name="hint" property="hshowtype" value="1">
  58. <body onload="setDisplay('block');">
  59. </logic:equal>
  60. <html:form action="/hint.do?method=update" styleId="form1" onsubmit="return check()">
  61. <table border="1" width="100%" class="myTable">
  62. <html:hidden property="uno" value="${hint.uno}" />
  63. <tr class="tableHead">
  64. <td colspan="2" align="center">
  65. 个人小贴士设置
  66. </td>
  67. </tr>
  68. <tr>
  69. <td align="right" width="30%">
  70. 是否显示小贴士:
  71. </td>
  72. <td width="70%">
  73. <html:radio property="hshowtype" value="1" onclick="setDisplay('block');">显示</html:radio>
  74. <html:radio property="hshowtype" value="0" onclick="setDisplay('none');">不显示</html:radio>
  75. </td>
  76. </tr>
  77. <tr>
  78. <td align="right" width="30%">
  79. 显示间隔时间:
  80. </td>
  81. <td width="70%">
  82. <html:text property="hshowtime" size="6" maxlength="10" value="${hint.hshowtime}"></html:text>
  83. (单位:秒)
  84. </td>
  85. </tr>
  86. <tr>
  87. <td align="right" width="30%">
  88. 事务提醒:
  89. </td>
  90. <td width="70%">
  91. <html:radio property="haffair" value="1">提醒</html:radio>
  92. <html:radio property="haffair" value="0">不提醒</html:radio>
  93. </td>
  94. </tr>
  95. <tr>
  96. <td align="right" width="30%">
  97. 会议提醒:
  98. </td>
  99. <td width="70%">
  100. <html:radio property="hmeeting" value="1">提醒</html:radio>
  101. <html:radio property="hmeeting" value="0">不提醒</html:radio>
  102. </td>
  103. </tr>
  104. <tr>
  105. <td align="right" width="30%">
  106. 邮件提醒:
  107. </td>
  108. <td width="70%">
  109. <html:radio property="hemail" value="1">提醒</html:radio>
  110. <html:radio property="hemail" value="0">不提醒</html:radio>
  111. </td>
  112. </tr>
  113. <tr>
  114. <td width="30%">
  115. &nbsp;
  116. </td>
  117. <td width="70%">
  118. <html:submit value="设置" />
  119. &nbsp;
  120. <html:cancel value="取消" />
  121. </td>
  122. </tr>
  123. </table>
  124. </html:form>
  125. </body>
  126. </html>