/trunk/client/projet/classes/document.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: document.class.php,v 1.1 2005-09-22 14:02:48 ddelon Exp $ |
// CVS : $Id: document.class.php,v 1.2 2005-09-26 20:18:27 ddelon Exp $ |
/** |
* Application projet |
* |
31,7 → 31,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.1 $ |
*@version $Revision: 1.2 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
135,21 → 135,22 |
die ("Echec de la requete<br />".$resultat->getMessage()."<br />".$resultat->getDebugInfo()) ; |
} |
$ligne = $resultat->fetchRow (DB_FETCHMODE_OBJECT) ; |
fichier::fichier($chemin.$ligne->pd_lien, $this->_db) ; |
$this->_id = $ligne->pd_id ; |
if (is_object ($this->_type_mime)) $this->_type_mime->setCheminIcone ($chemin_icones) ; |
$this->_id_proprietaire = $ligne->pd_ce_utilisateur ; |
$this->_nom_long = $ligne->pd_nom ; |
$this->_visibilite = $ligne->pd_visibilite ; |
$this->_date_mise_a_jour = $ligne->pd_date_de_mise_a_jour ; |
$this->_description = $ligne->pd_description ; |
$this->_pd_lien = $ligne->pd_lien; |
if ($this->_isRacine($ligne->pd_pere)) { |
$this->_id_pere = 0 ; |
} else { |
$this->_id_pere = $ligne->pd_pere ; |
} |
if ($resultat->numRows()>0) { |
fichier::fichier($chemin.$ligne->pd_lien, $this->_db) ; |
$this->_id = $ligne->pd_id ; |
if (is_object ($this->_type_mime)) $this->_type_mime->setCheminIcone ($chemin_icones) ; |
$this->_id_proprietaire = $ligne->pd_ce_utilisateur ; |
$this->_nom_long = $ligne->pd_nom ; |
$this->_visibilite = $ligne->pd_visibilite ; |
$this->_date_mise_a_jour = $ligne->pd_date_de_mise_a_jour ; |
$this->_description = $ligne->pd_description ; |
$this->_pd_lien = $ligne->pd_lien; |
if ($this->_isRacine($ligne->pd_pere)) { |
$this->_id_pere = 0 ; |
} else { |
$this->_id_pere = $ligne->pd_pere ; |
} |
} |
} |
} // end of member function document |
162,8 → 163,10 |
* @return document |
* @access public |
*/ |
function __construct( $id_document, &$objetDB ) |
function __construct( $id_document = "", &$objetDB, $chemin = '', $chemin_icones = '' ) |
{ |
$this->document($id_document, $objetDB, $chemin, $chemin_icones); |
} // end of member function __construct |
269,15 → 272,19 |
*/ |
function _isRacine( $id_document ) |
{ |
$requete = "select pd_pere from projet_documents where pd_id=$id_document" ; |
$resultat = $this->_db->query ($requete) ; |
if (DB::isError($resultat)) { |
die ("Echec de la requete<br />".$resultat->getMessage()."<br />".$resultat->getDebugInfo()) ; |
} |
$ligne = $resultat->fetchRow(DB_FETCHMODE_OBJECT) ; |
if ($ligne->pd_pere == null){ |
return true ; |
} |
if ($id_document) { |
$requete = "select pd_pere from projet_documents where pd_id=".$id_document ; |
$resultat = $this->_db->query ($requete) ; |
if (DB::isError($resultat)) { |
die ("Echec de la requete<br />".$resultat->getMessage()."<br />".$resultat->getDebugInfo()) ; |
} |
$ligne = $resultat->fetchRow(DB_FETCHMODE_OBJECT) ; |
if ($resultat->numRows() >0) { |
if ($ligne->pd_pere == null){ |
return true ; |
} |
} |
} |
return false ; |
} // end of member function _isRacine |
319,19 → 326,22 |
} |
$ligne = $resultat->fetchRow (DB_FETCHMODE_OBJECT) ; |
$chemin_rep_id_nom = array() ; |
if ($ligne->pd_pere == 0) { |
$tab = array ($ligne->pd_id, $ligne->pd_nom) ; |
if ($resultat->numRows()>0) { |
if ($ligne->pd_pere == 0) { |
$tab = array ($ligne->pd_id, $ligne->pd_nom) ; |
return $tab ; |
} else { |
$requete_pere = "select pd_id, pd_nom from projet_documents where pd_id=$ligne->pd_pere" ; |
$resultat_pere = $objetDB->query ($requete_pere) ; |
if (DB::isError($resultat_pere)) { |
die ("Echec de la requete<br />".$resultat_pere->getMessage()."<br />".$resultat_pere->getDebugInfo()) ; |
} |
$ligne_pere = $resultat_pere->fetchRow (DB_FETCHMODE_OBJECT) ; |
array_push ($chemin_rep_id_nom, $ligne->pd_id,$ligne->pd_nom) ; |
$tab = document::getCheminIdRepertoire($ligne_pere->pd_id, $objetDB) ; |
$chemin_rep_id_nom = array_merge ($chemin_rep_id_nom, $tab) ; |
} |
else { |
$requete_pere = "select pd_id, pd_nom from projet_documents where pd_id=$ligne->pd_pere" ; |
$resultat_pere = $objetDB->query ($requete_pere) ; |
if (DB::isError($resultat_pere)) { |
die ("Echec de la requete<br />".$resultat_pere->getMessage()."<br />".$resultat_pere->getDebugInfo()) ; |
} |
$ligne_pere = $resultat_pere->fetchRow (DB_FETCHMODE_OBJECT) ; |
array_push ($chemin_rep_id_nom, $ligne->pd_id,$ligne->pd_nom) ; |
$tab = document::getCheminIdRepertoire($ligne_pere->pd_id, $objetDB) ; |
$chemin_rep_id_nom = array_merge ($chemin_rep_id_nom, $tab) ; |
} |
} |
$tabl_resultat = array() ; |
for ($i = 0; $i < count ($chemin_rep_id_nom); $i++) { |
/trunk/client/projet/classes/projetControleur.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: projetControleur.class.php,v 1.2 2005-09-23 13:58:07 ddelon Exp $ |
// CVS : $Id: projetControleur.class.php,v 1.3 2005-09-26 20:18:27 ddelon Exp $ |
/** |
* Application projet |
* |
31,7 → 31,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.2 $ |
*@version $Revision: 1.3 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
189,11 → 189,13 |
return $this->messageErreur(PROJETCONTROLEUR_ACTION_INVALIDE) ; |
} |
// Si il n'y a pas d'action mais un projet, on transmet par défaut l'action PROJET_VOIR |
if ($this->_id_projet != "" && $this->_action == PROJET_DEFAUT) { |
$this->_action = PROJET_ACTION_VOIR_RESUME ; |
$this->_url->addQueryString (PROJET_VARIABLE_ID_PROJET, $this->_id_projet) ; |
} |
if ($this->_id_document != "") { |
$this->_url->addQueryString (PROJET_VARIABLE_ID_DOCUMENT, $this->_id_document) ; |
} |
200,6 → 202,7 |
$retour = '' ; |
if (!defined('PROJET_MENU_AFFICHER_CONTENU_CORPS')) $retour = $this->menuGeneral() ; |
switch ($this->_action) { |
case PROJET_DEFAUT : |
$retour .= $this->mesProjets() ; |
416,7 → 419,7 |
} |
$this->_url->addQueryString (PROJET_VARIABLE_ID_PROJET, $projet->getId()) ; |
$ligne_tableau = array ($projet->getId(), $statut, '<a href="'.PROJET_CHEMIN_ATELIERS.$projet->getId().'">'.$projet->getTitre().'</a>') ; |
$ligne_tableau = array ($projet->getId(), $statut, '<a href="'.$this->_url->getURL().'">'.$projet->getTitre().'</a>') ; |
if ($auth) { |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_DESINSCRIPTION_PROJET) ; |
array_push ($ligne_tableau, '<a href="'.$this->_url->getURL().'" onclick="javascript:return confirm(\''. |
462,7 → 465,7 |
foreach ($projetNonParticipantListe as $projet) { |
$this->_url->addQueryString(PROJET_VARIABLE_ID_PROJET, $projet->getId()) ; |
$ligne_projet = array ( |
'<a href="'.PROJET_CHEMIN_ATELIERS.$projet->getId().'">'.$projet->getTitre().'</a>' // le nom du projet |
'<a href="'.$this->_url->getURL().'">'.$projet->getTitre().'</a>' // le nom du projet |
) ; |
$this->_url->addQueryString (PROJET_VARIABLE_ACTION, PROJET_ACTION_S_INSCRIRE) ; |
if ($auth) array_push ($ligne_projet, '<a href="'.$this->_url->getURL().'">'.PROJET_S_INSCRIRE.'</a>') ; |
678,7 → 681,6 |
$formulaire_projet = new HTML_formulaireProjet('formulaire_projet', 'post', str_replace ('&', '&', $this->_url->getURL())) ; |
$formulaire_projet->construitFormulaire(projet::getTousLesProjets($this->_db)) ; |
if ($formulaire_projet->validate()) { |
$projet = new projet ($this->_db) ; |
$projet->setCheminRepertoire (PROJET_CHEMIN_FICHIER) ; |
if (!$projet->enregistrerSQL($formulaire_projet->getSubmitValues())) { |
/trunk/client/projet/classes/HTML_listeDocuments.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: HTML_listeDocuments.class.php,v 1.1 2005-09-22 14:02:47 ddelon Exp $ |
// CVS : $Id: HTML_listeDocuments.class.php,v 1.2 2005-09-26 20:18:27 ddelon Exp $ |
/** |
* Application projet |
* |
31,7 → 31,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.1 $ |
*@version $Revision: 1.2 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
121,8 → 121,9 |
* @return void |
* @access public |
*/ |
function __construct( $utilise_pager ) |
function __construct( &$url, $utilise_pager = false, $id_repertoire = 0, $auth = '' ) |
{ |
$this->HTML_listeDocuments($url, $utilise_pager, $id_repertoire, $auth); |
} // end of member function __construct |
/trunk/client/projet/classes/HTML_listeProjet.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: HTML_listeProjet.class.php,v 1.1 2005-09-22 14:02:48 ddelon Exp $ |
// CVS : $Id: HTML_listeProjet.class.php,v 1.2 2005-09-26 20:18:27 ddelon Exp $ |
/** |
* Application projet |
* |
31,7 → 31,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.1 $ |
*@version $Revision: 1.2 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
79,8 → 79,9 |
* @return void |
* @access public |
*/ |
function __construct( ) |
function __construct($utilise_pager = false) |
{ |
$this->HTML_listeProjet($utilise_pager); |
} // end of member function __cosntruct |
/trunk/client/projet/classes/annuaire.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: annuaire.class.php,v 1.1 2005-09-22 14:02:47 ddelon Exp $ |
// CVS : $Id: annuaire.class.php,v 1.2 2005-09-26 20:18:27 ddelon Exp $ |
/** |
* Application annuaire |
* |
31,7 → 31,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.1 $ |
*@version $Revision: 1.2 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
108,7 → 108,7 |
$requete = 'select '.$this->_champs_base[$parametre]. |
' from '.$this->_champs_base['table']. |
' where '.$this->_champs_base['identifiant'].'='.$this->_id_utilisateur ; |
$resultat = $this->_db->query ($requete) ; |
$resultat = $GLOBALS['projet_db']->query($requete) ; |
if (DB::isError($resultat)) { |
echo 'erreur '.$resultat->getMessage() ; |
} |
/trunk/client/projet/classes/projet.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: projet.class.php,v 1.1 2005-09-22 14:02:47 ddelon Exp $ |
// CVS : $Id: projet.class.php,v 1.2 2005-09-26 20:18:27 ddelon Exp $ |
/** |
* Application projet |
* |
31,7 → 31,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.1 $ |
*@version $Revision: 1.2 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
140,13 → 140,14 |
/** |
* |
* |
* PHP5 |
* @return projet |
* @access public |
*/ |
function __construct( ) |
function __construct( &$dbObject, $id_projet = "") |
{ |
$this->projet($dbObject, $id_projet); |
} // end of member function __construct |
/** |
429,6 → 430,7 |
*/ |
function enregistrerSQL( $tableau_de_valeur ) |
{ |
$nom_repertoire = projet::genereNomRepertoire($tableau_de_valeur['projet_titre'], $this->_db) ; |
if (!$this->_creationRepertoire ($nom_repertoire)) { |
echo 'Impossible de crée un répertoire' ; |
436,6 → 438,9 |
} |
$id = SQL_obtenirNouveauId($this->_db, 'projet', 'p_id') ; |
$requete = 'insert into projet set p_id='.$id ; |
if (!isset($tableau_de_valeur['projet_wikini'])) { |
$tableau_de_valeur['projet_wikini']=''; |
} |
$requete .= ', p_titre="'.$tableau_de_valeur['projet_titre'].'", p_description="'.$tableau_de_valeur['projet_description'].'"'. |
', p_espace_internet="'.$tableau_de_valeur['projet_espace_internet'].'", p_date_creation=NOW()'. |
', p_wikini="'.$tableau_de_valeur['projet_wikini'].'", p_nom_repertoire="'.$nom_repertoire.'", p_resume="'.$tableau_de_valeur['projet_resume'].'"' ; |
585,9 → 590,15 |
if (DB::isError ($resultat)) { |
die ("Echec de la requete : $requete<br />".$resultat->getMessage()) ; |
} |
$ligne = $resultat->fetchRow (DB_FETCHMODE_OBJECT) ; |
$nom = strtoupper(substr($chaine, 0, 1)) ; |
$nom .= $ligne->p_id + 1 ; |
if ($resultat->numRows() > 0) { |
$ligne = $resultat->fetchRow (DB_FETCHMODE_OBJECT) ; |
$nom = strtoupper(substr($chaine, 0, 1)) ; |
$nom .= $ligne->p_id + 1 ; |
} |
else { |
$nom = strtoupper(substr($chaine, 0, 1)) ; |
$nom .= 1 ; |
} |
return $nom ; |
} // end of member function genereNomRepertoire |
/trunk/client/projet/classes/fichier.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: fichier.class.php,v 1.1 2005-09-22 14:02:47 ddelon Exp $ |
// CVS : $Id: fichier.class.php,v 1.2 2005-09-26 20:18:27 ddelon Exp $ |
/** |
* Application projet |
* |
31,7 → 31,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.1 $ |
*@version $Revision: 1.2 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
97,7 → 97,7 |
* @return void |
* @access public |
*/ |
function fichier( $chemin, $objetDB = "") |
function fichier( $chemin, &$objetDB = "") |
{ |
$this->_chemin = $chemin ; |
// On analyse l'extension pour découvrir le type mime |
117,8 → 117,9 |
* @return fichier |
* @access public |
*/ |
function __construct( $chemin ) |
function __construct( $chemin, &$objetDB = "" ) |
{ |
$this->fichier($chemin, $objetDB); |
} // end of member function __construct |
/trunk/client/projet/actions/participants.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: participants.php,v 1.1 2005-09-22 14:02:49 ddelon Exp $ |
// CVS : $Id: participants.php,v 1.2 2005-09-26 20:18:27 ddelon Exp $ |
/** |
* Application projet |
* |
31,7 → 31,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2005 |
*@version $Revision: 1.1 $ |
*@version $Revision: 1.2 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
43,7 → 43,6 |
// On se situe dans la méthode run() de la classe projetControleur |
// |
include_once PROJET_CHEMIN_CLASSES.'HTML_listeParticipants.class.php' ; |
$res = '' ; |
$projet = new projet ($this->_db, $this->_id_projet) ; |
/trunk/client/projet/documentation/projet.sql |
---|
112,4 → 112,38 |
'0', '1', '0', '0000-00-00' |
); |
CREATE TABLE `gen_type_de_fichier` ( |
`gtf_id_type` int(11) NOT NULL default '0', |
`gtf_nom` varchar(255) NOT NULL default '', |
`gtf_extension` varchar(255) NOT NULL default '', |
`gtf_type_icone` varchar(255) NOT NULL default 'default.gif', |
`gtf_type_mime` varchar(255) NOT NULL default '', |
`gtf_description` varchar(255) default NULL, |
PRIMARY KEY (`gtf_id_type`) |
) |
-- |
-- Contenu de la table `gen_type_de_fichier` |
-- |
INSERT INTO `gen_type_de_fichier` VALUES (1, 'Fichier Document', 'doc', 'docdoc.gif', 'application/msword', ''); |
INSERT INTO `gen_type_de_fichier` VALUES (2, 'Fichier Texte', 'txt', 'doctxt.gif', 'text/plain', ''); |
INSERT INTO `gen_type_de_fichier` VALUES (3, 'Fichier Texte Enrichi', 'rtf', 'docdoc.gif', 'text/rtf', ''); |
INSERT INTO `gen_type_de_fichier` VALUES (4, 'Fichier Compressé', 'zip', 'doczip.gif', 'application/zip', ''); |
INSERT INTO `gen_type_de_fichier` VALUES (5, 'Document PDF', 'pdf', 'pdf.gif', 'application/pdf', ''); |
INSERT INTO `gen_type_de_fichier` VALUES (6, 'Page Web', 'htm', 'web.gif', 'text/html', 'htm, html'); |
INSERT INTO `gen_type_de_fichier` VALUES (7, 'Feuille de Calcul Excel', 'xls', 'docxls.gif', 'application/vnd.ms-excel', ''); |
INSERT INTO `gen_type_de_fichier` VALUES (8, 'Présentation Power Point', 'ppt', 'docppt.gif', 'application/vnd.ms-powerpoint', ''); |
INSERT INTO `gen_type_de_fichier` VALUES (9, 'Image JPG', 'jpg', 'docimg.gif', 'image/jpg', 'jpg, jpeg'); |
INSERT INTO `gen_type_de_fichier` VALUES (10, 'Image GIF', 'gif', 'docimg.gif', 'image/gif', ''); |
INSERT INTO `gen_type_de_fichier` VALUES (11, 'Image PNG', 'png', 'docimg.gif', 'image/png', ''); |
INSERT INTO `gen_type_de_fichier` VALUES (12, 'Inconnu', '', 'default.gif', '', ''); |
INSERT INTO `gen_type_de_fichier` VALUES (13, 'Fichier PHP', 'php', 'php.gif', '', ''); |
INSERT INTO `gen_type_de_fichier` VALUES (14, 'Fichier Photoshop', 'psd', 'docpsd.gif', 'image/psd', 'psd'); |
INSERT INTO `gen_type_de_fichier` VALUES (15, 'Présentation OpenOffice Impress', 'sxi', 'docppt.gif', 'application/vnd.sun.xml.impress', 'sxi'); |
INSERT INTO `gen_type_de_fichier` VALUES (16, 'Image JPG', 'jpg', 'docimg.gif', 'image/jpeg', 'jpg, jpeg'); |
INSERT INTO `gen_type_de_fichier` VALUES (17, 'Image JPG', 'jpg', 'docimg.gif', 'image/pjpeg', 'jpg, jpeg'); |
/trunk/client/projet/projet.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: projet.php,v 1.1 2005-09-22 14:02:48 ddelon Exp $ |
// CVS : $Id: projet.php,v 1.2 2005-09-26 20:18:27 ddelon Exp $ |
/** |
* Application projet |
* |
31,7 → 31,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.1 $ |
*@version $Revision: 1.2 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
66,7 → 66,7 |
$_REQUEST[PROJET_VARIABLE_ACTION] = PROJET_ACTION_VOIR_RESUME ; |
} |
$res = '' ; |
if (isset($GLOBALS['_GEN_commun']['info_application']->presentation) && $GLOBALS['_GEN_commun']['info_application']->presentation == 'arbre') { |
if (isset($GLOBALS['_GEN_commun']['info_application']->presentation) && (($GLOBALS['_GEN_commun']['info_application']->presentation == 'arbre')||($GLOBALS['_GEN_commun']['info_application']->presentation == 'liste'))) { |
$res .= '<ul class="onglets">'; |
$GLOBALS['url']->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_VOIR_RESUME); |
$res .= '<li class="'.cma(PROJET_ACTION_VOIR_RESUME).'"><a href="'.$GLOBALS['url']->getURL().'">'.PROJET_SYNTHESE.'</a></li>'; |
109,7 → 109,7 |
} |
// Dans le cas de la présentation par arbre, on met les menus |
if (isset($GLOBALS['_GEN_commun']['info_application']->presentation) && $GLOBALS['_GEN_commun']['info_application']->presentation == 'arbre') { |
if (isset($GLOBALS['_GEN_commun']['info_application']->presentation) && (($GLOBALS['_GEN_commun']['info_application']->presentation == 'arbre') || ($GLOBALS['_GEN_commun']['info_application']->presentation == 'liste'))){ |
$sortie .= $controleur->menuGeneral() ; |
} |
return $sortie; |
171,7 → 171,10 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.1 2005/09/22 14:02:48 ddelon |
* nettoyage annuaire et php5 |
* |
* |
* +-- Fin du code ----------------------------------------------------------------------------------------+ |
*/ |
/trunk/papyrus/applettes/vous_etes_ici/vous_etes_ici.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: vous_etes_ici.php,v 1.7 2005-09-23 14:21:18 florian Exp $ |
// CVS : $Id: vous_etes_ici.php,v 1.8 2005-09-26 20:18:27 ddelon Exp $ |
/** |
* Applette : Vous Etes Ici |
* |
39,7 → 39,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.7 $ $Date: 2005-09-23 14:21:18 $ |
*@version $Revision: 1.8 $ $Date: 2005-09-26 20:18:27 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
83,7 → 83,9 |
// Initialisation de variable. |
$objet_pear_db =& $GLOBALS['_GEN_commun']['pear_db']; |
$vei_numero = $GLOBALS['_PAPYRUS_']['applette']['comptage'][$GLOBALS['_VEI_']['nom_fonction']]; |
(empty($menu_courant_id)) ? $menu_courant_id = $GLOBALS['_GEN_commun']['info_menu']->gm_id_menu : ''; |
if (isset( $GLOBALS['_GEN_commun']['info_menu']->gm_id_menu)) { |
(empty($menu_courant_id)) ? $menu_courant_id = $GLOBALS['_GEN_commun']['info_menu']->gm_id_menu : ''; |
} |
$vei = ''; |
// Gestion des erreurs |
160,6 → 162,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.7 2005/09/23 14:21:18 florian |
* compatibilité XHTML |
* |
* Revision 1.6 2005/04/14 16:38:02 jpm |
* Ajout de la gestion des URL avec la classe Pap_URL de Papyrus. |
* |
/trunk/papyrus/installation/papyrus_v0.23.sql |
---|
1,3 → 1,6 |
-- Réglages parametres langues |
UPDATE `gen_i18n` SET `gi_ce_pays` = 'FR', `gi_jeu_de_caracteres` = 'iso-8859-1' WHERE `gi_id_i18n` = 'fr'; |
UPDATE `gen_i18n` SET `gi_ce_pays` = 'UK', `gi_jeu_de_caracteres` = 'iso-8859-1' WHERE `gi_id_i18n` = 'en'; |
-- Eventuellement (pour afficher nom prenom sur annuaire interne) |
UPDATE `gen_site_auth_bdd` SET `gsab_parametres` = 'chp_personne_prenom=ga_prenom chp_personne_nom=ga_nom' WHERE `gsab_id_auth_bdd` =1 |
/trunk/sites/commun/generique/squelettes/defaut.html |
---|
1,76 → 1,79 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<!-- PAPYRUS_SITE_LANGUE -->" lang="<!-- PAPYRUS_SITE_LANGUE -->"> |
<head> |
<!-- PAPYRUS_META_HTTP_EQUIV --> |
<title><!-- PAPYRUS_TITRE_PAGE --></title> |
<!-- PAPYRUS_META_NAME --> |
<!-- PAPYRUS_META_NAME_DC --> |
<link rel="shortcut icon" type="image/x-icon" href="sites/admin/generique/images/favicones/admin.ico" /> |
<link rel="icon" type="image/png" href="sites/admin/generique/images/favicones/admin.png" /> |
<link rel="stylesheet" type="text/css" media="screen" title="Defaut Papyrus" href="sites/commun/generique/styles/defaut.css" /> |
<!-- PAPYRUS_STYLES --> |
<!-- PAPYRUS_SCRIPTS --> |
</head> |
<body> |
<div id="container"> |
<div id="zone_bandeau" > |
<div id="selecteur_monde"> |
<!-- PAPYRUS_SELECTEUR_SITES_XHTML --> |
</div> |
<div id="logo"> |
<a href="/" title="Retour en page d'accueil"> |
<img src="sites/<!-- PAPYRUS_SITE_CODE_ALPHA -->/<!-- PAPYRUS_SITE_LANGUE -->/images/logo_papyrus.png" width="183" height="63" alt="Logo Papyrus" /> |
</a> |
</div> |
<div id="site_nom"> |
<h1><!-- PAPYRUS_SITE_NOM --></h1> |
</div> |
<ul id="accessibilite"> |
<li><a href="#zone_contenu_tete">Aller au texte</a></li> |
<li class="dernier"><a href="#zone_menu">Aller au menu</a></li> |
</ul> |
<div id="moteur_recherche"> |
</div> |
</div> |
<head> |
<!-- PAPYRUS_META_HTTP_EQUIV --> |
<title> |
<!-- PAPYRUS_TITRE_PAGE --> |
</title> |
<!-- PAPYRUS_META_NAME --> |
<!-- PAPYRUS_META_NAME_DC --> |
<link rel="shortcut icon" type="image/x-icon" href="sites/admin/generique/images/favicones/admin.ico" /> |
<link rel="icon" type="image/png" href="sites/admin/generique/images/favicones/admin.png" /> |
<link rel="stylesheet" type="text/css" media="screen" title="Defaut Papyrus" href="sites/commun/generique/styles/defaut.css" /> |
<!-- PAPYRUS_STYLES --> |
<!-- PAPYRUS_SCRIPTS --> |
</head> |
<body> |
<div id="container"> |
<div id="zone_bandeau" > |
<div id="selecteur_monde"> |
<!-- PAPYRUS_SELECTEUR_SITES_XHTML --> |
</div> |
<div id="logo"> |
<a href="/" title="Retour en page d'accueil"> |
<img src="sites/<!-- PAPYRUS_SITE_CODE_ALPHA -->/<!-- PAPYRUS_SITE_LANGUE -->/images/logo_papyrus.png" width="183" height="63" alt="Logo Papyrus" /> |
</a> |
</div> |
<div id="site_nom"> |
<h1> |
<!-- PAPYRUS_SITE_NOM --> |
</h1> |
</div> |
</div> |
<div id="zone_contours_menu"> |
<div id="zone_menu_haut"> |
<div id="zone_menu_haut"> |
|
</div> |
<div id="zone_menu"> |
<!-- PAPYRUS_MENU_CLASSIQUE_1_3 --> |
<div id="menus_communs"> |
<!-- PAPYRUS_MENU_COMMUN --> |
</div> |
<div id="identification"> |
<!-- PAPYRUS_IDENTIFICATION --> |
</div> |
<!-- PAPYRUS_CONTENU_MENU --> |
</div> |
<div id="zone_menu_bas"> |
|
</div> |
<div id="zone_menu"> |
<!-- PAPYRUS_MENU_CLASSIQUE_1_3 --> |
<div id="menus_communs"> |
<!-- PAPYRUS_MENU_COMMUN --> |
</div> |
<div id="identification"> |
<!-- PAPYRUS_IDENTIFICATION --> |
</div> |
<!-- PAPYRUS_CONTENU_MENU --> |
</div> |
<div id="zone_menu_bas"> |
</div> |
</div> |
<div id="onglets"> |
<!-- PAPYRUS_MENU_3_3 --> |
<!-- PAPYRUS_CONTENU_NAVIGATION --> |
|
</div> |
</div> |
<div id="zone_contenu"> |
<p>Vous êtes ici : <!-- PAPYRUS_VOUS_ETES_ICI --></p> |
<div id="zone_contenu_tete"> |
<!-- PAPYRUS_CONTENU_TETE --> |
</div> |
<div id="zone_contenu_corps"> |
<!-- PAPYRUS_CONTENU_CORPS --> |
</div> |
<div id="zone_contenu_pied"> |
<!-- PAPYRUS_CONTENU_PIED --> |
</div> |
</div> |
<div id="zone_contenu"> |
<div id="zone_contenu_tete"> |
<!-- PAPYRUS_CONTENU_TETE --> |
</div> |
<div id="zone_contenu_corps"> |
<!-- PAPYRUS_CONTENU_CORPS --> |
</div> |
<div id="zone_contenu_pied"> |
<!-- PAPYRUS_CONTENU_PIED --> |
</div> |
</div> |
<div id="zone_pied"> |
<a href="http://frenchmozilla.org"><img src="sites/<!-- PAPYRUS_SITE_CODE_ALPHA -->/<!-- PAPYRUS_SITE_LANGUE -->/images/logo-firefox.png" alt="Logo Firefox" /></a> |
<a href="http://validator.w3.org/check?uri=referer"><img src="sites/<!-- PAPYRUS_SITE_CODE_ALPHA -->/<!-- PAPYRUS_SITE_LANGUE -->/images/logo-xhtml11.png" alt="Logo XHTML" /></a> |
<a href="http://jigsaw.w3.org/css-validator/check/referer"><img src="sites/<!-- PAPYRUS_SITE_CODE_ALPHA -->/<!-- PAPYRUS_SITE_LANGUE -->/images/logo-css.png" alt="Logo CSS" /></a><br /> |
<div id="zone_pied"> |
<br /> |
<a href="http://frenchmozilla.org"><img src="sites/<!-- PAPYRUS_SITE_CODE_ALPHA -->/<!-- PAPYRUS_SITE_LANGUE -->/images/logo-firefox.png" alt="Logo Firefox" /></a> |
<a href="http://validator.w3.org/check?uri=referer"><img src="sites/<!-- PAPYRUS_SITE_CODE_ALPHA -->/<!-- PAPYRUS_SITE_LANGUE -->/images/logo-xhtml11.png" alt="Logo XHTML" /></a> |
<a href="http://jigsaw.w3.org/css-validator/check/referer"><img src="sites/<!-- PAPYRUS_SITE_CODE_ALPHA -->/<!-- PAPYRUS_SITE_LANGUE -->/images/logo-css.png" alt="Logo CSS" /></a> |
<br /> |
Site utilisant <a href="http://outils-reseaux.org/wiki_papyrus">Papyrus, le CMS coopératif</a> |
</div> |
</div> |
<!-- PAPYRUS_DEBOGAGE --> |
</div> |
</body> |
</div> |
</body> |
</html> |
/trunk/sites/commun/generique/styles/defaut.css |
---|
15,19 → 15,18 |
| You should have received a copy of the GNU General Public License along with Foobar; if not, write to | |
| the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
+---------------------------------------------------------------------------------------------------------+ |
CVS : $Id: defaut.css,v 1.7 2005-09-23 14:17:43 florian Exp $ |
CVS : $Id: defaut.css,v 1.8 2005-09-26 20:18:27 ddelon Exp $ |
=========================================================================================================== |
DESCRIPTION : Fichier de style du site d'administration de Papyrus. |
DESCRIPTION : Fichier de style du site par defaut de Papyrus. |
=========================================================================================================== |
Auteur original : Jean-Pascal MILCENT <jpm@tela-botanica.org> |
Autres auteurs : Florian SCHMITT <florian@ecole-et-nature.org> |
David DELON <david.delon@clapas.net> |
Autres auteurs : Florian SCHMITT <florian@ecole-et-nature.org> |
=========================================================================================================== |
AUTEUR : $Author: florian $ |
VERSION : $Revision: 1.7 $ $Date: 2005-09-23 14:17:43 $ |
AUTEUR : $Author: ddelon $ |
VERSION : $Revision: 1.8 $ $Date: 2005-09-26 20:18:27 $ |
======================================================================================================= */ |
/* +----------------------------------------------------------------------------------------------------+ |
42,11 → 41,17 |
a:active, a:focus {color: #566047;} |
p {line-height: 19px;} |
acronym {font-weight: bold;text-decoration: none;border-bottom: none;} |
/* Container general */ |
#container {margin: auto;text-align: left;background: #FBFBE5;width: 760px;border-left:solid 2px #BCBCAB;border-right:solid 2px #BCBCAB;} |
/* Le bandeau tout en haut : contient logo, nom */ |
#zone_bandeau {background: #E9EBD3;width: 760px;height: 70px;margin:5px auto; |
border-top:solid 3px #838E6C;border-bottom:solid 3px #838E6C;} |
#logo {float : left;margin: 3px 0 0 10px;} |
#site_nom {text-align: center;width:180px;margin:20px auto;} |
/* Menus */ |
#zone_contours_menu {clear:both;float:left;width:193px;margin:6px 0 20px 10px;border: solid 1px #BCBCAB;background:#FDFDF3;} |
#zone_menu {margin:0 15px 0 15px;padding:0;width: 162px;font-size: 70%;border-left:solid 1px #7D8965;border-right:solid 1px #7D8965;} |
#zone_menu h3 {border:0;text-align:center;text-decoration:underline;} |
60,9 → 65,15 |
#zone_contenu {width: 530px;margin: 6px 0 10px 217px;font-size:70%;} |
#zone_pied {clear:both;text-align:center;background: #E9EBD3;width: 760px;height: 40px;margin:5px auto; |
border-top:solid 3px #838E6C;border-bottom:solid 3px #838E6C;font-size:70%;padding-top:5px;} |
/* Applettes */ |
/* Selecteur Monde */ |
#selecteur_monde {float: right;width: 200px;padding: 20px 20px 0 0;text-align: right;} |
#selecteur_monde legend {display: none;} |
#selecteur_monde fieldset {border: 0;margin: 1px;padding: 1px;text-align: right;} |
/* Identification */ |
#identification {margin:0 auto;width: 150px;text-align:center;border:solid 1px #BCBCAB;} |
#identification fieldset {border: 0;margin: 1px;padding: 1px;} |
#identification label {display: block;text-align:left;} |
71,6 → 82,7 |
/* +----------------------------------------------------------------------------------------------------+ |
| DESIGN | |
+----------------------------------------------------------------------------------------------------+*/ |
h1, h2, h3 {margin-bottom: 10px;height: 22px;border-bottom: 1px solid #7D8965;} |
h1 {font-size: 1.5em;} |
h2 {font-size: 1.3em;} |
83,11 → 95,13 |
legend {font-weight:bold;} |
input:hover {color #FDFDF3; background:#7D8965;} |
input, select, textarea {font-family: Tahoma, Arial, Helvetica, sans-serif;font-size:11px;color #7D8965; background:#FDFDF3;border:solid 1px #7D8965;} |
/* Mise en ligne des formulaires */ |
form li {margin:0;padding:0;display: block;} |
form ul {margin:0;padding:0;list-style-type: none;} |
form label {clear:both;float: left;width:150px;} |
.liste_bouton li {display:inline;} |
/* Styles propres à Papyrus */ |
.pap_erreur {background-color: #ffffcc;margin: 5px;padding: 5px;border : solid 1px red;} |
94,6 → 108,9 |
/* +--Fin des CSS ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.7 2005/09/23 14:17:43 florian |
* maj squelettes admin + commun |
* |
* Revision 1.1 2005/09/23 14:16:41 florian |
* maj squelette commun |
* |