Subversion Repositories Applications.referentiel

Rev

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

Rev 47 Rev 48
1
<!-- REF - DEBUT VERSIONNAGE -->
1
<!-- REF - DEBUT VERSIONNAGE -->
2
<script type="text/javascript">                                         
2
<script type="text/javascript">                                         
3
$(document).ready(function() {
3
$(document).ready(function() {
4
	$('#ref-versionnage-ok').click(function(e) {
4
	$('#ref-versionnage-ok').click(function(e) {
5
		var ok = false;
5
		var ok = false;
6
		if (confirm('Êtes vous sûr de vouloir versionner le référentiel actuellement en cours de travail ?')) {
6
		if (confirm('Êtes vous sûr de vouloir versionner le référentiel actuellement en cours de travail ?')) {
7
			ok = true;
7
			ok = true;
8
		}
8
		}
9
		return ok;
9
		return ok;
10
	});
10
	});
11
});
11
});
12
</script>
12
</script>
13
<h1>Versionnage du référentiel «&nbsp;<?=$ref?>&nbsp;»</h1>
13
<h1>Versionnage du référentiel «&nbsp;<?=$ref?>&nbsp;»</h1>
14
 
14
 
15
<?php if (isset($messages)) : ?>
15
<?php if (isset($messages)) : ?>
16
<h2>Messages</h2>
16
<h2>Messages</h2>
17
<?php foreach ($messages as $message) : ?>
17
<?php foreach ($messages as $message) : ?>
18
<p class="information"><?=$message?></p>
18
<p class="information"><?=$message?></p>
19
<?php endforeach; ?>
19
<?php endforeach; ?>
20
<?php endif; ?>
20
<?php endif; ?>
21
 
21
 
22
<h2>Formulaire</h2>
22
<h2>Formulaire</h2>
23
<p>1. Remplir le formulaire ci-dessous.</p>
23
<p>1. Remplir le formulaire ci-dessous.</p>
24
<div id="zone-form">
24
<div id="zone-form">
25
	<form id="ref-demande-versionnage" name="ref-demande-versionnage" action="<?=$url_form?>" method="post">
25
	<form id="ref-demande-versionnage" name="ref-demande-versionnage" action="<?=$url_form?>" method="post">
26
		<fieldset id="champs-general">
26
		<fieldset id="champs-general">
27
			<legend>Général</legend>
27
			<legend>Général</legend>
28
			<ul class="liste-champs">
28
			<ul class="liste-champs">
29
				<li>
29
				<li>
30
					<label for="titre">Titre</label>
30
					<label for="titre">Titre <span class="obligatoire">*</span></label>
31
					<input id="titre" type="text" value=""/>
31
					<input id="titre" name="titre" type="text" value="<?=$version['titre']?>"/>
32
				</li>
32
				</li>
33
				<li>
33
				<li>
34
					<label for="acronyme">Acronyme</label>
34
					<label for="acronyme">Acronyme <span class="obligatoire">*</span></label>
35
					<input id="acronyme" type="text" value=""/>
35
					<input id="acronyme" name="acronyme" type="text" value="<?=$version['acronyme']?>"/>
36
				</li>
36
				</li>
37
				<li>
37
				<li>
38
					<label for="version">Version</label>
38
					<label for="version">Version <span class="obligatoire">*</span></label>
39
					<input id="version" type="text" value=""/>
39
					<input id="version" name="version" type="text" value="<?=$version['version']?>"/>
40
				</li>
40
				</li>
41
				<li>
41
				<li>
42
					<label for="date_prod">Date de production</label>
42
					<label for="date_prod">Date de production</label>
43
					<input id="date_prod" name="date_prod" type="text" value="<?=$date_prod?>" readonly="readonly"/>
43
					<input id="date_prod" name="date_prod" type="text" value="<?=$version['date_prod']?>" readonly="readonly"/>
44
				</li>
44
				</li>
45
			</ul>
45
			</ul>
46
		</fieldset>
46
		</fieldset>
47
		
47
		
48
		<fieldset id="champs-contact">
48
		<fieldset id="champs-contact">
49
			<legend>Contacts</legend>
49
			<legend>Contacts</legend>
50
			
50
			
51
			<ul class="liste-champs">
51
			<ul class="liste-champs">
52
				<li>
52
				<li>
53
					<label for="auteur_principal">Auteur principal</label>
53
					<label for="auteur_principal">Auteur principal <span class="obligatoire">*</span></label>
54
					<input type="text" id="auteur_principal" name="auteur_principal" value="" />
54
					<input type="text" id="auteur_principal" name="auteur_principal" value="<?=$version['auteur_principal']?>" />
55
				</li>
55
				</li>
56
				<li>
56
				<li>
57
					<label for="coordinateur">Coordinateur</label>
57
					<label for="coordinateur">Coordinateur <span class="obligatoire">*</span></label>
