crabs_cms-1.0.4 ©2006-2008 - Christophe Cazajus (crabs-mettre_le_signe_at-crabs-world.com)
1 <?xml version="1.0" encoding="iso-8859-15" ?> 2 <xsl:stylesheet 3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4 version="1.0"> 5 <xsl:output encoding="iso-8859-15" method="html" 6 doctype-public="-//W3C//DTD HTML 4.01//EN" 7 doctype-system="http://www.w3.org/TR/html4/strict.dtd" /> 8 <xsl:strip-space elements="*"/> 9 <!--GPL--> 10 <!-- 11 ============================================================================= 12 crabs_cms-1.0.4 : Crabs Contents Management System 13 Copyright (C) 2006-2008 : Christophe Cazajus (crabs-mettre_le_signe_at-crabs-world.com) 14 15 Ce source fait partie d'un projet logiciel libre. Vous pouvez le distribuer 16 et/ou le modifier en respectant les termes de la GNU General Public License 17 version 2 ou (suite a votre propre choix) une version ulterieure. 18 19 Ce programme est distribue dans l'espoir qu'il puisse etre utile, mais 20 sans aucune garantie, meme si il est associe a un produit qui vous en 21 propose une. Conformez-vous a la GNU General Public License pour avoir 22 plus de precisions. 23 24 L'auteur ne peut etre tenu responsable de l'utilisation faite des 25 composantes associees a ce projet (en partie ou dans leur totalite). 26 27 Une copie du fichier de la GNU GPL est fournie dans le repertoire DOC 28 de ce projet sous le nom gnu_gpl.txt 29 30 ============================================================================= 31 --> 32 <!-- 33 ### #### 34 ### LA PAGE #### 35 ### #### 36 --> 37 <xsl:template match="/"> 38 <xsl:variable name="publie"> 39 <xsl:choose><xsl:when test="//document/membre/@webmaster='Y'"> 40 <xsl:text>Y</xsl:text> 41 </xsl:when><xsl:when test="//document/membre/@wbureau='Y'"> 42 <xsl:text>Y</xsl:text> 43 </xsl:when><xsl:otherwise> 44 <xsl:text>N</xsl:text> 45 </xsl:otherwise></xsl:choose> 46 </xsl:variable> 47 <html> 48 <head> 49 <link rel="stylesheet" href="{//document/root}/MEMBRE/GESTION/gestion.css" 50 type="text/css" /> 51 <title>Gestion de <xsl:value-of select="//document/titre"/></title> 52 </head> 53 <body> 54 <div id="logo">Gestion de <xsl:value-of select="//document/titre"/></div> 55 <div id="menu_principal"> 56 <span class="a_droite"> 57 <a href="{//document/root}/MEMBRE/logout.php">Déconnexion</a> 58 </span> 59 <span class="item"> 60 <a href="{//document/root}/MEMBRE/index.php">Le Site</a> 61 </span> 62 <xsl:if test="$publie='Y'"> 63 <span class="item"> 64 <a href="{//document/root}/MEMBRE/GESTION/tout_publier.php"> 65 <xsl:text>Publier</xsl:text></a> 66 </span> 67 </xsl:if> 68 <span class="item"> 69 <a href="{//document/root}/MEMBRE/GESTION/news.php">Nouveautés</a> 70 </span> 71 <span class="item"> 72 <a href="{//document/root}/MEMBRE/GESTION/index.php">Dossiers</a> 73 </span> 74 <span class="item"> 75 <a href="{//document/root}/MEMBRE/GESTION/document.php" 76 >Documents</a> 77 </span> 78 <span class="item"> 79 <a href="{//document/root}/MEMBRE/GESTION/image.php" 80 >Images</a> 81 </span> 82 <span class="item"> 83 <a href="{//document/root}/MEMBRE/GESTION/photo.php" 84 >Album photos</a> 85 </span> 86 <xsl:if test="$publie='Y'"> 87 <span class="item"> 88 <a href="{//document/root}/MEMBRE/GESTION/calendrier.php"> 89 <xsl:text>Calendrier</xsl:text></a> 90 </span> 91 </xsl:if> 92 <xsl:if test="$publie='Y'"> 93 <span class="item"> 94 <a href="{//document/root}/MEMBRE/GESTION/forum.php"> 95 <xsl:text>Forum</xsl:text></a> 96 </span> 97 </xsl:if> 98 </div> 99 <xsl:apply-templates /> 100 </body> 101 </html> 102 </xsl:template> 103 <!-- ICI les elements à ingnorer --> 104 <xsl:template match="titre"></xsl:template> 105 <xsl:template match="ext"></xsl:template> 106 <xsl:template match="accueil"></xsl:template> 107 <xsl:template match="root"></xsl:template> 108 <xsl:template match="urladd"></xsl:template> 109 110 <!-- 111 ### #### 112 ### INFO USER #### 113 ### #### 114 --> 115 <xsl:template match="membre"> 116 <div id="membre"> 117 <h1><xsl:value-of select="@pseudo"/></h1> 118 <p> 119 <xsl:value-of select="@prenom"/> 120 <xsl:text> </xsl:text> 121 <xsl:value-of select="@nom"/> 122 </p> 123 <p><a href="profil.php">Modifier votre profil</a></p> 124 <p><a href="passwd.php">Changer le mot de passe</a></p> 125 <p><a href="membre.php">Liste des Membres</a></p> 126 </div> 127 </xsl:template> 128 129 <!-- 130 ### #### 131 ### EXPLORATEUR DOSSIERS/FICHIERS #### 132 ### #### 133 --> 134 <xsl:template match="fichiers"> 135 <div id="explorateur"> 136 <xsl:apply-templates/> 137 </div> 138 </xsl:template> 139 <xsl:template match="dossier"> 140 <p> 141 <a name="{@court}"> 142 <img src="{//document/root}/IMAGES/dossier.png" alt="D"/> 143 </a> 144 <xsl:choose><xsl:when test="@url"> 145 <a href="{@url}"><b><xsl:value-of select="@nom"/></b></a> 146 <xsl:if test="@publie"> 147 <a href="{@publie}"> 148 <img src="{//document/root}/IMAGES/publie.png" alt="P"/> 149 </a> 150 </xsl:if> 151 <xsl:if test="@suppr"> 152 <a href="{@suppr}"> 153 <img src="{//document/root}/IMAGES/suppr.png" alt="S"/> 154 </a> 155 </xsl:if> 156 </xsl:when><xsl:otherwise> 157 <b><xsl:value-of select="@nom"/></b> 158 </xsl:otherwise></xsl:choose> 159 </p> 160 <div class="dossier"> 161 <xsl:apply-templates/> 162 </div> 163 </xsl:template> 164 <xsl:template match="fichier"> 165 <p> 166 <a name="{@court}"> 167 <img src="{//document/root}/IMAGES/fichier.png" alt="F"/> 168 </a> 169 <a href="{@url}"><xsl:value-of select="@nom"/></a> 170 <xsl:if test="@publie"> 171 <a href="{@publie}"> 172 <img src="{//document/root}/IMAGES/publie.png" alt="P"/> 173 </a> 174 </xsl:if> 175 <xsl:if test="@suppr"> 176 <a href="{@suppr}"> 177 <img src="{//document/root}/IMAGES/suppr.png" alt="S"/> 178 </a> 179 </xsl:if> 180 </p> 181 </xsl:template> 182 <xsl:template match="ajout"> 183 <p> 184 <img src="{//document/root}/IMAGES/ajout.png" alt="+"/> 185 <a href="{@url}"><xsl:value-of select="@nom"/></a> 186 </p> 187 </xsl:template> 188 <!-- 189 ### #### 190 ### EDITION DOSSIER/ARTICLE #### 191 ### #### 192 --> 193 <xsl:template match="dossier_edit"> 194 <script type="text/javascript" src="../../LIB/httprequest.js"/> 195 <script type="text/javascript" src="saisie.js"/> 196 <div id="saisie"> 197 <form method="POST" action="{@action}"><table> 198 <input type="hidden" name="ac" id="txtAC" value="{@action}"/> 199 <tr><th colspan="2"> 200 <xsl:choose><xsl:when test="court"> 201 <xsl:text>Modifier un dossier</xsl:text> 202 </xsl:when><xsl:when test="@mode = 'news'"> 203 <xsl:text>Modifier une nouveauté</xsl:text> 204 </xsl:when><xsl:otherwise> 205 <xsl:text>Modifier un article</xsl:text> 206 </xsl:otherwise></xsl:choose> 207 </th></tr> 208 <tr><td colspan="2" class="info"> 209 <xsl:text>Par </xsl:text><xsl:value-of select="pseudo"/> 210 <xsl:text> le </xsl:text><xsl:value-of select="dtc"/> 211 </td></tr> 212 <xsl:if test="rang_menu"><tr> 213 <td class="label">Position Menu :</td> 214 <td><input type="text" name="rm" value="{rang_menu}" size="4" 215 id="txtRM"/></td> 216 </tr></xsl:if> 217 <xsl:if test="rang_liste"><tr> 218 <td class="label">Position Liste :</td> 219 <td><input type="text" name="rl" value="{rang_liste}" size="4" 220 id="txtRL"/></td> 221 </tr></xsl:if> 222 <xsl:if test="sous_article"><tr> 223 <td class="label">Sous article :</td> 224 <td><xsl:element name="input"> 225 <xsl:attribute name="type">checkbox</xsl:attribute> 226 <xsl:attribute name="name">sa</xsl:attribute> 227 <xsl:attribute name="id">txtSA</xsl:attribute> 228 <xsl:if test="sous_article='Y'"> 229 <xsl:attribute name="checked">checked</xsl:attribute> 230 </xsl:if> 231 </xsl:element></td> 232 </tr></xsl:if> 233 <xsl:if test="titre"><tr> 234 <td class="label">Titre :</td> 235 <td><input type="text" name="tt" value="{titre}" size="70" 236 id="txtTT"/></td> 237 </tr></xsl:if> 238 <xsl:if test="titre_item"><tr> 239 <td class="label">Titre Item :</td> 240 <td><input type="text" name="ti" value="{titre_item}" size="70" 241 id="txtTI"/></td> 242 </tr></xsl:if> 243 <xsl:if test="resume"><tr> 244 <td class="label">Résumé :</td> 245 <td><textarea name="re" rows="2" cols="70" id="txtRE" 246 ><xsl:value-of select="resume"/></textarea></td> 247 </tr></xsl:if> 248 <tr> 249 <td class="label"> 250 <xsl:text>Contenu :</xsl:text><br/> 251 <xsl:text>insérer</xsl:text><br/> 252 <input type="button" value="une image" onclick="add_img()"/><br/> 253 <input type="button" value="une photo" onclick="add_photo()"/><br/> 254 <xsl:text>Un lien vers</xsl:text><br/> 255 <input type="button" value="un dossier/article" 256 onclick="add_dossier()"/><br/> 257 <input type="button" value="un album" onclick="add_album()"/><br/> 258 <input type="button" value="un document" onclick="add_doc()"/><br/> 259 </td> 260 <td><textarea name="cn" rows="32" cols="70" id="txtCN" 261 ><xsl:value-of select="contenu"/></textarea></td> 262 </tr> 263 <tr><td colspan="2" class="bouton"> 264 <input type="button" value="Modifier" onclick="modifier()"/> 265 </td></tr> 266 </table></form> 267 </div> 268 <div id="aide_saisie"> 269 <h1 id="as_titre">Document</h1> 270 <p><select id="as_lst" size="16" onchange="liste_select()"/></p> 271 <p>nom:</p> 272 <p><input type="text" size="22" id="as_nom" /></p> 273 <p>titre:</p> 274 <p><input type="text" size="22" id="as_ttr" /></p> 275 <p> 276 <input type="submit" onclick="do_add()" value="Ajout"/> 277 <xsl:text>  </xsl:text> 278 <input type="submit" onclick="cancel()" value="Annuler"/> 279 </p> 280 <p class="info" id="as_info"></p> 281 </div> 282 </xsl:template> 283 <!-- 284 ### #### 285 ### AJOUT DOSSIER #### 286 ### #### 287 --> 288 <xsl:template match="dossier_ajout"> 289 <div id="saisie"> 290 <form method="POST" action="{@action}"><table> 291 <tr><th colspan="2"> 292 <xsl:text>Ajouter un dossier</xsl:text> 293 </th></tr> 294 <tr><td colspan="2" class="info"> 295 <xsl:text>L'identifiant du dossier doit être court et en</xsl:text> 296 <br/> 297 <xsl:text>rapport avec le contenu. Pas d'espace ni d'accent.</xsl:text> 298 </td></tr> 299 <tr> 300 <td class="label">Identifiant du Dossier :</td> 301 <td><input type="text" name="court" value="" size="20"/></td> 302 </tr> 303 <tr><td colspan="2" class="bouton"> 304 <input type="submit" name="ok" value="Créer"/> 305 </td></tr> 306 </table></form> 307 </div> 308 </xsl:template> 309 <!-- 310 ### #### 311 ### TOUT PUBLIER #### 312 ### #### 313 --> 314 <xsl:template match="tout_publier"> 315 <script type="text/javascript" src="../../LIB/httprequest.js"/> 316 <script type="text/javascript" src="tout_publier.js"/> 317 <div id="tout_publier"> 318 <p> 319 <select id="lpbl"> 320 <xsl:for-each select="publie"> 321 <option value="{@mode}:{@info}"> 322 <xsl:value-of select="@quoi"/> 323 </option> 324 </xsl:for-each> 325 </select><xsl:text>    </xsl:text> 326 <input type="button" value="Lancer la publication" 327 onclick="lancer_tout_publier()" id="tp_bt"/> 328 </p> 329 <pre class="listing" id="resultat"></pre> 330 </div> 331 </xsl:template> 332 333 <!-- 334 ### #### 335 ### UPLOAD DOCUMENTS/IMAGES #### 336 ### #### 337 --> 338 <xsl:template match="documents"> 339 <div class="documents_titre"><xsl:value-of select="@titre"/></div> 340 <div id="saisie"><form method="POST" action="{@action}" 341 enctype="multipart/form-data"><table><tr> 342 <td class="label">Déposer :</td> 343 <td> 344 <input name="dat" type="file" /> 345 <xsl:text>    </xsl:text> 346 <input type="submit" value="Déposer..." name="ok"/> 347 </td> 348 </tr></table></form></div> 349 <div class="documents_titre"><xsl:value-of select="@fichiers"/></div> 350 <div id="explorateur"><xsl:apply-templates/></div> 351 </xsl:template> 352 <xsl:template match="doc"> 353 <p> 354 <img src="{//document/root}/IMAGES/fichier.png" alt="F"/> 355 <a href="{@url}"><xsl:value-of select="@nom"/></a> 356 <xsl:if test="@suppr"> 357 <a href="{@suppr}"> 358 <img src="{//document/root}/IMAGES/suppr.png" alt="S"/> 359 </a> 360 </xsl:if> 361 </p> 362 </xsl:template> 363 <!-- 364 ### #### 365 ### LES ALBUMS DE PHOTOS #### 366 ### #### 367 --> 368 <xsl:template match="photos"> 369 <div class="documents_titre"><xsl:value-of select="@titre"/></div> 370 <div id="saisie"><form method="POST" action="{@action}" 371 enctype="multipart/form-data"><table> 372 <tr> 373 <td class="label">Déposer :</td> 374 <td> 375 <input name="dat" type="file" /> 376 <xsl:text>    </xsl:text> 377 <input type="submit" value="Déposer..." name="ok"/> 378 </td> 379 </tr><tr> 380 <td colspan="2" class="label"> 381 <a href="photo_download.php">Download vers 'a classer'</a> 382 </td> 383 </tr> 384 </table></form></div> 385 <xsl:apply-templates/> 386 </xsl:template> 387 <xsl:template match="photo_download"> 388 <div class="documents_titre">Photos en attente</div> 389 <div id="explorateur"><xsl:apply-templates/></div> 390 </xsl:template> 391 <xsl:template match="albums"> 392 <script type="text/javascript" src="../../LIB/httprequest.js"/> 393 <script type="text/javascript" src="photo.js"/> 394 <div id="albums"><xsl:apply-templates/></div> 395 </xsl:template> 396 <xsl:template match="album"> 397 <div class="album"><p> 398 <span class="label">Titre :</span> 399 <input type="text" id="at{@numero}" value="{@titre}" size="50"/> 400 </p><p> 401 <span class="label">Court :</span> 402 <span class="input"> 403 <input type="text" id="ac{@numero}" value="{@court}" size="16"/> 404 </span> 405 <span class="label">Publié :</span> 406 <xsl:choose><xsl:when test="@publie = 'Y'"> 407 <input type="checkbox" id="ap{@numero}" checked="checked"/> 408 </xsl:when><xsl:otherwise> 409 <input type="checkbox" id="ap{@numero}"/> 410 </xsl:otherwise></xsl:choose> 411 </p><p> 412 <span class="label">Resumé :</span> 413 <textarea id="ar{@numero}" rows="2" cols="70"> 414 <xsl:value-of select="@resume"/> 415 </textarea> 416 </p><p class="bouton"> 417 <xsl:variable name="bl"><xsl:choose> 418 <xsl:when test="@numero=0">Ajouter</xsl:when> 419 <xsl:otherwise>Modifier</xsl:otherwise> 420 </xsl:choose></xsl:variable> 421 <xsl:if test="@numero > 0"> 422 <a href="photo.php?a={@numero}">Accéder à l'album</a> 423 <xsl:text>   </xsl:text> 424 </xsl:if> 425 <input type="submit" value="{$bl}" onclick="album_do({@numero});"/> 426 </p></div> 427 </xsl:template> 428 429 <xsl:template match="photo_album"> 430 <script type="text/javascript" src="../../LIB/httprequest.js"/> 431 <script type="text/javascript" src="photo.js"/> 432 <div id="albums"><xsl:apply-templates select="photo"/></div> 433 </xsl:template> 434 <xsl:template match="photo"> 435 <div class="photo"> 436 <div class="vignette"> 437 <a href="{//document/root}/PHOTOS/IMAGES/{@fichier}.jpeg" 438 target="_blank"> 439 <img src="{//document/root}/PHOTOS/VIGNETTES/{@fichier}.jpeg" 440 width="{@vw}" height="{@vh}" alt="{@fichier}"/> 441 </a> 442 </div> 443 <p> 444 <span class="label">Album :</span> 445 <select id="pa{@numero}" size="1"> 446 <xsl:variable name="a" select="@album"/> 447 <xsl:for-each select="../album_info"> 448 <xsl:element name="option"> 449 <xsl:attribute name="value"> 450 <xsl:value-of select="@numero"/> 451 </xsl:attribute> 452 <xsl:if test="$a = @numero"> 453 <xsl:attribute name="selected"> 454 <xsl:text>selected</xsl:text> 455 </xsl:attribute> 456 </xsl:if> 457 <xsl:value-of select="@titre"/> 458 </xsl:element> 459 </xsl:for-each> 460 </select> 461 </p><p> 462 <span class="label">Titre :</span> 463 <input type="text" id="pt{@numero}" value="{@titre}" size="50"/> 464 </p><p> 465 <span class="label">fichier :</span> 466 <input type="text" id="pf{@numero}" value="{@fichier}" size="50"/> 467 </p><p> 468 <span class="label">Resumé :</span> 469 <textarea id="pr{@numero}" rows="2" cols="70"> 470 <xsl:value-of select="@resume"/> 471 </textarea> 472 </p><p class="bouton"> 473 <input type="submit" value="Modifier" onclick="photo_do({@numero});"/> 474 </p></div> 475 </xsl:template> 476 <!-- 477 ### #### 478 ### LES NOUVEAUTES DU SITE #### 479 ### #### 480 --> 481 <xsl:template match="nouveautes"> 482 <div id="explorateur"> 483 <xsl:if test="@publie"> 484 <p> 485 <img src="{//document/root}/IMAGES/publie.png" alt="p"/> 486 <a href="{@publie}">Publier l'index et les nouveautés</a> 487 </p> 488 </xsl:if> 489 <p> 490 <img src="{//document/root}/IMAGES/ajout.png" alt="+"/> 491 <a href="{@ajout}">Ajouter une nouveauté</a> 492 </p> 493 <xsl:apply-templates/> 494 </div> 495 </xsl:template> 496 <xsl:template match="nouveaute"> 497 <p> 498 <img src="{//document/root}/IMAGES/fichier.png" alt="F"/> 499 <a href="{@url}"><b><xsl:value-of select="@nom"/></b></a> 500 <xsl:if test="@suppr"> 501 <a href="{@suppr}"> 502 <img src="{//document/root}/IMAGES/suppr.png" alt="S"/> 503 </a> 504 </xsl:if> 505 </p> 506 </xsl:template> 507 <!-- 508 ### #### 509 ### EDITEUR DE FICHIER #### 510 ### #### 511 ### <editeur fichier="...">contenu...</editeur> #### 512 --> 513 <xsl:template match="editeur"> 514 <script type="text/javascript" src="../../LIB/httprequest.js"/> 515 <script type="text/javascript" src="editeur.js"/> 516 <div id="editeur"> 517 <h1><xsl:value-of select="@fichier"/></h1> 518 <p><textarea id="ediCN" rows="35" cols="108"> 519 <xsl:value-of select="."/> 520 </textarea></p> 521 <p> 522 <input type="button" value="Annuler" 523 onclick="cancel('{@fichier}')" /> 524 <xsl:text>    </xsl:text> 525 <input type="button" value="Modifier" 526 onclick="modifier('{@fichier}')"/> 527 </p> 528 </div> 529 </xsl:template> 530 <!-- 531 ### #### 532 ### PROFIL USER #### 533 ### #### 534 --> 535 <xsl:template match="profil"> 536 <div id="saisie"><form method="post" action="profil_done.php"><table> 537 <tr> 538 <th colspan="2"> 539 <xsl:text>Profil utilisateur : </xsl:text> 540 <xsl:value-of select="../membre/@pseudo"/> 541 </th> 542 </tr><tr> 543 <td class="label">Nom :</td> 544 <td><input type="text" name="nom" size="64" 545 value="{../membre/@nom}"/></td> 546 </tr><tr> 547 <td class="label">Prénom :</td> 548 <td><input type="text" name="prenom" size="64" 549 value="{../membre/@prenom}"/></td> 550 </tr><tr> 551 <td class="label">Email :</td> 552 <td><input type="text" name="email" size="80" 553 value="{../membre/@email}"/></td> 554 </tr><tr> 555 <td class="label">Site :</td> 556 <td><input type="text" name="site" size="80" 557 value="{../membre/@site}"/></td> 558 </tr><tr> 559 <td class="label">Teléphone :</td> 560 <td><input type="text" name="tel" size="16" 561 value="{../membre/@tel}"/></td> 562 </tr><tr> 563 <td class="label">GSM :</td> 564 <td><input type="text" name="gsm" size="16" 565 value="{../membre/@gsm}"/></td> 566 </tr><tr> 567 <td class="bouton" colspan="2"> 568 <input type="submit" name="ok" value=" Modifier "/> 569 </td> 570 </tr> 571 </table></form></div> 572 </xsl:template> 573 <!-- 574 ### #### 575 ### PASSWD USER #### 576 ### #### 577 --> 578 <xsl:template match="passwd"> 579 <div id="saisie"> 580 <xsl:for-each select="./info"> 581 <p style="text-align:center;"><xsl:value-of select="text()"/></p> 582 </xsl:for-each> 583 <form method="post" action="passwd.php"><table> 584 <tr> 585 <th colspan="2"> 586 <xsl:text>Changement mot de passe : </xsl:text> 587 <xsl:value-of select="../membre/@pseudo"/> 588 </th> 589 </tr><tr> 590 <td class="label">Ancien mot de passe :</td> 591 <td><input type="password" name="old" size="16" value=""/></td> 592 </tr><tr> 593 <td class="label">Nouveau mot de passe :</td> 594 <td><input type="password" name="new" size="16" value=""/></td> 595 </tr><tr> 596 <td class="label">Confirmation mot de passe :</td> 597 <td><input type="password" name="conf" size="16" value=""/></td> 598 </tr><tr> 599 <td class="bouton" colspan="2"> 600 <input type="submit" name="ok" value=" Changer... "/> 601 </td> 602 </tr> 603 </table></form></div> 604 </xsl:template> 605 <!-- 606 ### #### 607 ### LA LISTE DES MEMBRES #### 608 ### #### 609 --> 610 <xsl:template match="membres"> 611 <div id="explorateur"><table class="liste"> 612 <tr> 613 <th>Pseudo</th><th>Nom</th><th>Prénom</th> 614 <th>Email</th><th>Site</th><th>Téléphone</th><th>GSM</th> 615 </tr> 616 <xsl:for-each select="membre"><tr> 617 <td><b><xsl:value-of select="@pseudo"/></b></td> 618 <td><xsl:value-of select="@nom"/></td> 619 <td><xsl:value-of select="@prenom"/></td> 620 <td><xsl:value-of select="@email"/></td> 621 <td><a href="http://{@site}"><xsl:value-of select="@site"/></a></td> 622 <td><xsl:value-of select="@tel"/></td> 623 <td><xsl:value-of select="@gsm"/></td> 624 </tr></xsl:for-each> 625 </table></div> 626 </xsl:template> 627 628 <!-- 629 ### #### 630 ### GESTION DES CLASSE DU CALENDRIER #### 631 ### #### 632 --> 633 <xsl:template match="cal_classes"> 634 <script type="text/javascript" src="../../LIB/httprequest.js"/> 635 <script type="text/javascript" src="calendrier.js"/> 636 <div id="albums"><xsl:apply-templates/></div> 637 </xsl:template> 638 <xsl:template match="classe"> 639 <div class="album"><p> 640 <span class="label">Code :</span> 641 <xsl:choose><xsl:when test="@classe=''"> 642 <input type="text" id="cc" value="" size="16"/> 643 </xsl:when><xsl:otherwise> 644 <b><xsl:value-of select="@classe"/></b> 645 </xsl:otherwise></xsl:choose> 646 </p><p> 647 <span class="label">Info :</span> 648 <input type="text" id="ci{@classe}" value="{@info}" size="60"/> 649 </p><p class="bouton"> 650 <xsl:variable name="bl"><xsl:choose> 651 <xsl:when test="@classe=''">Ajouter</xsl:when> 652 <xsl:otherwise>Modifier</xsl:otherwise> 653 </xsl:choose></xsl:variable> 654 <input type="submit" value="{$bl}" onclick="classe_do('{@classe}');"/> 655 </p></div> 656 </xsl:template> 657 658 <!-- 659 ### #### 660 ### GESTION DES FORUMS #### 661 ### #### 662 --> 663 <xsl:template match="forums"> 664 <script type="text/javascript" src="../../LIB/httprequest.js"/> 665 <script type="text/javascript" src="forum.js"/> 666 <div id="albums"><xsl:apply-templates/></div> 667 </xsl:template> 668 <xsl:template match="forum"> 669 <xsl:variable name="ff"> 670 <xsl:choose><xsl:when test="fid='-1'"> 671 <xsl:text>n</xsl:text> 672 </xsl:when><xsl:otherwise> 673 <xsl:value-of select="fid"/> 674 </xsl:otherwise></xsl:choose> 675 </xsl:variable> 676 <div class="album"><p> 677 <span class="label">Label Item :</span> 678 <input type="text" id="fl{$ff}" value="{item}" size="32"/> 679 </p><p> 680 <span class="label">Titre :</span> 681 <input type="text" id="ft{$ff}" value="{titre}" size="70"/> 682 </p><p> 683 <span class="label">Info :</span> 684 <textarea rows="3" cols="80" id="fi{$ff}"> 685 <xsl:value-of select="info"/></textarea> 686 </p><p class="bouton"> 687 <xsl:variable name="bl"><xsl:choose> 688 <xsl:when test="fid='-1'">Ajouter</xsl:when> 689 <xsl:otherwise>Modifier</xsl:otherwise> 690 </xsl:choose></xsl:variable> 691 <input type="submit" value="{$bl}" onclick="forum_do('{fid}');"/> 692 </p></div> 693 </xsl:template> 694 695 </xsl:stylesheet> 696
Date de génération : 22/09/2011 21:48