forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinfo_resolvent.jsp
More file actions
59 lines (59 loc) · 2.48 KB
/
info_resolvent.jsp
File metadata and controls
59 lines (59 loc) · 2.48 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
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.model.*" %>
<%@ page import="com.core.*" %>
<%@ page import="java.util.*" %>
<%if (!Crazyadept.UserIsOK(session,FinalConstants.STATUS_ADMIN)) return;%>
<html>
<head>
<title>update_resolvent</title>
</head>
<link href="../css/admin.css" rel="stylesheet" type="text/css">
<%int rid=ParamUtils.getIntParameter(request,"rid");BasetableFactory bf=BasetableFactory.getInstance();
Resolvent r=bf.SearchResolvent("WHERE rid="+rid);if(r.getRid()<=0){
session.setAttribute("error","查找失败"); response.sendRedirect("error.jsp");}else{
%>
<body>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolorlight="#EFEFEF" bordercolordark="#000000" class="tableNew">
<tr align="center">
<td colspan="2" class="TableTitle1" >查看解决方案</td>
</tr>
<tr align="center">
<td width="21%" bgcolor="#FFFFFF">方案名称</td>
<td width="79%" align="left" bgcolor="#FFFFFF"><%=r.getName()%></td>
</tr>
<tr align="center">
<td height="27" bgcolor="#FFFFFF">所属软件类别</td>
<td align="left" bgcolor="#FFFFFF"><%=bf.SearchSsort("WHERE sid="+r.getSid()).getName()%></td>
</tr>
<tr align="center">
<td height="27" bgcolor="#FFFFFF">实例应用</td>
<td align="left" bgcolor="#FFFFFF"><%=bf.SearchSoft("WHERE sfid="+r.getSfid()).getName()%></td>
</tr>
<tr align="center">
<td height="27" colspan="2" bgcolor="#FFFFFF">解决方案</td>
</tr>
<tr align="left">
<td colspan="2" bgcolor="#FFFFFF"><%=r.getContent()%></td>
</tr>
<tr align="center">
<td height="2" colspan="2" bgcolor="#FFFFFF"><%String path=bf.SearchHead("WHERE iid='"+r.getIid()+"'").getPath();if(path==null){out.print("无图片");}else{out.print("<img src=../"+path+" width=460 height=300 >");}%></td>
</tr>
<tr align="center">
<td height="3" bgcolor="#FFFFFF">添加人</td>
<td height="3" align="left" bgcolor="#FFFFFF"><%=((User)bf.SearchUser("WHERE uid='"+r.getUid()+"'")).getName()%></td>
</tr>
<tr align="center">
<td height="2" bgcolor="#FFFFFF">添加时间</td>
<td height="2" align="left" bgcolor="#FFFFFF"><%=r.getUptime()%></td>
</tr>
<tr align="center">
<td height="6" colspan="2" bgcolor="#FFFFFF"> </td>
</tr>
</table>
<table width="80%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="50" colspan="5" align="right"><a href="#" onClick="Jscript:history.back()">返回</a></td>
</tr>
</table> <%}%>
</body>
</html>