| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 |
- <%@ include file="../common/header.jsp"%>
- <script type="text/javascript" src="./js/autocomplete/jquery.js"></script>
- <script type='text/javascript' src='./js/autocomplete/jquery.bgiframe.min.js'></script>
- <script type='text/javascript' src='./js/autocomplete/jquery.ajaxQueue.js'></script>
- <script type='text/javascript' src='./js/autocomplete/thickbox-compressed.js'></script>
- <script type='text/javascript' src='./js/autocomplete/jquery.autocomplete.js'></script>
- <script type='text/javascript' src='./js/autocomplete/localdata.js'></script>
- <script type="text/javascript" language="javascript">
- <!--
- $(function() {
- $("#idCodexCon").autocomplete('codex.do?action=loadCodexId', {
- dataType: "json",
- parse: function(data) {
- return $.map(data, function(row) {
- return {
- data: row,
- value: row,
- result: row
- }
- });
- },
- formatItem: function(response) {
- return response;
- }
- }).result(function(e, response) {
- //after select
- $("#idCodexCon").val(response);
- });
- });
-
- function doUpdateCodex(){
- var x = window.confirm("Update Codex?");
- if(x){
- document.forms.codex.action.value = "edit_ok";
- document.forms.codex.post.value = "true";
- document.forms.codex.submit();
- }
- }
-
- function doEditSearch(){
- document.forms.codex.action.value="edit_search";
- document.forms.codex.clear.value="true";
- document.forms.codex.submit();
- doDisable(document.forms.codex, "button");
- }
-
- function doBack(){
- document.forms.codex.action.value="edit";
- document.forms.codex.submit();
- doDisable(document.forms.parser, "button");
- }
- -->
- </script>
-
- <!-- CONTENT -->
- <form name="codex" method="post" action="codex.do" enctype="multipart/form-data">
- <input type="hidden" name="action" value ="">
- <input type="hidden" name="clear" value ="">
- <input type="hidden" name="post">
- <html:hidden name="codex" property="id"/>
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr>
- <td class="titleHeader"><bean:message key="project.codex.key"/> - EDIT</td>
- </tr>
- </table>
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr><td><html:errors/></td></tr>
- <tr>
- <td align="center">
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <logic:notEmpty name="codex">
- <logic:empty name="codex" property="id">
- <tr align = "left">
- <td width="15%"><b><bean:message key="codex.id.key" /></b></td>
- <td width="1%">:</td>
- <td width="34%" valign="top">
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td><input type="text" name="idCodex" size="50" id="idCodexCon"></td>
- </tr>
- </table>
- </td>
- <td width="5%"> </td>
- <td width="15%"> </td>
- <td width="10"> </td>
- <td width="30%"> </td>
- </tr>
- </logic:empty>
- </logic:notEmpty>
-
- <logic:notEmpty name="codex">
- <logic:notEmpty name="codex" property="id">
- <tr>
- <td width="15%"><b><bean:message key="codex.id.key"/> <font color="#FF0000">*</font></b></td>
- <td width="1%">:</td>
- <td width="34%" valign="top">
- <bean:write name="codex" property="id"/>
- </td>
- <td width="5%"> </td>
- <td width="15%"> </td>
- <td width="10"> </td>
- <td width="30%"> </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="codex.partial.key"/> <font color="#FF0000">*</font></b></td>
- <td width="1%">:</td>
- <td width="34%" valign="top" align="left">
- <logic:equal name="codex" property="allowPartial" value="1">
- <input type="radio" name="radios" value="true" CHECKED>
- <bean:message key="button.true"/>
- <input type="radio" name="radios" value="false">
- <bean:message key="button.false"/>
- </logic:equal>
- <logic:notEqual name="codex" property="allowPartial" value="1">
- <input type="radio" name="radios" value="true">
- <bean:message key="button.true"/>
- <input type="radio" name="radios" value="false" CHECKED>
- <bean:message key="button.false"/>
- </logic:notEqual>
- </td>
- <td width="5%"> </td>
- <td width="15%"> </td>
- <td width="10"> </td>
- <td width="30%"> </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="codex.xml.key"/></b></td>
- <td width="1%">:</td>
- <td width="34%" valign="top">
- <input type="file" name="uploadFile" value="<logic:notEmpty name="uploadFile_xml"><bean:write name="uploadFile_xml" /></logic:notEmpty>">
- </td>
- <td width="5%"> </td>
- <td width="15%"> </td>
- <td width="10"> </td>
- <td width="30%"> </td>
- </tr>
- <tr>
- <td width="15%"></td>
- <td width="1%"></td>
- <td width="34%">
- <input type="button" value="<bean:message key="button.cancel"/>" onclick="javascript:doBack();">
- <input type="button" value="Submit" onclick="doUpdateCodex();">
- </td>
- <td colspan="4"> </td>
- </tr>
- </logic:notEmpty>
- </logic:notEmpty>
- <tr>
- <logic:notEmpty name="codex">
- <logic:empty name="codex" property="id">
- <td width="15%"></td>
- <td width="10"></td>
- <td width="30%">
- <input type="button" value="Edit" onclick="doEditSearch();">
- </td>
- <td colspan="4"> </td>
- </logic:empty>
- </logic:notEmpty>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </form>
- <!-- END CONTENT -->
- <%@ include file="../common/footer.jsp"%>
|