121 |
while ($row=& $res->fetchRow(DB_FETCHMODE_ASSOC)) { |
while ($row=& $res->fetchRow(DB_FETCHMODE_ASSOC)) { |
122 |
$name = $row['service_categorie'].'_'. |
$name = $row['service_categorie'].'_'. |
123 |
$row['service'].'_'. |
$row['service'].'_'. |
124 |
(($row['consultation_papier'] == '' || $row['consultation_papier'] == FALSE ) ? '0' : '1' ).'_'; |
(($row['consultation_papier'] == '' || $row['consultation_papier'] == 'f' ) ? '0' : '1' ).'_'; |
125 |
/*On change de thématique, donc rajoute le nom de la thématique*/ |
/*On change de thématique, donc rajoute le nom de la thématique*/ |
126 |
if ( $temp_ser_cat != $row['service_categorie'] ){ |
if ( $temp_ser_cat != $row['service_categorie'] ){ |
127 |
|
|
509 |
|
|
510 |
function changeDataLeftColumn(){ |
function changeDataLeftColumn(){ |
511 |
|
|
512 |
|
$('.list-sel-ser-them').empty(); |
513 |
|
$('.list-sel-ser-them').html( |
514 |
|
'<div class=\"row\">' + |
515 |
|
'<div class=\"cell1 liste_droite_title list-sel-ser-them-title\">Service a consulter</div>' + |
516 |
|
'<div class=\"cell2 liste_droite_title list-sel-ser-them-title\">Version papier</div>' + |
517 |
|
'</div>' |
518 |
|
); |
519 |
|
|
520 |
var listServ = new Array(); |
var listServ = new Array(); |
521 |
var data = ''; |
var data = ''; |
522 |
|
|
|
if ( $('.liste_droite_service').length == 0 ){ |
|
|
$('.list-sel-ser-them').empty(); |
|
|
$('.list-sel-ser-them').append(''+ |
|
|
'<div class=\'row\'>'+ |
|
|
'<div class=\'cell1 liste_droite_title list-sel-ser-them-title\'>"._('Service a consulter')."</div>'+ |
|
|
'<div class=\'cell2 liste_droite_title list-sel-ser-them-title\'>"._('Version papier')."</div>'+ |
|
|
'</div>') ; |
|
|
} |
|
|
|
|
523 |
$('.liste_gauche_service_selected').each( |
$('.liste_gauche_service_selected').each( |
524 |
function(i) { |
function(i) { |
525 |
|
|
526 |
var id = $(this).attr('id'); |
var id = $(this).attr('id'); |
|
data += ';' + id.split('_')[1] + '_' + id.split('_')[2] ; |
|
527 |
|
|
528 |
if ( !$(this).is(':visible') ) |
if ( $.inArray(id.split('_')[1], listServ) != -1 ) |
529 |
return; |
return; |
530 |
|
|
531 |
if ( listServ.length > 0 && listServ.indexOf(id.split('_')[1]) != -1 ) |
data += ';' + id.split('_')[1] + '_' + id.split('_')[2] ; |
|
return; |
|
532 |
listServ[i] = id.split('_')[1]; |
listServ[i] = id.split('_')[1]; |
533 |
|
|
|
|
|
534 |
$('.list-sel-ser-them').append( |
$('.list-sel-ser-them').append( |
535 |
'<div id=\'s' + i + '\' class=\'row liste_droite_service\'>'+ |
'<div id=\'s' + i + '\' class=\'row liste_droite_service\'>'+ |
536 |
'<div class=\'cell1\'>'+ |
'<div class=\'cell1\'>'+ |
552 |
|
|
553 |
} |
} |
554 |
); |
); |
|
|
|
555 |
changeActionVal(data); |
changeActionVal(data); |
556 |
} |
} |
557 |
</script>"; |
</script>"; |