Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 250 | Rev 577 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 250 Rev 404
Line 1... Line 1...
1
<!-- DEBUT FORM_NIVEAU -->
1
<!-- DEBUT FORM_NIVEAU -->
2
<script type="text/javascript">
2
<script type="text/javascript">
-
 
3
	function gestionBiblio() {
-
 
4
		$('.nom').each(function () {
-
 
5
			if ($(this).children('.plus').length == 0) {
-
 
6
				html = $(this).html();
-
 
7
				posCrochetGauche = html.indexOf('[');
-
 
8
				if (posCrochetGauche > 0) {
-
 
9
					$(this).css('cursor', 'pointer');
-
 
10
					nom = html.substr(0, posCrochetGauche);
-
 
11
					biblio = html.substr(posCrochetGauche, html.length);
-
 
12
					$(this).html(nom);
-
 
13
					
-
 
14
					imagettePlus = document.createElement('div');
-
 
15
					$(imagettePlus).addClass('imagettePlus');
-
 
16
					$(this).prepend($(imagettePlus));
-
 
17
					
-
 
18
					plus = document.createElement('span');
-
 
19
					$(plus).addClass('plus');
-
 
20
					$(plus).html(biblio);
-
 
21
					$(plus).hide();
-
 
22
					
-
 
23
					$(this).click(function() {
-
 
24
						
-
 
25
						if (!$(this).children('.plus').is(':visible')) {
-
 
26
							$(this).children('.imagettePlus').removeClass('imagettePlus').addClass('imagetteMoins');
-
 
27
							$(this).children('.plus').css('display', 'inline');
-
 
28
						} else {
-
 
29
							$(this).children('.imagetteMoins').removeClass('imagetteMoins').addClass('imagettePlus');
-
 
30
							$(this).children('.plus').css('display', 'none');
-
 
31
						}
-
 
32
						
-
 
33
					});
-
 
34
						
-
 
35
					$(this).append($(plus));
-
 
36
					
-
 
37
				}
-
 
38
			}
-
 
39
		});
-
 
40
	}
-
 
41
 
3
	$(document).ready(function() {
42
	$(document).ready(function() {
4
		$( "#radio" ).buttonset();
43
		$( "#radio" ).buttonset();
5
		$('#eflore_niveau_submit').hide();
44
		$('#eflore_niveau_submit').hide();
6
		$(".zone-choix-niveau input").click(function() {
45
		$(".zone-choix-niveau input").click(function() {
7
			$('#eflore_niveau_submit').click();
46
			$('#eflore_niveau_submit').click();
8
		});
47
		});
-
 
48
		
-
 
49
		gestionBiblio();
9
	});
50
	});
10
</script>
51
</script>
11
<form id="ef-form-niveau" name="ef-form-niveau" action="<?=$url_form;?>" method="get">
52
<form id="ef-form-niveau" name="ef-form-niveau" action="<?=$url_form;?>" method="get">
12
	<fieldset>
53
	<fieldset>
13
		<span id="radio" class="zone-choix-niveau">
54
		<span id="radio" class="zone-choix-niveau">