<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ taglib uri="/WEB-INF/easi.tld" prefix="easi" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<tiles:useAttribute name="inprocess_confirm" />
<tiles:useAttribute name="cancel_url" />
<tiles:useAttribute name="block_menu" />
<%
response.setContentType("text/html;charset="+ea.easi.cpm.framework.utilities.TechnicalConst.ENCODING_DEFAULT);
//Deactivate ie cache
// not working
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 1);
//Pour accéder à l'application via un proxy TCP/IP, décocher simplement la case "proxy HTTP activé" dans la config du serveur TCP/IP
String webappHost = request.getHeader("Host");
if(webappHost == null) webappHost = request.getServerName()+":"+request.getServerPort();
String webappRoot = session.getAttribute("WEBAPP_ROOT").toString();
//String webappRoot = "http://"+webappHost+request.getContextPath()+"/";
String locale = org.apache.struts.util.RequestUtils.retrieveUserLocale(pageContext,null).toString();
String windowTitle = request.getParameter("windowTitle");
if(windowTitle == null) windowTitle = "EASI";
//Tester si on est dans un ecours
boolean isInProcess = ea.easi.cpm.webapp.common.inprocess.InProcessManager.getInstance(request,response).isInProcess();
%>
<script>
function desactivateToolsButton(){
var buttons=["menu_scheduledTask_search", "menu_contact_search"];
var btn;
for (i=0;i<buttons.length;i++){
btn=document.getElementById(buttons[i]);
btn.onclick = "return false;";
}
}
</script>
<html xmlns="
http://www.w3.org/1999/xhtml" xmlns:ie>
<head>
<meta http-equiv="content-type"
content="text/html;charset=<%=ea.easi.cpm.framework.utilities.TechnicalConst.ENCODING_DEFAULT%>">
<base id="base_link" href="<%=webappRoot%>" />
<title><%=windowTitle%></title>
<script src="web-components/common/string.js"></script>
<script src="web-components/common/httploader.js"></script>
<script src="JavascriptDate.do?<%=locale%>"></script>
<script src="web-components/common/node.js"></script>
<script src="web-components/common/form.js"></script>
<script src="web-components/validator/validator.js"></script>
<script src="web-components/validator/validator_<%=locale%>.js"></script>
<script src="web-components/messagepanel/js/message.js"></script>
<script src="web-components/seizureMass/managementTable.js"></script>
<script src="web-components/menu/menu_template_easi.js"></script>
<script src="web-components/menu/menu_easi.js"></script>
<script src="web-components/tree/js/dtree.js"></script>
<?import namespace="IE" implementation="<%=webappRoot%>web-components/messagepanel/htc/messagepanel.htc" ?>
<?import namespace="IE" implementation="<%=webappRoot%>web-components/panel/panel.htc" ?>
<?import namespace="IE" implementation="<%=webappRoot%>web-components/calendar/calendar.htc" ?>
<?import namespace="IE" implementation="<%=webappRoot%>web-components/picklist/picklist.htc" ?>
<?import namespace="IE" implementation="<%=webappRoot%>web-components/multiline/multiline.htc" ?>
<?import namespace="IE" implementation="<%=webappRoot%>web-components/massentry/massentry.htc" ?>
<?import namespace="IE" implementation="<%=webappRoot%>web-components/tree/tree.htc" ?>
<style>
.mask {
behavior: url(<%=webappRoot%>web-components/validator/validation.htc);
}
label {
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
white-space: nowrap;
}
</style>
<link href="theme/<bean:write name="css"/>" rel="stylesheet"
type="text/css" />
<link href="web-components/calendar/calendar.css" rel="stylesheet"
type="text/css" />
<link href="web-components/tree/style/dtree.css" rel="stylesheet"
type="text/css" />
<script>
//Begin : Disabling right button
/*
function mouseDown(e) {
if (parseInt(navigator.appVersion)>3) {
var clickType=event.button;
if (clickType!=1 && clickType!=4) {
alert ("<bean:message key='right_button_disabled'/>");
return false;
}
}
return true;
}
if (parseInt(navigator.appVersion)>3) {
document.onmousedown = mouseDown;
}
*/
//End : Disabling right button
// Begin : Disabling backspace keyboard
function disablingKeyBoard(){
if (typeof window.event != 'undefined'){
document.onkeydown = function(){
//Disabling F11 key
if(event.keyCode == 122){
event.keyCode = 0;
return false;
}
//Disabling F5 key
if(event.keyCode == 116){
event.keyCode = 0;
return false;
}
if ((event.srcElement.tagName.toUpperCase() != 'INPUT')
&& (event.srcElement.tagName.toUpperCase() != 'TEXTAREA')){
return (event.keyCode != 8);
}
}
}else{
document.onkeypress = function(e){
if(e.keyCode == 122){
return false;
}
if(e.keyCode == 116){
return false;
}
if ((e.target.nodeName.toUpperCase() != 'INPUT')
&&(e.target.nodeName.toUpperCase() != 'TEXTAREA')){
return (e.keyCode != 8);
}
}
}
//disabling euro symbol
document.onkeypress = function(){
var key = String.fromCharCode(event.keyCode);
if(key=='€'){
event.srcElement.value+="Euro";
event.returnValue = false;
}
}
}
// End : Disabling backspace keyborad
var errorImg='<img src="images/picto_error.gif" height="18" align="center"/>';
var infosImg='<img src="images/picto_infos.gif" height="20" align="center"/>';
</script>
</head>
<body scroll="no" onFocus="pageFocus();"
onload="executeOnLoadMethods();" onUnload="executeOnUnloadMethods();">
<fieldset id="frozenPane"
style="filter: alpha(opacity=0); position: absolute; top: 0px; left: 0px; width: 2000px; height: 1000px; z-index: 1000; background: gray; border: none; cursor: wait"
onblur="if(frozenPane.style.display != 'none') focus()"></fieldset>
<IE:PANNEAU_MESSAGES id="messages">
<div id="messages_div"
style="position: absolute; top: 10px; left: 10px; width: 500px; height: 100px; visibility: hidden; overflow-x: hidden; background: white; z-index: 106"
class="BLOC_FONCTIONNEL_1 CADRE_5">
<table id="messages_title" width="100%" border="0" cellpadding="0"
cellspacing="0">
<tr class="TITRE_BLOC_1">
<td><bean:message key='message_panel_title' /></td>
<td width="20px"><img id="messages_close"
src="images/fermer_fenetre.gif" width="15" height="15" /></td>
</tr>
</table>
<table style="width: 500px" border="0" cellspacing="0" cellpadding="0">
<tr class="TITRE_BLOC_2">
<td class="TD_LISTE_GAUCHE"><bean:message
key='message_panel_header_level' /></td>
<td class="TD_LISTE"><bean:message key='message_panel_header_message' /></td>
</tr>
<tr style="height: 1px">
<td class="TD_LISTE_GAUCHE"><img src="images/px.gif" width="50" height="1" /></td>
<td class="TD_LISTE"><img src="images/px.gif" width="429" height="1" /></td>
</tr>
</table>
<div
style="width: 500px; height: 73px; overflow-y: auto; overflow-x: auto">
<table id="messages_table" border="0" cellspacing="0" cellpadding="0">
<tr style="height: 1px">
<td class="TD_LISTE_GAUCHE"><img src="images/px.gif" width="50"
height="1" /></td>
<td class="TD_LISTE"><img src="images/px.gif" width="413" height="1" /></td>
</tr>
</table>
</div>
</div>
</IE:PANNEAU_MESSAGES>
<script>
var validator = new validator(messages);
var inprocess_confirm_flag = <%=inprocess_confirm%>;
var inprocess_confirm_msg = "<bean:message key='inprocess_menu_confirm'/>";
var inprocess_cancel_url = "<%=cancel_url%>";
var inprocess_block_menu = <%=block_menu%>;
//Blocage du menu quand on est dans un encours
var inprocess_click_msg = "";
if(inprocess_block_menu==0){
inprocess_block_menu = <%=isInProcess?1:0%>;
if(inprocess_block_menu==1){
inprocess_click_msg = "<bean:message key='inprocess_click_msg'/>";
}
}
// popup //
var popup;
var popupArgs;
function initPopup(title,width,height){
document.title = title;
var x = (window.screen.availWidth-width)/2;
var y = (window.screen.availHeight-height)/2;
window.focus();
window.resizeTo(width, height);
window.moveTo(x,y);
}
function launchPopup(url,title,top,left,height,width,args){
if(url.indexOf("http")!=0 && url.charAt(0) != "/") url = base_link.href+url;
if(!top) top = 5000;
if(!left) left = 5000;
if(title) {
if(url.indexOf('?') == -1){
url += '?windowTitle='+escape(title);
} else {
url += '&windowTitle='+escape(title);
}
}
popupArgs = args;
popup = self.open(url,'_blank',"menubar=no,scrollbars=no,status=no,toolbar=no,titlebar=no,height="+height+",width="+width+",top="+top+",left="+left);
}
function closePopup(){
self.close();
}
function getPopupArguments(){
return opener.popupArgs;
}
function pageFocus(){
if(popup) {
if(popup.closed) {
popup = null;
} else {
popup.focus();
}
}
}
//plus nécessaire
function flushPopup(){
}
/// on load methods ///
var onLoadMethods = new Array();
function addOnLoadMethod(p_method){
this.onLoadMethods.push(p_method);
}
function executeOnLoadMethods(){
var l_onLoadMethodsLength = onLoadMethods.length;
for(var i = 0;i<l_onLoadMethodsLength;i++)
eval(onLoadMethods[i]);
}
/// on unload methods ///
var onUnloadMethods = new Array();
function addOnUnloadMethod(p_method){
this.onUnloadMethods.push(p_method);
}
function executeOnUnloadMethods(){
var l_onUnloadMethodsLength = onUnloadMethods.length;
for(var i = 0;i<l_onUnloadMethodsLength;i++)
eval(onUnloadMethods[i]);
}