viewdefaultdata.jsp 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <%@ page contentType="text/html;charset=GBK"%>
  2. <TABLE width="100%" aabgcolor1="#B1C8FD" bgcolor="#ffffff" border="0"
  3. cellspacing="1" cellpadding="0">
  4. <TR>
  5. <TD WIDTH="2%" class="td1">行</TD>
  6. <TD WIDTH="2%" class="td1">选</TD>
  7. <TD class="td1" WIDTH="2%">改</TD>
  8. <TD class="td1" WIDTH="2%">查</TD>
  9. <%
  10. int idPos = 0;
  11. for (int i = 0; i < titleList.size(); i++) {
  12. FormItemBean formItemBean = (FormItemBean) titleList
  13. .get(new Integer(i));
  14. String inList = formItemBean.getInList();
  15. if (inList == null)
  16. inList = "";
  17. if (!inList.equals("1")) {
  18. String tmp = formItemBean.getTitle().trim();
  19. if (tmp.equals("序号") || tmp.toLowerCase().equals("id")) {
  20. idPos = i;
  21. } else {
  22. %>
  23. <TD class="td1"><%=tmp%></TD>
  24. <%
  25. }
  26. }
  27. }
  28. %>
  29. </TR>
  30. <%
  31. for (int i = 0; i < viewDatas.length; i++) {
  32. String id = ids[i];
  33. %>
  34. <tr class=tr1 name=tr<%=i+1%> id=tr<%=i+1%> onmouseover="tr1(this,<%=i+1%>)" onmouseout="tr2(this,<%=i+1%>)"
  35. title="用鼠标单击可打开">
  36. <td class="td1_" height="22"><%=(new Integer(rows).intValue())
  37. * (new Integer(iNowPage).intValue() - 1) + i + 1%>
  38. </td>
  39. <td><input type=checkbox name=tmpDelete <%=i+1%> id=tmpDelete
  40. <%=i+1%> value=<%=id%> onclick="selectCheck(this,<%=i+1%>)"></td>
  41. <td>
  42. <%
  43. if (viewEdit.equals("1")) {
  44. %> <img src="/ynet/images/editicon.gif"
  45. style="cursor: hand;" target="newwin" onclick="edit(<%=id%>)">
  46. <%
  47. }
  48. %>
  49. </td>
  50. <td>
  51. <%
  52. if (viewSee.equals("1")) {
  53. %> <img src="images/viewicon.gif"
  54. style="cursor: hand;" target="newwin" onclick="see('<%=id%>')">
  55. <%
  56. }
  57. %> </img></td>
  58. <!-- 数据 -->
  59. <%
  60. for (Integer j = 0; j < new Integer(colCounts).intValue(); j++) {
  61. //System.out.println("i:"+i+"j"+j+"___"+viewDatas[i][j]);
  62. if (indexList.contains(j.toString())){ continue;}
  63. String s = viewDatas[i][j];
  64. if (!(j == idPos)) {
  65. if (s == null || s.equals("?") || s.equals("")
  66. || s.equals("null")) {
  67. s = "-";
  68. } else {
  69. //s = com.sid.util.StringUtils_.escapeHTMLTags(s);
  70. }
  71. %>
  72. <td><%=s%></td>
  73. <%
  74. }
  75. }
  76. %>
  77. </tr>
  78. <%
  79. }
  80. %>
  81. </table>
  82. <!-- end data -->