Crabs Contents Management System

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

~~ / ADMIN / admin.xsl
Makefile admin.xsl admin.js index.php vars_done.php db_create.php users.php user_addmod.php user_info.php user_passwd.php cal_ajouter.php svg.php svg_do.php mysql_create_user.php mysql_create_dossier.php mysql_insert_dossier.php mysql_create_article.php mysql_create_pha.php mysql_insert_pha.php mysql_create_phf.php mysql_create_news.php mysql_create_cal.php mysql_create_calcl.php mysql_insert_calcl.php mysql_create_ff.php mysql_create_fq.php mysql_create_fr.php mysql_create_fu.php mysql_create_fi.php
    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 <html>
   39 <head>
   40     <link rel="stylesheet" href="../STYLE/admin.css" type="text/css" />
   41     <title><xsl:value-of select="//document/titre"/></title>
   42 </head>
   43 <body>
   44     <div id="logo"><xsl:value-of select="//document/titre"/></div>
   45     <div id="menu_principal">
   46         <span class="item">
   47             <xsl:choose><xsl:when test="document/@menu='index'">
   48                 <xsl:text>Variables</xsl:text>
   49             </xsl:when><xsl:otherwise>
   50                 <a href="index.php">Variables</a>
   51             </xsl:otherwise></xsl:choose>
   52         </span>
   53         <span class="item">
   54             <xsl:choose><xsl:when test="document/@menu='svg'">
   55                 <xsl:text>Sauvegardes</xsl:text>
   56             </xsl:when><xsl:otherwise>
   57                 <a href="svg.php">Sauvegardes</a>
   58             </xsl:otherwise></xsl:choose>
   59         </span>
   60         <span class="item">
   61             <xsl:choose><xsl:when test="document/@menu='users'">
   62                 <xsl:text>Utilisateurs</xsl:text>
   63             </xsl:when><xsl:otherwise>
   64                 <a href="users.php">Utilisateurs</a>
   65             </xsl:otherwise></xsl:choose>
   66         </span>
   67         <span class="item">
   68             <xsl:choose><xsl:when test="document/@menu='cal'">
   69                 <xsl:text>Calendrier</xsl:text>
   70             </xsl:when><xsl:otherwise>
   71                 <a href="cal_ajouter.php">Calendrier</a>
   72             </xsl:otherwise></xsl:choose>
   73         </span>
   74         <span class="item">
   75             <a href="db_create.php"
   76                 title="Attention efface les bases existantes"
   77                 >Créer les bases</a>
   78         </span>
   79         <span class="item">
   80             <a href="../index.html"
   81                 title="Accès à l'accueil du site {document/site}"
   82                 ><xsl:value-of select="//document/site"/></a>
   83         </span>
   84     </div>
   85     <xsl:apply-templates />
   86 </body>
   87 </html>
   88 </xsl:template>
   89 <!-- ICI les elements à ingnorer -->
   90 <xsl:template match="titre"></xsl:template>
   91 <xsl:template match="site"></xsl:template>
   92 
   93 <!--
   94 ###                                                     ####
   95 ###     INDEX : SAISIE DES VARIABLES                    ####
   96 ###                                                     ####
   97 -->
   98 <xsl:template match="variables">
   99     <div id="contenu">
  100     <form method="POST" action="vars_done.php"><table>
  101         <tr><th colspan="2">Variables de l'application</th></tr>
  102         <xsl:apply-templates />
  103         <tr><td class="bouton" colspan="2">
  104             <input name="ok" value="Modifier" type="submit" />
  105         </td></tr>
  106     </table></form>
  107     </div>
  108 </xsl:template>
  109 <xsl:template match="variable">
  110     <tr><td class="label">
  111         <xsl:value-of select="@desc"/><xsl:text> :</xsl:text>
  112     </td><td>
  113         <input name="p{@nom}" value="{text()}" type="text" size="48"/>
  114     </td></tr>
  115 </xsl:template>
  116 
  117 <!--
  118 ###                                                     ####
  119 ###     LA PAGE USERS                                   ####
  120 ###                                                     ####
  121 -->
  122 <xsl:template match="users">
  123     <script type="text/javascript" src="../LIB/httprequest.js"></script>
  124     <script type="text/javascript" src="admin.js"></script>
  125     <div id="liste_gauche">
  126         <table class="liste">
  127             <tr>
  128                 <th>Pseudo</th>
  129                 <th>Nom</th>
  130                 <th>Prénom</th>
  131                 <th>Email</th>
  132                 <th>Site</th>
  133                 <th>Tel</th>
  134                 <th>Gsm</th>
  135                 <th>Wb</th>
  136                 <th>Br</th>
  137                 <th>Md</th>
  138             </tr>
  139         <xsl:apply-templates/>
  140         </table>
  141     </div>
  142     <div id="form_droite">
  143         <form method="POST" action="user_addmod.php"><table>
  144             <tr>
  145                 <th colspan="2" id="ft">Ajouter un utilisateur</th>
  146             </tr><tr>
  147                 <td class="label">Pseudo :</td>
  148                 <td><input type="text" name="fps" id="fps" size="16"/></td>
  149             </tr><tr>
  150                 <td class="label">Nom :</td>
  151                 <td><input type="text" name="fnm" id="fnm" size="32"/></td>
  152             </tr><tr>
  153                 <td class="label">Prenom :</td>
  154                 <td><input type="text" name="fpm" id="fpm" size="32"/></td>
  155             </tr><tr>
  156                 <td class="label">Email :</td>
  157                 <td><input type="text" name="fem" id="fem" size="32"/></td>
  158             </tr><tr>
  159                 <td class="label">Site :</td>
  160                 <td><input type="text" name="fst" id="fst" size="32"/></td>
  161             </tr><tr>
  162                 <td class="label">Tel :</td>
  163                 <td><input type="text" name="ftl" id="ftl" size="16"/></td>
  164             </tr><tr>
  165                 <td class="label">GSM :</td>
  166                 <td><input type="text" name="fgs" id="fgs" size="16"/></td>
  167             </tr><tr>
  168                 <td class="label">Webmaster :</td>
  169                 <td><input type="checkbox" name="fwm" id="fwm"/></td>
  170             </tr><tr>
  171                 <td class="label">Bureau :</td>
  172                 <td><input type="checkbox" name="fbu" id="fbu"/></td>
  173             </tr><tr>
  174                 <td class="label">Moderateur :</td>
  175                 <td><input type="checkbox" name="fbm" id="fbm"/></td>
  176             </tr><tr>
  177                 <td colspan="2" class="bouton">
  178                     <input type="button" value="Reset" id="frs"
  179                         onclick="userReset()" />
  180                     <xsl:text>&#160;&#160;</xsl:text>
  181                     <input type="submit" name="ok" value="Ajouter" id="fok"/>
  182                 </td>
  183             </tr>
  184             <input type="hidden" id="fmod" name="fmod" value="add"/>
  185         </table></form>
  186         <form method="POST" onsubmit="return false;"><table>
  187             <tr>
  188                 <th colspan="2" id="ft">Modification Mot de Passe</th>
  189             </tr><tr>
  190                 <td class="label">Pseudo :</td>
  191                 <td><input type="text" name="mps" id="mps" size="16"/></td>
  192             </tr><tr>
  193                 <td class="label">Mot de passe :</td>
  194                 <td><input type="text" name="mdp" id="mdp" size="16"/></td>
  195             </tr><tr>
  196                 <td colspan="2" class="bouton">
  197                     <input type="button" value="Changer"
  198                         onclick="userPasswd()" />
  199                 </td>
  200             </tr>
  201         </table></form>
  202     </div>
  203 </xsl:template>
  204 
  205 <xsl:template match="user">
  206     <xsl:variable name="cl">
  207         <xsl:choose><xsl:when test="position() mod 2=1">
  208             <xsl:text>pair</xsl:text>
  209         </xsl:when><xsl:otherwise>
  210             <xsl:text>impair</xsl:text>
  211         </xsl:otherwise></xsl:choose>
  212     </xsl:variable>
  213     <tr class="{$cl}" onclick="userModifier('{@pseudo}');">
  214         <td><xsl:value-of select="@pseudo"/></td>
  215         <td><xsl:value-of select="@nom"/></td>
  216         <td><xsl:value-of select="@prenom"/></td>
  217         <td><xsl:value-of select="@email"/></td>
  218         <td><xsl:value-of select="@site"/></td>
  219         <td><xsl:value-of select="@tel"/></td>
  220         <td><xsl:value-of select="@gsm"/></td>
  221         <td><xsl:value-of select="@webmaster"/></td>
  222         <td><xsl:value-of select="@bureau"/></td>
  223         <td><xsl:value-of select="@modo"/></td>
  224     </tr>
  225 </xsl:template>
  226 
  227 <!--
  228 ###                                                     ####
  229 ###     LA CREATION DES CALENDRIERS                     ####
  230 ###                                                     ####
  231 -->
  232 <xsl:template match="cal">
  233     <div id="contenu">
  234     <form method="POST" action="cal_ajouter.php"><table>
  235         <tr>
  236             <th colspan="2">Ajouter une saison</th>
  237         </tr><tr>
  238             <td class="label">Année de début de la saison</td>
  239             <td><input name="an" value="" type="text" size="6"/></td>
  240         </tr><tr>
  241             <td class="bouton" colspan="2">
  242                 <input name="ok" value="Ajouter la saison" type="submit" />
  243             </td>
  244         </tr>
  245     </table></form>
  246     <p><b>Saisons déjà créées</b></p>
  247     <ul><xsl:apply-templates select="saison"/></ul>
  248     </div>
  249 </xsl:template>
  250 <xsl:template match="saison">
  251     <li><xsl:value-of select="@annee"/></li>
  252 </xsl:template>
  253 <!--
  254 ###                                                     ####
  255 ###     RESTAURATION et SAUVEGARDES                     ####
  256 ###                                                     ####
  257 -->
  258 <xsl:template match="resto">
  259     <div id="contenu">
  260         <h1>Sauvergarde et Restauration</h1>
  261         <p><a href="svg_do.php">Faire la sauvegarde</a></p>
  262         <xsl:if test="sauvegarde">
  263             <p><b>Fichiers disponibles pour la restauration</b></p>
  264             <ul><xsl:for-each select="sauvegarde">
  265                 <li>
  266                     <a href="svg.php?a=r&amp;r={@n}">
  267                         <xsl:text>restaurer </xsl:text>
  268                         <xsl:value-of select="@n"/>
  269                     </a>
  270                     <xsl:text>, </xsl:text>
  271                     <a href="svg.php?a=d&amp;r={@n}">
  272                         <xsl:text>effacer</xsl:text>
  273                     </a>
  274                     <xsl:text>.</xsl:text>
  275                 </li>
  276             </xsl:for-each></ul>
  277         </xsl:if>
  278         <p><b>Télécharger le fichier :</b></p>
  279         <form method="post" action="svg.php" enctype="multipart/form-data">
  280             <input name="dat" type="file" />
  281             <xsl:text>&#160;&#160;&#160;&#160;</xsl:text>
  282             <input type="submit" value="Uploader &amp; Restaurer" name="ok"/>
  283         </form>
  284         <xsl:if test="restauration">
  285             <p><b>Restauration</b></p>
  286             <xsl:apply-templates select="restauration"/>
  287         </xsl:if>
  288         <xsl:if test="comment">
  289             <p><b>Informations...</b></p>
  290             <ul><xsl:for-each select="comment">
  291                 <li><xsl:apply-templates/></li>
  292             </xsl:for-each></ul>
  293         </xsl:if>
  294     </div>
  295 </xsl:template>
  296 <xsl:template match="restauration">
  297     <ul><xsl:apply-templates/></ul>
  298 </xsl:template>
  299 <xsl:template match="creation">
  300     <li>
  301         <xsl:text>Création de la table </xsl:text>
  302         <b><xsl:value-of select="@tbl"/></b>
  303     </li>
  304 </xsl:template>
  305 <xsl:template match="table">
  306     <li>
  307         <xsl:text>Nombre de lignes de la table </xsl:text>
  308         <b><xsl:value-of select="@tbl"/></b>
  309         <xsl:text> : </xsl:text>
  310         <xsl:value-of select="@nb"/>
  311     </li>
  312 </xsl:template>
  313 <!--
  314 ###                                                     ####
  315 ###     LE BAS DE PAGE                                  ####
  316 ###                                                     ####
  317 -->
  318 <xsl:template match="produit">
  319     <div id="produit">
  320         <xsl:value-of select="@nom" />
  321         <xsl:text>_</xsl:text>
  322         <xsl:value-of select="@version" />
  323         <xsl:text> - powered by PHP </xsl:text>
  324         <xsl:value-of select="@php" />
  325     </div>
  326 </xsl:template>
  327 </xsl:stylesheet>
Makefile admin.xsl admin.js index.php vars_done.php db_create.php users.php user_addmod.php user_info.php user_passwd.php cal_ajouter.php svg.php svg_do.php mysql_create_user.php mysql_create_dossier.php mysql_insert_dossier.php mysql_create_article.php mysql_create_pha.php mysql_insert_pha.php mysql_create_phf.php mysql_create_news.php mysql_create_cal.php mysql_create_calcl.php mysql_insert_calcl.php mysql_create_ff.php mysql_create_fq.php mysql_create_fr.php mysql_create_fu.php mysql_create_fi.php
~~ / ADMIN / admin.xsl

Haut de page

Contacter crabs

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