1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196
|
<%@ include file="/jsp/include/ce_header.jsp" %>
<bean:define id="RapportSommaireHoraire" name="RapportSommaireHoraire" type="form.rapport.sommaire.RapportSommaireHoraireSearchVOForm"/>
<bean:define id="listeReseauVoisin" name="RapportSommaireHoraire" property="listeReseauVoisin"/>
<script language="JavaScript">
var allowSubmit = true;
function afficherRapportPDFSommaireHoraire(type) {
if(!allowSubmit)return;
if(!sectionCheck()){
showMessage("Vous devez sélectionner au moins une section.");
return ;
}
var windowOptions = "width=791, height=612, status=no,location=no,menubar=no,resizable=yes,scrollbars=yes,toolbar=no,center=yes";
var param = "";
var separator = "&";
// Partie en ligne
param = "indRapportMesure=" + document.forms[0].indRapportMesure.value ;
param += separator + "indRapportProgramme=" + document.forms[0].indRapportProgramme.value;
param += separator + "indRapportInvolontaire=" + document.forms[0].indRapportInvolontaire.value;
param += separator + "indRapportInterconnexion=" + document.forms[0].indRapportInterconnexion.value ;
// partie PDF
if(document.forms[0].indRapportPDFMesure.checked){
param += separator + "indRapportPDFMesure=true" ;
}
if(document.forms[0].indRapportPDFProgramme.checked){
param += separator + "indRapportPDFProgramme=true" ;
}
if(document.forms[0].indRapportPDFInvolontaire.checked){
param += separator + "indRapportPDFInvolontaire=true" ;
}
if(document.forms[0].indRapportPDFInterconnexion.checked){
param += separator + "indRapportPDFInterconnexion=true" ;
}
<%=RapportSommaireHoraire.setTypeFormatRapport(%>=type<%=)%>
window.open("<%=ce_app_context%>/afficherRapportPDFSommaireHoraire.do?" + param, null, windowOptions);
document.forms[0].action = "<%=ce_app_context%>/returnToRapportSommaireHoraire.do";
allowSubmit = false;
document.forms[0].submit();
}
function sectionCheck(){
if(document.forms[0].indRapportPDFMesure.checked){
return true ;
}
if(document.forms[0].indRapportPDFProgramme.checked){
return true ;
}
if(document.forms[0].indRapportPDFInvolontaire.checked){
return true ;
}
if(document.forms[0].indRapportPDFInterconnexion.checked){
return true ;
}
return false;
}
function showMessage(obj){
var args = new Object();
args.message = obj;
windowOptions = "dialogHeight:10.0;dialogWidth:18.0;help=no;scroll=no;status=no;edge=raised;unadorned=no;center=yes";
window.showModalDialog('<%=ce_app_context%>/calendar/message_calendar.jsp',args, windowOptions);
}
function annulerRapportPDFSommaireHoraire() {
document.forms[0].action = "<%=ce_app_context%>/returnToRapportSommaireHoraire.do";
allowSubmit = false;
document.forms[0].submit();
}
</script>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="showMessages();">
<a name="top"></a>
<br>
<table width="980" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<%@ include file="/jsp/include/menu.jsp" %>
</td>
</tr>
<tr>
<td><img src="<%=ce_app_context%>/media/spacer.gif" width="40" height="40" alt=""></td>
</tr>
<tr>
<form name="form1" method="post" action="">
<html:hidden name="RapportSommaireHoraire" property="indRapportInvolontaire"/>
<html:hidden name="RapportSommaireHoraire" property="indRapportMesure"/>
<html:hidden name="RapportSommaireHoraire" property="indRapportProgramme"/>
<html:hidden name="RapportSommaireHoraire" property="indRapportInterconnexion"/>
<html:hidden styleId="test" name="RapportSommaireHoraire" property="typeFormatRapport" />
<td align="center">
<table border="0" cellspacing="0" cellpadding="2" bgcolor="#FF9900" align="center">
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="2" bgcolor="#FFFFFF">
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="1" align="center" bgcolor="#FF9900">
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="2" align="center">
<tr bgcolor="#FF9B00">
<td height="20" align="center"><b>Sommaire horaire</b></td>
</tr>
<tr>
<td nowrap height="22" colspan="7" bgcolor="#CCCCCC">
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="1">
<tr>
<td nowrap class="TxtBold">Réseau voisin :</td>
<td colspan="2">
<ce:table_item name="RapportSommaireHoraire" property="reseauVoisinId" collections="listeReseauVoisin" field="codeReseauVoisin"/>
</td>
</tr>
<tr>
<td nowrap class="TxtBold">Date désirée :</td>
<td colspan="2">
<bean:write name="RapportSommaireHoraire" property="dateDesiree"/>
</td>
</tr>
<tr>
<td nowrap class="TxtBold">Nombre de jours :</td>
<td colspan="2">
<bean:write name="RapportSommaireHoraire" property="nombreJourSelectionne"/>
</td>
</tr>
<tr>
<td nowrap class="TxtBold">Sections désirées :</td>
<td colspan="2">
<html:checkbox name="RapportSommaireHoraire" styleId="indRapportPDFMesure" property="indRapportPDFMesure" value="true" disabled="<%=!RapportSommaireHoraire.isIndRapportMesure()%>"/>
<label for="indRapportPDFMesure"> Échanges mesurés</label>
</td>
</tr>
<tr>
<td nowrap> </td>
<td colspan="2">
<html:checkbox name="RapportSommaireHoraire" styleId="indRapportPDFProgramme" property="indRapportPDFProgramme" value="true" disabled="<%=!RapportSommaireHoraire.isIndRapportProgramme()%>"/>
<label for="indRapportPDFProgramme"> Programmés rééls</label>
</td>
</tr>
<tr>
<td nowrap> </td>
<td colspan="2">
<html:checkbox name="RapportSommaireHoraire" styleId="indRapportPDFInvolontaire" property="indRapportPDFInvolontaire" value="true" disabled="<%=!RapportSommaireHoraire.isIndRapportInvolontaire()%>"/>
<label for="indRapportPDFInvolontaire"> Sommaire (involontaire)</label>
</td>
</tr>
<tr>
<td nowrap> </td>
<td colspan="2">
<html:checkbox name="RapportSommaireHoraire" styleId="indRapportPDFInterconnexion" property="indRapportPDFInterconnexion" value="true" disabled="<%=!RapportSommaireHoraire.isIndRapportInterconnexion() || RapportSommaireHoraire.isHavingInterconnexion()==false%>"/>
<label for="indRapportPDFInterconnexion"> Sommaire par interconnexion</label>
</td>
</tr>
</table>
</td>
</tr>
<tr align="center" bgcolor="#999999">
<td nowrap>
<a href="#" id="test" onclick="afficherRapportPDFSommaireHoraire('pdf')" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('b_afficher2','','<%=ce_app_context%>/media/btfnc_afficher_1.gif',1)"><img src="<%=ce_app_context%>/media/btfnc_afficher_0.gif" width="80" height="18" name="b_afficher2" border="0"></a>
<a href="#" id="test" onclick="afficherRapportPDFSommaireHoraire('csv')" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('b_afficher2','','<%=ce_app_context%>/media/btfnc_exporter_0.gif',1)"><img src="<%=ce_app_context%>/media/btfnc_exporter_0.gif" width="80" height="18" name="b_afficher2" border="0"></a>
<a href="#" onclick="annulerRapportPDFSommaireHoraire()" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('b_annuler','','<%=ce_app_context%>/media/btfnc_annuler_1.gif',1)"><img src="<%=ce_app_context%>/media/btfnc_annuler_0.gif" width="80" height="18" name="b_annuler" border="0"></a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</form>
</tr>
</table>
</body>
</html> |
Partager