⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 add_resolvent.jsp~70~

📁 一个完整的门户网站,基于JSP环境下开发的,使用SQL数据库.
💻 JSP~70~
字号:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="com.bwm.model.*" %>
<%@ page import="com.bwm.core.*" %>
<%@ page import="java.util.*" %>
<%if (!Crazyadept.UserIsOK(session,FinalConstants.STATUS_ADMIN)) return;%>
<html>
<head>
<title>
add_affiche
</title>
</head>
<link href="../css/admin.css" rel="stylesheet" type="text/css">
<script>
function su(){
    document.form2.action="";

    document.form2.submit();
}
</script>
<body>
<table border="1" align="center" cellpadding="0" cellspacing="0" class="tableBorder2">
  <tr align="center">
    <td colspan="2" class="TableTitle1" >添加解决方案</td>
  </tr>
<form action="up_modify_resolvent.jsp" method="post"  name="form2">
  <tr align="center">
    <td width="30%">方案名称</td>
    <td width="60%" align="left">
      <input name="name" type="text" size="50">
    </td>
  </tr>
  <tr align="center">
    <td height="27">所属软件类别</td>
    <td align="left"><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">实例应用</td>
    <td align="left"><select name="sfid">
<%
Collection col=bf.ListSoft("WHERE sid="+sid);
if(col==null|col.size()<=0){
    out.print("<option>—无—</option>");
}else{
    Iterator it=col.iterator();
    while(it.hasNext()){
        Soft s=(Soft)it.next();
        out.print("<option value="+s.getSid()+">"+s.getName()+"</option>)");
        }
}%>
    </select></td>
  </tr>
  <tr align="center">
    <td height="27" colspan="2"><span class="TableTitle1">解决方案</span></td>
    </tr>
  <tr align="center">
    <td height="14" colspan="2"><textarea name="content" cols="150" rows="30"></textarea></td>
  </tr>
  <tr align="right">
    <td height="7" colspan="2">上传解决方案例图&nbsp;<input type="file" name="file"></td>
  </tr>
  <tr align="center">
    <td height="6" colspan="2">
      <input type="hidden" name="uid" value='<%=(((User)session.getAttribute("user")).getUid())%>'>
      <input type="submit" name="Submit" value="提交">
      &nbsp;&nbsp;
      <input type="reset" name="Submit2" 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>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -