forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinfo_soft.jsp
More file actions
82 lines (82 loc) · 3.57 KB
/
info_soft.jsp
File metadata and controls
82 lines (82 loc) · 3.57 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
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.model.Soft" %>
<%@ page import="com.core.*" %>
<%@ page import="java.util.*" %>
<%if (!Crazyadept.UserIsOK(session,FinalConstants.STATUS_ADMIN)) return;%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>info_soft</title>
</head>
<link href="../css/admin.css" rel="stylesheet" type="text/css">
<body bgcolor="#ffffff">
<%int uid=ParamUtils.getIntParameter(request,"sfid");BasetableFactory bf=BasetableFactory.getInstance();
Soft u=bf.SearchSoft("WHERE sfid="+uid);session.removeAttribute("error");if(u.getSfid()<=0){
session.setAttribute("error","查找失败");response.sendRedirect("error.jsp");}else{%>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" class="tableNew">
<tr align="center">
<td colspan="3" class="TableTitle1" >软件详细信息</td>
</tr>
<tr align="center">
<td width="23%" bgcolor="#FFFFFF">软件名称</td>
<td width="37%" align="left" bgcolor="#FFFFFF"><%=u.getName()%></td>
<td width="40%" rowspan="8" align="center" bgcolor="#FFFFFF"><%String path=bf.SearchHead("WHERE iid='"+u.getIid()+"'").getPath();
if(path==null||"".equals(path)){out.print("无图片");}else{out.print("<img src=../"+path+" width=150 height=135 >");}%></td>
</tr>
<tr align="center">
<td bgcolor="#FFFFFF">软件版本</td>
<td align="left" bgcolor="#FFFFFF"><%=u.getEdition()%></td>
</tr>
<tr align="center">
<td bgcolor="#FFFFFF">软件类别</td>
<td align="left" bgcolor="#FFFFFF"><%String name=bf.SearchSsort("where sid="+u.getSid()).getName();if(name==null){out.print("无");}else{out.print(name);}%></td>
</tr>
<tr align="center">
<td bgcolor="#FFFFFF">正式版本</td>
<td align="left" bgcolor="#FFFFFF"><%=u.getRegular()==FinalConstants.STATE_REGULAR?"正式版":"试用版"%></td>
</tr>
<tr align="center">
<td bgcolor="#FFFFFF">软件价格</td>
<td align="left" bgcolor="#FFFFFF"><%=u.getPrice()%>(元)</td>
</tr>
<tr align="center">
<td bgcolor="#FFFFFF">运行环境</td>
<td align="left" bgcolor="#FFFFFF"><%=u.getEnvironment()%></td>
</tr>
<tr align="center">
<td bgcolor="#FFFFFF">推荐指数</td>
<td align="left" bgcolor="#FFFFFF"><% for(int i=0;i<u.getCommend();i++){out.print("<img src='../images/star.gif'>");}%></td>
</tr>
<tr align="center">
<td bgcolor="#FFFFFF">程序大小</td>
<td align="left" bgcolor="#FFFFFF"><%=u.getFilesize()%>(MB)</td>
</tr>
<tr align="center">
<td bgcolor="#FFFFFF">下载数量</td>
<td colspan="2" align="left" bgcolor="#FFFFFF"><%=u.getLoadnum()%></td>
</tr>
<tr align="center">
<td bgcolor="#FFFFFF">上传人</td>
<td colspan="2" align="left" bgcolor="#FFFFFF"><%=bf.SearchUser("WHERE uid='"+u.getUid()+"'").getName()%></td>
</tr>
<tr align="center">
<td bgcolor="#FFFFFF">上传时间</td>
<td colspan="2" align="left" bgcolor="#FFFFFF"><%=u.getUptime()%></td>
</tr>
<tr align="center">
<td height="80" bgcolor="#FFFFFF">软件介绍</td>
<td colspan="2" align="left" valign="top" bgcolor="#FFFFFF"> <%=u.getIntroduce()%></td>
</tr>
<tr align="center">
<td height="90" bgcolor="#FFFFFF">其他说明</td>
<td colspan="2" align="left" valign="top" bgcolor="#FFFFFF"> <%=u.getResume()%></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>