58d65cfafc38d99077db51561b6fa39d0d25ceda.svn-base 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%
  3. String path = request.getContextPath();
  4. %>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml">
  7. <head>
  8. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  9. <title>表单拆分</title>
  10. <!-- 框架必需start -->
  11. <script type="text/javascript" src="<%=path%>/libs/js/jquery.js"></script>
  12. <script type="text/javascript" src="<%=path%>/libs/js/language/cn.js"></script>
  13. <script type="text/javascript" src="<%=path%>/libs/js/framework.js"></script>
  14. <link href="<%=path%>/libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  15. <link rel="stylesheet" type="text/css" id="skin" prePath="<%=path%>/"/>
  16. <link rel="stylesheet" type="text/css" id="customSkin"/>
  17. <!-- 框架必需end -->
  18. <!-- 表单拆分 start -->
  19. <script src="<%=path%>/libs/js/form/stepForm.js" type="text/javascript"></script>
  20. <!-- 表单拆分 end -->
  21. <body>
  22. <div class="padding_top20">
  23. <form method="post" action="" class="stepForm" stepFormTitle="false">
  24. <div id="step1" class="stepForm">
  25. <table class="tableStyle" formMode="transparent">
  26. <tr>
  27. <td width="100">用户名:</td><td><input id="user" type="text" /></td>
  28. </tr>
  29. <tr>
  30. <td>籍贯:</td>
  31. <td>
  32. <select>
  33. <option value="">请选择籍贯</option>
  34. <option>北京市</option>
  35. <option>天津市</option>
  36. <option>河北省</option>
  37. </select>
  38. </td>
  39. </tr>
  40. <tr>
  41. <td colspan="2">
  42. <input type="button" value="下一步" selfTarget="step1" nextTarget="step2"/>
  43. </td>
  44. </tr>
  45. </table>
  46. </div>
  47. <div id="step2" class="stepForm">
  48. <table class="tableStyle" formMode="transparent">
  49. <tr>
  50. <td width="100">选择权限:</td>
  51. <td>
  52. <select id="select1">
  53. <option value="1">新增图片</option>
  54. <option value="2">维护图片</option>
  55. <option value="3">新增新闻</option>
  56. <option value="4">发起投票活动</option>
  57. </select>
  58. </td>
  59. </tr>
  60. <tr>
  61. <td>性别:</td>
  62. <td><label for="radio-1">男</label><input type="radio" id="radio-1" name="ra" value="radio-1" />
  63. <label for="radio-2">女</label><input type="radio" id="radio-2" name="ra" value="radio-2"/>
  64. </td>
  65. </tr>
  66. <tr>
  67. <td colspan="2">
  68. <input type="button" value="上一步" selfTarget="step2" prevTarget="step1" />
  69. <input type="button" value="下一步" selfTarget="step2" nextTarget="step3" />
  70. </td>
  71. </tr>
  72. </table>
  73. </div>
  74. <div id="step3" class="stepForm">
  75. <table class="tableStyle" formMode="transparent">
  76. <tr>
  77. <td width="100">年龄:</td><td><input type="text" /></td>
  78. </tr>
  79. <tr>
  80. <td>籍贯:</td>
  81. <td>
  82. <select >
  83. <option value="">请选择籍贯</option>
  84. <option>北京市</option>
  85. <option>天津市</option>
  86. </select>
  87. </td>
  88. </tr>
  89. <tr>
  90. <td>爱好:</td>
  91. <td><label for="checkbox-1" >唱歌</label><input type="checkbox" id="checkbox-1" name="ck1" value="选项1"/>
  92. <label for="checkbox-2">跳舞</label> <input type="checkbox" id="checkbox-2" name="ck1" value="选项2" />
  93. </td>
  94. </tr>
  95. <tr>
  96. <td colspan="2">
  97. <input type="button" value="上一步" selfTarget="step3" prevTarget="step2"/>
  98. <input type="button" value="下一步" selfTarget="step3" nextTarget="step4" />
  99. </td>
  100. </tr>
  101. </table>
  102. </div>
  103. <div id="step4" class="stepForm">
  104. <table class="tableStyle" formMode="transparent">
  105. <tr>
  106. <td width="100">年龄:</td><td><input type="text" /></td>
  107. </tr>
  108. <tr>
  109. <td>籍贯:</td>
  110. <td>
  111. <select >
  112. <option value="">请选择籍贯</option>
  113. <option>北京市</option>
  114. <option>天津市</option>
  115. </select>
  116. </td>
  117. </tr>
  118. <tr>
  119. <td colspan="2">
  120. <input type="button" value="上一步" selfTarget="step4" prevTarget="step3"/>
  121. <input type="submit" value=" 提 交 "/>
  122. </td>
  123. </tr>
  124. </table>
  125. </div>
  126. </form>
  127. </div>
  128. </body>
  129. </html>