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

📄 freeadd.jsp

📁 jsp+oracle开发例程
💻 JSP
字号:
<%@ include file="../conn.jsp"%>
<%request.setCharacterEncoding("GB2312");

if ((session.getValue("admin")==null)){
	response.sendRedirect("login.jsp"); 
}else{
%> 
<HTML><HEAD>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">


<TITLE>添 加 下 载 程 序</TITLE>
<LINK rel="stylesheet" type="text/css" href="style.css">
</HEAD>
<%String sql="select * from scott.Nclass order by Nclassid asc"; 
ResultSet rs=stmt.executeQuery(sql); 
%>
<SCRIPT language="JavaScript">
var onecount;
onecount=0;
subcat = new Array();
        <%
        int count = 0;
        while(rs.next()){
        %>
subcat[<%=count%>] = new Array("<%=rs.getString("Nclass")%>","<%=rs.getString("classid")%>","<%=rs.getString("Nclassid")%>");
        <%
        count++;
        }
        rs.close();
        %>
onecount=<%=count%>;

function changelocation(locationid)
    {
    document.myform.Nclassid.length = 0; 

    var locationid=locationid;
    var i;
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            { 
                document.myform.Nclassid.options[document.myform.Nclassid.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
        
    }    
</SCRIPT> <SCRIPT language="javascript">
<!--
function CheckForm()
{
	document.myform.txtcontent.value=document.myform.doc_html.value;
	return true
}
//-->
</SCRIPT>
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#FFFFFF">
<FORM method="POST" name="myform" action="adminsave.jsp?action=add">
  <TABLE width="578" border="1" align="center" cellspacing="0" bordercolor="#39867B"  bordercolordark=#FFFFFF cellpadding="0">
    <TR align="center" bgcolor="E1F4EE"> 
      <TD colspan="4" height="20"> 
        <input type="submit" value=" 添 加 " name="cmdok2">
        &nbsp; 
        <input type="reset" value=" 清 除 " name="cmdcancel2">
      </TD>
    </TR>
    <TR> 
      <TD align="right" width="72" nowrap height="30" bgcolor="E1F4EE"><B><FONT color="#FF0000">软件类型</FONT></B></TD>
      <TD width="231" height="30" bgcolor="E1F4EE"> 
        <%sql="select * from scott.class "; 
           rs=stmt.executeQuery(sql); 
      
%>
        <SELECT name="classid" onChange="changelocation(document.myform.classid.options[document.myform.classid.selectedIndex].value)" size="1">
          <OPTION selected value>==请选类型==</OPTION>
          <% 
        while(rs.next()){
%>
          <OPTION value="<%=rs.getString("classid")%>"><%=rs.getString("class")%></OPTION>
          <%
       
	  }
        rs.close();
   
%>
        </SELECT>
      </TD>
      <TD align="right" width="70" height="30" bgcolor="E1F4EE"><B><font color="#FF0000">选择分类</font></B></TD>
      <TD width="208" height="30" bgcolor="E1F4EE"> 
        <SELECT name="Nclassid">
          <OPTION selected value>==请选分类==</OPTION>
        </SELECT>
      </TD>
    </TR>
    <TR> 
      <TD width="72" align="right" height="30" nowrap bgcolor="E1F4EE"><B><FONT color="#FF0000">软件名称</FONT></B></TD>
      <TD width="231" height="30" bgcolor="E1F4EE"> 
        <INPUT type="text" name="txtshowname" size="30" class="smallinput" maxlength="100">
      </TD>
      <TD width="70" height="30" bgcolor="E1F4EE" align="right"> 
        <P align="right"><B><font color="#FF0000">运行环境</font></B> 
      </TD>
      <TD width="208" height="30" bgcolor="E1F4EE"> 
        <select name="system" size="1">
          <option value="Win9x/WinNT/Win2000/WinXP/WinME" selected>Win9x/WinNT/Win2000/WinXP/WinME</option>
          <option value="Win9x/WinNT/Win2000/WinME">Win9x/WinNT/Win2000/WinME</option>
          <option value="Win9x/WinNT/Win2000">Win9x/WinNT/Win2000</option>
          <option value="Win9x/WinNT">Win9x/WinNT</option>
          <option value="Win9x/WinME">Win9x/WinME</option>
        </select>
      </TD>
    </TR>
    <TR> 
      <TD width="72" align="right" height="30" nowrap bgcolor="E1F4EE"><font color="#FF0000">格式:</font></TD>
      <TD width="231" height="30" bgcolor="E1F4EE">[软件 
        <input type="radio" value name="movie" checked>
        ]</TD>
      <TD width="70" height="30" bgcolor="E1F4EE" align="right"> <b><font color="#FF0000">推荐度</font></b></TD>
      <TD width="208" height="30" bgcolor="E1F4EE"> 
        <select name="hot">
          <option value="1">1星级</option>
          <option value="2">2星级</option>
          <option value="3">3星级</option>
          <option value="4" selected>4星级</option>
          <option value="5">5星级</option>
        </select>
      </TD>
    </TR>
    <TR> 
      <TD width="72" align="right" height="30" nowrap bgcolor="E1F4EE"><B><FONT color="#FF0000">下载地址1</FONT><a href="../admin_uploadfile.jsp"><br>
        </a></B></TD>
      <TD width="231" height="30" bgcolor="E1F4EE"> 
        <INPUT type="text" name="txtfilename" size="30" class="smallinput" maxlength="100" value="">
      </TD>
      <TD width="70" height="30" bgcolor="E1F4EE" align="right"><b><font color="#FF0000">地址说明</font></b></TD>
      <TD width="208" height="30" bgcolor="E1F4EE"> 
        <input type="text" name="txtname" size="30" class="smallinput" maxlength="100" value="点击下载">
      </TD>
    </TR>
    <TR> 
      <TD width="72" align="right" height="30" nowrap bgcolor="E1F4EE"><B><font color="#FF0000">软件大小</font></B></TD>
      <TD width="231" height="30" bgcolor="E1F4EE"> 
        <INPUT type="text" name="size" size="20" class="smallinput" maxlength="100" value="不详">
      </TD>
      <TD width="70" height="30" align="right" bgcolor="E1F4EE"> 
        <P><B>程序演示</B> 
      </TD>
      <TD width="208" height="30" bgcolor="E1F4EE"> 
        <input type="text" name="txtbb" size="30" class="smallinput" maxlength="100">
      </TD>
    </TR>
    <TR> 
      <TD width="72" align="right" height="30" nowrap bgcolor="E1F4EE"><B>相关链接</B></TD>
      <TD width="231" height="30" bgcolor="E1F4EE"> 
        <INPUT type="text" name="fromurl" size="30" class="smallinput" maxlength="100">
      </TD>
      <TD width="70" height="30" align="right" bgcolor="E1F4EE"><B>软件图片</B></TD>
      <TD width="208" height="30" bgcolor="E1F4EE"> 
        <INPUT type="text" name="images" size="25" class="smallinput" maxlength="160">
      </TD>
    </TR>
    <TR> 
      <TD width="72" align="right" height="30" nowrap bgcolor="E1F4EE"><B><font color="#FF0000">授权形式</font></B></TD>
      <TD height="30" colspan="3" bgcolor="E1F4EE"> 
        <select name="order" size="1">
          <option value="免费软件" selected>免费软件</option>
        </select>
        语言 
        <SELECT name="xxyf" size="1">
          <OPTION value="简体中文" name="order" selected>简体中文</OPTION>
          <OPTION value="繁体中文">繁体中文</OPTION>
          <OPTION value="英文" name="order">英文</OPTION>
          <OPTION value="其他" name="order">其他</OPTION>
        </SELECT>
        推荐 
        <input type="checkbox" name="hots" value="on">
        精品 
        <input type="checkbox" name="hide" value="on">
        级别 
        <select size="1" name="hy">
          <option  value="0">免费软件</option>
        </select>
      </TD>
    </TR>
    <TR> 
      <TD width="72" align="right" valign="top" nowrap bgcolor="E1F4EE"><B><FONT color="#FF0000">软件简介</FONT></B></TD>
      <TD colspan="3" bgcolor="E1F4EE"><FONT color="#FF0000"> 
        <TEXTAREA rows="6" name="txtnote" cols="75" class="smallarea"></TEXTAREA>
        </FONT></TD>
    </TR>
    <input type="hidden" name="txtfilename1" size="82" class="smallinput" maxlength="100" value>
    <input type="hidden" name="txtname1" size="82" class="smallinput" maxlength="100" value="">
    <input type="hidden" name="txtfilename2" size="82" class="smallinput" maxlength="100" value>
    <input type="hidden" name="txtname2" size="82" class="smallinput" maxlength="100" value>
    <input type="hidden" name="txtfilename3" size="82" class="smallinput" maxlength="100" value>
    <input type="hidden" name="txtname3" size="82" class="smallinput" maxlength="100" value>
    <input type="hidden" name="txtfilename4" size="82" class="smallinput" maxlength="100" value>
    <input type="hidden" name="txtname4" size="82" class="smallinput" maxlength="100" value>
  </TABLE>
  <DIV align="center">
             <CENTER>
             <P><INPUT type="submit" value=" 添 加 " name="cmdok" class="buttonface">&nbsp; <INPUT type="reset" value=" 清 除 " name="cmdcancel" class="buttonface"></P>
             </CENTER></DIV>
</FORM>
</BODY></HTML>
				 <%}%>

⌨️ 快捷键说明

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