Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 556 Rev 572
Line 8... Line 8...
8
	<div id="observations">
8
	<div id="observations">
9
		<h2><?=count($observations)?> observations pour <?=(isset($commune) ? $commune : '?')?></h2>
9
		<h2><?=count($observations)?> observations pour <?=(isset($commune) ? $commune : '?')?></h2>
10
		<ol>
10
		<ol>
11
			<? foreach ($observations as $obs) : ?>
11
			<? foreach ($observations as $obs) : ?>
12
			<li>
12
			<li>
-
 
13
				<div>
13
				<? if (isset($images[$obs['id']])) : ?>
14
					<? if (isset($images[$obs['id']])) : ?>
14
					<? foreach ($images[$obs['id']] as $num => $urls) : ?>
15
						<? foreach ($images[$obs['id']] as $num => $urls) : ?>
15
				<div<?=($num == 0) ? '': ' style="display:none;"'?>>
16
					<div<?=($num == 0) ? ' class="cel-img-principale"': ' class="cel-img-secondaire"'?>>
16
					<a class="cel-img" href="<?=$urls['L']?>" rel="cel-obs-<?=$obs['id']?>">
17
						<a class="cel-img" href="<?=$urls['L']?>" rel="cel-obs-<?=$obs['id']?>">
17
						<img src="<?=$urls['S']?>" alt="Image #<?=$urls['id']?> de l'osbervation #<?=$obs['id']?>" style="float:right;height:75px;"/>
18
							<img src="<?=$urls['S']?>" alt="Image #<?=$urls['id']?> de l'osbervation #<?=$obs['id']?>" />
18
					</a>
19
						</a>
-
 
20
					</div>
-
 
21
						<? endforeach ?>
-
 
22
					<? endif ?>
-
 
23
					<dl>
-
 
24
						<dt class="champ_nom_latin">Nom</dt>
-
 
25
						<dd>&nbsp;
-
 
26
						<? if (isset($obs['nn'])) : ?>
-
 
27
							<a href="http://www.tela-botanica.org/nn<?=$obs['nn']?>" onclick="window.open(this.href); arreter(event); return false; "><?=$obs['nom']?></a>
-
 
28
						<? else : ?>
-
 
29
							<?=$obs['nom']?>
-
 
30
						<? endif; ?>
-
 
31
						</dd>
-
 
32
						<dt>Lieu</dt><dd>&nbsp;<?=$obs['lieu']?></dd>
-
 
33
						<dt>PubliƩ par</dt><dd>&nbsp;<?=$obs['observateur']?></dd>
-
 
34
						<dt>Le</dt><dd>&nbsp;<?=$obs['date']?></dd>
-
 
35
					</dl>
-
 
36
					<hr class="nettoyage"/>
19
				</div>
37
				</div>
20
					<? endforeach ?>
-
 
21
				<? endif ?>
-
 
22
				<dl>
-
 
23
					<dt class="champ_nom_latin">Nom</dt>
-
 
24
					<dd>&nbsp;
-
 
25
					<? if (isset($obs['nn'])) : ?>
-
 
26
						<a href="http://www.tela-botanica.org/nn<?=$obs['nn']?>" onclick="window.open(this.href); arreter(event); return false; "><?=$obs['nom']?></a>
-
 
27
					<? else : ?>
-
 
28
						<?=$obs['nom']?>
-
 
29
					<? endif; ?>
-
 
30
					</dd>
-
 
31
					<dt>Lieu</dt><dd>&nbsp;<?=$obs['lieu']?></dd>
-
 
32
					<dt>PubliƩ par</dt><dd>&nbsp;<?=$obs['observateur']?></dd>
-
 
33
					<dt>Le</dt><dd>&nbsp;<?=$obs['date']?></dd>
-
 
34
				</dl>
-
 
35
			</li>
38
			</li>
36
			<? endforeach; ?>
39
			<? endforeach; ?>
37
		</ol>
40
		</ol>
38
		<? include(dirname(__FILE__).'/obs_msg_info.tpl.html') ?>
41
		<? include(dirname(__FILE__).'/obs_msg_info.tpl.html') ?>
39
	</div>
42
	</div>