?? admin.jsp
字號:
<%--
* @author Shefali Bansal
* @version 1.0
*
* Name of the Application : Admin.jsp
* Development Environment : Oracle JDeveloper 10g
* Creation/Modification History :
*
* Shefali Bansal 02-Jan-2004 Created
*
* Overview of Application :
* Through this JSP, the Administrator can select the action that he/she
* can perform.
* On pressing the 'Submit' button, the Administrator will be taken to the
* appropriate page depending on what he/she has selected in the pop-list.
*
--%>
<%@ page language="java" %>
<%@ page errorPage="Exception.jsp" %>
<HTML>
<HEAD>
<TITLE>JSP Multimedia Tag Application: Admin Page</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. Based on the action type
* selected, appropriate JSP pages are displayed on Form submission.
*/
function submitUploadTypeForm(frmName){
var actionType = selectedActionType(frmName);
if(actionType=="Categories"){
frmName.action = "UploadCategories.jsp";
frmName.submit();
} else if (actionType=="Events"){
frmName.action = "UploadEvents.jsp";
frmName.submit();
} else if (actionType=="View"){
frmName.action = "User.jsp?UserType=Administrator";
frmName.submit();
}
}
/**
* This function retrieves the action type selected.
*/
function selectedActionType(frmName){
var length = frmName.UploadType.length;
var uploadType;
for(x = 0;x<(frmName.UploadType.length);x++)
{
if(frmName.UploadType.options[x].selected)
{
uploadType = frmName.UploadType.options[x].value;
break;
}
}
return uploadType;
}
</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>
<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="#333333"> <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">Welcome to Admin Page of Webinar Application. Select the type of Action, you wish to perform.</TD>
</TR>
<TBODY>
<TR>
<TD valign="top" width="4%" noWrap> </TD>
<TD vAlign=top width="93%" align="center">
<form name="UploadTypeFrm" method="post">
<TABLE border=0 width="100%">
<TBODY>
<TR>
<TD> </TD>
</TR>
<TR>
<TD align="center"> <span class="formFieldName"> Action
Type </span>
<select name="UploadType" size="1">
<option value="Categories">Upload Categories</option>
<option value="Events">Upload Events</option>
<option value="View">View Categories and Events</option>
</select>
</TD>
</TR>
<TR>
<TD> </TD>
</TR>
<TR>
<TD> </TD>
</TR>
<TR>
<TD align="center"> <a href="javascript:submitUploadTypeForm(document.UploadTypeFrm)"><img
src="images/submitbutton.gif" border=0 width="55" height="23" /></a>
</TD>
</TR>
</TBODY>
</TABLE>
</form>
</TD>
<TD width="3%"> </TD>
</TR>
<TR>
<TD colspan=3> </TD>
</TR>
<TR>
<TD colspan=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>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -