fileParam_edit.jsp 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <%@ include file="../common/header.jsp"%>
  2. <script type="text/javascript" src="./js/autocomplete/jquery.js"></script>
  3. <script type='text/javascript' src='./js/autocomplete/jquery.bgiframe.min.js'></script>
  4. <script type='text/javascript' src='./js/autocomplete/jquery.ajaxQueue.js'></script>
  5. <script type='text/javascript' src='./js/autocomplete/thickbox-compressed.js'></script>
  6. <script type='text/javascript' src='./js/autocomplete/jquery.autocomplete.js'></script>
  7. <script type='text/javascript' src='./js/autocomplete/localdata.js'></script>
  8. <script type="text/javascript" language="javascript">
  9. <!--
  10. $(function() {
  11. $("#idCodexCon").autocomplete('codex.do?action=loadCodexId', {
  12. dataType: "json",
  13. parse: function(data) {
  14. return $.map(data, function(row) {
  15. return {
  16. data: row,
  17. value: row,
  18. result: row
  19. }
  20. });
  21. },
  22. formatItem: function(response) {
  23. return response;
  24. }
  25. }).result(function(e, response) {
  26. //after select
  27. $("#idCodexCon").val(response);
  28. });
  29. });
  30. function doUpdateCodex(){
  31. var x = window.confirm("Update Codex?");
  32. if(x){
  33. document.forms.codex.action.value = "edit_ok";
  34. document.forms.codex.post.value = "true";
  35. document.forms.codex.submit();
  36. }
  37. }
  38. function doEditSearch(){
  39. document.forms.codex.action.value="edit_search";
  40. document.forms.codex.clear.value="true";
  41. document.forms.codex.submit();
  42. doDisable(document.forms.codex, "button");
  43. }
  44. function doBack(){
  45. document.forms.codex.action.value="edit";
  46. document.forms.codex.submit();
  47. doDisable(document.forms.parser, "button");
  48. }
  49. -->
  50. </script>
  51. <!-- CONTENT -->
  52. <form name="codex" method="post" action="codex.do" enctype="multipart/form-data">
  53. <input type="hidden" name="action" value ="">
  54. <input type="hidden" name="clear" value ="">
  55. <input type="hidden" name="post">
  56. <html:hidden name="codex" property="id"/>
  57. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  58. <tr>
  59. <td class="titleHeader"><bean:message key="project.codex.key"/> - EDIT</td>
  60. </tr>
  61. </table>
  62. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  63. <tr><td><html:errors/></td></tr>
  64. <tr>
  65. <td align="center">
  66. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  67. <logic:notEmpty name="codex">
  68. <logic:empty name="codex" property="id">
  69. <tr align = "left">
  70. <td width="15%"><b><bean:message key="codex.id.key" /></b></td>
  71. <td width="1%">:</td>
  72. <td width="34%" valign="top">
  73. <table border="0" cellspacing="0" cellpadding="0">
  74. <tr>
  75. <td><input type="text" name="idCodex" size="50" id="idCodexCon"></td>
  76. </tr>
  77. </table>
  78. </td>
  79. <td width="5%">&nbsp;</td>
  80. <td width="15%">&nbsp;</td>
  81. <td width="10">&nbsp;</td>
  82. <td width="30%">&nbsp;</td>
  83. </tr>
  84. </logic:empty>
  85. </logic:notEmpty>
  86. <logic:notEmpty name="codex">
  87. <logic:notEmpty name="codex" property="id">
  88. <tr>
  89. <td width="15%"><b><bean:message key="codex.id.key"/> <font color="#FF0000">*</font></b></td>
  90. <td width="1%">:</td>
  91. <td width="34%" valign="top">
  92. &nbsp;&nbsp;<bean:write name="codex" property="id"/>
  93. </td>
  94. <td width="5%">&nbsp;</td>
  95. <td width="15%">&nbsp;</td>
  96. <td width="10">&nbsp;</td>
  97. <td width="30%">&nbsp;</td>
  98. </tr>
  99. <tr>
  100. <td width="15%"><b><bean:message key="codex.partial.key"/> <font color="#FF0000">*</font></b></td>
  101. <td width="1%">:</td>
  102. <td width="34%" valign="top" align="left">
  103. <logic:equal name="codex" property="allowPartial" value="1">
  104. <input type="radio" name="radios" value="true" CHECKED>
  105. <bean:message key="button.true"/>
  106. <input type="radio" name="radios" value="false">
  107. <bean:message key="button.false"/>
  108. </logic:equal>
  109. <logic:notEqual name="codex" property="allowPartial" value="1">
  110. <input type="radio" name="radios" value="true">
  111. <bean:message key="button.true"/>
  112. <input type="radio" name="radios" value="false" CHECKED>
  113. <bean:message key="button.false"/>
  114. </logic:notEqual>
  115. </td>
  116. <td width="5%">&nbsp;</td>
  117. <td width="15%">&nbsp;</td>
  118. <td width="10">&nbsp;</td>
  119. <td width="30%">&nbsp;</td>
  120. </tr>
  121. <tr>
  122. <td width="15%"><b><bean:message key="codex.xml.key"/></b></td>
  123. <td width="1%">:</td>
  124. <td width="34%" valign="top">
  125. <input type="file" name="uploadFile" value="<logic:notEmpty name="uploadFile_xml"><bean:write name="uploadFile_xml" /></logic:notEmpty>">
  126. </td>
  127. <td width="5%">&nbsp;</td>
  128. <td width="15%">&nbsp;</td>
  129. <td width="10">&nbsp;</td>
  130. <td width="30%">&nbsp;</td>
  131. </tr>
  132. <tr>
  133. <td width="15%"></td>
  134. <td width="1%"></td>
  135. <td width="34%">
  136. <input type="button" value="<bean:message key="button.cancel"/>" onclick="javascript:doBack();">&nbsp;
  137. <input type="button" value="Submit" onclick="doUpdateCodex();">
  138. </td>
  139. <td colspan="4">&nbsp;</td>
  140. </tr>
  141. </logic:notEmpty>
  142. </logic:notEmpty>
  143. <tr>
  144. <logic:notEmpty name="codex">
  145. <logic:empty name="codex" property="id">
  146. <td width="15%"></td>
  147. <td width="10"></td>
  148. <td width="30%">
  149. <input type="button" value="Edit" onclick="doEditSearch();">
  150. </td>
  151. <td colspan="4">&nbsp;</td>
  152. </logic:empty>
  153. </logic:notEmpty>
  154. </tr>
  155. </table>
  156. </td>
  157. </tr>
  158. </table>
  159. </form>
  160. <!-- END CONTENT -->
  161. <%@ include file="../common/footer.jsp"%>