/trunk/papyrus/applications/afficheur/configuration/affi_fckconfig.js |
---|
85,6 → 85,7 |
FCKConfig.ToolbarSets["Papyrus"] = [ |
['Source','Preview','-','Cut','Copy','Paste','PasteText','PasteWord','SelectAll','-','Undo','Redo','Find','Replace'], |
['RemoveFormat','Bold','Italic','Underline','StrikeThrough','Subscript','Superscript','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','OrderedList','UnorderedList'], |
'/', |
['Image','Table','Link','Unlink','Rule','SpecialChar','UniversalKey'], |
['FontFormat','FontName','FontSize','TextColor'], |
['About'] |
/trunk/client/integrateur_wikini/bibliotheque/adwi_wikini.fonct.php |
---|
21,7 → 21,7 |
// | along with Foobar; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: adwi_wikini.fonct.php,v 1.2 2005-08-31 17:34:52 ddelon Exp $ |
// CVS : $Id: adwi_wikini.fonct.php,v 1.3 2005-09-02 11:29:25 ddelon Exp $ |
/** |
* Contient les fonctions de l'application gestion des Wikini |
* |
35,7 → 35,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.2 $ |
*@version $Revision: 1.3 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
101,7 → 101,7 |
$tableau_retour['bdd_mdp'] = $ligne->gewi_bdd_mdp; |
$tableau_retour['table_prefix'] = $ligne->gewi_table_prefix ; |
$tableau_retour['page'] = $ligne->gewi_page; |
$tableau_retour['description'] = $ligne->gewi_description ; |
$tableau_retour['chemin'] = $ligne->gewi_chemin ; |
unset ($requete, $resultat); |
return $tableau_retour ; |
158,7 → 158,7 |
.'gewi_bdd_utilisateur ="'.$valeur['bdd_utilisateur'].'", ' |
.'gewi_bdd_mdp="'.$valeur['bdd_mdp'].'", ' |
.'gewi_table_prefix="'.$valeur['table_prefix'].'", ' |
.'gewi_description="'.$valeur['description'].'", ' |
.'gewi_chemin="'.$valeur['chemin'].'", ' |
.'gewi_page="'.$valeur['page'].'"'; |
} |
171,6 → 171,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.2 2005/08/31 17:34:52 ddelon |
* Integrateur Wikini et administration des Wikini |
* |
* Revision 1.1 2005/08/25 08:59:12 ddelon |
* Integrateur Wikini et administration des Wikini |
* |
/trunk/client/integrateur_wikini/bibliotheque/adwi_HTML_formulaireWikini.class.php |
---|
19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: adwi_HTML_formulaireWikini.class.php,v 1.2 2005-08-31 17:34:52 ddelon Exp $ |
// CVS : $Id: adwi_HTML_formulaireWikini.class.php,v 1.3 2005-09-02 11:29:25 ddelon Exp $ |
/** |
* |
* Admin Wikini |
32,7 → 32,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.2 $ |
*@version $Revision: 1.3 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
99,18 → 99,18 |
$this->addElement ('text', 'code_alpha_wikini', ADWI_NOM_WIKINI, array ('size' => 60)) ; |
$this->addRule ('code_alpha_wikini', ADWI_NOM_WIKINI_ALERTE, 'required', '', 'client') ; |
// Défault : PagePrincipale |
$this->addElement ('text', 'page', ADWI_PAGE, array ('size' => 60)) ; |
$this->addElement ('text', '', 'Configuration avancée :') ; |
$this->addElement ('text', 'bdd_hote', ADWI_BDD_HOTE, array ('size' => 60)) ; |
$this->addRule ('bdd_hote', ADWI_BDD_HOTE_ALERTE, 'required', '', 'client') ; |
$this->addElement ('text', 'bdd_nom', ADWI_BDD_NOM, array ('size' => 60)) ; |
$this->addRule ('bdd_nom', ADWI_BDD_NOM_ALERTE, 'required', '', 'client') ; |
$this->addElement ('text', 'bdd_utilisateur', ADWI_BDD_UTILISATEUR, array ('size' => 60)) ; |
$this->addRule ('bdd_utilisateur', ADWI_BDD_UTILISATEUR_ALERTE, 'required', '', 'client') ; |
$this->addElement ('text', 'bdd_mdp', ADWI_BDD_MDP, array ('size' => 60)) ; |
$this->addElement ('text', 'table_prefix', ADWI_TABLE_PREFIX, array ('size' => 60)) ; |
$this->addRule ('table_prefix', ADWI_TABLE_PREFIX_ALERTE, 'required', '', 'client') ; |
$this->addElement ('text', 'page', ADWI_PAGE, array ('size' => 60)) ; |
$this->addRule ('page', ADWI_PAGE_ALERTE, 'required', '', 'client') ; |
$this->addElement ('textarea', 'description', ADWI_DESCRIPTION, array ('cols' => 50, 'rows' => 5)) ; |
$this->addElement ('text', 'chemin', ADWI_CHEMIN, array ('size' => 60)) ; |
$this->setRequiredNote('<span style="color: #ff0000">*</span>'.ADWI_CHAMPS_REQUIS) ; |
/trunk/client/integrateur_wikini/langues/adwi_langue_fr.inc.php |
---|
21,7 → 21,7 |
// | along with Foobar; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: adwi_langue_fr.inc.php,v 1.2 2005-08-31 17:34:52 ddelon Exp $ |
// CVS : $Id: adwi_langue_fr.inc.php,v 1.3 2005-09-02 11:29:25 ddelon Exp $ |
/** |
* Gestion des langues de l'application ADWI : administration des Wikini |
* |
34,7 → 34,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.2 $ |
*@version $Revision: 1.3 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
48,7 → 48,7 |
define ("ADWI_BDD_MDP", "Mot de Passe") ; |
define ("ADWI_TABLE_PREFIX", "Préfixe des tables") ; |
define ("ADWI_PAGE", "Page de démarrage") ; |
define ("ADWI_DESCRIPTION", "Description") ; |
define ("ADWI_CHEMIN", "Chemin d'accès") ; |
define ("ADWI_MODIFIER", "Modifier") ; |
define ("ADWI_SUPPRIMER", "Supprimer") ; |
56,16 → 56,9 |
define ("ADWI_NOM_WIKINI_ALERTE", "Vous devez spécifier un nom") ; |
define ("ADWI_BDD_HOTE_ALERTE", "Vous devez spécifier un nom d'hote") ; |
define ("ADWI_BDD_NOM_ALERTE", "Vous devez spécifier une base de donnée") ; |
define ("ADWI_BDD_UTILISATEUR_ALERTE", "Vous devez spécifier un utilsateur") ; |
define ("ADWI_TABLE_PREFIX_ALERTE", "Vous devez spécifier un préfixe") ; |
define ("ADWI_PAGE_ALERTE", "Vous devez spécifier une page par défaut") ; |
define ("ADWI_CHAMPS_REQUIS", "Indique les champs requis") ; |
define ("ADWI_CHEMIN", "Chemin vers le Wikini") ; |
define ("ADWI_CHEMIN_REQUIS", "Le chemin vers le Wikini est requis") ; |
define ("ADWI_ANNULER", "Annuler") ; |
define ("ADWI_VALIDER", "Valider") ; |
73,6 → 66,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.2 2005/08/31 17:34:52 ddelon |
* Integrateur Wikini et administration des Wikini |
* |
* Revision 1.1 2005/08/25 08:59:12 ddelon |
* Integrateur Wikini et administration des Wikini |
* |
/trunk/client/integrateur_wikini/integrateur_wikini.admin.php |
---|
New file |
0,0 → 1,150 |
<?php |
/*vim: set expandtab tabstop=4 shiftwidth=4: */ |
// +------------------------------------------------------------------------------------------------------+ |
// | PHP version 4.1 | |
// +------------------------------------------------------------------------------------------------------+ |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) | |
// +------------------------------------------------------------------------------------------------------+ |
// | This library is free software; you can redistribute it and/or | |
// | modify it under the terms of the GNU Lesser General Public | |
// | License as published by the Free Software Foundation; either | |
// | version 2.1 of the License, or (at your option) any later version. | |
// | | |
// | This library 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 | |
// | Lesser General Public License for more details. | |
// | | |
// | You should have received a copy of the GNU Lesser General Public | |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: integrateur_wikini.admin.php,v 1.1 2005-09-02 11:29:25 ddelon Exp $ |
/** |
* Gestion des Wikini associé à un menu pour papyrus : lit et stocke les informations dans la |
* champs gm_application_arguments de la table gen_menu |
* |
* Principe : |
* Lecture arguments, decodage et affichage : Nom Wiki et Page Demarrage |
* Affichage de l'ensemble des Wiki Disponible (avec leur page par Defaut) |
* Choix d'un wiki |
* Mise à jour |
* |
* TODO : gerer le defaut sur demmarage |
* |
* ------------ -------------- |
* Wiki : | | Page Principale : | | |
* ------------ -------------- |
* |
* Fragmenteur choix (selection uniquement) |
* |
* -------------------------------------- |
* | Nom Wiki | Page Demmarage | |
* -------------------------------------- |
* | Wikini_01 | | |
* --------------------------------------- |
* | Wikini_02 | ChatMot | |
* --------------------------------------- |
* |
* Valider - Annuler |
* |
* |
*@package IntegrateurWikini |
//Auteur original : |
*@author David Delon <david.delon@clapas.net> |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.1 $ $Date: 2005-09-02 11:29:25 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
// +------------------------------------------------------------------------------------------------------+ |
// | ENTÊTE du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
// +------------------------------------------------------------------------------------------------------+ |
// | CLASSE | |
// +------------------------------------------------------------------------------------------------------+ |
/** Inclusion du fichier de configuration de cette application.*/ |
require_once 'client/integrateur_wikini/configuration/adwi_configuration.inc.php'; |
/** Inclusion de l'API de fonctions gérant les erreurs sql.*/ |
require_once ADWI_CHEMIN_BIBLIOTHEQUE_API.'debogage/BOG_sql.fonct.php'; |
require_once ADWI_CHEMIN_BIBLIOTHEQUE_API.'html/HTML_TableFragmenteur.php' ; |
require_once ADWI_CHEMIN_BIBLIOTHEQUE.'adwi_wikini.fonct.php'; |
// Inclusion des fichiers de traduction de l'appli ADWI dePapyrus |
if (file_exists(ADWI_CHEMIN_LANGUE.'adwi_langue_'.$GLOBALS['_GEN_commun']['i18n'].'.inc.php')) { |
/** Inclusion du fichier de traduction suite à la transaction avec le navigateur.*/ |
require_once ADWI_CHEMIN_LANGUE.'adwi_langue_'.$GLOBALS['_GEN_commun']['i18n'].'.inc.php'; |
} else { |
/** Inclusion du fichier de traduction par défaut.*/ |
require_once ADWI_CHEMIN_LANGUE.'adwi_langue_'.ADWI_I18N_DEFAUT.'.inc.php'; |
} |
class Integrateur_Wikini_Admin { |
/** Fonction redigerContenu() - Affiche le formulaire de rédaction |
* |
* |
* @return string Le HTML |
*/ |
function afficherContenuCorps() |
{ |
$db = &$GLOBALS['_GEN_commun']['pear_db'] ; |
$url = $GLOBALS['_GEN_commun']['url'] ; |
$auth = &$GLOBALS['_GEN_commun']['pear_auth'] ; |
isset ($GLOBALS['action']) ? '' : $GLOBALS['action'] = '' ; // On déclare action si elle n'existe pas |
if (!$auth->getAuth()) { |
return 'Identifiez-vous' ; |
} |
// Comportement par défaut |
// requete sur la table gen_wikini pour affichage de la liste des Wikini |
$requete = "select gewi_id_wikini, gewi_code_alpha_wikini from gen_wikini" ; |
$resultat = $db->query ($requete) ; |
if (DB::isError ($resultat)) { |
$GLOBALS['_GEN_commun']['debogage_erreur']->gererErreur(E_USER_WARNING, "Echec de la requete : $requete<br />".$resultat->getMessage(), |
__FILE__, __LINE__, 'admin_wikini') ; |
return ; |
} |
$liste = new HTML_TableFragmenteur () ; |
$liste->construireEntete(array (ADWI_NOM_WIKINI, ADWI_MODIFIER)) ; |
$tableau_wikini = array() ; |
while ($ligne = $resultat->fetchRow()) { |
$url->addQueryString ('id_wikini', $ligne[0]) ; |
array_push ($tableau_wikini, array ($ligne[1]."\n", // Première colonne, le nom de l'application |
'<a href="'.$url->getURL().'">'.ADWI_MODIFIER.'</a>'."\n", |
)); |
} |
$liste->construireListe($tableau_wikini) ; |
$res .= $liste->toHTML(); |
return $res ; |
} |
}// Fin de la classe |
// +------------------------------------------------------------------------------------------------------+ |
// | PIED du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* |
* +-- Fin du code ----------------------------------------------------------------------------------------+ |
*/ |
?> |
/trunk/client/integrateur_wikini/configuration/iw_config.inc.php |
---|
21,7 → 21,7 |
// | along with Foobar; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: iw_config.inc.php,v 1.3 2005-08-31 17:34:52 ddelon Exp $ |
// CVS : $Id: iw_config.inc.php,v 1.4 2005-09-02 11:29:25 ddelon Exp $ |
/** |
* Configuration de l'intégrateur de page Wikini |
* |
34,7 → 34,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.3 $ $Date: 2005-08-31 17:34:52 $ |
*@version $Revision: 1.4 $ $Date: 2005-09-02 11:29:25 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
62,15 → 62,66 |
define('IW_CHEMIN_WIKINI', GEN_CHEMIN_WIKINI); |
// TODO : un wiki par défaut pour chaque papyrus |
// TODO : un wiki par défaut pour chaque papyrus à l'installation de Papyrus |
if (!isset($GLOBALS['_GEN_commun']['info_application']->wikini)) { |
$GLOBALS['_GEN_commun']['info_application']->wikini = 'defaut'; |
} |
// TODO : un wiki par défaut pour chaque papyrus à l'installation de Papyrus |
if (!isset($GLOBALS['_GEN_commun']['info_application']->wikini)) { |
$GLOBALS['_GEN_commun']['info_application']->wikini = 'defaut'; |
} |
$config_wikini = adwi_valeurs_par_code_alpha($GLOBALS['_GEN_commun']['info_application']->wikini,&$GLOBALS['_GEN_commun']['pear_db'] ); |
// Parametres de base de donnée de Papyrus par défaut |
if ((!isset($config_wikini['bdd_hote'])) || (empty($config_wikini['bdd_hote']))) { |
$config_wikini['bdd_hote'] = PAP_BDD_SERVEUR; |
} |
if ((!isset($config_wikini['bdd_nom'])) || (empty($config_wikini['bdd_nom']))) { |
$config_wikini['bdd_nom'] = PAP_BDD_NOM; |
} |
if ((!isset($config_wikini['bdd_utilisateur'])) || (empty($config_wikini['bdd_utilisateur']))) { |
$config_wikini['bdd_utilisateur'] = PAP_BDD_UTILISATEUR; |
} |
if ((!isset($config_wikini['bdd_mdp'])) || (empty($config_wikini['bdd_mdp']))) { |
$config_wikini['bdd_mdp'] = PAP_BDD_MOT_DE_PASSE; |
} |
// Ordre de selection de la page de demmarage : |
// Page Specifiee dans le menu |
// Page par defaut du Wiki |
// PagePrincipale |
if ((!isset($GLOBALS['_GEN_commun']['info_application']->page)) || (empty($GLOBALS['_GEN_commun']['info_application']->page))) { |
$config_wikini['table_prefix'] = $GLOBALS['_GEN_commun']['info_application']->wikini.'_'; |
if ((!isset($config_wikini['page'])) || (empty($config_wikini['page']))) { |
$config_wikini['page'] = 'PagePrincipale'; |
} |
} |
else { |
$config_wikini['page'] = $GLOBALS['_GEN_commun']['info_application']->page; |
} |
if ((!isset($config_wikini['code_alpha_wikini'])) || (empty($config_wikini['code_alpha_wikini']))) { |
$config_wikini['code_alpha_wikini'] = $GLOBALS['_GEN_commun']['info_application']->wikini; |
} |
/** Constante stockant le chemin du dossier contenant le site Wikini en cours */ |
define('IW_CHEMIN_WIKINI_COURANT', GEN_CHEMIN_WIKINI.$config_wikini['code_alpha_wikini'].GEN_SEP); |
if ((!isset($config_wikini['chemin'])) || (empty($config_wikini['chemin']))) { |
define('IW_CHEMIN_WIKINI_COURANT', GEN_CHEMIN_WIKINI.$config_wikini['code_alpha_wikini'].GEN_SEP); |
} |
else { |
define('IW_CHEMIN_WIKINI_COURANT',$config_wikini['chemin'].GEN_SEP); |
} |
/** Constante stockant le chemin du dossier contenant le site Wikini en cours */ |
define('IW_CHEMIN_WIKINI_COURANT_FORMATTER', IW_CHEMIN_WIKINI_COURANT.'formatters'.GEN_SEP); |
112,6 → 163,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.3 2005/08/31 17:34:52 ddelon |
* Integrateur Wikini et administration des Wikini |
* |
* Revision 1.2 2005/08/25 08:59:12 ddelon |
* Integrateur Wikini et administration des Wikini |
* |
/trunk/client/integrateur_wikini/admin_wikini.php |
---|
19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: admin_wikini.php,v 1.2 2005-08-31 17:34:52 ddelon Exp $ |
// CVS : $Id: admin_wikini.php,v 1.3 2005-09-02 11:29:25 ddelon Exp $ |
/** |
* Application gérant les Wikini associe à Papyrus |
* |
35,7 → 35,7 |
//Auteur original : |
*@author David Delon <david.delon@clapas.net> |
*@copyright Tela-Botanica 2000-2005 |
*@version $Revision: 1.2 $ |
*@version $Revision: 1.3 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
122,7 → 122,7 |
return $formulaire->toHTML() ; |
} |
// Enregistrement de la modification |
// Enregistrement de la modification et retour à la liste |
if ($GLOBALS['action'] == 'modifier_v') { |
if ($formulaire->validate()) { |
130,7 → 130,7 |
} |
} |
// Enregistrement de l'ajout |
// Enregistrement de l'ajout et retour à la liste |
if ($GLOBALS['action'] == 'nouveau_v') { |
if ($formulaire->validate()) { |
175,6 → 175,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.2 2005/08/31 17:34:52 ddelon |
* Integrateur Wikini et administration des Wikini |
* |
* Revision 1.1 2005/08/25 08:59:12 ddelon |
* Integrateur Wikini et administration des Wikini |
* |
/trunk/client/integrateur_wikini/documentation/gen_application.sql |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/client/integrateur_wikini/integrateur_wikini.php |
---|
21,7 → 21,7 |
// | along with Foobar; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: integrateur_wikini.php,v 1.3 2005-08-31 17:34:52 ddelon Exp $ |
// CVS : $Id: integrateur_wikini.php,v 1.4 2005-09-02 11:29:25 ddelon Exp $ |
/** |
* Integrateur de page Wikini |
* |
33,7 → 33,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.3 $ $Date: 2005-08-31 17:34:52 $ |
*@version $Revision: 1.4 $ $Date: 2005-09-02 11:29:25 $ |
* |
// +------------------------------------------------------------------------------------------------------+ |
// | ENTETE du PROGRAMME | |
72,12 → 72,15 |
$_SERVER['PHP_SELF']="wakka.php"; |
// Utilise le wakkaconfig de la racine ... |
// TODO : generer un wakkaconfig en fonction des parametres, dans un temp et l'ecrire |
// juste avant ... : bof (car conflits possibles). |
// Ou alors : on utilise un wakkaconfig generique à minima ... |
// Dans tous les cas, il faut gerer le WakaConfig Generique ! |
// Prevoir de revoir la contrib menu ... qui doit être switchable, ou plutot, |
// Customiser son menu avec papyrus ... |
// TODO : Prevoir de revoir la contrib menu ... qui doit être switchable, ou plutot, |
// TODO : Customiser son menu avec papyrus ... |
// TODO : un wiki par défaut pour chaque papyrus à l'installation de Papyrus |
// TODO : message erreur session |
// TODO : message erreur interwiki |
// TODO : verifier bon dimensionnement des champs et clef de la table papyrus_wiki |
// TODO : creation des tables par defaut à l'installation d'un wikini |
// TODO : Fusion des fichiers de configuration ? |
// TODO : creation automatique des Wikis ... |
ob_start(); |
include_once IW_CHEMIN_WIKINI_COURANT.'wakka.php'; |
203,7 → 206,6 |
*/ |
function afficherContenuPied() |
{ |
return; |
return inclusion_html('pied_page'); |
} |
?> |