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

📄 uploadevents.jsp

📁 相当板扎,采用贝叶斯公式的垃圾邮件过滤程序
💻 JSP
字号:
<%--
  *  @author   Shefali Bansal
  *  @version  1.0
  *
  *  Name of the Application        : UploadEvents.jsp
  *  Development Environment        : Oracle JDeveloper 10g
  *  Creation/Modification History  :
  *
  *     Shefali Bansal     02-Jan-2004     Created
  *
  *  Overview of Application        :
  *    This JSP is used by the Administrator to specify the content to be
  *    uploaded for different web events for a particular seminar category
  *    into the oracle interMedia database.
  *    The Administrator specifies the category name, event description, image, 
  *    audio and video associated with the web event through this page.
--%>

<%@ page language="java" %>
<%@ page errorPage="Exception.jsp" %>


<HTML>
<HEAD>
<TITLE>JSP Multimedia Tag Application: Admin Page for Uploading the Events for a Category</TITLE>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<link rel="stylesheet" href="stylesheets/styles.css" type="text/css">

<script language="JavaScript">
  /**
   *  This function does the required validation. If an error is present,
   *  then it is displayed or else the form is submitted
   */
  function submitUploadEventForm(frmName){
    if (frmName.Description.value==""){
      alert("Description value has to be specified !");
    } else if (frmName.ImageFile.value==""){
      alert("Image file has to be specified !");
    } else if (frmName.AudioFile.value==""){
      alert("Audio file has to be specified !");
    } else if (frmName.VideoFile.value==""){
      alert("Video file has to be specified !");
    } else {
      frmName.action = "UploadEventStatus.jsp?";
      frmName.submit();
    }
  }

  
</script>
</HEAD>
<BODY text=#000000>

<TABLE border=0 cellPadding=0 cellSpacing=0 height=58 width=100%>
  <TR>
    <TD valign="top" width="100%">
      
     <%@ include file="Header.jsp" %>
      
    </TD>
  </TR>
  <%-- Display any error information from a previous attempt --%>
  <%
    String errorMessage = request.getParameter( "error" );
    if ( errorMessage != null )
    {
  %>
      <P>
      <FONT SIZE=3 COLOR="#336699"><B>Error message</B></FONT>
      <HR SIZE=1>
      <P>
      <P>
      <FONT SIZE=3 COLOR="#CA0000"><B><%= errorMessage %></B></FONT>
      </P>
 <%
    }
 %>
  <TR>
    <TD width="100%">
      
      <table WIDTH ="100%" cellspacing=0 cellpadding=0 height="100%"
      bgcolor="#FFFFFF">
        <tr>
          <TD height="100%">
           
            <TABLE border=0 cellPadding=0 cellSpacing=0 width="100%">
              <!-- Heading of the page goes here -->
              <TR > 
                <TD valign="middle" height="19" colspan="3" noWrap><b><font color="#663333">&nbsp;<font color="#990000">&nbsp;Hi! 
                  You logged in as <%=(String)session.getAttribute("UserType")%>.</font></font></b></TD>
              </TR>
              <TR>
                <TD valign="middle" colspan="3" noWrap>&nbsp;</TD>
              </TR>
              <TR>
                <TD valign="top" colspan="3" noWrap align="center" class=
                "heading"> Specify the details of the Webinar Event to be uploaded.</TD>
              </TR>
              <TBODY>
              <TR>
                <TD valign="top" width="4%" noWrap>&nbsp;</TD>
                <TD vAlign=top width="93%" align="center">
                  <form name="UploadEventFrm" method="post" enctype="multipart/form-data" action="UploadEventStatus.jsp?">
                    
                    <table border=0 cellpadding=4 cellspacing=2 width =100%>
                      <tbody> 
                      <tr> 
                        <td colspan=2> 
                          <div align=left> 
                            <p><font color=#336699></font></p>
                          </div>
                        </td>
                      </tr>
                      <tr> 
                        <td align="right" width="320"> 
                          <p class="formFieldName">Category*</p>
                        </td>
                        <td width="660"> 
                          <select name="CategoryType" size="1">
                            <option value="GRID" selected>Get on the Grid - Online 
                            Event</option>
                            <option value="BI">Oracle Business Intelligence - 
                            Online Event</option>
                            <option value="COLLAB">Oracle Collaboration Suite - 
                            Online Event</option>
                            <option value="LINUX">Oracle Makes Linux Unbreakable 
                            - Online Event</option>
                          </select>
                        </td>
                      </tr>
                      <tr> 
                        <td align="right"> 
                          <p class="formFieldName">Description* </p>
                        </td>
                        <td> 
                          <textarea id="description_id" name="Description" rows="3"></textarea>
                        </td>
                      </tr>
                      <tr> 
                        <td align="right" class="formFieldName">Image* </td>
                        <td> 
                          <input type="file" name="ImageFile">
                          <br>
                          (e.g., gridEvent.jpg)</td>
                      </tr>
                      <tr> 
                        <td align="right" class="formFieldName">Audio* </td>
                        <td> 
                          <input type="file" name="AudioFile">
                          <br>
                          (e.g., gridEvent.mp3) </td>
                      </tr>
                      <tr> 
                        <td align="right" class="formFieldName">Video* </td>
                        <td> 
                          <input type="file" name="VideoFile">
                          <br>
                          (e.g., gridEvent.rm) </td>
                      </tr>
                      <tr> 
                        <td align="right" class="prompts">&nbsp; </td>
                        <td>&nbsp; </td>
                      </tr>
                      <tr> 
                        <td align="right" class="prompts"><a href="javascript:submitUploadEventForm(document.UploadEventFrm)"><img src="images/submitbutton.gif" width="55" height="23" border="0"></a></td>
                        <td> &nbsp;&nbsp;<a href="Admin.jsp"><img src="images/backbutton.gif" border=0 width="55" height="23" /></a></td>
                      </tr>
                      <tr> 
                        <td> 
                          <p>&nbsp;</p>
                        </td>
                        <td><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#808080"><b>Please 
                          Note:</b> The upload may take several minutes depending 
                          on the size of the media files being uploaded.</font><font 
            face=Arial,Helvetica,Geneva,Swiss,SunSans-Regular size=1> </font></td>
                      </tr>
                      </tbody> 
                    </table>
    <!-- emty space -->
                    
                  </form>
                </TD>
                <TD width="3%">&nbsp;</TD>
              </TR>
              
              </TBODY>
            </TABLE>
           
          </TD>
        </tr>
      </table>
    </td>
  
  </TR>
  <TR>
    <%@ include file="Footer.jsp" %>
  </TR>
</TABLE>
<!-- Main table ends here-->
</BODY>
</HTML>

⌨️ 快捷键说明

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