[Ils-source] r1492 - trunk/webapp
scribe at crosswire.org
scribe at crosswire.org
Wed Oct 26 10:32:56 MST 2016
Author: scribe
Date: 2016-10-26 10:32:56 -0700 (Wed, 26 Oct 2016)
New Revision: 1492
Modified:
trunk/webapp/admin_utilities_managecourses.jsp
Log:
whitespace regularization changes only
Modified: trunk/webapp/admin_utilities_managecourses.jsp
===================================================================
--- trunk/webapp/admin_utilities_managecourses.jsp 2016-10-26 17:15:38 UTC (rev 1491)
+++ trunk/webapp/admin_utilities_managecourses.jsp 2016-10-26 17:32:56 UTC (rev 1492)
@@ -1,47 +1,47 @@
-<%@ page
- language="java"
- contentType="text/html;charset=utf-8"
-%>
-<%@ page import="com.resolutions.ils.*" %>
-<%@ page import="com.resolutions.ils.data.*" %>
-<%@ page import="java.util.Vector" %>
-<%@ page import="java.util.Date" %>
-<%@ page import="java.io.File" %>
-<%@ page import="java.net.URL" %>
-<%@ page import="java.text.SimpleDateFormat" %>
-<%@ page import="java.io.FilenameFilter" %>
-<%@ page import="org.apache.log4j.Logger" %>
-<%@ page import="java.util.Properties" %>
-<%@ page import="java.io.FileInputStream" %>
-<%@ page import="java.io.FileOutputStream" %>
-
-<%
- Logger eventsLogger = Logger.getLogger("EVENTS");
- String statusMsg = "";
- String validError = "";
- ILSSession ilsSession = (ILSSession)session.getAttribute("ilsSession");
- if (ilsSession == null) {
- out.print("<html><head><META HTTP-EQUIV=\"Refresh\" CONTENT=\"0;URL=login.jsp\"></head></html>");
- return;
- }
-
- UserProfile user = ilsSession.getCurrentUserProfile();
- if ((user.getUserProfileAccessLevel() < UserProfile.ACCESS_ADMIN) && (!user.hasAccess(UserProfile.ACCESS_MODE_MENU_UTILITIES))) {
- out.print("<html><body><h1>You do not have access to this feature</h1></body></html>");
- eventsLogger.info("Access denied to user ["+user.getUserProfileNum()+"]");
- return;
- }
-
- Company current = null;
- String action = request.getParameter("action");
- SimpleDateFormat df = new SimpleDateFormat("MM/dd/yyyy");
-
- Properties settingsProperties = new Properties();
- try {
- settingsProperties.load(new FileInputStream(session.getServletContext().getRealPath("/WEB-INF/classes/settings.properties")));
- }
- catch (Exception e) {}
-
+<%@ page
+ language="java"
+ contentType="text/html;charset=utf-8"
+%>
+<%@ page import="com.resolutions.ils.*" %>
+<%@ page import="com.resolutions.ils.data.*" %>
+<%@ page import="java.util.Vector" %>
+<%@ page import="java.util.Date" %>
+<%@ page import="java.io.File" %>
+<%@ page import="java.net.URL" %>
+<%@ page import="java.text.SimpleDateFormat" %>
+<%@ page import="java.io.FilenameFilter" %>
+<%@ page import="org.apache.log4j.Logger" %>
+<%@ page import="java.util.Properties" %>
+<%@ page import="java.io.FileInputStream" %>
+<%@ page import="java.io.FileOutputStream" %>
+
+<%
+ Logger eventsLogger = Logger.getLogger("EVENTS");
+ String statusMsg = "";
+ String validError = "";
+ ILSSession ilsSession = (ILSSession)session.getAttribute("ilsSession");
+ if (ilsSession == null) {
+ out.print("<html><head><META HTTP-EQUIV=\"Refresh\" CONTENT=\"0;URL=login.jsp\"></head></html>");
+ return;
+ }
+
+ UserProfile user = ilsSession.getCurrentUserProfile();
+ if ((user.getUserProfileAccessLevel() < UserProfile.ACCESS_ADMIN) && (!user.hasAccess(UserProfile.ACCESS_MODE_MENU_UTILITIES))) {
+ out.print("<html><body><h1>You do not have access to this feature</h1></body></html>");
+ eventsLogger.info("Access denied to user ["+user.getUserProfileNum()+"]");
+ return;
+ }
+
+ Company current = null;
+ String action = request.getParameter("action");
+ SimpleDateFormat df = new SimpleDateFormat("MM/dd/yyyy");
+
+ Properties settingsProperties = new Properties();
+ try {
+ settingsProperties.load(new FileInputStream(session.getServletContext().getRealPath("/WEB-INF/classes/settings.properties")));
+ }
+ catch (Exception e) {}
+
Properties sysConfigProperties = Utils.getSysConfig(session);
File sysConfigFile = new File(session.getServletContext().getRealPath("/WEB-INF/sysconfig."+ilsSession.getCompanyID()+".properties"));
if (sysConfigProperties == null) {
@@ -50,305 +50,305 @@
if (!sysConfigFile.exists()) {
sysConfigFile.createNewFile();
}
-
- if ("Delete".equals(action)) {
- String []cids = request.getParameterValues("cid");
- if (cids != null) {
- for (int i = 0; i < cids.length; i++) {
- File dir = new File(session.getServletContext().getRealPath("courses"), cids[i]);
- if (dir.exists()) {
- org.apache.commons.io.FileUtils.deleteDirectory(dir);
- statusMsg = "Courses have been successfully deleted.";
- }
- }
- }
- }
- else if ("Rename".equals(action)) {
- String cid = request.getParameter("cid");
- if (cid != null) {
- out.print("<html><head><META HTTP-EQUIV=\"Refresh\" CONTENT=\"0;URL=admin_utilities_renamecourse.jsp?cid="+java.net.URLEncoder.encode(cid)+"\"></head></html>");
- return;
- }
- }
- else if ("delUsers".equals(action)) {
- String expiryDays = request.getParameter("expiryDays");
- int days =-1;
- try { days = Integer.parseInt(expiryDays); } catch (Exception e) {}
- if (days > 0) {
- int count = UserProfile.deleteExpiredUserProfiles(ilsSession, days);
- statusMsg = "Deleted " + Integer.toString(count) + " users inactive more than "+days+" days.";
- settingsProperties.setProperty("lastInactiveUserExpiryDays", Integer.toString(days));
- settingsProperties.store(new FileOutputStream(session.getServletContext().getRealPath("/WEB-INF/classes/settings.properties")), "Last updated by "+user.getUserProfileNum());
-
- eventsLogger.info(statusMsg + " by user: " + ilsSession.getCurrentUserProfile().getUserProfileNum());
- }
- else {
- validError = "Please enter a valid number of days.";
- }
- }
- else if ("revokeExpCourses".equals(action)) {
- boolean emailNotice = "on".equals(Utils.getSysConfig(session).getProperty("EmailEnableAssignedRetakes", "off"));
- int count = CourseAttempt.revokeAllExpired(ilsSession.getCompanyID(), session.getServletContext(), emailNotice);
- statusMsg = "Assigned " + Integer.toString(count) + " Recurrent Courses.";
- eventsLogger.info(statusMsg + " by user: " + ilsSession.getCurrentUserProfile().getUserProfileNum());
- }
-
-
- String lastInactiveUserExpiryDays = settingsProperties.getProperty("lastInactiveUserExpiryDays", "180");
- String currentAutoAssignRetakes = sysConfigProperties.getProperty("AutoAssignRetakes", "");
-
- String autoAssignRetakes = request.getParameter("autoAssignRetakes");
-
- if ("Save".equals(action)) {
- boolean saveSysconfig = false;
- if (autoAssignRetakes == null) { autoAssignRetakes = "off"; }
- if (!autoAssignRetakes.equals(currentAutoAssignRetakes)) {
- saveSysconfig = true;
- sysConfigProperties.setProperty("AutoAssignRetakes", autoAssignRetakes);
- currentAutoAssignRetakes = autoAssignRetakes;
- }
- if (saveSysconfig) {
- sysConfigProperties.store(new FileOutputStream(sysConfigFile), "Last updated by "+user.getUserProfileNum());
- session.setAttribute("sysconfig."+ilsSession.getCompanyID(), null);
- }
- }
-
- File dir = new File(session.getServletContext().getRealPath("courses/"));
-
- String []courses = dir.list(new FilenameFilter() {
- public boolean accept(File f, String name) {
- return ((new File(f.getAbsolutePath() + "/" + name).isDirectory()) && (!name.startsWith(".")));
- }
- });
-
-
-%>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
- <head>
- <title><%= ilsSession.getCurrentCompany().getCompanyName() %> eLearning Portal</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
- <script type="text/javascript" src="crosswire.js"></script>
- <link href="lms_style.css" rel="stylesheet" type="text/css">
- <style type="text/css">
- <!--
- a:link {
- text-decoration: none;
- }
- a:visited {
- text-decoration: none;
- }
- a:hover {
- text-decoration: underline;
- }
- a:active {
- text-decoration: none;
- }
- -->
- </style>
- <script type="text/javascript" language="JavaScript">
- <!--
-function confirmSubmit(form, boxid) {
- box=document.getElementById(boxid);
- choice = box.options[box.selectedIndex].value;
- if (choice == 'Delete') {
- if (confirm("Are you sure?")) {
- form.submit();
- }
- }
- else {
- form.submit();
- }
-}
-
-
-function confirmRevoke() {
- if (confirm("Running this routine will assign recurrent training to all applicable users. Are you sure?")) {
- document.getElementById("sysMaintAction").value = 'revokeExpCourses';
- document.sysmaint.submit();
- }
-}
-
-
-days = 0;
-function confirmDeleteUsers(boxid) {
- box = document.getElementById(boxid);
- days = box.value;
- if (confirm("Completely delete all records and accounts for users inactive more than "+days+" days?")) {
- inputBox('This is irreversible. If you are absolutely sure, type "YES" in the box below. <br/><br/>Count of users to be deleted: ', 1, 3, 1, 'reallyDeleteUsers', 'wouldbeDeletes', days);
- }
-}
-
-function reallyDeleteUsers(resultObject) {
- confirmText = resultObject.value;
-
- if (confirmText == 'YES' || confirmText == 'yes') {
- document.getElementById("sysMaintAction").value = 'delUsers';
- document.sysmaint.submit();
- }
- else alert('Action canceled');
-}
-
-// -->
- </script>
- </head>
-
- <body>
- <%@ include file="header.jsp" %>
- <div id="pageContainer">
- <%@ include file="menu.jsp" %>
- <div id="content">
- <div id="pageTitles">Utilities<br />
- <span class="instructiontxt"><%= statusMsg %></span>
- <span class="instructiontxt"><%= validError %></span>
-
- </div>
-
- <p> </p>
-
- <form name="sysmaint" method="post" action="admin_utilities_managecourses.jsp">
- <input type="hidden" id="sysMaintAction" name="action" value=""/>
-
- <table cellpadding="0" cellspacing="0" class="tableMain">
- <tr>
- <th>System Maintenance</th>
- </tr>
- <tr>
- <td>
- <table class="tableBTN">
- <tr>
- <td class="tableBTN_td1">
- <table>
- <tr>
-<!-- <td><img border="0" src="images/cancelicon_btn.gif" width="24" height="24" alt="Delete"/></td> -->
- <td>Delete Inactive Users Older Than </td>
- </tr>
- </table>
- </td>
- <td class="tableBTN_td1">
- <input id="expiryDays" name="expiryDays" size="5" value="<%= lastInactiveUserExpiryDays %>"/> (in days)
- </td>
- <td>
- <table>
- <tr>
- <td><a href="#" onClick="confirmDeleteUsers('expiryDays'); return false;"><img border="0" src="images/run_btn.gif" width="51" height="24" alt="Perform Action"/></a></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td>
- <table class="tableBTN">
- <tr>
- <td class="tableBTN_td1">
- <table>
- <tr>
-<!-- <td><img border="0" src="images/cancelicon_btn.gif" width="24" height="24" alt="Revoke"/></td> -->
- <td>Recurrent Training: <input name="autoAssignRetakes" onclick="document.getElementById('sysMaintAction').value='Save';document.sysmaint.submit();" type="checkbox" value="on" <%="on".equals(currentAutoAssignRetakes)?"checked=\"checked\"":""%> />Automatically Assign Daily To All Applicable Users</td>
- </tr>
- </table>
- </td>
- <td>
- <table>
- <tr>
- <td><a href="#" onClick="confirmRevoke(); return false;"><img border="0" src="images/run_btn.gif" width="51" height="24" alt="Perform Action"/></a></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
-
- </form>
-
- <p> </p>
-
- <form name="resource" method="post" action="admin_utilities_managecourses.jsp">
-
-
- <table cellpadding="0" cellspacing="0" class="tableMain">
- <tr>
- <th>Course File Management</th>
- </tr>
- <tr>
- <td>
- <table class="tableBTN">
- <tr>
- <td class="tableBTN_td1">
- <table>
- <tr>
- <td><a href="admin_utilities_addthirdparty.jsp"><img border="0" src="images/Add.gif" width="24" height="24" alt="Add"/></a></td>
- <td><a href="admin_utilities_addthirdparty.jsp" class="formButtons">Add Third Party Course </a></td>
- </tr>
- </table>
- </td>
- <td class="tableBTN_td1">
- <table>
- <tr>
- <td><a href="admin_utilities_addecourse.jsp"><img border="0" src="images/Add.gif" width="24" height="24" alt="Add"/></a></td>
- <td><a href="admin_utilities_addecourse.jsp" class="formButtons">Add eXpress course </a></td>
- </tr>
- </table>
- </td>
- <td class="tableBTN_td1">
- <select id="action2" name="action">
- <option>Choose Action</option>
- <option value="Delete" <%="Delete".equals(action)?"selected=\"true\"":""%>>Delete</option>
- <option value="Rename" <%="Rename".equals(action)?"selected=\"true\"":""%>>Rename</option>
- </select>
- </td>
- <td>
- <table>
- <tr>
- <td><a href="#" onClick="confirmSubmit(document.resource, 'action2'); return false;"><img border="0" src="images/performaction_btn.gif" width="24" height="24" alt="Perform Action"/></a></td>
- <td><a href="#" class="formButtons" onClick="confirmSubmit(document.resource, 'action2'); return false;">Perform Action</a></td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td>
- <table class="tableDataList">
- <tr>
- <th width="4%"><input type="checkbox" name="cba2" onClick="checkAll('resck', this.checked);"/></th>
- <th width="96%"><a href="admin_systemmanagement.jsp?sort=rfname">iLS course Directory </a></th>
- </tr>
- <%
- for (int i = 0; i < courses.length; i++) {
- /*
- File rf = new File(session.getServletContext().getRealPath(path));
- String fName = rf.getName();
- String fSize = Integer.toString((int)rf.length() / 1000) + "kb";
- */
- %>
- <tr>
- <td><input type="checkbox" id="resck<%=i%>" name="cid" value="<%=courses[i]%>"/></td>
- <td><%=courses[i]%></td>
- </tr>
- <%
- }
- %>
- </table>
- </td>
-
- </tr>
- </table>
-
- </form>
- <p> </p>
-
-
- </div>
+
+ if ("Delete".equals(action)) {
+ String []cids = request.getParameterValues("cid");
+ if (cids != null) {
+ for (int i = 0; i < cids.length; i++) {
+ File dir = new File(session.getServletContext().getRealPath("courses"), cids[i]);
+ if (dir.exists()) {
+ org.apache.commons.io.FileUtils.deleteDirectory(dir);
+ statusMsg = "Courses have been successfully deleted.";
+ }
+ }
+ }
+ }
+ else if ("Rename".equals(action)) {
+ String cid = request.getParameter("cid");
+ if (cid != null) {
+ out.print("<html><head><META HTTP-EQUIV=\"Refresh\" CONTENT=\"0;URL=admin_utilities_renamecourse.jsp?cid="+java.net.URLEncoder.encode(cid)+"\"></head></html>");
+ return;
+ }
+ }
+ else if ("delUsers".equals(action)) {
+ String expiryDays = request.getParameter("expiryDays");
+ int days =-1;
+ try { days = Integer.parseInt(expiryDays); } catch (Exception e) {}
+ if (days > 0) {
+ int count = UserProfile.deleteExpiredUserProfiles(ilsSession, days);
+ statusMsg = "Deleted " + Integer.toString(count) + " users inactive more than "+days+" days.";
+ settingsProperties.setProperty("lastInactiveUserExpiryDays", Integer.toString(days));
+ settingsProperties.store(new FileOutputStream(session.getServletContext().getRealPath("/WEB-INF/classes/settings.properties")), "Last updated by "+user.getUserProfileNum());
+
+ eventsLogger.info(statusMsg + " by user: " + ilsSession.getCurrentUserProfile().getUserProfileNum());
+ }
+ else {
+ validError = "Please enter a valid number of days.";
+ }
+ }
+ else if ("revokeExpCourses".equals(action)) {
+ boolean emailNotice = "on".equals(Utils.getSysConfig(session).getProperty("EmailEnableAssignedRetakes", "off"));
+ int count = CourseAttempt.revokeAllExpired(ilsSession.getCompanyID(), session.getServletContext(), emailNotice);
+ statusMsg = "Assigned " + Integer.toString(count) + " Recurrent Courses.";
+ eventsLogger.info(statusMsg + " by user: " + ilsSession.getCurrentUserProfile().getUserProfileNum());
+ }
+
+
+ String lastInactiveUserExpiryDays = settingsProperties.getProperty("lastInactiveUserExpiryDays", "180");
+ String currentAutoAssignRetakes = sysConfigProperties.getProperty("AutoAssignRetakes", "");
+
+ String autoAssignRetakes = request.getParameter("autoAssignRetakes");
+
+ if ("Save".equals(action)) {
+ boolean saveSysconfig = false;
+ if (autoAssignRetakes == null) { autoAssignRetakes = "off"; }
+ if (!autoAssignRetakes.equals(currentAutoAssignRetakes)) {
+ saveSysconfig = true;
+ sysConfigProperties.setProperty("AutoAssignRetakes", autoAssignRetakes);
+ currentAutoAssignRetakes = autoAssignRetakes;
+ }
+ if (saveSysconfig) {
+ sysConfigProperties.store(new FileOutputStream(sysConfigFile), "Last updated by "+user.getUserProfileNum());
+ session.setAttribute("sysconfig."+ilsSession.getCompanyID(), null);
+ }
+ }
+
+ File dir = new File(session.getServletContext().getRealPath("courses/"));
+
+ String []courses = dir.list(new FilenameFilter() {
+ public boolean accept(File f, String name) {
+ return ((new File(f.getAbsolutePath() + "/" + name).isDirectory()) && (!name.startsWith(".")));
+ }
+ });
+
+
+%>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+<head>
+ <title><%= ilsSession.getCurrentCompany().getCompanyName() %> eLearning Portal</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+ <script type="text/javascript" src="crosswire.js"></script>
+ <link href="lms_style.css" rel="stylesheet" type="text/css">
+ <style type="text/css">
+ <!--
+ a:link {
+ text-decoration: none;
+ }
+ a:visited {
+ text-decoration: none;
+ }
+ a:hover {
+ text-decoration: underline;
+ }
+ a:active {
+ text-decoration: none;
+ }
+ -->
+ </style>
+ <script type="text/javascript" language="JavaScript">
+ <!--
+function confirmSubmit(form, boxid) {
+ box=document.getElementById(boxid);
+ choice = box.options[box.selectedIndex].value;
+ if (choice == 'Delete') {
+ if (confirm("Are you sure?")) {
+ form.submit();
+ }
+ }
+ else {
+ form.submit();
+ }
+}
+
+
+function confirmRevoke() {
+ if (confirm("Running this routine will assign recurrent training to all applicable users. Are you sure?")) {
+ document.getElementById("sysMaintAction").value = 'revokeExpCourses';
+ document.sysmaint.submit();
+ }
+}
+
+
+days = 0;
+function confirmDeleteUsers(boxid) {
+ box = document.getElementById(boxid);
+ days = box.value;
+ if (confirm("Completely delete all records and accounts for users inactive more than "+days+" days?")) {
+ inputBox('This is irreversible. If you are absolutely sure, type "YES" in the box below. <br/><br/>Count of users to be deleted: ', 1, 3, 1, 'reallyDeleteUsers', 'wouldbeDeletes', days);
+ }
+}
+
+function reallyDeleteUsers(resultObject) {
+ confirmText = resultObject.value;
+
+ if (confirmText == 'YES' || confirmText == 'yes') {
+ document.getElementById("sysMaintAction").value = 'delUsers';
+ document.sysmaint.submit();
+ }
+ else alert('Action canceled');
+}
+
+// -->
+ </script>
+</head>
+
+<body>
+ <%@ include file="header.jsp" %>
+ <div id="pageContainer">
+ <%@ include file="menu.jsp" %>
+ <div id="content">
+ <div id="pageTitles">Utilities<br />
+ <span class="instructiontxt"><%= statusMsg %></span>
+ <span class="instructiontxt"><%= validError %></span>
+
+ </div>
+
+ <p> </p>
+
+ <form name="sysmaint" method="post" action="admin_utilities_managecourses.jsp">
+ <input type="hidden" id="sysMaintAction" name="action" value=""/>
+
+ <table cellpadding="0" cellspacing="0" class="tableMain">
+ <tr>
+ <th>System Maintenance</th>
+ </tr>
+ <tr>
+ <td>
+ <table class="tableBTN">
+ <tr>
+ <td class="tableBTN_td1">
+ <table>
+ <tr>
+<!-- <td><img border="0" src="images/cancelicon_btn.gif" width="24" height="24" alt="Delete"/></td> -->
+ <td>Delete Inactive Users Older Than </td>
+ </tr>
+ </table>
+ </td>
+ <td class="tableBTN_td1">
+ <input id="expiryDays" name="expiryDays" size="5" value="<%= lastInactiveUserExpiryDays %>"/> (in days)
+ </td>
+ <td>
+ <table>
+ <tr>
+ <td><a href="#" onClick="confirmDeleteUsers('expiryDays'); return false;"><img border="0" src="images/run_btn.gif" width="51" height="24" alt="Perform Action"/></a></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <table class="tableBTN">
+ <tr>
+ <td class="tableBTN_td1">
+ <table>
+ <tr>
+<!-- <td><img border="0" src="images/cancelicon_btn.gif" width="24" height="24" alt="Revoke"/></td> -->
+ <td>Recurrent Training: <input name="autoAssignRetakes" onclick="document.getElementById('sysMaintAction').value='Save';document.sysmaint.submit();" type="checkbox" value="on" <%="on".equals(currentAutoAssignRetakes)?"checked=\"checked\"":""%> />Automatically Assign Daily To All Applicable Users</td>
+ </tr>
+ </table>
+ </td>
+ <td>
+ <table>
+ <tr>
+ <td><a href="#" onClick="confirmRevoke(); return false;"><img border="0" src="images/run_btn.gif" width="51" height="24" alt="Perform Action"/></a></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+
+ </form>
+
+ <p> </p>
+
+ <form name="resource" method="post" action="admin_utilities_managecourses.jsp">
+
+
+ <table cellpadding="0" cellspacing="0" class="tableMain">
+ <tr>
+ <th>Course File Management</th>
+ </tr>
+ <tr>
+ <td>
+ <table class="tableBTN">
+ <tr>
+ <td class="tableBTN_td1">
+ <table>
+ <tr>
+ <td><a href="admin_utilities_addthirdparty.jsp"><img border="0" src="images/Add.gif" width="24" height="24" alt="Add"/></a></td>
+ <td><a href="admin_utilities_addthirdparty.jsp" class="formButtons">Add Third Party Course </a></td>
+ </tr>
+ </table>
+ </td>
+ <td class="tableBTN_td1">
+ <table>
+ <tr>
+ <td><a href="admin_utilities_addecourse.jsp"><img border="0" src="images/Add.gif" width="24" height="24" alt="Add"/></a></td>
+ <td><a href="admin_utilities_addecourse.jsp" class="formButtons">Add eXpress course </a></td>
+ </tr>
+ </table>
+ </td>
+ <td class="tableBTN_td1">
+ <select id="action2" name="action">
+ <option>Choose Action</option>
+ <option value="Delete" <%="Delete".equals(action)?"selected=\"true\"":""%>>Delete</option>
+ <option value="Rename" <%="Rename".equals(action)?"selected=\"true\"":""%>>Rename</option>
+ </select>
+ </td>
+ <td>
+ <table>
+ <tr>
+ <td><a href="#" onClick="confirmSubmit(document.resource, 'action2'); return false;"><img border="0" src="images/performaction_btn.gif" width="24" height="24" alt="Perform Action"/></a></td>
+ <td><a href="#" class="formButtons" onClick="confirmSubmit(document.resource, 'action2'); return false;">Perform Action</a></td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <table class="tableDataList">
+ <tr>
+ <th width="4%"><input type="checkbox" name="cba2" onClick="checkAll('resck', this.checked);"/></th>
+ <th width="96%"><a href="admin_systemmanagement.jsp?sort=rfname">iLS course Directory </a></th>
+ </tr>
+<%
+ for (int i = 0; i < courses.length; i++) {
+ /*
+ File rf = new File(session.getServletContext().getRealPath(path));
+ String fName = rf.getName();
+ String fSize = Integer.toString((int)rf.length() / 1000) + "kb";
+ */
+%>
+ <tr>
+ <td><input type="checkbox" id="resck<%=i%>" name="cid" value="<%=courses[i]%>"/></td>
+ <td><%=courses[i]%></td>
+ </tr>
+<%
+ }
+%>
+ </table>
+ </td>
+
+ </tr>
+ </table>
+
+ </form>
+ <p> </p>
+
+
+ </div>
<%@ include file="footer.jsp" %>
- </div>
-
- </body>
-</html>
+ </div>
+
+</body>
+</html>
More information about the Ils-source
mailing list