58
					<input type="text" id="coordinateur" name="coordinateur" value="" />
58
					<input type="text" id="coordinateur" name="coordinateur" value="<?=$version['coordinateur']?>" />
59
				</li>
59
				</li>
60
				<li>
60
				<li>
61
					<label for="editeur">Éditeur</label>
61
					<label for="editeur">Éditeur</label>
62
					<input type="text" id="editeur" name="editeur" value="" />
62
					<input type="text" id="editeur" name="editeur" value="Tela-Botanica, le réseau des Botanistes Francophones" readonly="readonly"/>
63
				</li>
63
				</li>
64
				<li>
64
				<li>
65
					<label for="contact">Courriel de contact</label>
65
					<label for="contact">Courriel de contact <span class="obligatoire">*</span></label>
66
					<input type="text" name="contact" value="" />
66
					<input type="text" name="contact" value="<?=$version['contact']?>" />
67
				</li>
67
				</li>
68
			</ul>
68
			</ul>
69
		</fieldset>
69
		</fieldset>
70
		
70
		
71
		<fieldset id="champs-contributeur" style="width:825px;">
71
		<fieldset id="champs-contributeur" style="width:825px;">
72
			<legend>Auteurs/Contributeurs</legend>
72
			<legend>Auteurs/Contributeurs</legend>
73
			<p>
73
			<p>
74
				Mettre une nom de contributeur par ligne au format : <br />
74
				Mettre une nom de contributeur par ligne au format : <br />
75
				Prénom1 NOM1 (Organisation1) &lt;courriel1&gt;,<br />
75
				Prénom1 NOM1 (Organisation1) &lt;courriel1&gt;,<br />
76
				Prénom2 NOM2 (Organisation2) &lt;courriel2&gt;.
76
				Prénom2 NOM2 (Organisation2) &lt;courriel2&gt;.
77
			</p>
77
			</p>
78
			<div>
78
			<div>
79
				<label for="contributeur">Auteurs/Contributeurs</label>
79
				<label for="contributeur">Auteurs/Contributeurs</label>
80
				<textarea id="contributeur" name="contributeur" rows="5"></textarea>
80
				<textarea id="contributeur" name="contributeur" rows="5"><?=$version['contributeur']?></textarea>
81
			</div>
81
			</div>
82
		</fieldset>
82
		</fieldset>
83
		<hr class="nettoyage" />
83
		<hr class="nettoyage" />
84
		
84
		
85
		<fieldset id="champs-domaine">
85
		<fieldset id="champs-domaine">
86
			<legend>Domaines couverts par le référentiel</legend>
86
			<legend>Domaines couverts par le référentiel</legend>
87
			<p>	Vous pouvez choisir plusieurs éléments par liste.</p>
87
			<p>	Vous pouvez choisir plusieurs éléments par liste.</p>
88
			<label for="ref-ver-dom-tax">Domaine taxonomique</label>
88
			<label for="ref-ver-dom-tax">Domaine taxonomique <span class="obligatoire">*</span></label>
89
			<div id="ref-ver-dom-tax" class="case-a-cocher-scroll" />
89
			<div id="ref-ver-dom-tax" class="case-a-cocher-scroll" />
90
				<ul class="liste-simple">
90
				<ul class="liste-simple">
91
				<? foreach ($domaine_taxo as $taxo) : ?>
91
				<? foreach ($domaine_taxo as $taxo) : ?>
92
					<li><label><input type="checkbox" name="dom_tax" value="<?=$taxo?>" /> <?=$taxo?></label></li>
92
					<li><label><input type="checkbox" name="dom_tax" value="<?=$taxo?>" <?=($version['dom_tax'] == $taxo ? 'checked="checked"': '')?> /> <?=$taxo?></label></li>
93
				<? endforeach; ?>
93
				<? endforeach; ?>
94
				</ul>
94
				</ul>
95
			</div>
95
			</div>
96
			<label for="ref-ver-dom-geo">Domaine géographique</label>
96
			<label for="ref-ver-dom-geo">Domaine géographique <span class="obligatoire">*</span></label>
97
			<div id="ref-ver-dom-geo" class="case-a-cocher-scroll" />
97
			<div id="ref-ver-dom-geo" class="case-a-cocher-scroll" />
98
				<ul class="liste-simple">
98
				<ul class="liste-simple">
99
				<? foreach ($domaine_geo as $geo) : ?>
99
				<? foreach ($domaine_geo as $geo) : ?>
100
					<li><label><input type="checkbox" name="dom_geo" value="<?=$geo?>" /> <?=$geo?></label></li>
100
					<li><label><input type="checkbox" name="dom_geo" value="<?=$geo?>" <?=($version['dom_geo'] == $geo ? 'checked="checked"': '')?> /> <?=$geo?></label></li>
