routingTable_create.jsp 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <%@ include file="../common/header.jsp" %>
  2. <script type="text/javascript" language="javascript">
  3. <!--
  4. function doCreateRoutingTable(){
  5. var x = window.confirm("<bean:message key="confirm.create"/>")
  6. if (x) {
  7. document.forms.routingTable.action.value="create_ok";
  8. document.forms.routingTable.post.value = "true";
  9. document.forms.routingTable.submit();
  10. }
  11. }
  12. function doBack(){
  13. document.forms.routingTable.action.value="list";
  14. document.forms.routingTable.clear.value="true";
  15. document.forms.routingTable.submit();
  16. }
  17. -->
  18. </script>
  19. <!-- CONTENT -->
  20. <form name="routingTable" method="post" action="routingTable.do">
  21. <input type="hidden" name="action">
  22. <input type="hidden" name="clear">
  23. <input type="hidden" name="sequence">
  24. <input type="hidden" name="post">
  25. <input type="hidden" name="redirect" value="create">
  26. <!--td width="80%" valign="top"-->
  27. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  28. <tr>
  29. <td class="titleHeader" align="left"><bean:message key="project.routingTable.key"/> CREATE</td>
  30. </tr>
  31. </table>
  32. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  33. <tr>
  34. <td align="center">
  35. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  36. <logic:messagesPresent property="error.routingTable">
  37. <tr>
  38. <td colspan="7">
  39. <font color="#FF0000"><html:errors property="error.routingTable"/></font>
  40. </td>
  41. </tr>
  42. </logic:messagesPresent>
  43. <tr>
  44. <td width="15%"><b><bean:message key="routingTable.codeStart.key"/> <font color="#FF0000">*</font></b></td>
  45. <td width="1">:</td>
  46. <td width="84%" colspan="5">
  47. <html:text name="routingTable" property="codeStart" size="30"/>
  48. </td>
  49. </tr>
  50. <tr>
  51. <td width="15%"><b><bean:message key="routingTable.codeEnd.key"/> <font color="#FF0000">*</font></b></td>
  52. <td width="1%">:</td>
  53. <td width="84%" colspan="5">
  54. <html:text name="routingTable" property="codeEnd" size="30"/>
  55. </td>
  56. </tr>
  57. <tr>
  58. <td width="15%"><b><bean:message key="routingTable.channel.key"/><font color="#FF0000">*</font></b></td>
  59. <td width="1%">:</td>
  60. <td width="84%" colspan="5">
  61. <html:text name="routingTable" property="channel" size="30"/>
  62. </td>
  63. </tr>
  64. <tr>
  65. <td width="15%" align="left" valign="top"><b><bean:message key="routingTable.startDate.key"/><font color="#FF0000">*</font></b></td>
  66. <td width="1%" align="left" valign="top">:</td>
  67. <td width="84%" colspan="5" align="left" valign="top">
  68. <input type="text" name="startDate" value="<logic:notEmpty name="routingTable" property="startDate"><bean:write name="routingTable" property="startDate.time" format="dd/MM/yyyy"/></logic:notEmpty>" size="15" maxlength="10" >
  69. <a href="javascript:cal_startDate.popup();"><img src="./images/cal.gif" width="16" height="16" border="0" alt=""></a>
  70. <script type="text/javascript" language="javascript">
  71. var cal_startDate = new calendar1(document.forms['routingTable'].elements['startDate']);
  72. </script>
  73. </td>
  74. </tr>
  75. <tr>
  76. <td width="15%" align="left" valign="top"><b><bean:message key="routingTable.endDate.key"/></b></td>
  77. <td width="1%" align="left" valign="top">:</td>
  78. <td width="84%" colspan="5" align="left" valign="top">
  79. <input type="text" name="endDate" value="<logic:notEmpty name="routingTable" property="endDate"><bean:write name="routingTable" property="endDate.time" format="dd/MM/yyyy"/></logic:notEmpty>" size="15" maxlength="10" >
  80. <a href="javascript:cal_endDate.popup();"><img src="./images/cal.gif" width="16" height="16" border="0" alt=""></a>
  81. <script type="text/javascript" language="javascript">
  82. var cal_endDate = new calendar1(document.forms['routingTable'].elements['endDate']);
  83. </script>
  84. </td>
  85. </tr>
  86. <tr>
  87. <td width="15%"><b><bean:message key="routingTable.queue.key"/><font color="#FF0000">*</font></b></td>
  88. <td width="1%">:</td>
  89. <td width="84%" colspan="5">
  90. <html:text name="routingTable" property="queue" size="30"/>
  91. </td>
  92. </tr>
  93. <tr>
  94. <td width="15%"><b><bean:message key="routingTable.subcodex.key"/></b></td>
  95. <td width="1%">:</td>
  96. <td width="84%" colspan="5">
  97. <%/*<select name="subcodex">
  98. <option value="">-- Pilih Salah Satu --</option>
  99. <logic:notEmpty name="codexList">
  100. <logic:iterate id="codexElement" name="codexList">
  101. <option value="<bean:write name="codexElement" property="id"/>"
  102. <logic:notEmpty name="routingTable" property="subcodex">
  103. <logic:equal name="routingTable" property="subcodex.id" value="${codexElement.id}">
  104. SELECTED
  105. </logic:equal>
  106. </logic:notEmpty>
  107. >
  108. <bean:write name="codexElement" property="id"/></option>
  109. </logic:iterate>
  110. </logic:notEmpty>
  111. </select>*/%>
  112. <html:text name="routingTable" property="subcodex" size="30"/>
  113. </td>
  114. </tr>
  115. <tr>
  116. <td width="15%"></td>
  117. <td width="1%"></td>
  118. <td width="84%" colspan="5"><input type="button" value="<bean:message key="button.back"/>" onclick="javascript:doBack();">
  119. &nbsp;<input type="button" value="<bean:message key="button.submit"/>" onclick="javascript:doCreateRoutingTable();"></td>
  120. <td colspan="4">&nbsp;</td>
  121. </tr>
  122. </table>
  123. </td>
  124. </tr>
  125. <tr>
  126. <td>&nbsp;</td>
  127. </tr>
  128. </table>
  129. </form>
  130. <!-- END CONTENT -->
  131. <%@ include file="../common/footer.jsp"%>