Subversion Repositories Applications.referentiel

Rev

Rev 39 | Rev 47 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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