101
				<? endforeach; ?>
101
				<? endforeach; ?>
102
				</ul>
102
				</ul>
103
			</div>
103
			</div>
104
			<label for="ref-ver-dom-code">Codes botaniques utilisés</label>
104
			<label for="ref-ver-dom-code">Codes botaniques utilisés <span class="obligatoire">*</span></label>
105
			<div id="ref-ver-dom-code" class="case-a-cocher-scroll" />
105
			<div id="ref-ver-dom-code" class="case-a-cocher-scroll" />
106
				<ul class="liste-simple">
106
				<ul class="liste-simple">
107
				<? foreach ($domaine_code as $code) : ?>
107
				<? foreach ($domaine_code as $code) : ?>
108
					<li><label><input type="checkbox" name="dom_code" value="<?=$code?>" /> <?=$code?></label></li>
108
					<li><label><input type="checkbox" name="dom_code" value="<?=$code?>" <?=($version['dom_code'] == $code ? 'checked="checked"': '')?> /> <?=$code?></label></li>
109
				<? endforeach; ?>
109
				<? endforeach; ?>
110
				</ul>
110
				</ul>
111
			</div>
111
			</div>
112
		</fieldset>
112
		</fieldset>
113
		
113
		
114
		<fieldset id="champs-citation">
114
		<fieldset id="champs-citation">
115
			<legend>Citation</legend>
115
			<legend>Citation</legend>
116
			
116
			
117
			<ul class="liste-champs">
117
			<ul class="liste-champs">
118
				<li>
118
				<li>
119
					<label for="source">Source</label>
119
					<label for="source">Source</label>
120
					<textarea id="source" name="source" rows="5"></textarea>
120
					<input type="text" id="source" name="source" value="http://www.tela-botanica.org/page:telechargement_flore" readonly="readonly"/>
121
				</li>
121
				</li>
122
				<li>
122
				<li>
123
					<label for="mention_legale">Mention légale</label>
123
					<label for="copyright">Copyright</label>
124
					<input type="text" id="mention_legale" name="mention_legale" value="" />
124
					<input type="text" id="copyright" name="mention_legale" value="© Tela Botanica - <?=date('Y')?>." readonly="readonly"/>
125
				</li>
125
				</li>
126
				<li>
126
				<li>
127
					<label for="ref-ver-licence">Licence</label>
127
					<label for="licence">Licence</label>
128
					<div id="case-a-cocher-scroll-licence" class="case-a-cocher-scroll"> 
128
					<input type="text" id="licence" name="licence" value="" readonly="readonly"/>
129
						<ul id="ref-ver-licence" class="liste-simple">
-
 
130
						<? foreach ($licences as $licence) : ?>
-
 
131
							<li><label><input type="checkbox" name="licence" value="<?=$licence['url']?>" /> <a href="<?=$licence['url']?>" onclick="window.open(this.href); return false;"><?=$licence['nom']?></a></label></li>
-
 
132
						<? endforeach; ?>
-
 
133
						</ul>
-
 
134
					</div>
-
 
135
				</li>
129
				</li>
136
				<li>
130
				<li>
137
					<label for="referencement">Comment citer ce référentiel?</label>
131
					<label for="referencement">Comment citer ce référentiel? <span class="obligatoire">*</span></label>
138
					<textarea id="referencement" name="referencement" rows="5"></textarea>
132
					<textarea id="referencement" name="referencement" rows="5"><?=$version['referencement']?></textarea>
139
				</li>
133
				</li>
140
			</ul>
134
			</ul>
141
		</fieldset>
135
		</fieldset>
142
		<hr class="nettoyage" />
136
		<hr class="nettoyage" />
143
		
-
 
-
 
137
		<p><span class="obligatoire">*</span> : champ obligatoire.</p>
144
		<input id="ref-versionnage-ok" type="submit" value="2. Lancer le versionnage" />
138
		<input id="ref-versionnage-ok" type="submit" value="2. Lancer le versionnage" />
145
	</form>
139
	</form>
146
	<form id="ref-rafraichir" name="ref-rafraichir" action="<?=$url_form;?>" method="get">
140
	<form id="ref-rafraichir" name="ref-rafraichir" action="<?=$url_form;?>" method="get">
147
		<input name="module" type="hidden" value="<?=$url_module;?>" />
141
		<input name="module" type="hidden" value="<?=$url_module;?>" />
148
		<input name="action" type="hidden" value="<?=$url_action_rafraichir;?>" />
142
		<input name="action" type="hidden" value="<?=$url_action_rafraichir;?>" />
149
		<input name="ref" type="hidden" value="<?=$ref;?>" />
143
		<input name="ref" type="hidden" value="<?=$ref;?>" />
150
		<input id="ref-raf-ok" type="submit" value="3. Rafraichir" />
