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

📄 tech_plan_info.jsp

📁 JSP.net环境下开发的科技企业信息管理系统 适用于科研开发单位
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page language="java" import="java.sql.*"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>

<style TYPE="text/css">

<!--
body {font-size:10pt;color:#415161}
td {font-size:10pt;color:#415161}
th {font-size:10pt;color:#415161}
</style>

<jsp:useBean id="j" scope="application" class="jdbc.jdbc"/>



<form name="form1" method="post" action="tech_plan_info_co.jsp">
  <%
int id,RowCount=0;
String idd=request.getParameter("idd");
String enterprise_name=(String)session.getValue("e_d");
if(idd==null)
{
id=1;
}
else 
{
id=Integer.parseInt(idd);
}


try{
Connection con=j.getConnection();
Statement statement=con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
String sql="select * from enterprise_newtech_plan where enterprise_name='"+enterprise_name+"'";
ResultSet r=statement.executeQuery(sql);

r.last(); 
RowCount = r.getRow(); 

if(!r.first())
response.sendRedirect("../nomessage.htm");

r.beforeFirst();

r.next();

r.absolute(id); 
 
%>
<table width="100%" border="0" >
<tr>
      <td background="../img/bt.jpg"> <strong><font color="#FFFFFF"><%=enterprise_name%>企业<%=r.getString(3)%>年高新产品申报计划表</font> 
        </strong> </td>
</tr>
<tr>
<td>
  <table width="100%" border="1"  cellspacing="0" bordercolor="#CCCCFF">
    <tr> 
      <td><%=r.getString(2)%></td>
    </tr>

  </table>
</td>
</tr>

</table>
</form>



<%
j.releaseConnection(con);
}


catch(SQLException ee){out.print("数据库连接失败!");}

if(RowCount>1 && id<RowCount)
{
%>
<div align="right"><a href="tech_plan_info.jsp?idd=<%=(id+1)%>">下一页</a> 
  <%
}
%>
  <%
if(id>1)
{
%>
  <div align="right"><a href="tech_plan_info.jsp?idd=<%=(id-1)%>">上一页</a> 
  <%
}
%>
  <input type=button name=button_fh value="返回" onclick="javascript:history.go(-1);">
<input type=button name=print value="打印" onclick="javascript:window.print();">
</div>
</html>

⌨️ 快捷键说明

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