?? tech_plan_info.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 + -