| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- <%@ include file="../common/header.jsp"%>
- <script type="text/javascript" language="javascript">
- <!--
- function doEditSearch(){
- document.forms.parser.action.value="edit_search";
- document.forms.parser.submit();
- doDisable(document.forms.parser, "button");
- }
-
- function doAddParserCodex(){
- document.forms.parser.addParserCodexBtn.disabled=true;
- document.forms.parser.action.value="add_parserCodex";
- document.forms.parser.submit();
- }
-
- function doEditParserCodex(sequence){
- document.forms.parser.action.value="edit_parserCodex";
- document.forms.parser.sequence.value=sequence;
- document.forms.parser.submit();
- }
-
- function doDeleteParserCodex(sequence){
- var x = window.confirm("<bean:message key="confirm.delete"/>");
- if(x){
- document.forms.parser.action.value="delete_parserCodex";
- document.forms.parser.sequence.value=sequence;
- document.forms.parser.submit();
- }
- }
-
- function doUpdateParser(){
- var x = window.confirm("<bean:message key="confirm.edit"/>");
- if(x){
- document.forms.parser.action.value = "edit_ok";
- document.forms.parser.post.value = "true";
- document.forms.parser.submit();
- }
- }
- function doBack(){
- document.forms.parser.action.value="detail";
- document.forms.parser.submit();
- doDisable(document.forms.parser, "button");
- }
- -->
- </script>
-
- <!-- CONTENT -->
- <form name="parser" method="post" action="parser.do">
- <input type="hidden" name="action" value ="">
- <input type="hidden" name="clear" value ="">
- <html:hidden name="parser_${ts}" property="id"/>
- <input type="hidden" name="post">
- <input type="hidden" name="sequence">
- <logic:notEmpty name="idx"><input type="hidden" name="idx" value="<bean:write name="idx"/>"></logic:notEmpty>
- <input type="hidden" name="ts" value="<logic:notEmpty name="ts"><bean:write name="ts" /></logic:notEmpty>">
- <input type="hidden" name="redirect" value="edit">
- <!--td width="80%" valign="top"-->
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr>
- <td class="titleHeader"><bean:message key="project.parser.key"/> - EDIT</td>
- </tr>
- </table>
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr><td colspan="7"><html:errors/></td></tr>
- <tr>
- <logic:empty name="parser_${ts}" property="id">
- <td align="center">
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td width="15%"><b><bean:message key="parser.id.key"/> <font color="#FF0000">*</font></b></td>
- <td width="1%">:</td>
- <td width="84%" colspan="4" align="left">
- <input type="text" name="idSearch" value="">
- </td>
- </tr>
- <tr>
- <td width="15%"></td>
- <td width="10"></td>
- <td width="84%" colspan="4" align="left">
- <BR>
- <input type="button" value="<bean:message key="button.edit"/>" onclick="javascript:doEditSearch();">
- </td>
- </tr>
- </table>
- </td>
- </logic:empty>
- <logic:notEmpty name="parser_${ts}" property="id">
- <td align="center">
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td width="15%"><b><bean:message key="parser.id.key"/> <font color="#FF0000">*</font></b></td>
- <td width="1%">:</td>
- <td width="84%" colspan="4" align="left">
- <bean:write name="parser_${ts}" property="id"/>
- </td>
- </tr>
- <%/*<tr>
- <td width="15%"><b><bean:message key="parser.type.key"/></b></td>
- <td width="1%">:</td>
- <td width="84%" colspan="4" align="left">
- <html:text name="parser_${ts}" property="type"/>
- </td>
- </tr>*/%>
- <tr>
- <td width="15%"></td>
- <td width="1%"></td>
- <td width="84%" colspan="4" align="left">
- <input type="button" value="<bean:message key="button.back"/>" onclick="javascript:doBack();"/>
- <input type="button" value="<bean:message key="button.submit"/>" onclick="doUpdateParser();"/>
- </td>
- </tr>
- <tr>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- </tr>
- <tr>
- <td> </td>
- </tr>
- <tr>
- <td class="titleHeader" align="left"><b><bean:message key="project.parserCodex.key"/></b></td>
- </tr>
- <!-- LIST ADD ADAPTOR CODEX -->
- <tr>
- <td colspan="7">
- <table width="100%" border="0" cellspacing="1" cellpadding="1">
- <tr>
- <td class="titleField" height="22" width="5%" align="center"><bean:message key="parserCodex.no.key"/></td>
- <td nowrap="nowrap" class="titleField" width="30%"><bean:message key="parserCodex.id.key"/></td>
- <td class="titleField" width="55%"><bean:message key="parserCodex.codex.key"/></td>
- <td class="titleField" width="10%"> </td>
- </tr>
- <!-- START ADAPTOR CODEX -->
- <logic:notEmpty name="parser_${ts}" property="parserCodexes">
- <% int index = 0; %>
- <logic:iterate id="element_parserCodexes" name="parser_${ts}" property="parserCodexes">
- <tr bgcolor="<%= index%2 == 0 ? "FFFFFF" : "EDEDE8" %>" >
- <td align="center"><%=++seq2%> </td>
- <td align="left"> <bean:write name="element_parserCodexes" property="id.id"/></td>
- <td align="left"> <bean:write name="element_parserCodexes" property="codexId.id"/></td>
- <td align="center">
- <a href="#" ><img src="./images/edit.gif" border="0" onclick="javascript:doEditParserCodex(<%=index%>);" alt="edit"></a>
- <a href="#" ><img src="./images/trash.gif" border="0" onclick="javascript:doDeleteParserCodex(<%=index%>);" alt="remove"></a>
- </td>
- </tr>
- <% index++; %>
- </logic:iterate>
- </logic:notEmpty>
- </table>
- </td>
- </tr>
- <!-- END LIST ADD ADAPTOR CODEX -->
- <!-- ADD ANAK ADAPTOR CODEX-->
- <tr>
- <td colspan="7">
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td width="20%" align="left" valign="top"><b><bean:message key="parserCodex.id.key"/></b> <font color="#FF0000">*</font></td>
- <td width="1%" align="left" valign="top">:</td>
- <td width="29%" align="left" valign="top">
- <input type="text" name="idParserCodexes" value="<logic:notEmpty name="parserCodexes_${ts}" property="id"><bean:write name="parserCodexes_${ts}" property="id.id"/></logic:notEmpty>">
- </td>
- </tr>
- <tr>
- <td width="20%" align="left" valign="top"><b><bean:message key="parserCodex.codex.key"/></b> <font color="#FF0000">*</font></td>
- <td width="1%" align="left" valign="top">:</td>
- <td width="29%" align="left" valign="top">
- <select name="codex">
- <option value="">-- Pilih Salah Satu --</option>
- <logic:notEmpty name="codexList">
- <logic:iterate id="codexElement" name="codexList">
- <option value="<bean:write name="codexElement" property="id"/>"
- <logic:notEmpty name="parserCodexes_${ts}" property="codexId">
- <logic:equal name="parserCodexes_${ts}" property="codexId.id" value="${codexElement.id}">
- SELECTED
- </logic:equal>
- </logic:notEmpty>
- >
- <bean:write name="codexElement" property="id"/></option>
- </logic:iterate>
- </logic:notEmpty>
- </select>
- </td>
- </tr>
- <tr>
- <td align="left" valign="top"> </td>
- <td align="left" valign="top"> </td>
- <td align="left" valign="top">
- <BR><input type="button" name="addParserCodexBtn" value="<bean:message key="button.add"/>" onclick="javascript:doAddParserCodex();">
- </td>
- </tr>
- <tr>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- </tr>
- </table>
- </td>
- </tr>
- <!-- END ANAK ADAPTOR CODEX-->
- </table>
- </td>
- </logic:notEmpty>
- </tr>
- </table>
- </form>
- <!-- END CONTENT -->
- <%@ include file="../common/footer.jsp"%>
-
|