Bonjour à tous,
J'ai téléchargé
ici, le module resmanager (v 1.2.1)
Installation : OK
Paramétrage : OK
Lancement du module :
// // -------------------------------------------------------------------------
// // This program is free software; you can redistribute it and/or modify
// // it under the terms of the GNU General Public License as published by
// // the Free Software Foundation; either version 2 of the License, or //
// (at your option) any later version. // // // // You may not change or
alter any portion of this comment or credits // // of supporting developers
from this source code or any supporting // // source code which is
considered copyrighted (c) material of the // // original comment or credit
authors. // // // // This program is distributed in the hope that it will
be useful, // // but WITHOUT ANY WARRANTY; without even the implied
warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
the // // GNU General Public License for more details. // // // // You
should have received a copy of the GNU General Public License // // along
with this program; if not, write to the Free Software // // Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // //
------------------------------------------------------------------------ //
include("header.php"); include(XOOPS_ROOT_PATH."/header.php"); // Template
$xoopsOption['template_main'] = "accueil.html"; // Variable contenant les
données à afficher dans le template $contenu_page = array(); // Titres
$contenu_page[0]['title'] = _MD_ACCEUIL1; $contenu_page[1]['title'] =
_MD_ACCEUIL2; $contenu_page[2]['title'] = _MD_ACCEUIL3;
$contenu_page[3]['title'] = _MD_ACCEUIL4; // Menu
$contenu_page[0]['lines'][0] = ""._MD_RESMANAGER_SUBMENU1."";
$contenu_page[0]['lines'][1] = ""._MD_RESMANAGER_SUBMENU2.""; // Dernière
réservation calendrier $res = new ResManagerRes($xoopsDB); $tabres_cal =
$res->getLastResCal(); $contenu_page[1]['lines'] = $tabres_cal; // Dernière
réservation uniques $tabres_unique = $res->getLastResUnique();
$contenu_page[2]['lines'] = $tabres_unique; // Liste des demandes de
l'utilisateur $dem = new ResManagerDem($xoopsDB); if
(checkAdmin($xoopsUser, $xoopsModule) ) $tab_dem = $dem->getAllDem(0, 5);
else if ( $xoopsUser ) { $dem->id_user = $xoopsUser->uid(); $tab_dem =
$dem->getUserDem(0, 5); } // Mise en forme du statut demande
for($i=0;$iassign('contenu_page', $contenu_page);
$xoopsTpl->assign('lang_suite', _MD_SUITE); $xoopsTpl->assign('res_cal',
RES_CALENDRIER); $xoopsTpl->assign('res_unique', RES_UNIQUE);
include(XOOPS_ROOT_PATH."/footer.php"); ?>
Pas glop...
Voici ce que j'ai trouvé :
5 Fichiers php sont amputés !
il s'agit de :
edit_dem.php
index.php
lst_dem.php
make_dem.php
make_decimal.php
voici à quoi ressemble la première ligne de ces fichiers php :
<?
au lieu de
<?php
Après correction tout fonctionne !
Ce module est très intéressant.
Bien vu le fait que l'on ne puisse supprimer une catégorie que s'il n'y a aucune réservation s'y rattachant.
Remarque (second oubli) : Lors de la création d'une catégorie on peut ajouter une image.
Lors de la modification d'une catégorie on ne peut pas modifier l'image (pas d'accès à cette option)
Ce n'est pas bien grave, mais je le signale tout de même...
@+
Z