<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>河北省科技政策查询系统</title>
<script th:src="@{/layuimini/js/lay-module/echarts/echarts.js}"></script>
<script th:src="@{/layuimini/js/lay-module/echarts/wordcloud.js}"></script>
<link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui/css/layui.css" />
<script src="https://www.layuicdn.com/layui/layui.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="renderer" content="webkit">
<link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
<link href="css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<link href="css/style.css?v=4.1.0" rel="stylesheet">
<style>
.biaoti{
font-family:"幼圆";/*设置字体*/
font-size:30px;/*设置字体大小*/
font-weight:900;/*调整字体粗细*/
color:#136dab;
}
</style>
</head>
<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
<div style="width:100%;height:90px; background-color:white ;">
<div style="width: 330px;height: 80px; margin:auto;">
<p> </p>
<div style="width: 70px;height: 70px;background: url(LOGO.png); background-size:cover ;text-align: center;float:left"></div>
<div style="float:left">
<p class="biaoti"> 科技政策查询系统</p>
</div></div>
</div>
<div id="wrapper" style="width:100%;height:100%;margin: auto; ">
<!--左侧导航开始-->
<nav class="navbar-default navbar-static-side" role="navigation">
<div class="sidebar-collapse" >
<ul class="nav" id="side-menu">
<li>
<a class="J_menuItem" href="layout.jsp"><i class="fa fa-columns"></i> <span class="nav-label">政策查询</span></a>
</li>
<li>
<a href="#"><i class="fa fa-flask"></i> <span class="nav-label">政策分类</span><span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li><a class="J_menuItem" href="table2.jsp?id=100">综合(87)</a>
</li>
<li><a class="J_menuItem" href="table2.jsp?id=200">科研机构改革(17)</a>
</li>
<li><a class="J_menuItem" href="table2.jsp?id=300">科研计划管理(93)</a>
</li>
<li><a class="J_menuItem" href="table2.jsp?id=400">科研经费与财务(39)</a>
</li>
<li>
<a href="#">基础研究与科研基地(108) <span class="fa arrow"></span></a>
<ul class="nav nav-third-level">
<li><a class="J_menuItem" href="table2.jsp?id=501">基础研究(29)</a>
</li>
<li><a class="J_menuItem" href="table2.jsp?id=502">平台基地(79)</a>
</li>
</ul>
</li>
<li>
<a href="#">企业技术进步与高新科技(137) <span class="fa arrow"></span></a>
<ul class="nav nav-third-level">
<li><a class="J_menuItem" href="table2.jsp?id=601">企业(85)</a>
</li>
<li><a class="J_menuItem" href="table2.jsp?id=602">产业(27)</a>
</li>
<li><a class="J_menuItem" href="table2.jsp?id=603">创新载体(25)</a>
</li>
</ul>
</li>
<li><a class="J_menuItem" href="table2.jsp?id=700">农村科技与社会发展(29)</a>
</li>
<li><a class="J_menuItem" href="table2.jsp?id=800">科技人才(39)</a>
</li>
<li><a class="J_menuItem" href="table2.jsp?id=900">科技中介服务(17)</a>
</li>
<li><a class="J_menuItem" href="table2.jsp?id=1000">科技条件与标准(2)</a>
</li>
<li><a class="J_menuItem" href="table2.jsp?id=1100">科技金融与税收(30)</a>
</li>
<li><a class="J_menuItem" href="table2.jsp?id=1200">科技成果与知识产权(84)</a>
</li>
<li><a class="J_menuItem" href="table2.jsp?id=1300">科技奖励(18)</a>
</li>
<li><a class="J_menuItem" href="table2.jsp?id=1400">科学技术普及(10)</a>
</li>
</ul>
</li>
<li>
<a class="J_menuItem" href="layouts.html"><i class="fa fa-desktop"></i> <span class="nav-label">退出系统</span></a>
</li>
</ul>
</div>
</nav>
<!--左侧导航结束-->
<!--右侧部分开始-->
<div id="page-wrapper" class="gray-bg dashbard-1">
<div class="row content-tabs">
<button class="roll-nav roll-left J_tabLeft"><i class="fa fa-backward"></i>
</button>
<nav class="page-tabs J_menuTabs">
<div class="page-tabs-content">
<a href="javascript:;" class="active J_menuTab" data-id="index_v1.html">首页</a>
</div>
</nav>
<button class="roll-nav roll-right J_tabRight"><i class="fa fa-forward"></i>
</button>
<div class="btn-group roll-nav roll-right">
<button class="dropdown J_tabClose" data-toggle="dropdown">关闭操作<span class="caret"></span>
</button>
<ul role="menu" class="dropdown-menu dropdown-menu-right">
<li class="J_tabShowActive"><a>定位当前选项卡</a>
</li>
<li class="divider"></li>
<li class="J_tabCloseAll"><a>关闭全部选项卡</a>
</li>
<li class="J_tabCloseOther"><a>关闭其他选项卡</a>
</li>
</ul>
</div>
<a href="login.html" class="roll-nav roll-right J_tabExit"><i class="fa fa fa-sign-out"></i> 退出</a>
</div>
<div class="row J_mainContent" id="content-main">
<iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="../index_v1.html?v=4.0" frameborder="0" data-id="index_v1.html" seamless></iframe>
</div>
<div class="footer">
<div class="pull-right">© 2014-2015 <a href="http://www.zi-han.net/" target="_blank">zihan's blog</a>
</div>
</div>
</div>
<!--右侧部分结束-->
<!--右侧边栏开始-->
<!-- 全局js -->
<script src="js/jquery.min.js?v=2.1.4"></script>
<script src="js/bootstrap.min.js?v=3.3.6"></script>
<script src="js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="js/plugins/layer/layer.min.js"></script>
<!-- 自定义js -->
<script src="js/hplus.js?v=4.1.0"></script>
<script type="text/javascript" src="js/contabs.js"></script>
<!-- 第三方插件 -->
<script src="js/plugins/pace/pace.min.js"></script>
</div>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncodi
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ page import="java.util.List" %> <%@ page import="java.sql.Connection"%> <%@ page import="java.sql.PreparedStatement"%> <%@ page import="java.sql.SQLException"%> <%@ page import="java.sql.Statement"%> <%@ page import="java.sql.ResultSet"%> <!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <title>Title</title> <script th:src="@{/layuimini/js/lay-module/echarts/echarts.js}"></script> <script th:src="@{/layuimini/js/lay-module/echarts/wordcloud.js}"></script> <link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui/css/layui.css" /> <script src="https://www.layuicdn.com/layui/layui.js"></script> </head> <% java.sql.Connection sqlCon; //数据库连接对象 java.sql.Statement sqlStmt; //SQL语句对象 java.sql.ResultSet sqlRst; //结果集对象 java.lang.String strCon; //数据库连接字符串 java.lang.String strSQL; //SQL语句 int intPageSize; //一页显示的记录数 int intRowCount; //记录总数 int intPageCount; //总页数 int intPage; //待显示页码 java.lang.String strPage; String name = (String) session.getAttribute("name"); String id = (String) session.getAttribute("id"); String organ = (String) session.getAttribute("organ"); int i=0; //设置一页显示的记录数 intPageSize = 5; int sum=0; //取得待显示页码 strPage = request.getParameter("page"); if(strPage==null){ //表明在QueryString中没有page这一个参数,此时显示第一页数据 intPage = 1; } else { //将字符串转换成整型 intPage =java.lang.Integer.parseInt(strPage); if(intPage<1) intPage = 1; } Class.forName("com.mysql.cj.jdbc.Driver").newInstance(); String username = "root"; //用户名 String password = "123456"; //密码 String url="jdbc:mysql://localhost:3306/policy?useUnicode=true&characterEncoding=UTF-8"; //连接数据库 sqlCon=java.sql.DriverManager.getConnection(url,username,password); //创建语句对象 sqlStmt =sqlCon.createStatement(java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE,java.sql.ResultSet.CONCUR_READ_ONLY); //创建查询语句 strSQL = "select * from policy where id like '%"+ id + "%' and name like '%"+ name +"%' and organ like '%" + organ +"%'"; //执行SQL语句并获取结果集 sqlRst = sqlStmt.executeQuery(strSQL); //获取记录总数 sqlRst.last(); sum=sqlRst.getRow(); intRowCount = sqlRst.getRow(); //记算总页数 intPageCount = (intRowCount+intPageSize-1) /intPageSize; //调整待显示的页码 if(intPage>intPageCount) intPage = intPageCount; %> <table class="layui-table"style="table-layout: fixed;word-wrap:break-word;" > <thead> <tr> <td style="width: 300px">政策名称</td> <td style="width: 150px">发文机构</td> <td style="width: 70px">颁布日期</td> <td style="width: 80px">政策分类</td> </tr> <% if(intPageCount>0) { //将记录指针定位到待显示页的第一条记录上 sqlRst.absolute((intPage-1)* intPageSize + 1); //显示数据 i = 0; while(i<intPageSize &&!sqlRst.isAfterLast()){ %> <tr> <td><%=(sqlRst.getString("name")) %></td> <td><%=(sqlRst.getString("organ")) %></td> <td><%=(sqlRst.getString("pubdata")) %></td> <td><%=(sqlRst.getString("type")) %></td> </tr> <% sqlRst.next(); i++; } } %> </thead> </table> <center> 共<%=sum %>条 第<%=intPage%>页 共<%=intPageCount%>页 <% //以下是分页的“上一页”“下一页”,有上一页就有链接,没有就为文字,下一页同理%> <% if(intPage>1){ %> <a href="table1.jsp?page=<%=intPage-1%>">上一页</a> <% }else{ %> 上一页 <%}%> <% if(intPage<intPageCount){ %> <a href="table1.jsp?page=<%=intPage+1%>">下一页</a> <% }else{ %> 下一页 <%}%> <center> <% //关闭结果集 sqlRst.close(); //关闭SQL语句对象 sqlRst.close(); //关闭数据库 sqlRst.close(); %> <div style="text-align: center">Copyright 1996-2023 All Rights Reserved 版权所有:河北省科学技术情报研究院 河北省科技创新战略研究院 技术支持:河北省科技信息处理实验室。</div> </html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Insert title here</title> </head> <body> <h1 style="text-align: center;"></h1> <br> <% String name = request.getParameter("name"); session.setAttribute("name",name); String id = request.getParameter("id"); session.setAttribute("id",id); String organ = request.getParameter("organ"); session.setAttribute("organ",organ); %> <div style="text-align: center">Copyright 1996-2023 All Rights Reserved 版权所有:河北省科学技术情报研究院 河北省科技创新战略研究院 技术支持:河北省科技信息处理实验室。</div> <jsp:forward page ="table1.jsp"/> </body> </html>
ng="UTF-8"%> <!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <title>Title</title> <script th:src="@{/layuimini/js/lay-module/echarts/echarts.js}"></script> <script th:src="@{/layuimini/js/lay-module/echarts/wordcloud.js}"></script> <link rel="stylesheet" type="text/css" href="https://www.layuicdn.com/layui/css/layui.css" /> <script src="https://www.layuicdn.com/layui/layui.js"></script> </head> <body> <div style="width:100%;height:65px;float:left; position:relative; display: table-cell;vertical-align: middle; background-color: rgba(232,232,232,0.76) "> <form action="findallnew1.jsp" method="get" target="hideIframe1"> <p> </p> <div class="layui-form-item"> <img src="image/LOGO.png" style="width: 50px" /> <div class="layui-inline"> <label class="layui-form-label"> 政策名称: </label> <div class="layui-input-inline"> <input type="text" name="name" class="layui-input"> </div> </div> <div class="layui-inline">- <label class="layui-form-label"> 政策文号: </label> <div class="layui-input-inline"> <input type="text" name="id" class="layui-input"> </div> </div> <div class="layui-inline"> <label class="layui-form-label"> 发文机构: </label> <div class="layui-input-inline"> <input type="text" name="organ" class="layui-input"> </div> </div> <div class="layui-inline"> <div class="layui-input-inline"> <center><button type="submit" class="layui-btn" lay-submit lay-filter="demo1" style="background-color: #1571b2">查询</button></center> </div> </div> </div> </form> </div> </br> </br> </br> </br> </br> <div class="container3"> <iframe id="myIframe1" name="hideIframe1" style="" src="table1.jsp" frameborder="0" width="100%" height="850px"></iframe> </div> <div style="text-align: center">Copyright 1996-2023 All Rights Reserved 版权所有:河北省科学技术情报研究院 河北省科技创新战略研究院 技术支持:河北省科技信息处理实验室。</div> </body> </html>
标签:河北省,政策,查询,科技,font,研究院 From: https://www.cnblogs.com/ruipengli/p/17304315.html