| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- <%@ include file="../common/header.jsp"%>
-
- <script type="text/javascript" language="javascript">
- <!--
-
- function doUpdateRoutingTable(){
- var x = window.confirm("<bean:message key="confirm.edit"/>");
- if(x){
- document.forms.routingTable.action.value = "edit_ok";
- document.forms.routingTable.post.value = "true";
- document.forms.routingTable.submit();
- }
- }
-
- function doInactive(id,status){
- var x = window.confirm(" Are you sure inactivate this record?")
- if (x) {
- document.forms.routingTable.id.value=id;
- document.forms.routingTable.status.value=status;
- document.forms.routingTable.action.value="update_status";
- document.forms.routingTable.submit();
- }
- }
-
- function doActive(id,status){
- var x = window.confirm(" Are you sure activate this record?")
- if (x) {
- document.forms.routingTable.id.value=id;
- document.forms.routingTable.status.value=status;
- document.forms.routingTable.action.value="update_status";
- document.forms.routingTable.submit();
- }
- }
- function doBack(){
- document.forms.routingTable.action.value="edit";
- document.forms.routingTable.submit();
- doDisable(document.forms.routingTable, "button");
- }
- -->
- </script>
- <!-- CONTENT -->
- <form name="routingTable" method="post" action="routingTable.do">
- <input type="hidden" name="action" value ="">
- <html:hidden name="routingTable" property="id"/>
- <input type="hidden" name="post">
- <input type="hidden" name="status" value ="">
- <!--td width="80%" valign="top"-->
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr>
- <td class="titleHeader"><bean:message key="project.routingTable.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>
- <td align="center">
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td width="15%"><b><bean:message key="routingTable.codeStart.key"/> <font color="#FF0000">*</font></b></td>
- <td width="1%">:</td>
- <td width="84%" colspan="4" align="left">
- <html:text name="routingTable" property="codeStart"/>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="routingTable.codeEnd.key"/><font color="#FF0000">*</font></b></td>
- <td width="1%">:</td>
- <td width="84%" colspan="4" align="left">
- <html:text name="routingTable" property="codeEnd"/>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="routingTable.channel.key"/><font color="#FF0000">*</font></b></td>
- <td width="1%">:</td>
- <td width="84%" colspan="4" align="left">
- <html:text name="routingTable" property="channel"/>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="routingTable.subcodex.key"/></b></td>
- <td width="1%">:</td>
- <td width="84%" colspan="4" align="left">
- <%/*<select name="subcodex">
- <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="routingTable" property="subcodex">
- <logic:equal name="routingTable" property="subcodex.id" value="${codexElement.id}">
- SELECTED
- </logic:equal>
- </logic:notEmpty>
- >
- <bean:write name="codexElement" property="id"/></option>
- </logic:iterate>
- </logic:notEmpty>
- </select>*/%>
- <html:text name="routingTable" property="subcodex" size="30"/>
- </td>
- </tr>
- <tr>
- <td width="15%" align="left" valign="top"><b><bean:message key="routingTable.startDate.key"/><font color="#FF0000">*</font></b></td>
- <td width="1%" align="left" valign="top">:</td>
- <td width="84%" colspan="4" align="left" valign="top">
- <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" >
- <a href="javascript:cal_startDate.popup();"><img src="./images/cal.gif" width="16" height="16" border="0" alt=""></a>
- <script type="text/javascript" language="javascript">
- var cal_startDate = new calendar1(document.forms['routingTable'].elements['startDate']);
- </script>
- </td>
- </tr>
- <tr>
- <td width="15%" align="left" valign="top"><b><bean:message key="routingTable.endDate.key"/></b></td>
- <td width="1%" align="left" valign="top">:</td>
- <td width="84%" colspan="4" align="left" valign="top">
- <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" >
- <a href="javascript:cal_endDate.popup();"><img src="./images/cal.gif" width="16" height="16" border="0" alt=""></a>
- <script type="text/javascript" language="javascript">
- var cal_endDate = new calendar1(document.forms['routingTable'].elements['endDate']);
- </script>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="routingTable.queue.key"/><font color="#FF0000">*</font></b></td>
- <td width="1%">:</td>
- <td width="84%" colspan="4" align="left">
- <html:text name="routingTable" property="queue"/>
- </td>
- </tr>
- <tr>
- <td width="15%"><b><bean:message key="routingTable.status.key"/><font color="#FF0000">*</font></b></td>
- <td width="1%">:</td>
- <td width="84%" colspan="4" align="left">
- <bean:write name="routingTable" property="status"/>
- </td>
- </tr>
- <tr>
- <td width="15%"></td>
- <td width="1%"></td>
- <td width="84%" colspan="4" align="left">
- <logic:notEmpty name="routingTable" property="codeStart">
- <input type="button" value="<bean:message key="button.back"/>" onclick="javascript:doBack();">
-
- <logic:equal name="routingTable" property="status" value="ACTIVE">
- <input type="button" value="<bean:message key="button.inactive"/>" onclick="doInactive('<bean:write name="routingTable" property="id"/>','INACTIVE');">
- </logic:equal>
- <logic:equal name="routingTable" property="status" value="INACTIVE">
- <input type="button" value="<bean:message key="button.active"/>" onclick="doActive('<bean:write name="routingTable" property="id"/>','ACTIVE');">
- </logic:equal>
-
- <input type="button" value="<bean:message key="button.submit"/>" onclick="doUpdateRoutingTable();">
- </logic:notEmpty>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td> </td>
- </tr>
- </table>
- </form>
- <!-- END CONTENT -->
- <%@ include file="../common/footer.jsp"%>
-
|