| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- <%@ include file="../common/header.jsp"%>
- <%
- if (seq==0){
- seq = (Integer) request.getAttribute("codex_start");
- }
- %>
- <script type="text/javascript" language="javascript">
- <!--
- function page(start, count){
- document.forms.codex.start.value=start;
- document.forms.codex.count.value=count;
- document.forms.codex.action.value="list";
- document.forms.codex.submit();
- doDisable(document.forms.codex, "button");
- }
- function doChangePage(count){
- document.forms.codex.start.value= (document.forms.codex.startx.value-1)*20;
- if(document.forms.codex.start.value=="NaN") document.forms.codex.start.value = 0;
- document.forms.codex.count.value=count;
- document.forms.codex.action.value="list";
- document.forms.codex.submit();
- doDisable(document.forms.codex, "button");
- }
-
- function fillIndex(val){
- document.forms.codex.startx.value = val.value;
- }
-
- function doDetail(id){
- document.forms.codex.id.value=id;
- document.forms.codex.action.value="detail";
- document.forms.codex.submit();
- }
-
- function doCreate(){
- document.forms.codex.action.value="create";
- document.forms.codex.submit();
- doDisable(document.forms.codex, "button");
- }
-
- function doFilter(){
- document.forms.codex.action.value="list";
- document.forms.codex.submit();
- doDisable(document.forms.codex, "button");
- }
- function doReset(){
- document.forms.codex.codex_id_filter.value="";
- document.forms.codex.action.value="list";
- document.forms.codex.submit();
- doDisable(document.forms.codex, "button");
- }
- function doOrder(field, type){
- document.forms.codex.codex_fieldOrder.value=field;
- document.forms.codex.codex_orderType.value=type;
- document.forms.codex.action.value="list";
- document.forms.codex.submit();
- doDisable(document.forms.status, "button");
- }
- -->
- </script>
- <!-- CONTENT -->
- <form name="codex" method="post" action="codex.do">
- <input type="hidden" name="start" value="">
- <input type="hidden" name="startx" value="">
- <input type="hidden" name="action" value="">
- <input type="hidden" name="count" value="">
- <input type="hidden" name="id" value="">
- <input type="hidden" name="codex_fieldOrder" value="<bean:write name="codex_fieldOrder"/>">
- <input type="hidden" name="codex_orderType" value="<bean:write name="codex_orderType"/>">
- <input type="hidden" name="focus_field" value="">
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr>
- <td class="titleHeader"><bean:message key="project.codex.key"/> - LIST</td>
- </tr>
- <tr>
- <td><%@ include file="../common/paging.jsp"%></td>
- </tr>
- </table>
- <table width="100%" border="0" cellspacing="1" cellpadding="1">
- <tr>
- <td width="5%" class="titleField"><div align="center">#</div></td>
- <td align="left" height="10" valign="top" class="titleField"><bean:message key="codex.id.key" />
- <logic:equal name="codex_fieldOrder" value="id">
- <logic:equal name="codex_orderType" value="ASC">
- <a href="#" onclick="doOrder('id', 'DESC');"><img src="./images/arrow_down.gif" border="0" alt=""></a>
- </logic:equal>
- <logic:equal name="codex_orderType" value="DESC">
- <a href="#" onclick="doOrder('id', 'ASC');"><img src="./images/arrow_up.gif" border="0" alt=""></a>
- </logic:equal>
- </logic:equal>
- <logic:notEqual name="codex_fieldOrder" value="id">
- <a href="#" onclick="doOrder('id', 'ASC');"><img src="./images/arrow.gif" border="0" alt=""></a>
- </logic:notEqual>
- </td>
- <td align="left" height="10" valign="top" class="titleField"><bean:message key="codex.timestamp.key" />
- <logic:equal name="codex_fieldOrder" value="timestamp">
- <logic:equal name="codex_orderType" value="ASC">
- <a href="#" onclick="doOrder('timestamp', 'DESC');"><img src="./images/arrow_down.gif" border="0" alt=""></a>
- </logic:equal>
- <logic:equal name="codex_orderType" value="DESC">
- <a href="#" onclick="doOrder('timestamp', 'ASC');"><img src="./images/arrow_up.gif" border="0" alt=""></a>
- </logic:equal>
- </logic:equal>
- <logic:notEqual name="codex_fieldOrder" value="timestamp">
- <a href="#" onclick="doOrder('timestamp', 'ASC');"><img src="./images/arrow.gif" border="0" alt=""></a>
- </logic:notEqual>
- </td>
- <td width="5%" class="titleField"> </td>
- </tr>
- <logic:notEmpty name="codexList">
- <logic:iterate id="element" name="codexList" scope="request" indexId="index">
- <%
- sequence++;
- String bgcolor = "FFFFFF";
- if(sequence%2 == 0){
- bgcolor = "EDEDE8";
- }
- %>
- <tr bgcolor="<% out.print(bgcolor); %>" onmouseover="mOvr(this);" onmouseout="mOut(this, '<% out.print(bgcolor); %>');">
- <td align="center" class="celBorder"><%=++seq%> </td>
- <td align="left" class="celBorder">
- <bean:write name="element" property="id"/>
- </td>
- <td align="left" class="celBorder">
- <bean:write name="element" property="timestamp.time"/>
- </td>
- <td align="center" class="celBorder" ><a href="#" ><img src="./images/detail.gif" border="0" onclick="doDetail('<bean:write name="element" property="id"/>');" alt="see detail"></a>
- </td>
- </tr>
- </logic:iterate>
- </logic:notEmpty>
- </table>
- <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
- <tr>
- <td class="search"><bean:message key="project.search.key" /></td>
- </tr>
- </table>
- <table width="100%" border="0" cellspacing="1" cellpadding="2">
- <tr>
- <td width="20%"><b><bean:message key="codex.id.key"/></b></td>
- <td width="1%">:</td>
- <td width="29%">
- <label>
- <input type="text" name="codex_id_filter" value="">
- </label>
- </td>
- </tr>
- <tr>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- <td> </td>
- </tr>
- <tr>
- <td> </td>
- <td> </td>
- <td colspan="3" align="left">
- <input type="button" size="50" maxlength="25" value="<bean:message key="button.reset"/>" onclick="doReset();">
-
- <input type="button" value="<bean:message key="button.search"/>" onclick="doFilter();">
- </td>
- <td> </td>
- <td> </td>
- <td> </td>
- </tr>
- </table>
- </form>
- <!-- END CONTENT -->
- <%@ include file="../common/footer.jsp"%>
|