/trunk/papyrus/bibliotheque/fonctions/pap_site.fonct.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: pap_site.fonct.php,v 1.7 2006-12-08 20:15:21 jp_milcent Exp $ |
// CVS : $Id: pap_site.fonct.php,v 1.8 2007-04-04 15:15:22 neiluj Exp $ |
/** |
* Bibliothèque de fonctions concernant les sites. |
* |
38,7 → 38,7 |
//Autres auteurs : |
*@author Alexandre GRANIER <alexandre@tela-botanica.org> |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.7 $ $Date: 2006-12-08 20:15:21 $ |
*@version $Revision: 1.8 $ $Date: 2007-04-04 15:15:22 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
96,7 → 96,7 |
'WHERE gs_id_site = '.$site_id.' '. |
'AND gs_id_site = gsr_id_site_01 '. |
'AND gsr_id_site_01 = gsr_id_site_02 '. |
'AND gsr_id_valeur = 102 '; // 102 = site "principal" |
'AND gsr_id_valeur = 102'; // 102 = site "principal" |
$resultat = $objet_pear_db->query($requete); |
(DB::isError($resultat)) ? die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage(), $requete)) : ''; |
275,6 → 275,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.7 2006/12/08 20:15:21 jp_milcent |
* Correction bogue requete sql dans fonction GEN_lireInfoSiteI18nCodeAlpha(). |
* |
* Revision 1.6 2006/12/08 18:48:43 jp_milcent |
* Amélioration du mode de reception des données pour GEN_lireInfoSiteI18nCodeAlpha(). |
* |
294,7 → 297,7 |
* Changement de nom et d'arborescence de Genesia en Papyrus. |
* |
* Revision 1.1 2004/05/03 16:26:07 jpm |
* Ajout de la bibliothèque de fonctions permettant de manipuler les informations issues des tables "gen_site_..." de Génésia. |
* Ajout de la bibliothèque de fonctions permettant de manipuler les informations issues des tables "gen_site_..." de Papyrus. |
* |
* |
* +-- Fin du code ----------------------------------------------------------------------------------------+ |
/trunk/sites/chezju/fr/squelettes/defaut.html |
---|
New file |
0,0 → 1,107 |
<?xml version="1.0" encoding="iso-8859-15" ?> |
<!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" > |
<head lang="fr" > |
<!-- Papyrus Meta Http Equiv : --> |
<!-- PAPYRUS_META_HTTP_EQUIV --> |
<!-- Papyrus Titre Page : --> |
<title><!-- PAPYRUS_TITRE_PAGE --></title> |
<!-- Papyrus Meta Name : --> |
<!-- PAPYRUS_META_NAME --> |
<!-- Papyrus Meta Name DC : --> |
<!-- PAPYRUS_META_NAME_DC --> |
<link rel="shortcut icon" type="image/x-icon" href="sites/<!-- PAPYRUS_SITE_CODE_ALPHA -->/<!-- PAPYRUS_SITE_LANGUE -->/images/favicones/fav.ico" /> |
<link rel="icon" type="image/png" href="sites/<!-- PAPYRUS_SITE_CODE_ALPHA -->/<!-- PAPYRUS_SITE_LANGUE -->/images/favicones/fav.png" /> |
<link rel="stylesheet" type="text/css" media="screen" title="Defaut Papyrus" href="sites/<!-- PAPYRUS_SITE_CODE_ALPHA -->/<!-- PAPYRUS_SITE_LANGUE -->/styles/defaut.css" /> |
<!-- Papyrus Styles : --> |
<!-- PAPYRUS_STYLES --> |
<!-- Papyrus Scripts : --> |
<!-- PAPYRUS_SCRIPTS --> |
</head> |
<body xml:lang="fr" lang="fr" > |
<div id="page"> |
<div id="zone_bandeau"> |
<div id="logo"> |
<a href="accueil" title="Retour en page d'accueil"> |
<img src="sites/<!-- PAPYRUS_SITE_CODE_ALPHA -->/<!-- PAPYRUS_SITE_LANGUE -->/images/Logo_papyrus.jpg" width="124" height="105" alt="Logo Papyrus" /> |
</a> |
</div> |
<div id="site_nom"> |
<h1> |
<!-- Papyrus Site Nom : --> |
<!-- PAPYRUS_SITE_NOM --> |
</h1> |
</div> |
<div id="menus_communs"> |
<!-- Papyrus Menu Commun Niveau 1 a 1--> |
<!-- PAPYRUS_MENU_COMMUN_1_1 --> |
</div> |
<div id="selecteur_monde"> |
<!-- Papyrus Selecteur Site Xhtml : --> |
<!-- PAPYRUS_SELECTEUR_SITES_XHTML --> |
</div> |
<div id="moteur_recherche"> |
<!-- Papyrus Moteur Recherche : --> |
<!-- PAPYRUS_MOTEUR_RECHERCHE --> |
</div> |
</div> |
<div id="zone_menu"> |
<!-- Papyrus Menu déroulant Niveau 1 a 1 : --> |
<!-- PAPYRUS_MENU_DEROULANT_1_1 --> |
</div> |
<div id="vous_etes_ici"> |
Vous êtes ici : <!-- Papyrus Applette Vous etes ici--><!-- PAPYRUS_VOUS_ETES_ICI --> |
</div> |
<div id="zone_onglets"> |
<!-- Papyrus Contenu Navigation --> |
<!-- PAPYRUS_CONTENU_NAVIGATION --> |
|
</div> |
<div id="zone_contenu"> |
<div id="zone_bandeau_menu"> |
<h1>Menu</h1> |
<div id="menu"> |
<!-- Menu Classsique Niveau 2 a 5 --> |
<!-- PAPYRUS_MENU_CLASSIQUE_2_5 --> |
<!-- Papyrus Contenu Menu --> |
<!-- PAPYRUS_CONTENU_MENU --> |
</div> |
<h1>Calendrier</h1> |
<div id="calendrier"> |
<!-- Client bazar calendrier : --> |
<!-- CLIENT_BAZAR_CALENDRIER --> |
</div> |
<h1>Identification</h1> |
<div id="identification"> |
<!-- Papyrus Identification --> |
<!-- PAPYRUS_IDENTIFICATION --> |
</div> |
</div> |
<div id="zone_contenu_tete"> |
<!-- Papyrus Contenu Tete : --> |
<!-- PAPYRUS_CONTENU_TETE --> |
</div> |
<div id="zone_contenu_corps"> |
<!-- Papyrus Contenu Corps : --> |
<!-- PAPYRUS_CONTENU_CORPS --> |
</div> |
<div id="zone_contenu_pied"> |
<!-- Papyrus Contenu Pied : --> |
<!-- PAPYRUS_CONTENU_PIED --> |
</div> |
</div> |
<div id="zone_pied"> |
<div id="copyright"> |
<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 /> |
© <a href="http://www.tela-botanica.org/">Tela Botanica</a> et <a href="http://www.ecole-et-nature.org/">Réseau Ecole et Nature</a> / 2004-2006<br /> |
Site utilisant <a href="http://outils-reseaux.org/wiki_papyrus">Papyrus, le CMS coopératif</a> |
</div> |
</div> |
<!-- Papyrus Debogage : --> |
<!-- PAPYRUS_DEBOGAGE --> |
</div> |
</body> |
</html> |
/trunk/sites/chezju/fr/styles/defaut.css |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/sites/chezju/fr/styles/defaut.css |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/trunk/.htaccess |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
/trunk/.htaccess |
---|
New file |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |
/trunk/.settings/org.eclipse.core.resources.prefs |
---|
New file |
0,0 → 1,3 |
#Wed Apr 04 17:04:29 CEST 2007 |
eclipse.preferences.version=1 |
encoding/<project>=ISO-8859-1 |
/trunk/client/bazar/bibliotheque/bazar.fonct.rss.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: bazar.fonct.rss.php,v 1.76 2007-04-04 15:09:59 florian Exp $ |
// CVS : $Id: bazar.fonct.rss.php,v 1.77 2007-04-04 15:15:22 neiluj Exp $ |
/** |
* |
*@package bazar |
28,7 → 28,7 |
*@author Florian Schmitt <florian@ecole-et-nature.org> |
//Autres auteurs : |
*@copyright Tela-Botanica 2000-2006 |
*@version $Revision: 1.76 $ |
*@version $Revision: 1.77 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
262,7 → 262,7 |
} |
} |
elseif ( $tableau[$i]['type']=='wikini' ) { |
$res .= '<div class="BAZ_lien_wikini BAZ_lien_wikini_'.$GLOBALS['_BAZAR_']['class'].'"><a href="wikini/'.baz_titre_wiki($ligne["bf_titre"]).'">'.BAZ_ENTRER_PROJET.'</a></div>'."\n"; |
$res .= '<div class="BAZ_lien_wikini BAZ_lien_wikini_'.$GLOBALS['_BAZAR_']['class'].'"><a href="wikini/'.genere_nom_wiki($ligne["bf_titre"], TRUE).'">'.BAZ_ENTRER_PROJET.'</a></div>'."\n"; |
} |
} |
//afficher les liens pour l'annonce |
476,7 → 476,55 |
return $res ; |
} |
// merci PHP 5 ... |
function mb_str_split($str, $length = 1) { |
if ($length < 1) return FALSE; |
$result = array(); |
for ($i = 0; $i < strlen($str); $i += $length) { |
$result[] = substr($str, $i, $length); |
} |
return $result; |
} |
// |
function genere_nom_wiki($nom, $spaces = FALSE) |
{ |
// traitement des accents |
$nom = str_replace(array('é','è','ë','ê','É','È','Ë','Ê','&','£'), 'e', $nom); |
$nom = str_replace(array('à','ä','â','Â','Ä','À','@'), 'a', $nom); |
$nom = str_replace(array('ç','Ç'), 'c', $nom); |
$nom = str_replace(array('ÿ','¾'), 'y', $nom); |
$nom = str_replace(array('ô','ö','ò','Ô','Ò','Ö'), 'o', $nom); |
$nom = str_replace(array('ï','î','ì','Î','Ï','Ì'), 'i', $nom); |
$nom = str_replace('$', 's', $nom); |
$temp = mb_str_split($nom); |
$count = 0; |
$final = NULL; |
foreach($temp as $letter) |
{ |
if(preg_match('/([[:space:]]|[[:punct:]])/', $letter)) |
{ |
$final .= ($spaces ? '_' : ''); |
} elseif(preg_match ('/[a-zA-Z0-9]/', $letter)) { |
$final .= (($count == 0 || $count == (strlen($nom) - 1)) ? strtoupper($letter) : strtolower($letter)); |
} |
$count++; |
} |
// vérifions que le retour n'est pas uniquement un underscore |
if(preg_match('/^[[:punct:]]+$/', $final)) return FALSE; |
// sinon retour du nom formaté |
return($final); |
} |
/** RSSversHTML () transforme un flux RSS (en XML) en page HTML |
* |
* On passe en paramètre le contenu du flux RSS, on affiche ou non la description, |
1130,6 → 1178,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.76 2007/04/04 15:09:59 florian |
* modif class fichiers |
* |
* Revision 1.75 2007/04/04 08:51:01 florian |
* gestion des classes spécifiques pour habiller par CSS les fiches bazar |
* |
/trunk/client/bottin/bibliotheque/inscription.fonct.php |
---|
19,8 → 19,8 |
// | 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: inscription.fonct.php,v 1.24 2007-01-04 16:37:27 alexandre_tb Exp $ |
// CVS : $Id: inscription.fonct.php,v 1.24 2007-01-04 16:37:27 alexandre_tb Exp $ |
// CVS : $Id: inscription.fonct.php,v 1.25 2007-04-04 15:15:22 neiluj Exp $ |
// CVS : $Id: inscription.fonct.php,v 1.25 2007-04-04 15:15:22 neiluj Exp $ |
/** |
* Fonctions du module inscription |
* |
32,8 → 32,8 |
//Autres auteurs : |
*@author Florian Schmitt <florian@ecole-et-nature.org> |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.24 $ $Date: 2007-01-04 16:37:27 $ |
*@version $Revision: 1.24 $ $Date: 2007-01-04 16:37:27 $ |
*@version $Revision: 1.25 $ $Date: 2007-04-04 15:15:22 $ |
*@version $Revision: 1.25 $ $Date: 2007-04-04 15:15:22 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
604,26 → 604,44 |
* Génère un nom wiki valide à partir des données saisies par l'utilisateur |
* fait une requete dans la base |
* |
* UPDATE: modification de la fonction pour propretée du titre / nom --julien |
* @return string un nom wiki valide |
*/ |
function genere_nom_wiki($prenom, $nom) { |
// 1. suppression des espaces |
$nom = trim ($nom) ; |
$prenom = trim ($prenom) ; |
function genere_nom_wiki($nom, $spaces = TRUE) |
{ |
// traitement des accents |
$nom = str_replace(array('é','è','ë','ê','É','È','Ë','Ê','&','£'), 'e', $nom); |
$nom = str_replace(array('à','ä','â','Â','Ä','À','@'), 'a', $nom); |
$nom = str_replace(array('ç','Ç'), 'c', $nom); |
$nom = str_replace(array('ÿ','¾'), 'y', $nom); |
$nom = str_replace(array('ô','ö','ò','Ô','Ò','Ö'), 'o', $nom); |
$nom = str_replace(array('ï','î','ì','Î','Ï','Ì'), 'i', $nom); |
$nom = str_replace('$', 's', $nom); |
// 2. suppression des caractères non ascii et ajout de la première lettre en majuscule |
$nom = trim_non_ascii ($nom) ; |
$prenom = trim_non_ascii ($prenom) ; |
// Vérification |
$nom_wiki = $prenom.$nom ; |
if (!preg_match('/^[A-Z][a-z]+[A-Z,0-9][A-Z,a-z,0-9]*$/', $nom_wiki)) { |
$nom_wiki = chr(rand(65, 90)).$nom_wiki.chr(rand(65, 90)) ; |
} |
return $nom_wiki ; |
$temp = str_split($nom); |
$count = 0; |
$final = NULL; |
foreach($temp as $letter) |
{ |
if(preg_match('/([[:space:]]|[[:punct:]])/', $letter)) |
{ |
$final .= ($spaces ? '_' : ''); |
} elseif(preg_match ('/[a-zA-Z0-9]/', $letter)) { |
$final .= (($count == 0 || $count == (strlen($nom) - 1)) ? strtoupper($letter) : strtolower($letter)); |
} |
$count++; |
} |
// vérifions que le retour n'est pas uniquement un underscore |
if(preg_match('/^[[:punct:]]+$/', $final)) return FALSE; |
// sinon retour du nom formaté |
return($final); |
} |
/** |
* Cette fonction supprime les caractères autres que asccii et les chiffres |
* |
659,7 → 677,7 |
} |
//============================================================================== |
/** function create_new_random($n,$type) permet de générer un nombre de caractères aléatoires. |
/** function create_new_random($n,$type) permet de générer un nombre de caractères alçatoires. |
* |
* |
* |
718,6 → 736,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.24 2007/01/04 16:37:27 alexandre_tb |
* ajout d'un test pour savoir si la fonction inscription_validee existe déjà (peut être inutile à vérifier) |
* |
* Revision 1.23 2006/12/01 13:23:15 florian |
* integration annuaire backoffice |
* |