⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tf_info_list_tu.jsp

📁 这是我上次报java培训时
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.util.*" errorPage="../../pub_include/ErrPage.jsp" %> 
 <%request.setCharacterEncoding("gb2312");%> 
 <jsp:include page="../../pub_include/pub_function_javascript.html" flush="true"/>  
<%@ page import="jinLing.pub.*,jinLing.info.*"%> 
<html>
<head>
<link rel="stylesheet" type="text/css" href="../../pub_include/hosc.css">
<link href="../../pub_include/body_css.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
<style type="text/css">
<!--
body {
	background-color: #ffebbd;
}
.style2 {color: #000000}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
	color: #000000;
}
a:hover {
	text-decoration: underline;
}
a:active {
	text-decoration: none;
	color: #000000;
}
-->
</style></head> 
<% 
  String INFO_TYPE = request.getParameter("INFO_TYPE").toString();
  System.out.println(INFO_TYPE);
  Collection col = null;
  Hashtable list = new Hashtable(); 
  list.put("INFO_TYPE",INFO_TYPE);
 // PubOp pubOp = new PubOp("INFO"); 
  Info info=new Info();
//判断增加修改
  String optype = "1";
  if(null != request.getParameter("optype") && !request.getParameter("optype").toString().equals(""))
    optype=request.getParameter("optype").toString(); 
%> 
<body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' background='../../images/bg.gif'   >
  <div align='center'>
  <center>
  <table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width=98% >
    <tr>
      <td width='100%' height='0' valign='top' align='center'>
        <table width='100%' border='0' style='border-collapse: collapse; padding-left:5' bordercolor='#6595D6' cellpadding='0' cellspacing='0'> 
<%
  String pPageNo = "1"; 
  if (null != request.getParameter("PAGENO") &&!request.getParameter("PAGENO").toString().trim().equals("")) 
     if (Integer.parseInt(request.getParameter("PAGENO"))<1) 
       pPageNo="1"; 
  else 
     pPageNo=request.getParameter("PAGENO"); 
   System.out.println("1111111");
    col = info.execSel(list,pPageNo,"5");
  String pPageCount = String.valueOf(info.getRecordcount());
  String allCount = pPageCount; 
  pPageCount = (Integer.parseInt(pPageCount)%5==0)?String.valueOf(Integer.parseInt(pPageCount)/5):String.valueOf(Integer.parseInt(pPageCount)/5+1);
  if (Integer.parseInt(pPageCount)<Integer.parseInt(pPageNo))
    pPageNo=pPageCount;
  Iterator it = col.iterator();
  while (it.hasNext())
   {
     Hashtable rs = (Hashtable) it.next();
%>
          <tr class='table_list_lr'> 
            <td     align="left"  > 
			<a href="info_content_tu.jsp?INFO_ID=<%=rs.get("INFO_ID")%>" target="_blank">
			<IMG  width="169" height="121" border="0" src="../../../source/4/<%=rs.get("INFO_CONTENT")%>">
			 </a>             </td>
			 <td     align="left"  >
			 <a href="info_content_tu.jsp?INFO_ID=<%=rs.get("INFO_ID")%>" target="_blank"> 
			 <span class="style2"> &nbsp;&nbsp;<%=rs.get("INFO_REMARK")%></span>
			 </a> 
			  </td>
         </tr>
 <% 
   } 
%> 
     </table> 
</td> 
    </tr> 
  </table> 
  </center> 
</div> 
    </td> 
  </tr> 
</table> 
</center> 
</div> 
</center> 
</div> 
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -