Crabs Contents Management System

crabs_cms-1.0.4 ©2006-2008 - Christophe Cazajus (crabs-mettre_le_signe_at-crabs-world.com)

~~ / DEFAUT / site.xsl
Makefile param.php index.html site.xsl site.css forum.xsl forum.css album.png dernier.png haut.png precedent.png premier.png slide.png suivant.png vide.png
    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 <xsl:preserve-space elements="index dossier article nouveaute"/>
   10 <!--GPL-->
   11 <!--
   12    =============================================================================
   13     crabs_cms-1.0.4 : Crabs Contents Management System
   14     Copyright (C) 2006-2008 : Christophe Cazajus (crabs-mettre_le_signe_at-crabs-world.com)
   15 
   16     Ce source fait partie d'un projet logiciel libre. Vous pouvez le distribuer
   17     et/ou le modifier en respectant les termes de la GNU General Public License
   18     version 2 ou (suite a votre propre choix) une version ulterieure.
   19 
   20     Ce programme est distribue dans l'espoir qu'il puisse etre utile, mais
   21     sans aucune garantie, meme si il est associe a un produit qui vous en
   22     propose une. Conformez-vous a la GNU General Public License pour avoir
   23     plus de precisions.
   24 
   25     L'auteur ne peut etre tenu responsable de l'utilisation faite des
   26     composantes associees a ce projet (en partie ou dans leur totalite).
   27 
   28     Une copie du fichier de la GNU GPL est fournie dans le repertoire DOC
   29     de ce projet sous le nom gnu_gpl.txt
   30 
   31    =============================================================================
   32 -->
   33 <!--
   34 ###                                                     ####
   35 ###     LA PAGE                                         ####
   36 ###                                                     ####
   37 -->
   38 <xsl:template match="/">
   39 <html>
   40 <head>
   41     <link rel="stylesheet" href="{//document/root}/STYLE/site.css"
   42         type="text/css" />
   43     <title><xsl:value-of select="//document/titre"/></title>
   44     <xsl:if test="//document/description">
   45         <meta name="description" content="{//document/description}"/>
   46     </xsl:if>
   47 </head>
   48 <body>
   49     <div id="logo"><xsl:value-of select="//document/titre"/></div>
   50     <div id="menu_principal">
   51         <xsl:choose><xsl:when test="//document/membre">
   52             <span class="a_droite">
   53                 <a href="{//document/root}/MEMBRE/logout.php"
   54                 title="Redevenir anonyme"
   55                 >Déconnexion</a>
   56             </span>
   57             <span class="a_droite">
   58                 <a href="{//document/root}/MEMBRE/GESTION/"
   59                 title="Gestion du site"
   60                 >Membres</a>
   61             </span>
   62         </xsl:when><xsl:when test="//document/forum_membre">
   63             <span class="a_droite">
   64                 <a href="{//document/root}/FORUM_POST/logout.php"
   65                 title="Redevenir anonyme"
   66                 >Déconnexion</a>
   67             </span>
   68         </xsl:when><xsl:otherwise>
   69             <span class="a_droite">
   70                 <a href="{//document/root}/membre.php"
   71                 title="Identification des membres"
   72                 >Connexion</a>
   73             </span>
   74         </xsl:otherwise></xsl:choose>
   75         <xsl:apply-templates select="//document/menu/item" mode="menu"/>
   76         <span class="item">
   77             <a href="FORUM/index.php" title="Accéder au forum du site"
   78                 >Forums</a>
   79         </span>
   80     </div>
   81     <xsl:if test="//document/liste"><div id="liste">
   82         <xsl:apply-templates select="//document/liste" mode="liste"/>
   83     </div></xsl:if>
   84     <xsl:apply-templates />
   85     <div id="bas_de_page">
   86         <p>Site de demonstration de Crabs-CMS</p>
   87         <!-- merci de laisser ce lien -->
   88         <p><a href="http://www.crabs-world.com/">
   89             <img src="{//document/root}/IMAGES/crabe.jpeg"
   90                 alt="Développement Crabs CMS sur le Monde de Crabs"
   91                 title="Développement Crabs CMS sur le Monde de Crabs"
   92                 width="100" height="40" />
   93         </a></p>
   94     </div>
   95 </body>
   96 </html>
   97 </xsl:template>
   98 
   99 <!-- ICI les elements à ingnorer -->
  100 <xsl:template match="titre"></xsl:template>
  101 <xsl:template match="accueil"></xsl:template>
  102 <xsl:template match="root"></xsl:template>
  103 <xsl:template match="urladd"></xsl:template>
  104 <xsl:template match="ext"></xsl:template>
  105 <xsl:template match="description"></xsl:template>
  106 <xsl:template match="menu"></xsl:template>
  107 <xsl:template match="liste"></xsl:template>
  108 <xsl:template match="page"></xsl:template>
  109 
  110 <xsl:template match="item" mode="menu">
  111     <span class="item">
  112     <a href="{//document/root}/{//document/urladd}{@page}.{//document/ext}"
  113         title="{@titre}"
  114     ><xsl:value-of select="@titre_item"/></a>
  115     </span>
  116 </xsl:template>
  117 
  118 <xsl:template match="item" mode="liste">
  119     <p class="item">
  120     <xsl:choose><xsl:when test="@actif='Y'">
  121         <xsl:value-of select="@titre_item"/>
  122     </xsl:when><xsl:otherwise>
  123         <a href="{//document/root}/{//document/urladd}{@page}.{//document/ext}"
  124             title="{@titre}"
  125         ><xsl:value-of select="@titre_item"/></a>
  126     </xsl:otherwise></xsl:choose>
  127     </p>
  128 </xsl:template>
  129 <xsl:template match="titre_liste" mode="liste">
  130     <p class="titre_liste">
  131     <xsl:choose><xsl:when test="@actif='Y'">
  132         <xsl:value-of select="@titre_item"/>
  133     </xsl:when><xsl:otherwise>
  134         <a href="{//document/root}/{//document/urladd}{@page}.{//document/ext}"
  135             title="{@titre}"
  136         ><xsl:value-of select="@titre_item"/></a>
  137     </xsl:otherwise></xsl:choose>
  138     </p>
  139 </xsl:template>
  140 <!--
  141 ###                                                     ####
  142 ###     PAGE : LE LOGIN                                 ####
  143 ###                                                     ####
  144 -->
  145 <xsl:template match="login">
  146     <div id="contenu">
  147     <form method="POST" action="FORUM/login.php"><table class="center_form">
  148         <tr><th colspan="2">Connexion pour les forums</th></tr>
  149         <tr>
  150             <td class="label">Pseudo :</td>
  151             <td class="saisie">
  152                 <input type="text" size="16" name="pseudo"/>
  153             </td>
  154         </tr>
  155         <tr>
  156             <td class="label">Mot de Passe :</td>
  157             <td class="saisie">
  158                 <input type="password" size="16" name="mdp"/>
  159             </td>
  160         </tr>
  161         <tr><td class="bouton" colspan="2">
  162             <input name="ok" value="Se connecter" type="submit" />
  163         </td></tr>
  164     </table></form>
  165     <form method="POST" action="MEMBRE/login.php"><table class="center_form">
  166         <tr><th colspan="2">Connexion des Membres de l'association</th></tr>
  167         <tr>
  168             <td class="label">Pseudo :</td>
  169             <td class="saisie">
  170                 <input type="text" size="16" name="pseudo"/>
  171             </td>
  172         </tr>
  173         <tr>
  174             <td class="label">Mot de Passe :</td>
  175             <td class="saisie">
  176                 <input type="password" size="16" name="mdp"/>
  177             </td>
  178         </tr>
  179         <tr><td class="bouton" colspan="2">
  180             <input name="ok" value="Se connecter" type="submit" />
  181         </td></tr>
  182     </table></form>
  183     </div>
  184 </xsl:template>
  185 <xsl:template match="erreur">
  186     <p class="erreur"><xsl:value-of select="."/></p>
  187 </xsl:template>
  188 
  189 <!--
  190 ###                                                     ####
  191 ###     PAGE : LES STYLES DE CARACTERES                 ####
  192 ###                                                     ####
  193 -->
  194 <xsl:template match="em"><em><xsl:apply-templates/></em></xsl:template>
  195 <xsl:template match="st"><st><xsl:apply-templates/></st></xsl:template>
  196 <xsl:template match="doc">
  197     <xsl:variable name="nom">
  198         <xsl:choose><xsl:when test="@nom">
  199             <xsl:value-of select="@nom"/>
  200         </xsl:when><xsl:otherwise>
  201             <xsl:value-of select="@fichier"/>
  202         </xsl:otherwise></xsl:choose>
  203     </xsl:variable>
  204     <xsl:variable name="titre">
  205         <xsl:choose><xsl:when test="@titre">
  206             <xsl:value-of select="@titre"/>
  207         </xsl:when><xsl:otherwise>
  208             <xsl:text>Télécharger </xsl:text>
  209             <xsl:value-of select="$nom"/>
  210         </xsl:otherwise></xsl:choose>
  211     </xsl:variable>
  212     <a href="{//document/root}/DOCUMENTS/{@fichier}"
  213         title="{$titre}"><xsl:value-of select="$nom"/></a>
  214 </xsl:template>
  215 <xsl:template match="image">
  216     <xsl:variable name="nom">
  217         <xsl:choose><xsl:when test="@nom">
  218             <xsl:value-of select="@nom"/>
  219         </xsl:when><xsl:otherwise>
  220             <xsl:value-of select="@fichier"/>
  221         </xsl:otherwise></xsl:choose>
  222     </xsl:variable>
  223     <xsl:variable name="titre">
  224         <xsl:choose><xsl:when test="@titre">
  225             <xsl:value-of select="@titre"/>
  226         </xsl:when><xsl:otherwise>
  227             <xsl:text>Image </xsl:text>
  228             <xsl:value-of select="$nom"/>
  229         </xsl:otherwise></xsl:choose>
  230     </xsl:variable>
  231     <img src="{//document/root}/IMAGES/{@fichier}"
  232         title="{$titre}" alt="{$nom}" width="{@w}" height="{@h}"/>
  233 </xsl:template>
  234 <xsl:template match="photo">
  235     <xsl:variable name="nom">
  236         <xsl:choose><xsl:when test="@nom">
  237             <xsl:value-of select="@nom"/>
  238         </xsl:when><xsl:otherwise>
  239             <xsl:value-of select="@fichier"/>
  240         </xsl:otherwise></xsl:choose>
  241     </xsl:variable>
  242     <xsl:variable name="titre">
  243         <xsl:choose><xsl:when test="@titre">
  244             <xsl:value-of select="@titre"/>
  245         </xsl:when><xsl:otherwise>
  246             <xsl:text>Image </xsl:text>
  247             <xsl:value-of select="$nom"/>
  248         </xsl:otherwise></xsl:choose>
  249     </xsl:variable>
  250     <img src="{//document/root}/PHOTOS/IMAGES/{@fichier}"
  251         title="{$titre}" alt="{$nom}" width="{@w}" height="{@h}"/>
  252 </xsl:template>
  253 <xsl:template match="album_photo">
  254     <a href="{//document/root}/{//document/urladd}{@page}.{//document/ext}">
  255         <img src="{//document/root}/PHOTOS/VIGNETTES/{@fichier}.jpeg"
  256             title="{@titre}" alt="{@nom}" width="{@w}" height="{@h}"/>
  257     </a>
  258 </xsl:template>
  259 <!-- <lien nom="..." titre="..." page="..." [type="local"]/> -->
  260 <xsl:template match="lien">
  261     <xsl:variable name="nom">
  262         <xsl:choose><xsl:when test="@nom">
  263             <xsl:value-of select="@nom"/>
  264         </xsl:when><xsl:otherwise>
  265             <xsl:value-of select="@fichier"/>
  266         </xsl:otherwise></xsl:choose>
  267     </xsl:variable>
  268     <xsl:variable name="titre">
  269         <xsl:choose><xsl:when test="@titre">
  270             <xsl:value-of select="@titre"/>
  271         </xsl:when><xsl:otherwise>
  272             <xsl:value-of select="$nom"/>
  273         </xsl:otherwise></xsl:choose>
  274     </xsl:variable>
  275     <xsl:choose><xsl:when test="@type='local'">
  276         <a href="{//document/root}/{//document/urladd}{@page}.{//document/ext}"
  277             title="{$titre}"><xsl:value-of select="$nom"/></a>
  278     </xsl:when><xsl:otherwise>
  279         <a href="{@page}" title="{$titre}"><xsl:value-of select="$nom"/></a>
  280     </xsl:otherwise></xsl:choose>
  281 </xsl:template>
  282 <!--
  283 ###                                                     ####
  284 ###     PAGE : LES STYLES DE PARAGRAPHES                ####
  285 ###                                                     ####
  286 -->
  287 <xsl:template match="p"><p><xsl:apply-templates/></p></xsl:template>
  288 <xsl:template match="puce"><ul><xsl:apply-templates/></ul></xsl:template>
  289 <xsl:template match="item"><li><xsl:apply-templates/></li></xsl:template>
  290 <xsl:template match="gauche">
  291     <div class="gauche"><xsl:apply-templates/></div>
  292 </xsl:template>
  293 <xsl:template match="droite">
  294     <div class="gauche"><xsl:apply-templates/></div>
  295 </xsl:template>
  296 <!--
  297 ###                                                     ####
  298 ###     PAGE : LE TEXTE DE L'ACCUEIL                    ####
  299 ###     PAGE : LE TEXTE D'UN DOSSIER/ARTICLE            ####
  300 ###                                                     ####
  301 -->
  302 <xsl:template match="index|dossier|article">
  303     <div class="index">
  304         <h1><xsl:value-of select="@titre"/></h1>
  305         <p class="auteur">
  306             <xsl:text>Par </xsl:text>
  307             <xsl:value-of select="@auteur"/>
  308             <xsl:text>, le </xsl:text>
  309             <xsl:value-of select="@date"/>
  310         </p>
  311         <xsl:apply-templates/>
  312     </div>
  313 </xsl:template>
  314 <xsl:template match="liste_article">
  315     <div class="spacer"></div>
  316     <div class="nouveautes">
  317         <h1>Les articles de ce dossier</h1>
  318         <ul><xsl:apply-templates/></ul>
  319     </div>
  320     <div class="spacer"></div>
  321 </xsl:template>
  322 <xsl:template match="item_article">
  323     <li>
  324         <a href="{//document/root}/{//document/urladd}{@page}.{//document/ext}"
  325             title="{@titre}"
  326         ><xsl:value-of select="@titre"/></a>
  327     </li>
  328 </xsl:template>
  329 <!--
  330 ###                                                     ####
  331 ###     PAGE : LES NOUVEAUTES                           ####
  332 ###                                                     ####
  333 -->
  334 <xsl:template match="nouveautes">
  335     <div class="spacer"></div>
  336     <div class="nouveautes">
  337         <h1>Les nouveautés</h1>
  338         <xsl:apply-templates/>
  339     </div>
  340 </xsl:template>
  341 <xsl:template match="nouveaute">
  342     <div class="nouveaute">
  343         <h2><xsl:value-of select="@titre"/></h2>
  344         <p class="auteur">
  345             <xsl:text>Par </xsl:text>
  346             <xsl:value-of select="@auteur"/>
  347             <xsl:text>, le </xsl:text>
  348             <xsl:value-of select="@date"/>
  349         </p>
  350         <xsl:apply-templates/>
  351     </div>
  352     <div class="spacer"></div>
  353 </xsl:template>
  354 <!--
  355 ###                                                     ####
  356 ###     PAGE : ALBUM PHOTO                              ####
  357 ###                                                     ####
  358 -->
  359 <xsl:template match="album">
  360     <div id="phototheque">
  361         <h1><xsl:value-of select="@titre"/></h1>
  362         <div class="planche">
  363             <xsl:for-each select="photo_album">
  364                 <xsl:if test="position() &gt; 1">
  365                     <xsl:if test="(position()-1) mod 5 = 0">
  366                         <br />
  367                     </xsl:if>
  368                 </xsl:if>
  369                 <div class="cel"><div class="vignette">
  370                     <a href="{//document/root}/{//document/urladd}{@page}.{//document/ext}">
  371                     <xsl:element name="img">
  372                         <xsl:attribute name="src">
  373                             <xsl:value-of select="//document/root"/>
  374                             <xsl:text>/PHOTOS/VIGNETTES/</xsl:text>
  375                             <xsl:value-of select="@fichier"/>
  376                             <xsl:text>.jpeg</xsl:text>
  377                         </xsl:attribute>
  378                         <xsl:attribute name="alt">
  379                             <xsl:value-of select="@titre"/>
  380                         </xsl:attribute>
  381                         <xsl:attribute name="title">
  382                             <xsl:value-of select="@titre"/>
  383                         </xsl:attribute>
  384                         <xsl:attribute name="width">
  385                             <xsl:value-of select="@w"/>
  386                         </xsl:attribute>
  387                         <xsl:attribute name="height">
  388                             <xsl:value-of select="@h"/>
  389                         </xsl:attribute>
  390                     </xsl:element>
  391                     </a>
  392                 </div></div>
  393             </xsl:for-each>
  394             <br/>
  395         </div>
  396         <div class="navigation">
  397             <xsl:choose><xsl:when test="navigation/premier">
  398                 <a href="{//document/root}/{//document/urladd}{navigation/premier/@page}.{//document/ext}">
  399                     <img src="{//document/root}/IMAGES/premier.png"
  400                         alt="première page de l'album"
  401                         title="première page de l'album"/>
  402                 </a>
  403             </xsl:when><xsl:otherwise>
  404                 <img src="{//document/root}/IMAGES/vide.png" alt='-'/>
  405             </xsl:otherwise></xsl:choose>
  406 
  407             <xsl:choose><xsl:when test="navigation/precedent">
  408                 <a href="{//document/root}/{//document/urladd}{navigation/precedent/@page}.{//document/ext}">
  409                     <img src="{//document/root}/IMAGES/precedent.png"
  410                         alt="page précédente de l'album"
  411                         title="page précédente de l'album"/>
  412                 </a>
  413             </xsl:when><xsl:otherwise>
  414                 <img src="{//document/root}/IMAGES/vide.png" alt='-'/>
  415             </xsl:otherwise></xsl:choose>
  416 
  417             <xsl:choose><xsl:when test="navigation/suivant">
  418                 <a href="{//document/root}/{//document/urladd}{navigation/suivant/@page}.{//document/ext}">
  419                     <img src="{//document/root}/IMAGES/suivant.png"
  420                         alt="page suivante de l'album"
  421                         title="page suivante de l'album"/>
  422                 </a>
  423             </xsl:when><xsl:otherwise>
  424                 <img src="{//document/root}/IMAGES/vide.png" alt='-'/>
  425             </xsl:otherwise></xsl:choose>
  426 
  427             <xsl:choose><xsl:when test="navigation/dernier">
  428                 <a href="{//document/root}/{//document/urladd}{navigation/dernier/@page}.{//document/ext}">
  429                     <img src="{//document/root}/IMAGES/dernier.png"
  430                         alt="dernière page de l'album"
  431                         title="dernière page de l'album"/>
  432                 </a>
  433             </xsl:when><xsl:otherwise>
  434                 <img src="{//document/root}/IMAGES/vide.png" alt='-'/>
  435             </xsl:otherwise></xsl:choose>
  436         </div>
  437     </div>
  438 </xsl:template>
  439 <!--
  440 ###                                                     ####
  441 ###     PAGE : GRANDE PHOTO                             ####
  442 ###                                                     ####
  443 -->
  444 <xsl:template match="grande_photo">
  445     <div id="phototheque">
  446         <h1><xsl:value-of select="@album"/></h1>
  447         <xsl:for-each select="la_photo">
  448             <div class="photo">
  449                 <h2><xsl:value-of select="@titre"/></h2>
  450                 <xsl:element name="img">
  451                     <xsl:attribute name="src">
  452                         <xsl:value-of select="//document/root"/>
  453                         <xsl:text>/PHOTOS/IMAGES/</xsl:text>
  454                         <xsl:value-of select="@fichier"/>
  455                         <xsl:text>.jpeg</xsl:text>
  456                     </xsl:attribute>
  457                     <xsl:attribute name="alt">
  458                         <xsl:value-of select="@titre"/>
  459                     </xsl:attribute>
  460                     <xsl:attribute name="title">
  461                         <xsl:value-of select="@titre"/>
  462                     </xsl:attribute>
  463                     <xsl:attribute name="width">
  464                         <xsl:value-of select="@w"/>
  465                     </xsl:attribute>
  466                     <xsl:attribute name="height">
  467                         <xsl:value-of select="@h"/>
  468                     </xsl:attribute>
  469                 </xsl:element>
  470             </div>
  471         </xsl:for-each>
  472         <div class="navigation">
  473             <xsl:choose><xsl:when test="navigation/premier">
  474                 <a href="{//document/root}/{//document/urladd}{navigation/premier/@page}.{//document/ext}">
  475                     <img src="{//document/root}/IMAGES/premier.png"
  476                         alt="première image de l'album"
  477                         title="première image de l'album"/>
  478                 </a>
  479             </xsl:when><xsl:otherwise>
  480                 <img src="{//document/root}/IMAGES/vide.png" alt='-'/>
  481             </xsl:otherwise></xsl:choose>
  482 
  483             <xsl:choose><xsl:when test="navigation/precedent">
  484                 <a href="{//document/root}/{//document/urladd}{navigation/precedent/@page}.{//document/ext}">
  485                     <img src="{//document/root}/IMAGES/precedent.png"
  486                         alt="image précédente de l'album"
  487                         title="image précédente de l'album"/>
  488                 </a>
  489             </xsl:when><xsl:otherwise>
  490                 <img src="{//document/root}/IMAGES/vide.png" alt='-'/>
  491             </xsl:otherwise></xsl:choose>
  492 
  493             <a href="{//document/root}/{//document/urladd}{navigation/album/@page}.{//document/ext}">
  494                 <img src="{//document/root}/IMAGES/album.png"
  495                     alt="page de l'album"
  496                     title="page de l'album"/>
  497             </a>
  498 
  499             <xsl:choose><xsl:when test="navigation/suivant">
  500                 <a href="{//document/root}/{//document/urladd}{navigation/suivant/@page}.{//document/ext}">
  501                     <img src="{//document/root}/IMAGES/suivant.png"
  502                         alt="image suivante de l'album"
  503                         title="image suivante de l'album"/>
  504                 </a>
  505             </xsl:when><xsl:otherwise>
  506                 <img src="{//document/root}/IMAGES/vide.png" alt='-'/>
  507             </xsl:otherwise></xsl:choose>
  508 
  509             <xsl:choose><xsl:when test="navigation/dernier">
  510                 <a href="{//document/root}/{//document/urladd}{navigation/dernier/@page}.{//document/ext}">
  511                     <img src="{//document/root}/IMAGES/dernier.png"
  512                         alt="dernière image de l'album"
  513                         title="dernière image de l'album"/>
  514                 </a>
  515             </xsl:when><xsl:otherwise>
  516                 <img src="{//document/root}/IMAGES/vide.png" alt='-'/>
  517             </xsl:otherwise></xsl:choose>
  518         </div>
  519     </div>
  520 </xsl:template>
  521 <!--
  522 ###                                                     ####
  523 ###     PAGE : CALENDRIER                               ####
  524 ###                                                     ####
  525 -->
  526 <xsl:template match="cal">
  527 <script type="text/javascript" src="{//document/root}/LIB/httprequest.js"/>
  528 <!-- attention /calendrier.js en HTML et /MEMBRE/calendrier.js en Membre -->
  529 <script type="text/javascript" src="calendrier.js"/>
  530 <div class="cal_nav">
  531 <span class="cal_prec">
  532     <xsl:choose><xsl:when test="@precedente">
  533         <a href="{//document/root}/{//document/urladd}cal_{@precedente}.{//document/ext}">
  534             <img src="{//document/root}/IMAGES/precedent.png"
  535                 alt="saison {@precedente}"
  536                 title="saison {@precedente}"/>
  537                     <xsl:text>&#160;&#160;</xsl:text>
  538                     <xsl:value-of select="@precedente"/>
  539                 </a>
  540             </xsl:when><xsl:otherwise>
  541                 <xsl:text>&#160;</xsl:text>
  542             </xsl:otherwise></xsl:choose>
  543         </span>
  544         <span class="cal_suiv">
  545             <xsl:choose><xsl:when test="@suivante">
  546                 <a href="{//document/root}/{//document/urladd}cal_{@suivante}.{//document/ext}">
  547                     <xsl:value-of select="@suivante"/>
  548                     <xsl:text>&#160;&#160;</xsl:text>
  549                     <img src="{//document/root}/IMAGES/suivant.png"
  550                         alt="saison {@suivante}"
  551                         title="saison {@suivante}"/>
  552                 </a>
  553             </xsl:when><xsl:otherwise>
  554                 <xsl:text>&#160;</xsl:text>
  555             </xsl:otherwise></xsl:choose>
  556         </span>
  557         <span class="cal_cour">
  558             <xsl:value-of select="@saison"/>
  559         </span>
  560     </div>
  561     <div id="cal">
  562         <xsl:apply-templates select="mois"/>
  563         <div id="cal_info">
  564             <xsl:choose><xsl:when test="//document/membre">
  565                 <span id="cal_date">jj/mm/aaaa</span>
  566                 <select id="cal_classe" size="1"><xsl:for-each select="classe">
  567                     <option value="{@classe}">
  568                         <xsl:value-of select="@info"/>
  569                     </option>
  570                 </xsl:for-each></select>
  571                 <textarea id="cal_txt" rows="3" cols="60"></textarea>
  572                 <input type="button" value="Modifier" onclick="modifier()"/>
  573             </xsl:when><xsl:otherwise>
  574             </xsl:otherwise></xsl:choose>
  575         </div>
  576     <script type="text/javascript">
  577     aujourdhui('<xsl:value-of select="@saison"/>') ;
  578     </script>
  579     </div>
  580 </xsl:template>
  581 <xsl:template match="mois">
  582     <div id="mois{@pos}">
  583         <h1>
  584             <xsl:value-of select="@mois"/>
  585             <xsl:text>&#160;</xsl:text>
  586             <xsl:value-of select="@annee"/>
  587         </h1>
  588         <span class="jour nom">Dim</span>
  589         <span class="jour nom">Lun</span>
  590         <span class="jour nom">Mar</span>
  591         <span class="jour nom">Mer</span>
  592         <span class="jour nom">Jeu</span>
  593         <span class="jour nom">Ven</span>
  594         <span class="jour nom">Sam</span>
  595         <br class="fin_semaine"/>
  596         <xsl:apply-templates/>
  597     </div>
  598 </xsl:template>
  599 <xsl:template match="jour">
  600     <xsl:if test="position()=1">
  601         <xsl:if test="@jsem &gt; '0'"><span class="jour">&#160;</span></xsl:if>
  602         <xsl:if test="@jsem &gt; '1'"><span class="jour">&#160;</span></xsl:if>
  603         <xsl:if test="@jsem &gt; '2'"><span class="jour">&#160;</span></xsl:if>
  604         <xsl:if test="@jsem &gt; '3'"><span class="jour">&#160;</span></xsl:if>
  605         <xsl:if test="@jsem &gt; '4'"><span class="jour">&#160;</span></xsl:if>
  606         <xsl:if test="@jsem &gt; '5'"><span class="jour">&#160;</span></xsl:if>
  607     </xsl:if>
  608     <xsl:if test="position()!=1">
  609         <xsl:if test="@jsem='0'"><br class="fin_semaine"/></xsl:if>
  610     </xsl:if>
  611     <xsl:element name="span">
  612         <xsl:attribute name="class">
  613             <xsl:text>jour </xsl:text><xsl:value-of select="@classe"/>
  614             <xsl:if test="@info != ''">
  615                 <xsl:text> cal_info</xsl:text>
  616             </xsl:if>
  617         </xsl:attribute>
  618         <xsl:attribute name="id">
  619             <xsl:text>cj</xsl:text><xsl:value-of select="@id"/>
  620         </xsl:attribute>
  621         <xsl:attribute name="onclick">
  622             <xsl:text>info('</xsl:text>
  623             <xsl:value-of select="@id"/>
  624             <xsl:text>')</xsl:text>
  625         </xsl:attribute>
  626         <xsl:value-of select="@jour"/>
  627     </xsl:element>
  628 </xsl:template>
  629 
  630 </xsl:stylesheet>
  631 
Makefile param.php index.html site.xsl site.css forum.xsl forum.css album.png dernier.png haut.png precedent.png premier.png slide.png suivant.png vide.png
~~ / DEFAUT / site.xsl

Haut de page

Contacter crabs

Date de génération : 24/10/2008 21:34