<commit_before><%--
 * UniTime 3.1 (University Timetabling Application)
 * Copyright (C) 2008, UniTime LLC
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
--%>
<%@ page language="java" autoFlush="true" errorPage="../error.jsp" %>
<%@ page import="org.unitime.timetable.util.Constants" %>
<%@ page import="org.unitime.timetable.model.DepartmentalInstructor" %>
<%@ page import="org.unitime.timetable.form.ClassInstructorAssignmentForm" %>
<%@ page import="org.unitime.commons.web.Web" %>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tld/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/tld/timetable.tld" prefix="tt" %>
<tiles:importAttribute />

<% 
	String frmName = "classInstructorAssignmentForm";
	ClassInstructorAssignmentForm frm = (ClassInstructorAssignmentForm)request.getAttribute(frmName);
	String crsNbr = "";
	if (session.getAttribute(Constants.CRS_NBR_ATTR_NAME)!=null )
		crsNbr = session.getAttribute(Constants.CRS_NBR_ATTR_NAME).toString();
%>

<html:form action="/classInstructorAssignment">
<html:hidden name="<%=frmName%>" property="instrOffrConfigId"/>
<html:hidden property="instrOfferingId"/>	
<INPUT type="hidden" name="deletedInstrRowNum" value = "">
<INPUT type="hidden" name="addInstructorId" value = "">
<INPUT type="hidden" name="hdnOp" value = "">

	<TABLE width="93%" border="0" cellspacing="0" cellpadding="3">
		<TR>
			<TD colspan="2" valign="middle">
				 <tt:section-header>
					<tt:section-title>
							<A  title="Back to Instructional Offering List (Alt+I)" 
								accesskey="I"
								class="l7" 
								href="instructionalOfferingShowSearch.do?doit=Search&subjectAreaId=<bean:write name="<%=frmName%>" property="subjectAreaId" />&courseNbr=<%=crsNbr%>#A<bean:write name="<%=frmName%>" property="instrOfferingId" />"
							><bean:write name="<%=frmName%>" property="instrOfferingName" /></A>
					</tt:section-title>						

				<html:submit property="op"
					styleClass="btn" titleKey="title.unassignAll"><commit_msg>Added dialog to confirm the user wants to unassign all instructors for a course offering when the user clicks the "Unassign All" button.  It the user does not wish to see confirmation dialogs this dialog is not displayed.  -- Changes provided by <NAME>.<commit_after><%--
 * UniTime 3.1 (University Timetabling Application)
 * Copyright (C) 2008-2009, UniTime LLC
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
--%>
<%@ page language="java" autoFlush="true" errorPage="../error.jsp" %>
<%@ page import="org.unitime.timetable.util.Constants" %>
<%@ page import="org.unitime.timetable.model.DepartmentalInstructor" %>
<%@ page import="org.unitime.timetable.form.ClassInstructorAssignmentForm" %>
<%@ page import="org.unitime.commons.web.Web" %>
<%@ page import="org.unitime.timetable.webutil.JavascriptFunctions" %>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tld/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/tld/timetable.tld" prefix="tt" %>
<tiles:importAttribute />

<% 
	String frmName = "classInstructorAssignmentForm";
	ClassInstructorAssignmentForm frm = (ClassInstructorAssignmentForm)request.getAttribute(frmName);
	String crsNbr = "";
	if (session.getAttribute(Constants.CRS_NBR_ATTR_NAME)!=null )
		crsNbr = session.getAttribute(Constants.CRS_NBR_ATTR_NAME).toString();
%>

<html:form action="/classInstructorAssignment">
<html:hidden name="<%=frmName%>" property="instrOffrConfigId"/>
<html:hidden property="instrOfferingId"/>	
<INPUT type="hidden" name="deletedInstrRowNum" value = "">
<INPUT type="hidden" name="addInstructorId" value = "">
<INPUT type="hidden" name="hdnOp" value = "">

<SCRIPT language="javascript">
	<!--
		<%= JavascriptFunctions.getJsConfirm(Web.getUser(session)) %>
		
		function confirmUnassignAll() {
			if (jsConfirm!=null && !jsConfirm)
				return true;

			if (!confirm('Do you really want to unassign all instructors?')) {
				return false;
			}

			return true;
		}

	// -->
</SCRIPT>

	<TABLE width="93%" border="0" cellspacing="0" cellpadding="3">
		<TR>
			<TD colspan="2" valign="middle">
				 <tt:section-header>
					<tt:section-title>
							<A  title="Back to Instructional Offering List (Alt+I)" 
								accesskey="I"
								class="l7" 
								href="instructionalOfferingShowSearch.do?doit=Search&subjectAreaId=<bean:write name="<%=frmName%>" property="subjectAreaId" />&courseNbr=<%=crsNbr%>#A<bean:write name="<%=frmName%>" property="instrOfferingId" />"
							><bean:write name="<%=frmName%>" property="instrOfferingName" /></A>
					</tt:section-title>						

				<html:submit property="op"
					onclick="return confirmUnassignAll();"
					styleClass="btn" titleKey="title.unassignAll">
{'fraction_non_alphanumeric': 0.1500789889415482, 'fraction_numerical': 0.008530805687203791, 'mean_word_length': 4.950187969924812, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 81, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3391248', 'n_tokens_mistral': 2277, 'n_tokens_neox': 1986, 'n_words': 504}