rekonConfig_list.jsp 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <%@ include file="../common/header.jsp"%>
  2. <%
  3. if (seq==0){
  4. seq = (Integer) request.getAttribute("channel_start");
  5. }
  6. %>
  7. <script type="text/javascript" language="javascript">
  8. <!--
  9. function page(start, count){
  10. document.forms.channel.start.value=start;
  11. document.forms.channel.count.value=count;
  12. document.forms.channel.action.value="list";
  13. document.forms.channel.submit();
  14. doDisable(document.forms.channel, "button");
  15. }
  16. function doChangePage(count){
  17. document.forms.channel.start.value= (document.forms.channel.startx.value-1)*20;
  18. if(document.forms.channel.start.value=="NaN") document.forms.channel.start.value = 0;
  19. document.forms.channel.count.value=count;
  20. document.forms.channel.action.value="list";
  21. document.forms.channel.submit();
  22. doDisable(document.forms.channel, "button");
  23. }
  24. function doCreate(){
  25. document.forms.channel.action.value="create";
  26. document.forms.channel.submit();
  27. doDisable(document.forms.channel, "button");
  28. }
  29. function fillIndex(val){
  30. document.forms.channel.startx.value = val.value;
  31. }
  32. function doDetail(channelPk){
  33. document.forms.channel.channelPk.value=channelPk;
  34. document.forms.channel.action.value="detail";
  35. document.forms.channel.submit();
  36. }
  37. function doFilter(){
  38. document.forms.channel.action.value="list";
  39. document.forms.channel.submit();
  40. doDisable(document.forms.channel, "button");
  41. }
  42. function doReset(){
  43. document.forms.channel.channel_channelName_filter.value="";
  44. document.forms.channel.clear.value="true";
  45. document.forms.channel.action.value="list";
  46. document.forms.channel.submit();
  47. doDisable(document.forms.channel, "button");
  48. }
  49. function doOrder(field, type){
  50. document.forms.channel.channelfieldOrder.value=field;
  51. document.forms.channel.channel_orderType.value=type;
  52. document.forms.channel.action.value="list";
  53. document.forms.channel.submit();
  54. doDisable(document.forms.status, "button");
  55. }
  56. -->
  57. </script>
  58. <!-- CONTENT -->
  59. <form name="channel" method="post" action="rekonConfig.do">
  60. <input type="hidden" name="start" value="">
  61. <input type="hidden" name="startx" value="">
  62. <input type="hidden" name="action" value="">
  63. <input type="hidden" name="count" value="">
  64. <input type="hidden" name="clear" value="">
  65. <input type="hidden" name="channelPk" value="">
  66. <input type="hidden" name="channel_fieldOrder" value="<bean:write name="channel_fieldOrder"/>">
  67. <input type="hidden" name="channel_orderType" value="<bean:write name="channel_orderType"/>">
  68. <input type="hidden" name="focus_field" value=""/>
  69. <!--td width="80%" valign="top"-->
  70. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  71. <tr>
  72. <td class="titleHeader"><bean:message key="project.channel.key"/> - LIST</td>
  73. </tr>
  74. <tr>
  75. <td><%@ include file="../common/paging.jsp"%>
  76. </td>
  77. </tr>
  78. </table>
  79. <table width="100%" border="0" cellspacing="1" cellpadding="1">
  80. <tr>
  81. <td width="5%" class="titleField"><div align="center">#</div></td>
  82. <td align="left" height="10" valign="top" class="titleField"><bean:message key="channel.channelName.key" />
  83. <logic:equal name="attribute_fieldOrder" value="channelName">
  84. <logic:equal name="attribute_orderType" value="ASC">
  85. <a href="#" onclick="doOrder('channelNamea', 'DESC');"><img src="./images/arrow_down.gif" border="0"></a>
  86. </logic:equal>
  87. <logic:equal name="attribute_orderType" value="DESC">
  88. <a href="#" onclick="doOrder('channelName', 'ASC');"><img src="./images/arrow_up.gif" border="0"></a>
  89. </logic:equal>
  90. </logic:equal>
  91. <logic:notEqual name="attribute_fieldOrder" value="channelName">
  92. <a href="#" onclick="doOrder('channelName', 'ASC');"><img src="./images/arrow.gif" border="0"></a>
  93. </logic:notEqual>
  94. </td>
  95. <td width="5%" class="titleField">&nbsp;</td>
  96. </tr>
  97. <logic:notEmpty name="channelList">
  98. <logic:iterate id="element" name="channelList" scope="request" indexId="index">
  99. <%
  100. sequence++;
  101. String bgcolor = "FFFFFF";
  102. if(sequence%2 == 0){
  103. bgcolor = "EDEDE8";
  104. }
  105. %>
  106. <tr bgcolor="<% out.print(bgcolor); %>" onmouseover="mOvr(this);" onmouseout="mOut(this, '<% out.print(bgcolor); %>');">
  107. <td align="center" class="celBorder"><%=++seq%>&nbsp;</td>
  108. <td align="left" class="celBorder">
  109. &nbsp;<bean:write name="element" property="channelName"/>
  110. </td>
  111. <td align="center" class="celBorder" ><a href="#" ><img src="./images/detail.gif" border="0" onclick="doDetail('<bean:write name="element" property="channelPk"/>');" alt="see detail"/></a>
  112. </td>
  113. </tr>
  114. </logic:iterate>
  115. </logic:notEmpty>
  116. </TABLE>
  117. <table width="100%" border="0" align="center" cellpadding="2" cellspacing="4">
  118. <tr>
  119. <td class="search"><bean:message key="project.search.key" /></td>
  120. </tr>
  121. </table>
  122. <table width="100%" border="0" cellspacing="1" cellpadding="2">
  123. <tr>
  124. <td width="20%"><b><bean:message key="channel.channelName.key"/></b></td>
  125. <td width="1%">:</td>
  126. <td width="29%">
  127. <label>
  128. <input type="text" name="channel_channelName_filter" value="<logic:notEmpty name="channel_channelName_filter"><bean:write name="channel_channelName_filter"/></logic:notEmpty>">
  129. </label>
  130. </td>
  131. </tr>
  132. <tr>
  133. <td>&nbsp;</td>
  134. <td>&nbsp;</td>
  135. <td>&nbsp;</td>
  136. <td>&nbsp;</td>
  137. <td>&nbsp;</td>
  138. <td>&nbsp;</td>
  139. </tr>
  140. <tr>
  141. <td>&nbsp;</td>
  142. <td>&nbsp;</td>
  143. <td colspan="3" align="left">
  144. <input type="button" size="50" maxlength="25" value="<bean:message key="button.reset"/>" onclick="doReset();"/>
  145. &nbsp;&nbsp;
  146. <input type="button" value="<bean:message key="button.search"/>" onclick="doFilter();"/>
  147. </td>
  148. <td>&nbsp;</td>
  149. <td>&nbsp;</td>
  150. <td>&nbsp;</td>
  151. </tr>
  152. </table>
  153. </td>
  154. </form>
  155. <!-- END CONTENT -->
  156. <logic:notEmpty name="focus"><bean:write name="focus" filter="false" /></logic:notEmpty>
  157. <%@ include file="../common/footer.jsp"%>