Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Rev 250 | Rev 577 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 250 Rev 404
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">
14
			
55
			
15
			<span class="choix-niveau">
56
			<span class="choix-niveau">
16
				<input id="niveau_1" name="niveau" value="1" type="radio" <?=($niveau == '1') ? 'checked="checked"': '';?> />
57
				<input id="niveau_1" name="niveau" value="1" type="radio" <?=($niveau == '1') ? 'checked="checked"': '';?> />
17
				<label for="niveau_1"><?=$i18n['niveau-1'];?></label>
58
				<label for="niveau_1"><?=$i18n['niveau-1'];?></label>
18
			</span>
59
			</span>
19
			<span class="choix-niveau">
60
			<span class="choix-niveau">
20
				<input id="niveau_2" name="niveau" value="2" type="radio" <?=($niveau == '2') ? 'checked="checked"': '';?> />
61
				<input id="niveau_2" name="niveau" value="2" type="radio" <?=($niveau == '2') ? 'checked="checked"': '';?> />
21
				<label for="niveau_2"><?=$i18n['niveau-2'];?></label>
62
				<label for="niveau_2"><?=$i18n['niveau-2'];?></label>
22
			</span>
63
			</span>
23
			<span class="choix-niveau">
64
			<span class="choix-niveau">
24
				<input id="niveau_3" name="niveau" value="3" type="radio" <?=($niveau == '3') ? 'checked="checked"': '';?> />
65
				<input id="niveau_3" name="niveau" value="3" type="radio" <?=($niveau == '3') ? 'checked="checked"': '';?> />
25
				<label for="niveau_3"><?=$i18n['niveau-3'];?></label>
66
				<label for="niveau_3"><?=$i18n['niveau-3'];?></label>
26
			</span>
67
			</span>
27
		</span>
68
		</span>
28
		<span id="zone-liens-niveau">
69
		<span id="zone-liens-niveau">
29
			<?php foreach ($parametres as $nom => $valeur) : ?>
70
			<?php foreach ($parametres as $nom => $valeur) : ?>
30
				<input id="eflore_niveau_<?=$nom;?>" name="<?=$nom;?>" type="hidden" value="<?=$valeur;?>" />
71
				<input id="eflore_niveau_<?=$nom;?>" name="<?=$nom;?>" type="hidden" value="<?=$valeur;?>" />
31
			<?php endforeach; ?>
72
			<?php endforeach; ?>
32
			<input id="eflore_niveau_submit" name="submit" type="submit" value="<?=$i18n['ok'];?>" class="ok"/>
73
			<input id="eflore_niveau_submit" name="submit" type="submit" value="<?=$i18n['ok'];?>" class="ok"/>
33
		</span>
74
		</span>
34
	</fieldset>
75
	</fieldset>
35
</form>
76
</form>
36
 
77
 
37
 
78
 
38
 
79
 
39
<!-- FIN FORM_NOM -->
80
<!-- FIN FORM_NOM -->