144
		<input id="ref-raf-ok" type="submit" value="3. Rafraichir" />
151
	</form>
145
	</form>
152
</div>
146
</div>
153
 
147
 
154
 
148
 
155
<h2>Versions</h2>
149
<h2>Versions</h2>
156
 
150
 
157
<table>
151
<table>
158
	<caption>Versions <?=strftime('à %H:%M:%S le %d %B %Y')?></caption>
152
	<caption>Versions <?=strftime('à %H:%M:%S le %d %B %Y')?></caption>
159
	<thead>
153
	<thead>
160
		<tr>
154
		<tr>
161
			<th>Nom (#)</th>
155
			<th>Nom (#)</th>
162
			<th>État</th>
156
			<th>État</th>
163
			<th>Date début</th>
157
			<th>Date début</th>
164
			<th>Date fin</th>
158
			<th>Date fin</th>
165
			<th>Durée</th>
159
			<th>Durée</th>
166
		</tr>
160
		</tr>
167
	</thead>
161
	</thead>
168
	<tbody>
162
	<tbody>
169
	<?php if (isset($traitements_en_attente)) : ?>
163
	<?php if (isset($traitements_en_attente)) : ?>
170
		<?php foreach ($traitements_en_attente as $traitement) : ?>
164
		<?php foreach ($traitements_en_attente as $traitement) : ?>
171
		<tr>
165
		<tr>
172
			<td><?=$traitement['nom']?> <span class="discretion">(id:<?=$traitement['id_traitement']?>)</span></a></td>
166
			<td><?=$traitement['nom']?> <span class="discretion">(id:<?=$traitement['id_traitement']?>)</span></a></td>
173
			<td class="traitement-attente">En attente...</td>
167
			<td class="traitement-attente">En attente...</td>
174
			<td>&nbsp;</td>
168
			<td>&nbsp;</td>
175
			<td>&nbsp;</td>
169
			<td>&nbsp;</td>
176
			<td>&nbsp;</td>
170
			<td>&nbsp;</td>
177
		</tr>
171
		</tr>
178
		<?php endforeach; ?>
172
		<?php endforeach; ?>
179
	<?php endif; ?>
173
	<?php endif; ?>
180
	<?php if (isset($traitements_en_cours)) : ?>
174
	<?php if (isset($traitements_en_cours)) : ?>
181
		<?php foreach ($traitements_en_cours as $traitement) : ?>
175
		<?php foreach ($traitements_en_cours as $traitement) : ?>
182
		<tr>
176
		<tr>
183
			<td><?=$traitement['nom']?> <span class="discretion">(id:<?=$traitement['id_traitement']?>)</span></a></td>
177
			<td><?=$traitement['nom']?> <span class="discretion">(id:<?=$traitement['id_traitement']?>)</span></a></td>
184
			<td class="traitement-cours">En cours...</td>
178
			<td class="traitement-cours">En cours...</td>
185
			<td><?=$traitement['date_debut']?></td>
179
			<td><?=$traitement['date_debut']?></td>
186
			<td>&nbsp;</td>
180
			<td>&nbsp;</td>
187
			<td>&nbsp;</td>
181
			<td>&nbsp;</td>
188
		</tr>
182
		</tr>
189
		<?php endforeach; ?>
183
		<?php endforeach; ?>
190
	<?php endif; ?>
184
	<?php endif; ?>
191
	<?php if (isset($traitements_termines)) : ?>
185
	<?php if (isset($traitements_termines)) : ?>
192
		<?php foreach ($traitements_termines as $traitement) : ?>
186
		<?php foreach ($traitements_termines as $traitement) : ?>
193
		<tr>
187
		<tr>
194
			<td><a href="<?=$traitement['url']?>"><?=$traitement['nom']?> <span class="discretion">(id:<?=$traitement['id_traitement']?>)</span></a></td>
188
			<td><a href="<?=$traitement['url']?>"><?=$traitement['nom']?> <span class="discretion">(id:<?=$traitement['id_traitement']?>)</span></a></td>
195
			<td class="traitement-termine">Terminé</td>
189
			<td class="traitement-termine">Terminé</td>
196
			<td><?=$traitement['date_debut']?></td>
190
			<td><?=$traitement['date_debut']?></td>
197
			<td><?=$traitement['date_fin']?></td>
191
			<td><?=$traitement['date_fin']?></td>
198
			<td><?=$traitement['duree']?></td>
192
			<td><?=$traitement['duree']?></td>
199
		</tr>
193
		</tr>
200
		<?php endforeach; ?>
194
		<?php endforeach; ?>
201
	<?php endif; ?>
195
	<?php endif; ?>
202
	</tbody>
196
	</tbody>
203
</table>
197
</table>
204
 
198
 
205
<!-- REF - FIN VERSIONNAGE -->
199
<!-- REF - FIN VERSIONNAGE -->