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

📄 head_photoselect.jsp~10~

📁 一、数据库登录名:blog 密码:blog 二、首页应该运行log.jsp页面。其用户名:aa 密码:aaaa
💻 JSP~10~
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<html>
<head>
<title>
head_PhotoSelect
</title>
</head>
<jsp:useBean id="photo" scope="page" class="OperationDB.operation">
</jsp:useBean>
<jsp:useBean id="p" scope="session" class="Tool.MyPagination">
</jsp:useBean>
<%
 String str=(String)request.getParameter("Page");
 int Page=1;
 List list=null;
 if(str==null){
  list=photo.findphoto();
  int pagesize=6;
  list=p.getInitPage(list,Page,pagesize);
}
else{
 Page=p.getPage(str);
 list=p.getAppointPage(Page);
}
%>
<body bgcolor="#ffffff">
<%
out.println("<br><p align=left>&nbsp;&nbsp;&nbsp;&nbsp;<img src=myimage/icon.gif width=10 height=10>&nbsp;&nbsp;查询所有的相片</p>");
%>
<table width="486" border="1" align="center" cellpadding="1" cellspacing="1"   bgcolor="#CCFFCC">

<%
for(int i=0;i<list.size();i++){
  ActionForm.photoActionForm pf=(ActionForm.photoActionForm)list.get(i);
  if(i%2==0){



    %>
    <tr bgcolor="#FFFFFF">
      <td width="212"><div align="center">
        <table width="160" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="150"><div align="center">
            <a href="#" onclick="window.open('back_photoSelectOne.jsp?image=<%=pf.getPhotoAddress()%>)',' ',' width=160 height=160'">
              <img src="<%=pf.getPhotoAddress()%>" alt="" width="140" height="160">
           </a></div></td>
          </tr>
          <tr>
            <td height="20"><div align="center"><%=pf.getPhotoDescription()%></div></td>
          </tr>
          <tr>
            <td height="20"><div align="center"><%=pf.getPhotoTime()%></div></td>
          </tr>
        </table>
       </div></td>
    <%}else{%>
<td width="261" ><div align="center">
      <table width="160" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="150"><div align="center">
           <a href="#" onclick="window.open('back_photoSelectOne.jsp?image=<%=pf.getPhotoAddress()%>)',' ',' width=160 height=160'">
              <img src="<%=pf.getPhotoAddress()%>" alt="" width="140" height="160">
           </a>
       </div></td>
        </tr>
        <tr>
          <td height="20"><div align="center"><%=pf.getPhotoDescription()%></div></td>
        </tr>
        <tr>
          <td height="20"><div align="center"><%=pf.getPhotoTime()%></div></td>
        </tr>
      </table>
    </div></td>
</tr>
<%}}%>
<%if(list.size()%2==1){%>
 <tr>
<td bgcolor="#FFFFFF"><div align="center">
    <table width="141" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="141" height="150"><div align="center"></div></td>
      </tr>
      <tr>
        <td height="20"><div align="center"></div></td>
      </tr>
      <tr>
        <td height="20"><div align="center"></div></td>
      </tr>
    </table>
  </div>
</td>
  </tr>
  <%}%>
</table>
<%=p.printCtrl(Page)%>
</body>
</html>

⌨️ 快捷键说明

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