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

📄 main.jsp

📁 这是本人开发过程项目的一部分
💻 JSP
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ page contentType="text/html; charset=GBK"%>
<%@ page import="com.zdvictory.oa.archive.view.*"%>
<%@ page import="com.zdvictory.platform.common.*"%>
<%@ page import="com.zdvictory.platform.user.*"%>
<%@ page import="java.util.*"%>
<%@ taglib uri="http://jsptags.com/tags/navigation/pager" prefix="pg" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>单位文件</title>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/common.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/qflow.js"></script>
<script language="javascript">
function openFlow(url){
window.open(url,'','height='+ new String(screen.availHeight-50) + ',top=0,left=0,width=' + new String(screen.availWidth-10) + ',location=no,menubar=no,resizable=yes,toolbar=no,scrollbars=yes,status=yes');
}
function business_search(){
	document.businessForm.action="<%=request.getContextPath()%>business/businessModelAction!entrance.action?action=search";
	document.businessForm.submit();
}

function view_detail(id){
	window.location.href='/oa/archiveAction!findArchiveDetail.action?id='+id;
}
</script>
<%
PFUser pfUser=(PFUser)session.getAttribute("pfuser");
String style=pfUser.getCurrent_style();
List list=(List)request.getAttribute("list");
PageInfo pageInfo=(PageInfo)request.getAttribute("pageinfo");
String actionName=(String)request.getAttribute("action");
String linkPath="/oa/archiveAction!list.action?action="+actionName;
%>
<link href="<%=request.getContextPath()%>/css/css_<%=style%>.css" rel="stylesheet" type="text/css">
</head>
<body class="bgcolor3">
<form name="taskForm" method="post">
<input type="hidden" name="flowId">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="1" class="bgcolor1"></td>
  </tr>
  <tr>
    <td height="1" class="bgcolor2"></td>
  </tr>
  	 <tr>
	    <td height="30" class="bgcolor5">
		    <table border="0" cellpadding="0" cellspacing="0">
			     <tr>

            <td class="td3">公文标题:</td>
					<td><input name="businessName" type="text" class="input1" id="businessName" value=""></td>
					<!--这里多写一个td,方便控制两单元间距离-->
					<td width="10"></td>
			<td class="td3">公文字号:</td>
					<td><input name="flowName" type="text" class="input1" id="flowName" value=""></td>
					<!--这里多写一个td,方便控制两单元间距离-->
					<td width="10"></td>
					<td class="button1" style="CURSOR: hand" onClick="ou_search()"><a href="#" class="link4">查询</a></td>
				 </tr>
			</table>
		</td>
	 </tr>
  <!-- end:查询条件显示区域 -->
  <!-- start:tab类标签页面实现部分 分为三部分:标签,颜色条,标签内容-->
  <tr>
    <td> <table class="table3" width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td>
            <!-------- start: tab标签----------------------------------->
            <table class="table6" width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td> <table border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td id="tda1" height="23" width="112" class="tabbg1" style="CURSOR:pointer;"><div align="center">单位文件</div></td>
                    </tr>
                  </table></td>
              </tr>
            </table>
            <!-------- end: tab标签-------------------------------------->
            <!-------- start: 标签底颜色条-------------->
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td height="6" class="tab_bottom_bg"></td>
              </tr>
            </table>
            <!-------- end: 标签底颜色条---------------->
            <!-------- start: 标签表格部分-------------------------------------------------->
            <table class="table4" width="100%" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td>
                  <!-------------start---表格sa1部分--------------------------------------------------------------------------------->
                  <table width="100%" id="sa1" border="0" cellpadding="0" cellspacing="0">
                    <!----------start:数据记录部分----------------------------->
                    <tr>
                      <td> <table width="100%" border="1" style="border-collapse:collapse" bordercolor="#D7D7D7" cellpadding="0" cellspacing="0">
                            <tr height="22" class="tab_title_bg"> 
							  <td width="18%" height="19" align="center">文件标题</td>
                              <td align="center" width="23%">文 号</td>
                              <td align="center" width="6%">来文单位</td>
                              <td align="center" width="6%">来文时间</td>
                              <td align="center" width="8%">类型</td>
                            </tr>
                            <!-- 循环列表显示归档公文数据-->
      <%
	  if(list!=null){
	  	 for(int i=0;i<list.size();i++)
		 {
		  	Archive oaArchive=(Archive)list.get(i);
	  %>
                            <tr height="22" class="<%if(i%2==0){%>td6<%}else{%>td7<%}%>" onmouseover="this.className='tr_o'"  <%if(i%2==0){%>onmouseout="this.className='tr_s'"<%}else{%>onmouseout="this.className='tr_d'"<%}%>> 
							  <td align="left">&nbsp;&nbsp;<a href="#" class="linkf" onclick="view_detail('<%=oaArchive.getFlowInstId()%>')"><%=oaArchive.getBiaoti()%></a></td>
                              <td align="center"><%if(oaArchive.getWenjianbianhao()!=null) out.print(oaArchive.getWenjianbianhao());%></td>
                              <td align="center">&nbsp;</td>
                              <td align="center">&nbsp;</td>
                              <td align="center"><%if(oaArchive.getBusinessType().equals("002")){out.print("发文");} else if(oaArchive.getBusinessType().equals("003")){out.print("收文");}%></td>
                            </tr>
                            <%}}%>
                          </table></td>
                    </tr>
                    <!----------end:数据记录部分----------------------------->
                    <!----------start:上下翻页------------------>
                    <tr>
                      <td class="td11">
<!--分页显示模块-->
<pg:pager
    items="<%=pageInfo.getTotalCount()%>"
    index="center"
    maxPageItems="<%= pageInfo.getPageSize() %>"
    maxIndexPages="10"
    isOffset="<%= true %>"
	url="/oa/archiveAction!list.action"
    export="offset,currentPageNumber=pageNumber"
    scope="request">
	<pg:param name="action" value="<%=actionName%>"/>
	<pg:param name="maxPageItems"/>
  <pg:index>
         <jsp:include page="/platform/common/pager.jsp"  flush ="true">
		 <jsp:param name="postURL" value="<%=linkPath%>"/>
		 </jsp:include>
     </pg:index>
  </pg:pager>
<%if(pageInfo.getTotalCount()<=pageInfo.getPageSize()){%>
<jsp:include page="/platform/common/single_pager.jsp"  flush ="true">
	   <jsp:param name="postURL" value="<%=linkPath%>"/>
</jsp:include>
  <%}%>
					  </td>
                    </tr>
                    <!----------end:上下翻页------------------>
                  </table></td>
              </tr>
            </table>
            <!-------- end: 标签表格部分---------------------------------------------------->
          </td>
        </tr>
      </table></td>
  </tr>
  <!-- end:tab类标签页面实现部分 -->
</table>
</form>
</body>
</html>

⌨️ 快捷键说明

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