index.jsp
上传用户:kimgenplus
上传日期:2016-06-05
资源大小:20877k
文件大小:3k
源码类别:

OA系统

开发平台:

Java

  1. <%@ page language="java" contentType="text/html; charset=GB18030"
  2.     pageEncoding="GB18030"%>
  3. <%@include file="/common/common.jsp" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html; charset=GB18030">
  8. <link href="style/oa.css" rel="stylesheet" type="text/css">
  9. <script language="javascript" src="script/public.js"></script>
  10. <title>设置流程表单</title>
  11. </head>
  12. <body>
  13. <center>
  14. <form action="flowform.do" method="post">
  15. <input type="hidden" name="method" value="addForm">
  16. <input type="hidden" name="id" value="${flowForm.id }">
  17. <input type="hidden" name="workflowId" value="${workflow.id}">
  18. <TABLE class="tableEdit" border="0" cellspacing="1" cellpadding="0" style="width:580px;">
  19. <TBODY>
  20. <TR>
  21. <!-- 这里是添加、编辑界面的标题 -->
  22. <td align="center" class="tdEditTitle">请设置流程【${workflow.name }】的表单</TD>
  23. </TR>
  24. <TR>
  25. <td>
  26. <!-- 主输入域开始 -->
  27. <table class="tableEdit" style="width:580px;" cellspacing="0" border="0" cellpadding="0">
  28. <c:if test="${empty flowForm.template }">
  29. <c:set var="tmp" value="document_form.ftl"/>
  30. </c:if>
  31. <c:if test="${!empty flowForm.template }">
  32. <c:set var="tmp" value="${flowForm.template}"/>
  33. </c:if>
  34. <tr>
  35. <td class="tdEditLabel" >表单模板</td>
  36. <td class="tdEditContent"><input type="text" name="template" value="${tmp}">
  37. </td>
  38. <td class="tdEditLabel" ></td>
  39. <td class="tdEditContent"></td>
  40. </tr>
  41. </table>
  42. <c:if test="${!empty flowForm }">
  43. <hr>
  44. <table class="tableEdit" style="width:580px;" cellspacing="0" border="0" cellpadding="0">
  45. <tr bgcolor="#EFF3F7" class="TableBody1">
  46. <td width="20%"><B>标签</B></td>
  47. <td width="20%"><B>名称</B></td>
  48. <td width="20%" ><B>类型</B></td>
  49. <td width="20%"><B>输入形式</B></td>
  50. <td width="20%"><B>操作</B></td>
  51. </tr>
  52. <c:forEach items="${flowForm.fields }" var="field">
  53. <tr>
  54. <td >${field.fieldLabel }</td>
  55. <td >${field.fieldName }</td>
  56. <td >${field.fieldType.name }</td>
  57. <td >${field.fieldInput.name }</td>
  58. <td>
  59. <a href="#" onclick="del('flowform.do?method=delField&id=${field.id}')">删除</a>
  60. <a href="#" onclick="openWin('flowform.do?method=addItemInput&id=${field.id }','additem',700,600)">条目</a>
  61. </td>
  62. </tr>
  63. </c:forEach>
  64. </table>
  65. </c:if>
  66. <!-- 主输入域结束 -->
  67. </td>
  68. </TR>
  69. </TBODY>
  70. </TABLE>
  71. <TABLE>
  72. <TR align="center">
  73. <TD colspan="3" bgcolor="#EFF3F7">
  74. <input type="submit" name="saveButton"
  75. class="MyButton" value="保存表单信息">
  76. <c:if test="${!empty flowForm }">
  77. <input type="button" class="MyButton"
  78. value="添加表单域" onclick="openWin('flowform.do?method=formFieldInput&formId=${flowForm.id }','addformfield',600,200)">
  79. </c:if>
  80. <input type="button" class="MyButton"
  81. value="关闭窗口" onclick="window.close()">
  82. </TD>
  83. </TR>
  84. </TABLE>
  85. </form>
  86. </center>
  87. </body>
  88. </html>