85 |
$textIdsConsultations .= "&idxConsultations[]=$value"; |
$textIdsConsultations .= "&idxConsultations[]=$value"; |
86 |
|
|
87 |
echo " |
echo " |
88 |
<script> |
<script language='javascript' type='text/javascript'> |
89 |
$.download('../app/pdfetat.php','obj=$obj$textIdsConsultations', 'POST', $obj); |
$.download('../app/pdfetat.php','obj=$obj$textIdsConsultations', 'POST', $obj); |
90 |
</script> |
</script> |
91 |
"; |
"; |
92 |
} |
} |
93 |
/*Affichage du message d'information*/ |
/*Affichage du message d'information*/ |
94 |
$f->displayMessage("valid", count($donnees)._(' service(s) sélectionné(s) dont ').$nbConsPap._(' consultation(s) papier.')); |
$f->displayMessage("valid", count($donnees)._(' service(s) selectionne(s) dont ').$nbConsPap._(' consultation(s) papier.')); |
95 |
} |
} |
96 |
|
|
97 |
} |
} |
208 |
echo '<div class="bloc">'; |
echo '<div class="bloc">'; |
209 |
echo "<fieldset class='cadre ui-corner-all ui-widget-content'>\n"; |
echo "<fieldset class='cadre ui-corner-all ui-widget-content'>\n"; |
210 |
echo "\t<legend class='ui-corner-all ui-widget-content ui-state-active'>". |
echo "\t<legend class='ui-corner-all ui-widget-content ui-state-active'>". |
211 |
_("Consultation par thématique ")."</legend>"; |
_("Consultation par thematique ")."</legend>"; |
212 |
echo "<div class='fieldsetContent' style='width:100%'>"; |
echo "<div class='fieldsetContent' style='width:100%'>"; |
213 |
echo '<div class="field-ser-them field-type-hiddenstatic">'; |
echo '<div class="field-ser-them field-type-hiddenstatic">'; |
214 |
echo '<div class="form-libelle">'; |
echo '<div class="form-libelle">'; |
218 |
echo '</label>'; |
echo '</label>'; |
219 |
echo '</div>'; |
echo '</div>'; |
220 |
echo '<div class="form-content">'; |
echo '<div class="form-content">'; |
221 |
echo '<input id="dossier" class="champFormulaire" type="hidden" value="'.$idx.'" name="dossier">'; |
echo '<input id="dossier" class="champFormulaire" type="hidden" value="'.$idx.'" name="dossier"/>'; |
222 |
echo $idx; |
echo $idx; |
223 |
echo '</div>'; |
echo '</div>'; |
224 |
echo '</div>'; |
echo '</div>'; |
239 |
echo '</div>'; |
echo '</div>'; |
240 |
echo '<div class="list-sel-ser-them">'; |
echo '<div class="list-sel-ser-them">'; |
241 |
echo '<div class=\'row\'>'; |
echo '<div class=\'row\'>'; |
242 |
echo '<div class=\'cell1 liste_gauche_them\' id=\'list-sel-ser-them-title\'>'._('Service à consulter').'</div>'; |
echo '<div class=\'cell1 liste_gauche_them\' id=\'list-sel-ser-them-title\'>'._('Service a consulter').'</div>'; |
243 |
echo '<div class=\'cell2 liste_gauche_them\' id=\'list-sel-ser-them-title\'>'._('Version papier').'</div>'; |
echo '<div class=\'cell2 liste_gauche_them\' id=\'list-sel-ser-them-title\'>'._('Version papier').'</div>'; |
244 |
echo '</div>'; |
echo '</div>'; |
245 |
echo '</div>'; |
echo '</div>'; |
278 |
echo '</div>'; |
echo '</div>'; |
279 |
|
|
280 |
echo " |
echo " |
281 |
<script> |
<script language='javascript' type='text/javascript'> |
282 |
$(function(){ |
$(function(){ |
283 |
/* |
/* |
284 |
Sélectionne tous les services d'un thème au clique sur celui ci. |
Sélectionne tous les services d'un thème au clique sur celui ci. |
287 |
function(){ |
function(){ |
288 |
|
|
289 |
var id = $(this).attr('id').split('_')[1]; |
var id = $(this).attr('id').split('_')[1]; |
290 |
|
var numSer = 0; |
291 |
|
var numSerWithClass = 0; |
292 |
|
|
293 |
$('.list-ser-them div').each( |
$('.list-ser-them div').each( |
294 |
function() { |
function() { |
295 |
|
|
296 |
|
if ( $(this).attr('id').indexOf('them') == -1 && |
297 |
|
$(this).attr('id').indexOf(id) == 0 && |
298 |
|
$(this).hasClass('liste_gauche_service_selected') ) |
299 |
|
|
300 |
|
numSerWithClass++; |
301 |
|
|
302 |
if ( $(this).attr('id').indexOf('them') == -1 && |
if ( $(this).attr('id').indexOf('them') == -1 && |
303 |
$(this).attr('id').indexOf(id) == 0 ){ |
$(this).attr('id').indexOf(id) == 0 ) |
304 |
$(this).toggleClass('liste_gauche_service_selected'); |
|
305 |
} |
numSer++; |
306 |
} |
} |
307 |
); |
); |
308 |
|
|
309 |
|
if ( numSerWithClass < numSer && numSerWithClass >= 0 ){ |
310 |
|
|
311 |
|
$('.list-ser-them div').each( |
312 |
|
function() { |
313 |
|
|
314 |
|
if ( $(this).attr('id').indexOf('them') == -1 && |
315 |
|
$(this).attr('id').indexOf(id) == 0 && |
316 |
|
!$(this).hasClass('liste_gauche_service_selected') ) |
317 |
|
|
318 |
|
$(this).addClass('liste_gauche_service_selected'); |
319 |
|
} |
320 |
|
); |
321 |
|
} |
322 |
|
|
323 |
|
else { |
324 |
|
|
325 |
|
$('.list-ser-them div').each( |
326 |
|
function() { |
327 |
|
|
328 |
|
if ( $(this).attr('id').indexOf('them') == -1 && |
329 |
|
$(this).attr('id').indexOf(id) == 0 && |
330 |
|
$(this).hasClass('liste_gauche_service_selected') ) |
331 |
|
|
332 |
|
$(this).removeClass('liste_gauche_service_selected'); |
333 |
|
} |
334 |
|
); |
335 |
|
} |
336 |
} |
} |
337 |
); |
); |
338 |
|
|
350 |
*/ |
*/ |
351 |
$('.field-ser-them').on( |
$('.field-ser-them').on( |
352 |
'click', |
'click', |
353 |
'.liste_droite_service', |
'.cell1', |
354 |
function(){ |
function(){ |
355 |
$(this).toggleClass('liste_droite_service_selected'); |
$(this).parent().toggleClass('liste_droite_service_selected'); |
356 |
} |
} |
357 |
); |
); |
358 |
|
|
385 |
|
|
386 |
var id = $(this).attr('id'); |
var id = $(this).attr('id'); |
387 |
|
|
|
|
|
388 |
if ( listServ.length > 0 && listServ.indexOf(id.split('_')[1]) != -1 ) |
if ( listServ.length > 0 && listServ.indexOf(id.split('_')[1]) != -1 ) |
389 |
return; |
return; |
390 |
listServ[i] = id.split('_')[1]; |
listServ[i] = id.split('_')[1]; |
467 |
); |
); |
468 |
} |
} |
469 |
|
|
470 |
|
/* |
471 |
|
Change les actions qui sont réalisées lors de la soumission du formulaire |
472 |
|
*/ |
473 |
function changeActionVal(data){ |
function changeActionVal(data){ |
474 |
date = $('#date_envoi').val(); |
date = $('#date_envoi').val(); |
475 |
|
|
486 |
|
|
487 |
); |
); |
488 |
} |
} |
489 |
|
|
490 |
|
/* |
491 |
|
Change les actions qui sont réalisées lors de la soumission du formulaire |
492 |
|
*/ |
493 |
function changeOneData( oldData, newData) { |
function changeOneData( oldData, newData) { |
494 |
|
|
495 |
date = $('#date_envoi').val(); |
date = $('#date_envoi').val(); |
513 |
$('.list-sel-ser-them').empty(); |
$('.list-sel-ser-them').empty(); |
514 |
$('.list-sel-ser-them').append(''+ |
$('.list-sel-ser-them').append(''+ |
515 |
'<div class=\'row\'>'+ |
'<div class=\'row\'>'+ |
516 |
'<div class=\'cell1 liste_gauche_them\' id=\'list-sel-ser-them-title\'>"._('Service à consulter')."</div>'+ |
'<div class=\'cell1 liste_gauche_them\' id=\'list-sel-ser-them-title\'>"._('Service a consulter')."</div>'+ |
517 |
'<div class=\'cell2 liste_gauche_them\' id=\'list-sel-ser-them-title\'>"._('Version papier')."</div>'+ |
'<div class=\'cell2 liste_gauche_them\' id=\'list-sel-ser-them-title\'>"._('Version papier')."</div>'+ |
518 |
'</div>') ; |
'</div>') ; |
519 |
} |
} |