b098c0a4a956fb09ec63d24929ad4b435b26a1b3.svn-base 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <title>表单拆分</title>
  6. <!-- 框架必需start -->
  7. <script type="text/javascript" src="../../libs/js/jquery.js"></script>
  8. <script type="text/javascript" src="../../libs/js/language/cn.js"></script>
  9. <script type="text/javascript" src="../../libs/js/framework.js"></script>
  10. <link href="../../libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  11. <link rel="stylesheet" type="text/css" id="skin" prePath="../../"/>
  12. <link rel="stylesheet" type="text/css" id="customSkin"/>
  13. <!-- 框架必需end -->
  14. <!-- 表单拆分 start -->
  15. <script src="../../libs/js/form/stepForm.js" type="text/javascript"></script>
  16. <!-- 表单拆分 end -->
  17. </head>
  18. <body>
  19. <div class="box1" panelWidth="800">
  20. <fieldset>
  21. <legend>1、导航模式</legend>
  22. <form method="post" action="" class="stepForm" stepFormTitle="true">
  23. <div id="step1-1" class="stepForm" stepFormTitle="表单步骤一">
  24. <table class="tableStyle" formMode="transparent">
  25. (第一部分表单内容)
  26. <tr>
  27. <td colspan="2">
  28. <input type="button" value="下一步" selfTarget="step1-1" nextTarget="step1-2"/>
  29. </td>
  30. </tr>
  31. </table>
  32. </div>
  33. <div id="step1-2" class="stepForm" stepFormTitle="表单步骤二">
  34. <table class="tableStyle" formMode="transparent">
  35. (第二部分表单内容)
  36. <tr>
  37. <td colspan="2">
  38. <input type="button" value="上一步" selfTarget="step1-2" prevTarget="step1-1"/>
  39. <input type="button" value="下一步" selfTarget="step1-2" nextTarget="step1-3"/>
  40. </td>
  41. </tr>
  42. </table>
  43. </div>
  44. <div id="step1-3" class="stepForm" stepFormTitle="表单步骤三">
  45. <table class="tableStyle" formMode="transparent">
  46. (第三部分表单内容)
  47. <tr>
  48. <td colspan="2">
  49. <input type="button" value="上一步" selfTarget="step1-3" prevTarget="step1-2"/>
  50. <input type="button" value="下一步" selfTarget="step1-3" nextTarget="step1-4"/>
  51. </td>
  52. </tr>
  53. </table>
  54. </div>
  55. <div id="step1-4" class="stepForm" stepFormTitle="表单步骤四">
  56. <table class="tableStyle" formMode="transparent">
  57. (第四部分表单内容)
  58. <tr>
  59. <td colspan="2">
  60. <input type="button" value="上一步" selfTarget="step1-4" prevTarget="step1-3"/>
  61. <input type="submit" value=" 提 交 "/>
  62. </td>
  63. </tr>
  64. </table>
  65. </div>
  66. </form>
  67. </fieldset>
  68. <div class="height_15"></div>
  69. <fieldset>
  70. <legend>2、无导航模式</legend>
  71. <p>因每页中只能有1个拆分的表单,因此,以下的表单会放在弹出窗口中显示。</p>
  72. <input type="button" value="点击查看表单" onclick="showNoTitleForm();"/>
  73. </fieldset>
  74. <div class="height_15"></div>
  75. <fieldset>
  76. <legend>3、自定义初始时的步骤</legend>
  77. <p>form的currentStepNum属性设置表单出现时的步骤。如currentStepNum="1"则初始时在第二步。</p>
  78. <input type="button" value="点击查看表单" onclick="showFormWithStep();"/>
  79. </fieldset>
  80. <div class="height_15"></div>
  81. <fieldset>
  82. <legend>4、带验证的表单</legend>
  83. <input type="button" value="点击查看表单" onclick="showFormWithValidation();"/>
  84. </fieldset>
  85. </div>
  86. <script type="text/javascript">
  87. //显示“无导航式”表单
  88. function showNoTitleForm(){
  89. var url = "../../sample_html/fullform/step-content1.html";
  90. top.Dialog.open({
  91. Message: "这是无验证、无导航按钮的表单拆分演示",
  92. Height: 250,
  93. Width: 420,
  94. URL: url,
  95. Title: "表单拆分"
  96. });
  97. }
  98. //指定了初始步骤的
  99. function showFormWithStep(){
  100. var url = "../../sample_html/fullform/step-content2.html";
  101. top.Dialog.open({
  102. Message: "这是有导航的表单拆分演示",
  103. Height: 250,
  104. Width: 420,
  105. URL: url,
  106. Title: "表单拆分"
  107. });
  108. }
  109. //有验证的
  110. function showFormWithValidation(){
  111. var url = "../../sample_html/fullform/step-content3.html";
  112. top.Dialog.open({
  113. Message: "这是有验证的表单拆分演示",
  114. Height: 250,
  115. Width: 420,
  116. URL: url,
  117. Title: "表单拆分"
  118. });
  119. }
  120. </script>
  121. </body>
  122. </html>