1 |
aurelien |
1 |
<? session_start(); ?>
|
|
|
2 |
<BOUCLE_rubrique_principal(RUBRIQUES) {id_rubrique}
|
|
|
3 |
><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
|
4 |
<html dir="#LANG_DIR" lang="#LANG" xmlns="http://www.w3.org/1999/xhtml">
|
|
|
5 |
<head>
|
|
|
6 |
<title>[(#TITRE|supprimer_numero)]</title>
|
|
|
7 |
<meta http-equiv="Content-Type" content="text/html; charset=#CHARSET" />
|
|
|
8 |
|
|
|
9 |
<!-- Ceci est la feuille de style par defaut pour les types internes a SPIP -->
|
|
|
10 |
<link rel="stylesheet" href="spip_style.css" type="text/css" />
|
|
|
11 |
|
|
|
12 |
<!-- Les feuilles de style specifiques aux presents squelettes -->
|
|
|
13 |
<link rel="stylesheet" href="#DOSSIER_SQUELETTE/typographie.css" type="text/css" />
|
|
|
14 |
|
|
|
15 |
<!-- media="..." permet de ne pas utiliser ce style sous Netscape 4 (sinon plantage) -->
|
|
|
16 |
<link rel="stylesheet" href="#DOSSIER_SQUELETTE/habillage.css" type="text/css" media="projection, screen, tv" />
|
|
|
17 |
<!-- media="print" permet d'utiliser cette feuille de style quand vous imprimez depuis votre navigateur -->
|
|
|
18 |
<link rel="stylesheet" href="#DOSSIER_SQUELETTE/impression.css" type="text/css" media="print" />
|
|
|
19 |
|
|
|
20 |
<!-- Lien vers le backend pour navigateurs eclaires -->
|
|
|
21 |
<link rel="alternate" type="application/rss+xml" title="<:syndiquer_rubrique:>" href="backend.php3?id_rubrique=#ID_RUBRIQUE" />
|
|
|
22 |
|
|
|
23 |
<link rel="stylesheet" href="odsadultes.css" type="text/css" />
|
|
|
24 |
|
|
|
25 |
<script language="javascript">
|
|
|
26 |
function onMenu(id) {
|
|
|
27 |
document.getElementById(id).className='nom_menu_on';
|
|
|
28 |
}
|
|
|
29 |
function outMenu(id) {
|
|
|
30 |
document.getElementById(id).className='nom_menu';
|
|
|
31 |
}
|
|
|
32 |
function onSsMenu(id) {
|
|
|
33 |
document.getElementById('ss'+id).className='nom_ss_menu_on';
|
|
|
34 |
}
|
|
|
35 |
function outSsMenu(id) {
|
|
|
36 |
document.getElementById('ss'+id).className='nom_ss_menu';
|
|
|
37 |
}
|
|
|
38 |
|
|
|
39 |
</script>
|
|
|
40 |
|
|
|
41 |
</head>
|
|
|
42 |
|
|
|
43 |
<body onload="load()" onunload="GUnload()">
|
|
|
44 |
|
|
|
45 |
<?php
|
|
|
46 |
if (isset($_GET['logout'])) {
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
if (!function_exists("redirect")) {
|
|
|
50 |
|
|
|
51 |
function redirect($filename) {
|
|
|
52 |
if (!headers_sent())
|
|
|
53 |
header('Location: '.$filename);
|
|
|
54 |
else {
|
|
|
55 |
echo '<script type="text/javascript">';
|
|
|
56 |
echo 'window.location.href="'.$filename.'";';
|
|
|
57 |
echo '</script>';
|
|
|
58 |
echo '<noscript>';
|
|
|
59 |
echo '<meta http-equiv="refresh" content="0;url='.$filename.'" />';
|
|
|
60 |
echo '</noscript>';
|
|
|
61 |
}
|
|
|
62 |
}
|
|
|
63 |
}
|
|
|
64 |
|
|
|
65 |
unset($_SESSION['participant']);
|
|
|
66 |
|
|
|
67 |
// Synchronisation avec identification cartographie
|
|
|
68 |
include_once 'modules/configuration/car_config.inc.php' ;
|
|
|
69 |
$GLOBALS['car_auth']->start();
|
|
|
70 |
$GLOBALS['car_auth']->logout();
|
|
|
71 |
|
|
|
72 |
redirect('[(#URL_RUBRIQUE)]');
|
|
|
73 |
|
|
|
74 |
|
|
|
75 |
}
|
|
|
76 |
|
|
|
77 |
?>
|
|
|
78 |
|
|
|
79 |
<table class="ods">
|
|
|
80 |
|
|
|
81 |
<tr>
|
|
|
82 |
<td class="logo"><a href="rubrique.php3?id_rubrique=3"><img src="IMG/logo.jpg" border="0"></a></td>
|
|
|
83 |
<td class="banderole"><a href="rubrique.php3?id_rubrique=3"><img src="IMG/bandeau-adultes.jpg" border="0" class="bandeau"></a></td>
|
|
|
84 |
</tr>
|
|
|
85 |
|
|
|
86 |
<B_comptesousmenu>
|
|
|
87 |
<BOUCLE_comptesousmenu(ARTICLES) {id_rubrique} {tout}>
|
|
|
88 |
</BOUCLE_comptesousmenu>
|
|
|
89 |
<? if ('[(#TOTAL_BOUCLE)]'>1) {
|
|
|
90 |
$sousmenu = true;
|
|
|
91 |
}
|
|
|
92 |
?>
|
|
|
93 |
</B_comptesousmenu>
|
|
|
94 |
|
|
|
95 |
|
|
|
96 |
<tr>
|
|
|
97 |
<td class="menu" <?= $sousmenu ? "rowspan='2'" : "" ?>>
|
|
|
98 |
<table class="menu">
|
|
|
99 |
<BOUCLE_menu(RUBRIQUES) {id_rubrique!=3} {tout} {par num titre}>
|
|
|
100 |
<tr><td class="nom_menu" colspan="2"
|
|
|
101 |
onMouseOver="onMenu([(#COMPTEUR_BOUCLE)])"
|
|
|
102 |
onMouseOut="outMenu([(#COMPTEUR_BOUCLE)])"
|
|
|
103 |
id="[(#COMPTEUR_BOUCLE)]">
|
|
|
104 |
<a href="[(#URL_RUBRIQUE)]" class="menu">[(#TITRE|supprimer_numero)]</a></td></tr>
|
|
|
105 |
</BOUCLE_menu>
|
|
|
106 |
<tr><td>
|
|
|
107 |
<?php
|
|
|
108 |
include("modules/login.php");
|
|
|
109 |
?>
|
|
|
110 |
</td></tr>
|
|
|
111 |
|
|
|
112 |
</table>
|
|
|
113 |
</td>
|
|
|
114 |
<? if ($sousmenu) { ?>
|
|
|
115 |
<td class="sousmenu">
|
|
|
116 |
<table class="sousmenu">
|
|
|
117 |
<tr>
|
|
|
118 |
<BOUCLE_ssmenu(ARTICLES) {id_rubrique} {tout} {par numtitre}>
|
|
|
119 |
<td class="nom_ss_menu" colspan="2"
|
|
|
120 |
onMouseOver="onSsMenu([(#COMPTEUR_BOUCLE)])"
|
|
|
121 |
onMouseOut="outSsMenu([(#COMPTEUR_BOUCLE)])"
|
|
|
122 |
id="ss[(#COMPTEUR_BOUCLE)]">
|
|
|
123 |
<? $titre = '[(#TITRE)]';
|
|
|
124 |
if (is_numeric(strpos($titre,"Forum"))) {
|
|
|
125 |
echo "<a href='phpBB2' class='menu' target='forum'>[(#TITRE|supprimer_numero)]</a>";
|
|
|
126 |
} else { ?>
|
|
|
127 |
<a href="[(#URL_ARTICLE)]" class="menu">[(#TITRE|supprimer_numero)]</a>
|
|
|
128 |
<? } ?>
|
|
|
129 |
</td>
|
|
|
130 |
</BOUCLE_ssmenu>
|
|
|
131 |
</tr>
|
|
|
132 |
</table>
|
|
|
133 |
</td>
|
|
|
134 |
</tr>
|
|
|
135 |
<tr>
|
|
|
136 |
<? } ?>
|
|
|
137 |
<td class="principal">
|
|
|
138 |
<table class="titre_repet"><tr>
|
|
|
139 |
<td><img src="IMG/ods.gif"></td><td>[(#TITRE|supprimer_numero)]</td>
|
|
|
140 |
</tr></table>
|
|
|
141 |
|
|
|
142 |
<br>
|
|
|
143 |
<? if (isset($valid_inscr)) {
|
|
|
144 |
include("modules/connect.php");
|
|
|
145 |
|
|
|
146 |
$req_util = mysql_query("select PARTICIPANT_ID, PARTICIPANT_EMAIL from PARTICIPANT where PARTICIPANT_PSEUDO LIKE '".urldecode($pseudo)."'");
|
|
|
147 |
$util = mysql_fetch_row($req_util);
|
|
|
148 |
|
|
|
149 |
$requete_validation = "update PARTICIPANT set PARTICIPANT_EN_ATTENTE = '0' where PARTICIPANT_ID=".$util[0];
|
|
|
150 |
$email = $util[1];
|
|
|
151 |
if (!mysql_query($requete_validation)) {
|
|
|
152 |
$erreurs[] = "Votre inscription a échoué, merci d'essayer à nouveau.";
|
|
|
153 |
}
|
|
|
154 |
else echo "Votre inscription a bien été prise en compte!";
|
|
|
155 |
if (sizeof($erreurs)>0) {
|
|
|
156 |
echo "<div class='recap'>";
|
|
|
157 |
foreach ($erreurs as $err) {
|
|
|
158 |
echo $err."<br>";
|
|
|
159 |
}
|
|
|
160 |
echo "</div>";
|
|
|
161 |
}
|
|
|
162 |
}
|
|
|
163 |
|
|
|
164 |
if ($sousmenu) { ?>
|
|
|
165 |
[(#TEXTE|justifier|fl_complements)]
|
|
|
166 |
<? } else { ?>
|
|
|
167 |
<BOUCLE_article(ARTICLES) {id_rubrique} {0,1}>
|
|
|
168 |
<? $descr = '[(#DESCRIPTIF|fl_complements)]';
|
|
|
169 |
$chapo = '[(#CHAPO)]'; ?>
|
|
|
170 |
</BOUCLE_article>
|
|
|
171 |
<?
|
|
|
172 |
|
|
|
173 |
|
|
|
174 |
|
|
|
175 |
if ($GLOBALS['inscription'] && !isset($_SESSION['participant'])) {
|
|
|
176 |
if (!isset($_POST['valid'])) {
|
|
|
177 |
echo $chapo;
|
|
|
178 |
}
|
|
|
179 |
include("modules/inscription.php");
|
|
|
180 |
if ($inscriptionOk) { ?>
|
|
|
181 |
[(#TEXTE)]
|
|
|
182 |
<?
|
|
|
183 |
}
|
|
|
184 |
}
|
|
|
185 |
else if ($GLOBALS['inscription'] && isset($_SESSION['participant'])) {
|
|
|
186 |
echo "Vous êtes déjà inscrit sur ODS... Pour vous inscrire sous un autre nom, déconnectez-vous du site en <a href='article.php3?id_article=1&logout'>cliquant ici</a>.";
|
|
|
187 |
}
|
|
|
188 |
else if ($envoi_obs) {
|
|
|
189 |
if (!isset($_POST['etape'])) {
|
|
|
190 |
echo $chapo;
|
|
|
191 |
}
|
|
|
192 |
include("modules/envoi_obs.php");
|
|
|
193 |
if (isset($_GET['envoi_obsOk'])) { ?>
|
|
|
194 |
[(#TEXTE)]
|
|
|
195 |
<?
|
|
|
196 |
}
|
|
|
197 |
}
|
|
|
198 |
else if ($protocoles_obs) {
|
|
|
199 |
echo $chapo;
|
|
|
200 |
include("modules/protocoles_obs.php");
|
|
|
201 |
}
|
|
|
202 |
else if ($GLOBALS['carteform']) {
|
|
|
203 |
echo $chapo;
|
|
|
204 |
include("modules/cartes/index.php");
|
|
|
205 |
}
|
|
|
206 |
else if ($GLOBALS['cartographie']) {
|
|
|
207 |
echo "#CHAPO";
|
|
|
208 |
include("modules/cartographie.php");
|
|
|
209 |
}
|
|
|
210 |
else if ($GLOBALS['annuaire']) {
|
|
|
211 |
echo "#CHAPO";
|
|
|
212 |
include("modules/annuaire.php");
|
|
|
213 |
}
|
|
|
214 |
else if ($liste) {
|
|
|
215 |
echo $chapo;
|
|
|
216 |
include("modules/liste.php");
|
|
|
217 |
} else if ($graphique) {
|
|
|
218 |
echo $chapo;
|
|
|
219 |
include("modules/analyse.php");
|
|
|
220 |
} else if ($historique) {
|
|
|
221 |
echo $chapo;
|
|
|
222 |
include("modules/historique.php");
|
|
|
223 |
}
|
|
|
224 |
else {
|
|
|
225 |
if ($nb_inscrits) {
|
|
|
226 |
include("modules/nb_inscrits.php");
|
|
|
227 |
}
|
|
|
228 |
|
|
|
229 |
?>
|
|
|
230 |
<BOUCLE_article_contenu(ARTICLES) {id_rubrique} {0,1}>
|
|
|
231 |
[(#TEXTE|justifier)]
|
|
|
232 |
</BOUCLE_article_contenu>
|
|
|
233 |
<?
|
|
|
234 |
|
|
|
235 |
}
|
|
|
236 |
}?>
|
|
|
237 |
</td>
|
|
|
238 |
</tr>
|
|
|
239 |
|
|
|
240 |
</table>
|
|
|
241 |
|
|
|
242 |
</body>
|
|
|
243 |
</html>
|
|
|
244 |
</BOUCLE_rubrique_principal>
|