forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresultedit.jsp
More file actions
122 lines (121 loc) · 3.73 KB
/
resultedit.jsp
File metadata and controls
122 lines (121 loc) · 3.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" %>
<% request.setCharacterEncoding("gb2312"); %>
<%@ page import="com.bwm.string.Str"%>
<%@ page import="com.bwm.db.Condb"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>未入库成果详单</title>
<style type="text/css">
<!--
.style1 {color: #CC9933}
-->
</style>
</head>
<link href="../css/style.css" rel="stylesheet">
<script language="javascript">
function check(){
form1.submit();}
</script>
<body>
<%
Condb con=new Condb();
Str str1=new Str();
String temp=str1.toChinese(request.getParameter("temp"));
String sql="select * from tb_Result where Resultname='"+temp+"'";
ResultSet rs=con.executeQuery(sql);
if(rs.next()){
%>
<br>
<table width="610" height="369" border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="tableBorder">
<form action="Rcheck.jsp" method="post" name="form1">
<tr align="center" bgcolor="#D1E2D6">
<td height="26" colspan="3" bgcolor="#F7F3EF"><font color="#FFFFFF" face="黑体" size="+1">
</font>
<center class="style1">
<font size="+1" face="黑体">未入库成果申报详单
</font>
</center></td>
</tr>
<tr>
<td width="59" height="23"> </td>
<td width="86" height="23">成果形式:</td>
<td width="555" height="23"><font color="#0000CC"><%=rs.getString(1)%></font></td>
</tr>
<tr>
<td height="23"> </td>
<td height="23">成果名称:</td>
<td height="23"><font color="#0000CC"><%String str=rs.getString(2);out.println(str);%></font></td>
</tr>
<tr>
<td height="23"> </td>
<td height="23">研究领域:</td>
<td height="23"><font color="#0000CC"><%=rs.getString(3)%></font></td>
</tr>
<tr>
<td height="23"> </td>
<td height="23">成果字数:</td>
<td height="23"><font color="#0000CC"><%=rs.getString(4)%></font></td>
</tr>
<tr>
<td height="23"> </td>
<td height="23">研究分类:</td>
<td height="23"><font color="#0000CC"><%=rs.getString(5)%></font></td>
</tr>
<tr>
<td height="23"> </td>
<td height="23">成果类型:</td>
<td height="23"><font color="#0000CC"><%=rs.getString(6)%></font></td>
</tr>
<tr>
<td height="23"> </td>
<td height="23">成果语言:</td>
<td height="23"><font color="#0000CC"><%=rs.getString(7)%></font></td>
</tr>
<tr>
<td height="23"> </td>
<td height="23">发表时间:</td>
<td height="23"><font color="#0000CC"><%=rs.getDate(8)%></font></td>
</tr>
<tr>
<td height="23"> </td>
<td height="23">作者姓名:</td>
<td height="23" align="left"><font color="#0000CC"><%=rs.getString(9)%></font></td>
</tr>
<tr>
<td> </td>
<td height="43">内容摘要:</td>
<td height="43"><font color="#0000CC"><%=rs.getString(10)%></font></td>
</tr>
<tr>
<td> </td>
<td height="45">备注:</td>
<td height="45"><font color="#0000CC"><%=rs.getString(11)%></font></td>
</tr>
<tr align="center">
<td height="24"> </td>
<td height="24" align="left">是否入库:</td>
<td height="24" align="left">
<input type="checkbox" name="choose"
<%
int pat=rs.getInt(12);
if(pat==1)
out.println("checked");%>
onClick="check()">
<input name="Numbic" type="hidden" value="<%=str%>">
是/否</td>
</tr>
<tr align="center" bgcolor="#F7F3EF">
<td height="22" colspan="3"><a href="lackresult.jsp">返回</a></td>
</tr>
<%
}else{
%>
</form>
</table>
<%
}
con.close();
%>
</body>
</html>