forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtools.jsp
More file actions
84 lines (84 loc) · 3.92 KB
/
tools.jsp
File metadata and controls
84 lines (84 loc) · 3.92 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
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.util.Collection" %>
<%@ page import="java.util.Iterator" %>
<%@ page import="com.core.*" %>
<%@ page import="com.model.Mend" %><%
BasetableFactory bf=BasetableFactory.getInstance();
String action=ParamUtils.getRequestString(request,"action");
String nid=ParamUtils.getRequestString(request,"sid");if("".equals(action)) return;%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>明日科技</title>
<link href="css/css.css" rel="stylesheet" type="text/css">
</head>
<body onLoad="clockon(bgclock)">
<table width="750" border="0" align="center" cellpadding="0" cellspacing="0" class="tableBorder">
<tr>
<td height="165" colspan="3"><jsp:include page="top.jsp"/></td>
</tr>
<tr>
<td width="11"> </td>
<td width="173" align="left" valign="top"><jsp:include page="left_tools.jsp"><jsp:param name="action" value="<%=action%>" /></jsp:include></td>
<td width="570" align="center" valign="top"><table width="96%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D4D0C8" class="tableNew">
<tr align="center">
<td colspan="2" class="TableTitle1" >工具软件详细信息</td>
</tr>
<%if("tool".equals(action)){
if(!"".equals(nid)){
nid="WHERE state="+FinalConstants.STATE_TOOL+" AND sid='"+nid+"'";
}else{ nid="WHERE state="+FinalConstants.STATE_TOOL;
}}else if("mend".equals(action)){
if(!"".equals(nid)){
nid="WHERE state="+FinalConstants.STATE_MEND+" AND sid='"+nid+"'";
}else{ nid="WHERE state="+FinalConstants.STATE_MEND;
}}Collection coll=bf.ListMend(nid);
if(coll==null||coll.size()<=0||coll.isEmpty()){%>
<tr align="center">
<td colspan="2" bgcolor="#FFFFFF">没有工具软件</td>
</tr><%
}else{ Iterator it=coll.iterator();
while(it.hasNext()){ Mend n=(Mend)it.next();%>
<tr align="center">
<td width="20%" bgcolor="#FFFFFF">软件名称</td>
<td width="60%" align="left" bgcolor="#FFFFFF"><%=n.getName()%> </td>
</tr>
<tr align="center">
<td bgcolor="#FFFFFF">软件类别</td>
<td align="left" bgcolor="#FFFFFF"><%=bf.SearchSsort("where sid="+n.getSid()).getName()%></td>
</tr>
<tr align="center">
<td height="4" bgcolor="#FFFFFF">软件类型</td>
<td height="4" align="left" bgcolor="#FFFFFF"><%=n.getState()==FinalConstants.STATE_MEND?"补丁":"工具"%></td>
</tr>
<tr align="center">
<td height="1" bgcolor="#FFFFFF">推荐指数</td>
<td height="0" align="left" bgcolor="#FFFFFF"><% for(int i=0;i<n.getCommend();i++){out.print("<img src='images/star.gif'>");}%></td>
</tr>
<tr align="center">
<td height="2" bgcolor="#FFFFFF">程序大小</td>
<td height="0" align="left" bgcolor="#FFFFFF"><%=n.getFilesize()%></td>
</tr>
<tr align="center">
<td height="3" bgcolor="#FFFFFF">上传时间</td>
<td height="0" align="left" bgcolor="#FFFFFF"><%=n.getUptime()%></td>
</tr>
<tr align="center">
<td height="3" bgcolor="#FFFFFF">下载次数</td>
<td height="3" align="left" bgcolor="#FFFFFF"><%=n.getLoadnum()%></td>
</tr>
<tr align="center">
<td bgcolor="#FFFFFF">其他介绍</td>
<td height="7" rowspan="2" align="left" valign="top" bgcolor="#FFFFFF"> <%=n.getResume()%></td>
</tr>
<tr align="center">
<td height="12" align="center" bgcolor="#FFFFFF">点击下载<a href='download.jsp?mid=<%=n.getMid()%>'><img src="images/download.gif" border="0"></a></td>
</tr> <%}}%>
</table></td>
</tr>
<tr>
<td colspan="3" align="center"><jsp:include page="bottom.jsp"/></td>
</tr>
</table>
</body>
</html>