12 |
(isset($_GET['idx']) ? $idx = $_GET['idx'] : $idx = ""); |
(isset($_GET['idx']) ? $idx = $_GET['idx'] : $idx = ""); |
13 |
// Nom de l'objet metier |
// Nom de l'objet metier |
14 |
(isset($_GET['obj']) ? $obj = $_GET['obj'] : $obj = ""); |
(isset($_GET['obj']) ? $obj = $_GET['obj'] : $obj = ""); |
15 |
|
//formulaire retour |
16 |
|
(isset($_GET['ret']) ? $retourformulaire = $_GET['ret'] : $retourformulaire = ""); |
17 |
(isset($_GET['date_envoi']) ? $date_envoi = $_GET['date_envoi'] : $date_envoi = ""); |
(isset($_GET['date_envoi']) ? $date_envoi = $_GET['date_envoi'] : $date_envoi = ""); |
18 |
|
|
19 |
$f = new utils("nohtml"); |
$f = new utils("nohtml"); |
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 |
} |
} |
102 |
ser_cat.service_categorie, ser_cat.libelle AS them_lib, |
ser_cat.service_categorie, ser_cat.libelle AS them_lib, |
103 |
ser.service, ser.libelle AS ser_lib, ser.consultation_papier |
ser.service, ser.libelle AS ser_lib, ser.consultation_papier |
104 |
FROM |
FROM |
105 |
public.lien_service_service_categorie lie, |
".DB_PREFIXE."lien_service_service_categorie lie, |
106 |
public.service_categorie ser_cat, |
".DB_PREFIXE."service_categorie ser_cat, |
107 |
public.service ser |
".DB_PREFIXE."service ser |
108 |
WHERE |
WHERE |
109 |
ser_cat.service_categorie = lie.service_categorie AND |
ser_cat.service_categorie = lie.service_categorie AND |
110 |
ser.service = lie.service AND |
ser.service = lie.service AND |
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 |
|
|
131 |
$row['them_lib']. |
$row['them_lib']. |
132 |
'</div> |
'</div> |
133 |
<div |
<div |
134 |
class="liste_gauche_service '.$name.'" |
class="liste_gauche_service t'.$name.'" |
135 |
id="'.$name.'" > |
id="t'.$name.'" > |
136 |
'.$row['ser_lib'].' |
'.$row['ser_lib'].' |
137 |
<input id="'.$name.'" type="checkbox" '.(($row['consultation_papier'] == '' || $row['consultation_papier'] == FALSE ) ? '' : 'checked' ).'/> |
<input class="t'.$name.'" type="checkbox" '.(($row['consultation_papier'] == '' || $row['consultation_papier'] == 'f' ) ? '' : 'checked="checked"' ).'/> |
138 |
</div> |
</div> |
139 |
'; |
'; |
140 |
} |
} |
144 |
|
|
145 |
$liste_gauche .= ' |
$liste_gauche .= ' |
146 |
<div |
<div |
147 |
class="liste_gauche_service '.$name.'" |
class="liste_gauche_service t'.$name.'" |
148 |
id="'.$name.'" > |
id="t'.$name.'" > |
149 |
'.$row['ser_lib'].' |
'.$row['ser_lib'].' |
150 |
<input id="'.$name.'" type="checkbox" '.(($row['consultation_papier'] == '' || $row['consultation_papier'] == FALSE ) ? '' : 'checked' ).'/> |
<input class="t'.$name.'" type="checkbox" '.(($row['consultation_papier'] == '' || $row['consultation_papier'] == 'f' ) ? '' : 'checked="checked"' ).'/> |
151 |
</div> |
</div> |
152 |
'; |
'; |
153 |
} |
} |
157 |
/*Requête qui récupère les services qui ne sont pas dans une thématique*/ |
/*Requête qui récupère les services qui ne sont pas dans une thématique*/ |
158 |
$sql = |
$sql = |
159 |
"SELECT service, libelle, consultation_papier |
"SELECT service, libelle, consultation_papier |
160 |
FROM public.service |
FROM ".DB_PREFIXE."service |
161 |
WHERE service NOT IN |
WHERE service NOT IN |
162 |
( |
( |
163 |
SELECT service |
SELECT service |
164 |
FROM lien_service_service_categorie |
FROM ".DB_PREFIXE."lien_service_service_categorie |
165 |
) |
) |
166 |
AND |
AND |
167 |
( |
( |
172 |
|
|
173 |
$res = $f->db->query($sql); |
$res = $f->db->query($sql); |
174 |
$f->isDatabaseError($res); |
$f->isDatabaseError($res); |
175 |
|
|
176 |
if ( $res->numrows() > 0 ) |
if ( $res->numrows() > 0 ) |
177 |
$liste_gauche .= ' |
$liste_gauche .= ' |
178 |
<div id="them_0" class="liste_gauche_them">Autres</div>'; |
<div id="them_0" class="liste_gauche_them">Autres</div>'; |
179 |
|
|
180 |
while ($row=& $res->fetchRow(DB_FETCHMODE_ASSOC)) { |
while ($row=& $res->fetchRow(DB_FETCHMODE_ASSOC)) { |
181 |
|
|
182 |
/*Ajout de tous les services qui n'ont pas de thématique*/ |
/*Ajout de tous les services qui n'ont pas de thématique*/ |
183 |
$name = '0_'. |
$name = '0_'. |
184 |
$row['service'].'_'. |
$row['service'].'_'. |
185 |
(($row['consultation_papier'] == '' || $row['consultation_papier'] == FALSE ) ? '0' : '1' ).'_'; |
(($row['consultation_papier'] == '' || $row['consultation_papier'] == 'f' ) ? '0' : '1' ).'_'; |
186 |
$liste_gauche .= ' |
$liste_gauche .= ' |
187 |
<div |
<div |
188 |
class="liste_gauche_service '.$name.'" |
class="liste_gauche_service t'.$name.'" |
189 |
id="'.$name.'" > |
id="t'.$name.'" > |
190 |
'.$row['libelle'].' |
'.$row['libelle'].' |
191 |
<input id="'.$name.'" type="checkbox" '.(($row['consultation_papier'] == '' || $row['consultation_papier'] == FALSE ) ? '' : 'checked' ).'/> |
<input class="t'.$name.'" type="checkbox" '.(($row['consultation_papier'] == '' || $row['consultation_papier'] == 'f' ) ? '' : 'checked="checked"' ).'/> |
192 |
</div> |
</div> |
193 |
'; |
'; |
194 |
} |
} |
205 |
echo '<form onsubmit="ajaxIt(\'consultation\', \'../app/consultation_multiple.php\');return false;" |
echo '<form onsubmit="ajaxIt(\'consultation\', \'../app/consultation_multiple.php\');return false;" |
206 |
method="get" action="" name="f2" id="form_val">'; |
method="get" action="" name="f2" id="form_val">'; |
207 |
echo '<div class="formEntete ui-corner-all">'; |
echo '<div class="formEntete ui-corner-all">'; |
208 |
echo "<div id='form-content'>"; |
echo "<div>"; |
209 |
echo '<div class="bloc">'; |
echo '<div class="bloc">'; |
210 |
echo "<fieldset class='cadre ui-corner-all ui-widget-content'>\n"; |
echo "<fieldset class='cadre ui-corner-all ui-widget-content'>\n"; |
211 |
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'>". |
212 |
_("Consultation par thématique ")."</legend>"; |
_("Consultation par thematique ")."</legend>"; |
213 |
echo "<div class='fieldsetContent' style='width:100%'>"; |
echo "<div class='fieldsetContent' style='width:100%'>"; |
214 |
echo '<div class="field-ser-them field-type-hiddenstatic">'; |
echo '<div class="field-ser-them field-type-hiddenstatic">'; |
215 |
echo '<div class="form-libelle">'; |
echo '<div class="form-libelle">'; |
219 |
echo '</label>'; |
echo '</label>'; |
220 |
echo '</div>'; |
echo '</div>'; |
221 |
echo '<div class="form-content">'; |
echo '<div class="form-content">'; |
222 |
echo '<input id="dossier" class="champFormulaire" type="hidden" value="'.$idx.'" name="dossier">'; |
echo '<input class="champFormulaire" type="hidden" value="'.$idx.'" name="dossier"/>'; |
223 |
echo $idx; |
echo $idx; |
224 |
echo '</div>'; |
echo '</div>'; |
225 |
echo '</div>'; |
echo '</div>'; |
239 |
echo '</ul>'; |
echo '</ul>'; |
240 |
echo '</div>'; |
echo '</div>'; |
241 |
echo '<div class="list-sel-ser-them">'; |
echo '<div class="list-sel-ser-them">'; |
242 |
|
echo '<div class=\'row\'>'; |
243 |
|
echo '<div class=\'cell1 liste_droite_title list-sel-ser-them-title\'>'._('Service a consulter').'</div>'; |
244 |
|
echo '<div class=\'cell2 liste_droite_title list-sel-ser-them-title\'>'._('Version papier').'</div>'; |
245 |
|
echo '</div>'; |
246 |
echo '</div>'; |
echo '</div>'; |
247 |
echo '</div>'; |
echo '</div>'; |
248 |
/* -- FIN --*/ |
/* -- FIN --*/ |
267 |
echo '</div>'; |
echo '</div>'; |
268 |
echo '<div class="formControls">'; |
echo '<div class="formControls">'; |
269 |
echo '<input class="om-button ui-button ui-widget ui-state-default ui-corner-all" |
echo '<input class="om-button ui-button ui-widget ui-state-default ui-corner-all" |
270 |
type="button" onclick="ajaxIt(\'consultation\', \'../app/consultation_multiple.php\');" |
type="button" onclick="if ( $(\'.liste_gauche_service_selected\').length > 0 && $(\'#date_envoi\').val() != \'\' ) { ajaxIt(\'consultation\', \'../app/consultation_multiple.php\'); } else alert(\'Veuillez choisir au moins un service et une date d envoi\');" |
271 |
value="Ajouter le(s) enregistrement(s) de la table : \'Consultation\'" |
value="Ajouter le(s) enregistrement(s) de la table : \'Consultation\'" |
272 |
role="button" aria-disabled="false" id="button_val">'; |
id="button_val">'; |
273 |
echo '<a class="retour" onclick="ajaxIt(\'consultation\', \'../scr/soustab.php?obj=consultation&retourformulaire=PC&idxformulaire=PC12R0001&premier=0&tricol=\');" |
echo '<a class="retour" onclick="ajaxIt(\'consultation\', \'../scr/soustab.php?obj='.$obj.'&retourformulaire='.$retourformulaire.'&idxformulaire='.$idx.'&premier=0&tricol=\');" |
274 |
href="#">'; |
href="#">'; |
275 |
echo 'Retour'; |
echo 'Retour'; |
276 |
echo '</a>'; |
echo '</a>'; |
279 |
echo '</div>'; |
echo '</div>'; |
280 |
|
|
281 |
echo " |
echo " |
282 |
<script> |
<script language='javascript' type='text/javascript'> |
283 |
$(function(){ |
$(function(){ |
284 |
|
|
285 |
/* |
/* |
286 |
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 |
*/ |
*/ |
289 |
function(){ |
function(){ |
290 |
|
|
291 |
var id = $(this).attr('id').split('_')[1]; |
var id = $(this).attr('id').split('_')[1]; |
292 |
|
var numSer = 0; |
293 |
|
var numSerWithClass = 0; |
294 |
|
|
295 |
$('.list-ser-them div').each( |
$('.list-ser-them div').each( |
296 |
function() { |
function() { |
297 |
|
|
298 |
|
if ( $(this).attr('id').indexOf('them') == -1 && |
299 |
|
$(this).attr('id').indexOf(id) == 1 && |
300 |
|
$(this).hasClass('liste_gauche_service_selected') ) |
301 |
|
|
302 |
|
numSerWithClass++; |
303 |
|
|
304 |
if ( $(this).attr('id').indexOf('them') == -1 && |
if ( $(this).attr('id').indexOf('them') == -1 && |
305 |
$(this).attr('id').indexOf(id) == 0 ){ |
$(this).attr('id').indexOf(id) == 1 ) |
306 |
$(this).toggleClass('liste_gauche_service_selected'); |
|
307 |
} |
numSer++; |
308 |
} |
} |
309 |
); |
); |
310 |
|
|
311 |
|
if ( numSerWithClass < numSer && numSerWithClass >= 0 ){ |
312 |
|
|
313 |
|
$('.list-ser-them div').each( |
314 |
|
function() { |
315 |
|
|
316 |
|
if ( $(this).attr('id').indexOf('them') == -1 && |
317 |
|
$(this).attr('id').indexOf(id) == 1 && |
318 |
|
!$(this).hasClass('liste_gauche_service_selected') ) |
319 |
|
|
320 |
|
$(this).addClass('liste_gauche_service_selected'); |
321 |
|
} |
322 |
|
); |
323 |
|
} |
324 |
|
|
325 |
|
else { |
326 |
|
|
327 |
|
$('.list-ser-them div').each( |
328 |
|
function() { |
329 |
|
|
330 |
|
if ( $(this).attr('id').indexOf('them') == -1 && |
331 |
|
$(this).attr('id').indexOf(id) == 1 && |
332 |
|
$(this).hasClass('liste_gauche_service_selected') ) |
333 |
|
|
334 |
|
$(this).removeClass('liste_gauche_service_selected'); |
335 |
|
} |
336 |
|
); |
337 |
|
} |
338 |
} |
} |
339 |
); |
); |
340 |
|
|
352 |
*/ |
*/ |
353 |
$('.field-ser-them').on( |
$('.field-ser-them').on( |
354 |
'click', |
'click', |
355 |
'.liste_droite_service', |
'.cell1', |
356 |
function(){ |
function(){ |
357 |
$(this).toggleClass('liste_droite_service_selected'); |
if ( !$(this).hasClass('liste_droite_title') ) |
358 |
|
$(this).parent().toggleClass('liste_droite_service_selected'); |
359 |
} |
} |
360 |
); |
); |
361 |
|
|
364 |
'input[type=checkbox]', |
'input[type=checkbox]', |
365 |
function(){ |
function(){ |
366 |
|
|
367 |
old_id = $(this).attr('id'); |
old_id = $(this).attr('class'); |
368 |
|
|
369 |
tab_don = old_id.split('_'); |
tab_don = old_id.split('_'); |
370 |
|
|
371 |
new_id = tab_don[0] + '_' + tab_don[1] + '_' + ((tab_don[2] == 0 ) ? 1 : 0 ) + '_'; |
new_id = tab_don[0] + '_' + tab_don[1] + '_' + ((tab_don[2] == 0 ) ? 1 : 0 ) + '_'; |
372 |
|
|
373 |
changeOneData( ';' + tab_don[1] + '_' + tab_don[2], ';' + tab_don[1] + '_' + ((tab_don[2] == 0) ? 1 : 0) ); |
changeOneData( ';' + tab_don[1] + '_' + tab_don[2], ';' + tab_don[1] + '_' + ((tab_don[2] == 0) ? 1 : 0) ); |
374 |
$('div[name=\"' + $(this).attr('class') + '\"]').attr('id', new_id); |
$('div[class=\"' + old_id + '\"]').attr('class', new_id); |
375 |
$(this).attr('id', new_id); |
$(this).attr('class', new_id); |
376 |
|
|
377 |
} |
} |
378 |
); |
); |
386 |
$('.liste_gauche_service_selected').each( |
$('.liste_gauche_service_selected').each( |
387 |
function(i) { |
function(i) { |
388 |
|
|
389 |
var id = $(this).attr('id'); |
var name = $(this).attr('name'); |
390 |
|
|
391 |
|
if ( listServ.length > 0 && listServ.indexOf(name.split('_')[1]) != -1 ) |
|
if ( listServ.length > 0 && listServ.indexOf(id.split('_')[1]) != -1 ) |
|
392 |
return; |
return; |
393 |
listServ[i] = id.split('_')[1]; |
listServ[i] = name.split('_')[1]; |
394 |
data += ';' + id.split('_')[1] + '_' + id.split('_')[2] ; |
data += ';' + name.split('_')[1] + '_' + name.split('_')[2] ; |
395 |
|
|
396 |
} |
} |
397 |
); |
); |
421 |
$('.liste_droite_service_selected').each( |
$('.liste_droite_service_selected').each( |
422 |
function() { |
function() { |
423 |
|
|
424 |
var id = $('#'+ $(this).attr('id') + ' .cell1 div').attr('id'); |
var name = $('#'+ $(this).attr('id') + ' .cell1 div').attr('name'); |
425 |
|
|
426 |
manageListServ('.list-ser-them div', id, 1); |
manageListServ('.list-ser-them div', name, 1); |
427 |
data += ';' + id.split('_')[1] + '_' + id.split('_')[2] ; |
data += ';' + name.split('_')[1] + '_' + name.split('_')[2] ; |
428 |
|
|
429 |
$(this).remove(); |
$(this).remove(); |
430 |
} |
} |
446 |
/* |
/* |
447 |
Affiche ou cache un élément qui n'est pas une thématique et dont son identifiant correspond. |
Affiche ou cache un élément qui n'est pas une thématique et dont son identifiant correspond. |
448 |
*/ |
*/ |
449 |
function manageListServ( objet ,id, type){ |
function manageListServ( objet , name, type){ |
450 |
|
|
451 |
$(objet).each( |
$(objet).each( |
452 |
function() { |
function() { |
453 |
|
|
454 |
if ( isNotthemIsOneServ(this, id) ){ |
if ( isNotthemIsOneServ(this, name) ){ |
455 |
if ( type == 0 ) |
if ( type == 0 ) |
456 |
|
|
457 |
$(this).hide() ; |
$(this).hide() ; |
470 |
); |
); |
471 |
} |
} |
472 |
|
|
473 |
|
/* |
474 |
|
Change les actions qui sont réalisées lors de la soumission du formulaire |
475 |
|
*/ |
476 |
function changeActionVal(data){ |
function changeActionVal(data){ |
477 |
date = $('#date_envoi').val(); |
date = $('#date_envoi').val(); |
478 |
|
|
479 |
$('#form_val').attr( |
$('#form_val').attr( |
480 |
'onsubmit', |
'onsubmit', |
481 |
'if ( $(\'.liste_gauche_service_selected\').length > 0 && $(\'#date_envoi\').val() != \'\' ) { messageIt(\'consultation\', \'../app/consultation_multiple.php?obj=$obj&data='+data+'&idx=$idx&date_envoi='+date+'\',true);return false;' + |
'if ( $(\'.liste_gauche_service_selected\').length > 0 && $(\'#date_envoi\').val() != \'\' ) { messageIt(\'consultation\', \'../app/consultation_multiple.php?obj=$obj&data='+data+'&idx=$idx&date_envoi='+date+'\',true);return false;' + |
482 |
'messageIt(\'consultation\', \'../scr/soustab.php?obj=consultation&retourformulaire=PC&idxformulaire=PC12R0001&premier=0&tricol=\',false);} else alert(\'Veuillez choisir une service et une date d envoi\');' |
'messageIt(\'consultation\', \'../scr/soustab.php?obj=$obj&retourformulaire=$retourformulaire&idxformulaire=$idx&premier=0&tricol=\',false);} else alert(\'Veuillez choisir au moins un service et une date d envoi\');' |
483 |
|
|
484 |
); |
); |
485 |
$('#button_val').attr( |
$('#button_val').attr( |
486 |
'onclick', |
'onclick', |
487 |
'if ( $(\'.liste_gauche_service_selected\').length > 0 && $(\'#date_envoi\').val() != \'\' ) { messageIt(\'consultation\', \'../app/consultation_multiple.php?obj=$obj&data='+data+'&idx=$idx&date_envoi='+date+'\',true);' + |
'if ( $(\'.liste_gauche_service_selected\').length > 0 && $(\'#date_envoi\').val() != \'\' ) { messageIt(\'consultation\', \'../app/consultation_multiple.php?obj=$obj&data='+data+'&idx=$idx&date_envoi='+date+'\',true);' + |
488 |
'messageIt(\'consultation\', \'../scr/soustab.php?obj=consultation&retourformulaire=PC&idxformulaire=PC12R0001&premier=0&tricol=\',false);} else alert(\'Veuillez choisir une service et une date d envoi\');' |
'messageIt(\'consultation\', \'../scr/soustab.php?obj=$obj&retourformulaire=$retourformulaire&idxformulaire=$idx&premier=0&tricol=\',false);} else alert(\'Veuillez choisir au moins un service et une date d envoi\');' |
489 |
|
|
490 |
); |
); |
491 |
} |
} |
492 |
|
|
493 |
|
/* |
494 |
|
Change les actions qui sont réalisées lors de la soumission du formulaire |
495 |
|
*/ |
496 |
function changeOneData( oldData, newData) { |
function changeOneData( oldData, newData) { |
497 |
|
|
498 |
date = $('#date_envoi').val(); |
date = $('#date_envoi').val(); |
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\' id=\'list-sel-ser-them-title\'>"._('Service à consulter')."</div>'+ |
|
|
'<div class=\'cell2\' id=\'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 |
|
|
|
if ( !$(this).is(':visible') ) |
|
|
return; |
|
|
|
|
526 |
var id = $(this).attr('id'); |
var id = $(this).attr('id'); |
527 |
|
|
528 |
if ( listServ.length > 0 && listServ.indexOf(id.split('_')[1]) != -1 ) |
if ( $.inArray(id.split('_')[1], listServ) != -1 ) |
529 |
return; |
return; |
530 |
listServ[i] = id.split('_')[1]; |
|
531 |
data += ';' + id.split('_')[1] + '_' + id.split('_')[2] ; |
data += ';' + id.split('_')[1] + '_' + id.split('_')[2] ; |
532 |
|
listServ[i] = id.split('_')[1]; |
533 |
|
|
534 |
$('.list-sel-ser-them').append( |
$('.list-sel-ser-them').append( |
535 |
'<div class=\'row liste_droite_service\' id=\'' + i + '\'>'+ |
'<div id=\'s' + i + '\' class=\'row liste_droite_service\'>'+ |
536 |
'<div class=\'cell1\'>'+ |
'<div class=\'cell1\'>'+ |
537 |
'<div name=\'' + $(this).attr('id') + '\' id=\'' + $(this).attr('id') + '\'>'+ |
'<div class=\'' + $(this).attr('id') + '\' name=\'' + $(this).attr('id') + '\'>'+ |
538 |
$(this).html().split('<')[0]+ |
$(this).html().split('<')[0]+ |
539 |
'</div>'+ |
'</div>'+ |
540 |
'</div>' + |
'</div>' + |
552 |
|
|
553 |
} |
} |
554 |
); |
); |
|
|
|
555 |
changeActionVal(data); |
changeActionVal(data); |
556 |
} |
} |
557 |
</script>"; |
</script>"; |