?? uploadevents.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"> <font color="#990000"> Hi!
You logged in as <%=(String)session.getAttribute("UserType")%>.</font></font></b></TD>
</TR>
<TR>
<TD valign="middle" colspan="3" noWrap> </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> </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"> </td>
<td> </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> <a href="Admin.jsp"><img src="images/backbutton.gif" border=0 width="55" height="23" /></a></td>
</tr>
<tr>
<td>
<p> </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%"> </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 + -