?? uploadcategories.jsp
字號:
<%--
* @author Shefali Bansal
* @version 1.0
*
* Name of the Application : UploadCategories.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 Seminar Categories into the oracle interMedia database.
* The Administrator specifies the category name, description and image
* associated with this category to be uploaded through this page.
*
--%>
<%@ page language="java" %>
<%@ page errorPage="Exception.jsp" %>
<HTML>
<HEAD>
<TITLE>JSP Multimedia Tag Application: Admin Page for Uploading the Categories</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 submitUploadCategoryForm(frmName){
if ((frmName.Description.value=="")||
(frmName.ImageFile.value=="")){
alert("Description and Image values have to be specified !");
} else {
frmName.action = "UploadCategoryStatus.jsp?";
frmName.submit();
}
}
</script>
</HEAD>
<BODY text=#000000>
<!-- Main table -->
<TABLE border=0 cellPadding=0 cellSpacing=0 height=58 width=100%>
<TR>
<TD valign="top" width="100%">
<!-- Include the static 'Header.jsp' file -->
<%@ include file="Header.jsp" %>
</TD>
</TR>
<%-- Display any error information from the 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>
<br>
<%
}
%>
<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 for the Webinar Category to be
uploaded.</TD>
</TR>
<TBODY>
<TR>
<TD valign="top" width="4%" noWrap> </TD>
<TD vAlign=top width="93%" align="center">
<form name="UploadCategoryFrm" ACTION="UploadCategoryStatus.jsp?" method="post" enctype="multipart/form-data">
<table border=0 cellpadding=2 cellspacing=2 width =100%>
<tbody>
<tr>
<td colspan=2 height="38">
<div align=left>
<p><font color=#336699></font></p>
</div>
</td>
</tr>
<tr>
<td height="28" align="right" width="324">
<p class="formFieldName">Category*</p>
</td>
<td width="664">
<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 height="28" align="right">
<p class="formFieldName">Description* </p>
</td>
<td>
<textarea id="description_id" name="Description" rows="3"></textarea>
</td>
</tr>
<tr>
<td height="28" align="right" class="formFieldName">Image*
</td>
<td>
<input type="file" name="ImageFile">
<br>
<FONT SIZE="-1">(e.g., grid.jpg)</FONT> </td>
</tr>
<tr>
<td height="28" align="right" class="prompts"> </td>
<td> </td>
</tr>
<tr>
<td height="28" align="right" class="prompts"><a href="javascript:submitUploadCategoryForm(document.UploadCategoryFrm)"><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 height="19">
<p> </p>
</td>
<td align="right"><font face="Verdana, Arial, Helvetica, sans-serif" size="2" color="#808080"><b>Please
Note:</b> The upload may take couple of minutes.</font>
<font
face=Arial,Helvetica,Geneva,Swiss,SunSans-Regular size=1> </font></td>
</tr>
</tbody>
</table>
<!--empty line -->
</form>
</TD>
<TD width="3%"> </TD>
</TR>
</TBODY>
</TABLE>
</TD>
</tr>
</table>
</td>
</TR>
<TR>
<!-- Include static 'Footer.jsp' file -->
<%@ include file="Footer.jsp" %>
</TR>
</TABLE>
<!-- Main table ends here-->
</BODY>
</HTML>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -