Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 469 Rev 474
Line 8... Line 8...
8
			<div class="imagettePlus"></div>Afficher la biblio
8
			<div class="imagettePlus"></div>Afficher la biblio
9
			<br />
9
			<br />
10
			<div class="imagetteMoins"></div>Masquer la biblio
10
			<div class="imagetteMoins"></div>Masquer la biblio
11
		</div>
11
		</div>
12
		<div style="padding:5px 10px; display:none" id="plieur">
12
		<div style="padding:5px 10px; display:none" id="plieur">
13
			<a href="javascript:deplierTout()">Tout déplier</a> | <a href="javascript:plierTout()">Tout plier</a>
13
			<a class="lien_tout_deplier" href="#">Tout déplier</a> | <a class="lien_tout_plier" href="#">Tout plier</a>
14
		</div>
14
		</div>
15
	</div>
15
	</div>
16
	<div class="onglet_marge_gauche">
16
	<div class="onglet_marge_gauche">
17
		<span class="nom retenu <?= ($nom_selectionne == $nom_retenu) ? 'surlignage' : '' ?>">
17
		<span class="nom retenu <?= ($nom_selectionne == $nom_retenu) ? 'surlignage' : '' ?>">
18
			<?= $nom_retenu_formate ?>
18
			<?= $nom_retenu_formate ?>
Line 79... Line 79...
79
			<a class="lien_metadonnees lien_popup" href="<?= $synonymes['meta']['url']; ?>">Voir toutes les metadonnées</a>
79
			<a class="lien_metadonnees lien_popup" href="<?= $synonymes['meta']['url']; ?>">Voir toutes les metadonnées</a>
80
		</span>
80
		</span>
81
	</div>
81
	</div>
Line 82... Line 82...
82
	
82
	
83
	<script type="text/Javascript">
-
 
84
	
-
 
85
		function plierTout() {
-
 
86
			$('.nom').children('.imagetteMoins').removeClass('imagetteMoins').addClass('imagettePlus');
-
 
87
			$('.plus').css('display', 'none');
-
 
88
		}
-
 
89
		
-
 
90
		function deplierTout() {
-
 
91
			$('.nom').children('.imagettePlus').removeClass('imagettePlus').addClass('imagetteMoins');
-
 
92
			$('.plus').css('display', 'inline');
-
 
93
		}
-
 
94
		
-
 
95
		$(document).ready(function () {
-
 
96
			
83
	<script type="text/Javascript">
97
			$('#plieur').show();
-
 
98
			if (typeof gestionBiblio != 'function') {
84
		$('#plieur').show();	
99
				gestionBiblio = function() {
-
 
100
				$('.nom').each(function () {
-
 
101
					
-
 
102
					html = $(this).html();
-
 
103
					posCrochetGauche = html.indexOf('[');
-
 
104
					if (posCrochetGauche > 0) {
-
 
105
						$(this).css('cursor', 'pointer');
-
 
106
						nom = html.substr(0, posCrochetGauche);
-
 
107
						biblio = html.substr(posCrochetGauche, html.length);
-
 
108
						$(this).html(nom);
-
 
109
						
-
 
110
						imagettePlus = document.createElement('div');
-
 
111
						$(imagettePlus).addClass('imagettePlus');
-
 
112
						$(this).prepend($(imagettePlus));
-
 
113
						
-
 
114
						plus = document.createElement('span');
-
 
115
						$(plus).addClass('plus');
-
 
116
						$(plus).html(biblio);
-
 
117
						$(plus).hide();
-
 
118
						
-
 
119
						$(this).click(function() {
-
 
120
							
-
 
121
							if (!$(this).children('.plus').is(':visible')) {
-
 
122
								$(this).children('.imagettePlus').removeClass('imagettePlus').addClass('imagetteMoins');
-
 
123
								$(this).children('.plus').css('display', 'inline');
-
 
124
							} else {
-
 
125
								$(this).children('.imagetteMoins').removeClass('imagetteMoins').addClass('imagettePlus');
-
 
126
								$(this).children('.plus').css('display', 'none');
-
 
127
							}
-
 
128
							
-
 
129
						});
-
 
130
							
-
 
131
						$(this).append($(plus));
-
 
132
						
-
 
133
					}
-
 
134
				});
-
 
135
			};
-
 
136
			}
-
 
137
			
-
 
138
			gestionBiblio();
-
 
139
		});
85
		gestionBiblio($('#nomenclature'));
140
	</script>
86
	</script>
141
</div>
87
</div>