forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd_resolvent.jsp
More file actions
92 lines (92 loc) · 3.57 KB
/
add_resolvent.jsp
File metadata and controls
92 lines (92 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
83
84
85
86
87
88
89
90
91
92
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="com.model.*" %>
<%@ page import="com.core.*" %>
<%@ page import="java.util.*" %>
<%if (!Crazyadept.UserIsOK(session,FinalConstants.STATUS_ADMIN)) return;%>
<html>
<head>
<title>add_affiche</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<link href="../css/admin.css" rel="stylesheet" type="text/css">
<script src="../js/validate.js"></script>
<script>
function su(){
//text/plain
document.form2.encoding="application/x-www-form-urlencoded";
document.form2.action="";
document.form2.submit();
}
</script>
<body>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" class="tableNew">
<tr align="center">
<td colspan="2" class="TableTitle1" >添加解决方案</td>
</tr>
<form action="up_modify_resolvent.jsp" method="post" enctype="multipart/form-data" name="form2">
<tr align="center">
<td width="17%" height="27" bgcolor="#FFFFFF">方案名称:</td>
<td width="83%" height="27" align="left" bgcolor="#FFFFFF"> <input name="name" type="text" size="50"> </td>
</tr>
<tr align="center">
<td height="27" bgcolor="#FFFFFF">所属软件类别:</td>
<td height="27" align="left" bgcolor="#FFFFFF"><select name="sid" onChange="su()">
<%
int sid=ParamUtils.getIntParameter(request,"sid");
BasetableFactory bf=BasetableFactory.getInstance();
Collection coll=bf.ListSsort("");
if(coll==null||coll.size()<=0){
out.print("<option>—无—</option>");
}else{
out.print("<option>—请选择—</option>");
Iterator it=coll.iterator();
while(it.hasNext()){
Ssort s=(Ssort)it.next();
out.print("<option value='"+s.getSid()+"' "+(sid==s.getSid()?"selected":"")+">"+s.getName()+"</option>)");
}
}%>
</select></td>
</tr>
<tr align="center">
<td height="27" bgcolor="#FFFFFF">实例应用:</td>
<td height="27" align="left" bgcolor="#FFFFFF"><select name="sfid">
<%
Collection col=bf.ListSoft("WHERE sid="+sid);
if(col==null|col.size()<=0){
out.print("<option>—无—</option>");
}else{
out.print("<option>—请选择—</option>");
Iterator it=col.iterator();
while(it.hasNext()){
Soft s=(Soft)it.next();
out.print("<option value="+s.getSfid()+">"+s.getName()+"</option>)");
}
}%>
</select></td>
</tr>
<tr align="center">
<td height="27" colspan="2" bgcolor="#FFFFFF"><span class="TableTitle1">解决方案</span></td>
</tr>
<tr align="center">
<td height="27" colspan="2" bgcolor="#FFFFFF"><textarea name="content" cols="90" rows="20" class="textarea"></textarea></td>
</tr>
<tr align="center">
<td height="27" colspan="2" bgcolor="#FFFFFF">上传解决方案例图
<input name="file" type="file" size="50"></td>
</tr>
<tr align="center">
<td height="27" colspan="2" bgcolor="#FFFFFF"> <input type="hidden" name="uid" value='<%=(((User)session.getAttribute("user")).getUid())%>'>
<input name="Submit" type="submit" class="btn_grey" onClick="return resolvent()" value="提交">
<input name="Submit2" type="reset" class="btn_grey" value="重置"></td>
</tr>
</form>
</table>
<table width="100%" 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>