<%@page import="com.capgemini.reports.database.manager.MngSchedulingReport"%>
<%@page import="com.capgemini.reports.database.manager.MngSchedulingCriteriaVal"%>
<%@page import="com.capgemini.reports.database.manager.MngCriteriaVal.CriteriaValue"%>
<%@page import="com.capgemini.reports.database.HibernateUtil"%>
<%@page import="com.capgemini.reports.database.javabean.DbCriteriaVal"%>
<%@page import="com.capgemini.reports.database.manager.MngCriteriaVal"%>
<%@page import="com.capgemini.framework.common.StringHelper"%>
<%@page import="com.capgemini.framework.common.SettingsHelper"%>
<%@page import="com.capgemini.framework.common.BeanHelper"%>
<%@page import="com.capgemini.framework.common.StringHelper"%>
<%@page import="com.capgemini.reports.database.manager.MngReport"%>
<%@page import="java.util.List"%>
<%! org.slf4j.Logger log = org.slf4j.LoggerFactory.getLogger("com.capgemini.report.scheduling_delete.jsp"); %>
<%
	// This is a pop-up content to check if the user REALLY wants to destroy a scheduling
    /* This part requests in the DB all the criteria relative to a report, whose uid is pass as URL parameter. */
    String theJsCriteriaArray = StringHelper.EMPTY;
	String theErrorMessage = StringHelper.EMPTY;
	String theReportId = request.getParameter("reportId");
	String curReportNumber = request.getParameter("activeReportCode");
	String planifName = request.getParameter("planif_name");

%>
<!DOCTYPE html>
<html>
<head>
	<!-- Disable client browser cache -->
	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
	<meta http-equiv="pragma" content="no-cache" />

	<!-- Load specific script in IE8 for JSON support -->
	<!--[if lt IE 9]>
	<script src="/kurt-web/js/json2.js" type="text/javascript"></script>
	<![endif]-->
		
	<title>Suppression</title>
	<link rel="stylesheet" href="/kurt-web/css/kurt-style-frame.css">
	<script src="/kurt-web/js/criteria.js"></script>
	<script src="/kurt-web/js/kurt-common-submit.js"></script>
	<script src="/kurt-web/js/schedulingReport.js"></script>
	<script src="/kurt-web/js/dialog_box.js"></script>
	<script>
		var reportId = <%= theReportId %> ;
		var activeReportCode ='<%= curReportNumber %>' ;
	</script>
</head>
<body>
	<center>
		<div align="center">
			<form class="form" id="reportSchedulingForm" method="post" onsubmit="return false;">  
				<!-- message -->
				<div id="div_message" style="text-align:center;" >
					Confirmez vous la suppression de la planification [ <%=planifName%>  ] ?
				</div>
				<!-- boutons -->				
				<div id="div_buttons" style="margin:auto;"> 
				<table id="id_table_buttons" align="center" >
					<tr>
						<td><button class="formButton" onclick="deleteCommand('<%=theReportId%>');">Oui</button></td>
						<td><button class="formButton" onclick="refreshSchedulingPage('<%=curReportNumber%>')">Non</button></td>
					</tr>
				</table>
			</form>
		</div>
	</center>
</body>
</html>