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

📄 tf_info_list.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.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();
  Collection col = null;
  Hashtable list = new Hashtable(); 
  list.put("INFO_TYPE",INFO_TYPE);
 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=100% >
    <tr>
      <td width='100%' height='0' valign='top' align='center'>
        <table width='100%' border='0'    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"); 
  col = info.execSel(list);
  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 height="10" > 
            <td  align="center" ><a href="<%=rs.get("INFO_REMARK")%>" target="_blank"><img border="0" src=../../../source/1/<%=rs.get("INFO_CONTENT")%>></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 + -