attribute_edit.jsp 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <%@ include file="../common/header.jsp"%>
  2. <script type="text/javascript" language="javascript">
  3. <!--
  4. function doEditSearch(){
  5. document.forms.attribute.action.value="edit_search";
  6. document.forms.attribute.submit();
  7. doDisable(document.forms.attribute, "button");
  8. }
  9. function doUpdateAttribute(){
  10. var x = window.confirm("<bean:message key="confirm.edit"/>");
  11. if(x){
  12. document.forms.attribute.action.value = "edit_ok";
  13. document.forms.attribute.post.value = "true";
  14. document.forms.attribute.submit();
  15. }
  16. }
  17. function doBack(){
  18. document.forms.attribute.action.value="list";
  19. document.forms.attribute.submit();
  20. doDisable(document.forms.attribute, "button");
  21. }
  22. -->
  23. </script>
  24. <!-- CONTENT -->
  25. <form name="attribute" method="post" action="attribute.do">
  26. <input type="hidden" name="action" value =""/>
  27. <input type="hidden" name="clear" value =""/>
  28. <!-- html:hidden name="attribute" property="name"/ -->
  29. <html:hidden name="attribute" property="id"/>
  30. <input type="hidden" name="post">
  31. <!--td width="80%" valign="top"-->
  32. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  33. <tr>
  34. <td class="titleHeader"><bean:message key="project.attribute.key"/> - EDIT</td>
  35. </tr>
  36. </table>
  37. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  38. <tr><td><html:errors/></td></tr>
  39. <tr>
  40. <td align="center">
  41. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  42. <logic:empty name="attribute" property="id">
  43. <tr align = "left">
  44. <td width="15%"><b><bean:message key="attribute.name.key" /></b></td>
  45. <td width="1%">:</td>
  46. <td width="84%" colspan="4" align="left">
  47. <input type="text" name="nameSearch" value="">
  48. </td
  49. </tr>
  50. <tr align = "left">
  51. <td width="15%"></td>
  52. <td width="1%"></td>
  53. <td width="84%" colspan="4" align="left">
  54. <input type="button" value="<bean:message key="button.edit"/>" onclick="javascript:doEditSearch();">
  55. </td>
  56. </tr>
  57. </logic:empty>
  58. <logic:notEmpty name="attribute" property="id">
  59. <tr>
  60. <td width="15%"><b><bean:message key="attribute.name.key"/><font color="#FF0000">*</font></b></td>
  61. <td width="1%">:</td>
  62. <td width="84%" colspan="4" align="left">
  63. <html:text name="attribute" property="name"/>
  64. </td>
  65. </tr>
  66. <tr>
  67. <td width="15%"><b><bean:message key="attribute.type.key"/><font color="#FF0000">*</font></b></td>
  68. <td width="1%">:</td>
  69. <td width="84%" colspan="4" align="left">
  70. <html:text name="attribute" property="type"/>
  71. </td>
  72. </tr>
  73. <tr>
  74. <td width="15%"><b><bean:message key="attribute.description.key"/></b></td>
  75. <td width="1%">:</td>
  76. <td width="84%" colspan="4" align="left">
  77. <html:textarea cols="40" rows="5" name="attribute" property="description"/>
  78. </td>
  79. </tr>
  80. <tr>
  81. <td width="15%"></td>
  82. <td width="1%"></td>
  83. <td width="30%"><input type="button" value="<bean:message key="button.back"/>" onclick="javascript:doBack();"/>&nbsp;<input type="button" value="<bean:message key="button.submit"/>" onclick="doUpdateAttribute();"/></td>
  84. <td colspan="4">&nbsp;</td>
  85. </tr>
  86. <tr>
  87. <td>&nbsp;</td>
  88. <td>&nbsp;</td>
  89. <td>&nbsp;</td>
  90. <td>&nbsp;</td>
  91. <td>&nbsp;</td>
  92. <td>&nbsp;</td>
  93. <td>&nbsp;</td>
  94. </tr>
  95. </logic:notEmpty>
  96. </table>
  97. </td>
  98. </tr>
  99. <tr>
  100. <td>&nbsp;</td>
  101. </tr>
  102. </table>
  103. </td>
  104. </form>
  105. <!-- END CONTENT -->
  106. <%@ include file="../common/footer.jsp"%>