Subversion Repositories eFlore/Applications.bibliobota

Compare Revisions

No changes between revisions

Regard whitespace Rev 1 → Rev 2

/trunk/presentations/styles/bb_standard.css
New file
0,0 → 1,143
/* Positionnement du contenu de l'application Biblio Bota*/
 
/* ------------------------------------------------------------------------------------------------------------ */
/* Décoration générale devant être intégré dans Papyrus */
 
/* Styles du fragmenteur */
#frag_nbre_resultat, #frag_navigation {
text-align: center;
}
/* Message d'erreur */
.erreur {
color: red;
}
/* Texte d'un champ d'une fichie */
.champ_cle {
font-weight: bold;
}
/* Texte d'une valeur d'un champ d'une fichie*/
.champ_valeur {
font-weight: normal;
}
/* Le texte moins voyant */
.texte_inactif {
font-family: Arial;
font-size: 10px;
text-decoration: none;
color: gray;
}
/* ------------------------------------------------------------------------------------------------------------ */
/* Nouveaux styles de Biblio Bota */
 
/* L'image precedent de la navigation avancée */
.bb_img_precedent {
border: 0px;
width: 18px;
height: 15px;
}
/* L'image représentant un icone pour les liens web */
.bb_img_web {
border: 0px;
width: 16px;
height: 16px;
}
/* Les images représentant un icone de 16px par 16px */
.bb_img_icone {
border: 0px;
width: 16px;
height: 16px;
vertical-align: top;
}
/* Les images représentant un icone de 18px par 15px */
.bb_img_icone_large {
border: 0px;
width: 18px;
height: 15px;
vertical-align: top;
}
/* L'image représentant un site partenaire */
.bb_img_partenaire {
border: 0px;
width: 84px;
height: 12px;
vertical-align: middle;
}
/* L'image représentant un site reference */
.bb_img_reference {
border: 0px;
width: 84px;
height: 12px;
vertical-align: middle;
}
/* L'image représentant un document epuisé */
.bb_img_epuise {
border: 0px;
width: 40px;
height: 12px;
vertical-align: middle;
}
 
/* Image illustrant les structures, périodiques... */
.bb_img_structure, .bb_img_periodique, .bb_img_fascicule, .bb_img_article, .bb_img_livre, .bb_img_media {
border: 0px;
margin: 1em;
float: right;
}
#bb_liste_article li, #bb_liste_livre li, #bb_liste_media li {
clear:both;
}
/* Contient la navigation avancée */
.bb_navigation {
background-color: #D7F2D7;
text-align: left;
vertical-align: middle;
}
/* Texte normal */
.bb_txt_normal {
font-weight: normal;
}
/* Texte centré */
.bb_txt_centre {
text-align: center;
}
/* Texte trouvé par le moteur de recherche */
.bb_txt_trouve {
background-color: yellow;
}
 
/* Pour aligner à droite un contenu */
.bb_aligner_droite {
text-align: right;
width: 65%;
}
/* Suppression des puces devant les listes des moteurs de recherche */
#bb_moteur_media ul, #bb_moteur_lien ul, #bb_moteur_structure ul {
list-style-type: none;
}
 
/* Identifiant du moteur de recherche des médias (livres et articles)*/
#bb_moteur_media ul li {
padding: 3px;
}
/* Identifiant du moteur de recherche des liens (sites web)*/
#bb_moteur_lien ul li {
padding: 3px;
}
/* Identifiant du moteur de recherche des structures (organismes)*/
#bb_moteur_structure ul li {
padding: 3px;
}
/* Affichage de la navigation avancée à côté du titre du périodique dans la liste des périodiques en consultation avancée */
#bb_liste_periodique h3 {
display: inline;
}
#bb_liste_periodique .bb_navigation {
display: inline;
}
 
/* Séparateur horizontal */
.bb_separateur_horizontal {
height: 1px;
width: 100%;
color: gray;
}
/trunk/presentations/images/bb_fascicule.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/presentations/images/bb_fascicule.png
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/trunk/presentations/images/bb_modifier.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/presentations/images/bb_modifier.png
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/trunk/presentations/images/bb_reference.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/presentations/images/bb_reference.png
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/trunk/presentations/images/type_logique/bb_logiciel.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/presentations/images/type_logique/bb_logiciel.png
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/trunk/presentations/images/type_logique/bb_texte.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/presentations/images/type_logique/bb_texte.png
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/trunk/presentations/images/type_logique/bb_multimedia.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/presentations/images/type_logique/bb_multimedia.png
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/trunk/presentations/images/type_logique/bb_sgbd.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/presentations/images/type_logique/bb_sgbd.png
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/trunk/presentations/images/type_logique/bb_son.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/presentations/images/type_logique/bb_son.png
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/trunk/presentations/images/type_physique/bb_livre.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/presentations/images/type_physique/bb_livre.png
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/trunk/presentations/images/type_physique/bb_cd.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/presentations/images/type_physique/bb_cd.png
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/trunk/presentations/images/type_physique/bb_periodique.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/presentations/images/type_physique/bb_periodique.png
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/trunk/presentations/images/type_physique/bb_disquette.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/presentations/images/type_physique/bb_disquette.png
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/trunk/presentations/images/bb_supprimer.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/presentations/images/bb_supprimer.png
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/trunk/presentations/images/bb_ajouter.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/presentations/images/bb_ajouter.png
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/trunk/presentations/images/navigation/bb_dernier.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/presentations/images/navigation/bb_dernier.png
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/trunk/presentations/images/navigation/bb_precedent.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/presentations/images/navigation/bb_precedent.png
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/trunk/presentations/images/navigation/bb_premier.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/presentations/images/navigation/bb_premier.png
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/trunk/presentations/images/statistique/graph_biblio_article.php
New file
0,0 → 1,192
<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.1 |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org) |
// +------------------------------------------------------------------------------------------------------+
// | This file is part of Biblio Bota. |
// | |
// | Foobar 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. |
// | |
// | Foobar 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 Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: graph_biblio_article.php,v 1.1 2005-11-23 10:22:25 jp_milcent Exp $
/**
* Image créée en php sur les statistiques de BiblioBota.
*
* Réalise un graphique correspondant au nombre d'intérogation d'articles.
*
*@package BiblioBota
*@package Statistique
//Auteur original :
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2005
*@version $Revision: 1.1 $ $Date: 2005-11-23 10:22:25 $
// +------------------------------------------------------------------------------------------------------+
*/
 
// +------------------------------------------------------------------------------------------------------+
// | ENTÊTE du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
/** Inclusion du fichier de configuration spécifique à l'installation de Papyrus.*/
require_once '../../../../../papyrus/configuration/pap_config_avancee.inc.php';
/** Inclusion du fichier de configuration de Papyrus.*/
require_once '../../../../../papyrus/configuration/pap_config.inc.php';
/** Inclusion du fichier de configuration de la base de données de BiblioBota.*/
require_once '../../../configuration/bb_config_bdd.inc.php';
/** Inclusion du fichier de configuration général de BiblioBota.*/
require_once '../../../configuration/bb_config.inc.php';
 
/** Inclusion d'un fichier de l'API JPGraph. */
include_once PAP_CHEMIN_RACINE.BB_CHEMIN_API_JPGRAPH.'jpgraph.php';
/** Inclusion d'un fichier de l'API JPGraph. */
include_once PAP_CHEMIN_RACINE.BB_CHEMIN_API_JPGRAPH.'jpgraph_line.php';
/** Inclusion d'un fichier de l'API JPGraph. */
include_once PAP_CHEMIN_RACINE.BB_CHEMIN_API_JPGRAPH.'jpgraph_bar.php';
/** Inclusion de la classe PEAR d'abstraction de base de donnée. */
include_once 'DB.php';
/** Inclusion de l'API Débogage du sql */
require_once PAP_CHEMIN_RACINE.BB_CHEMIN_API_DEBOGAGE.'BOG_sql.fonct.php';
 
// +------------------------------------------------------------------------------------------------------+
// | CORPS du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
$tab_mois_fr = array('Jan','Fev','Mar','Avr','Mai','Juin','Juil','Aout','Sep','Oct','Nov','Déc');
 
// +------------------------------------------------------------------------------------------------------+
// Connexion à la base de données.
$GLOBALS['db'] = DB::connect(BB_DSN) ;
if (DB::isError($GLOBALS['db'])) {
$msg_erreur_connection = 'Impossible de se connecter à la base de données.';
die(BOG_afficherErreurSql(__FILE__, __LINE__, $GLOBALS['db']->getMessage(), 'connexion à la base de données',$msg_erreur_connection));
}
 
$graph_donnees_article = array();
$graph_donnees_total = array();
$graph_etiquette_axeX = array();
 
$requete = 'SELECT min(B_SPY_DATE) as min, max(B_SPY_DATE) as max '.
'FROM biblio_spy';
$resultat =& $GLOBALS['db']->query($requete);
if (DB::isError($resultat)) {
die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage(), $requete));
}
while ($ligne =& $resultat->fetchRow(DB_FETCHMODE_OBJECT)) {
$tps_unix_fin = $ligne->max;
$tps_unix_debut = $ligne->min;
}
$resultat->free();
 
$i = 0;
 
//Recherche du nombre d'intérogation par mois
while ($tps_unix_debut <= $tps_unix_fin) {
$nbre_recherche_article = 0;
$nbre_recherche_article_plugin = 0;
$nbre_recherche_total = 0;
$annee_debut = date('Y', $tps_unix_debut);
//echo $annee_debut;
$mois_debut = date('n', $tps_unix_debut);
//echo $mois_debut;
if($mois_debut == 12) {
$annee_fin_mois = $annee_debut+1;
$mois_fin_mois = 1;
} else {
$annee_fin_mois = $annee_debut;
$mois_fin_mois = $mois_debut+1;
}
$tps_unix_fin_mois = mktime(0, 0, 0, $mois_fin_mois, 0, $annee_fin_mois);
$requete = 'SELECT b_spy_doc, b_spy_moteur '.
'FROM biblio_spy '.
'WHERE b_spy_date >= "'.$tps_unix_debut.'" '.
'AND b_spy_date <= "'.$tps_unix_fin_mois.'"';
$resultat =& $GLOBALS['db']->query($requete);
//echo $requete;
if (DB::isError($resultat)) {
die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage(), $requete));
}
while ($ligne =& $resultat->fetchRow(DB_FETCHMODE_OBJECT)) {
if ($ligne->b_spy_moteur == 'media' && $ligne->b_spy_doc == 'bibliographie_article') {
$nbre_recherche_article++;
} elseif ($ligne->b_spy_moteur == 'media' && strstr($ligne->b_spy_doc, 'biblio-plug')) {
$nbre_recherche_article_plugin++;
}
else {
$nbre_recherche_total++;
}
}
$nbre_recherche_total = $nbre_recherche_article + $nbre_recherche_article_plugin + $nbre_recherche_total;
$graph_donnees_total[$i] = $nbre_recherche_total;
$graph_donnees_article[$i] = $nbre_recherche_article + $nbre_recherche_article_plugin;
$graph_etiquette_axeX[$i] = $tab_mois_fr[($mois_debut-1)].' '.$annee_debut;
$i++;
$resultat->free();
$tps_unix_debut = mktime(0, 0, 0, $mois_fin_mois, 1, $annee_fin_mois);
}
 
$donnees_article = array_values($graph_donnees_article);
$donnees_total = array_values($graph_donnees_total);
 
// Création de la structure du graph
$graph = new Graph(500,400,'auto');
$graph->SetMarginColor('white');
$graph->img->SetMargin(50,30,30,70);
$graph->SetScale('textint');
$graph->SetShadow();//Ombre du graph
 
// Définition du titre du graph
$graph->title->Set('Evolution du nombre de recherche d\'articles');
$graph->title->SetFont(FF_FONT1,FS_BOLD);
 
// Définition de l'axe X
// Un angle autre que 0 ou 90° ne marche pas car les polices TTF ne sont pas supportée par Sequoia
$graph->xaxis->SetTickLabels($graph_etiquette_axeX);
$graph->xaxis->SetFont(FF_FONT1,FS_NORMAL,11);
$graph->xaxis->SetLabelAngle(90);
 
// Affichage du tracé numéro 1 : organisme
$trace_01 = new LinePlot($donnees_article);
$trace_01->SetColor('brown');
//$trace_01->mark->SetType(MARK_DIAMOND);
//$trace_01->mark->SetColor('brown');
//$trace_01->value->Show();
//$trace_01->value->SetFormat('%u');
$graph->Add($trace_01);
 
// Définition de la légende
$trace_01->SetLegend ('nombre recherches articles');
$graph ->legend->Pos(0.15, 0.15, 'left', 'center');
 
// Envoi du graph au navigateur sous forme d'image.
$graph->Stroke();
 
// +------------------------------------------------------------------------------------------------------+
// | PIED du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
 
 
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.1 2005/03/01 17:43:05 jpm
* Ajout des fichiers fournissant des graphiques sur les statistiques de consultation de Biblio Bota.
*
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>
/trunk/presentations/images/statistique/graph_biblio_organisme.php
New file
0,0 → 1,187
<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.1 |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org) |
// +------------------------------------------------------------------------------------------------------+
// | This file is part of Biblio Bota. |
// | |
// | Foobar 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. |
// | |
// | Foobar 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 Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: graph_biblio_organisme.php,v 1.1 2005-11-23 10:22:25 jp_milcent Exp $
/**
* Image créée en php sur les statistiques de BiblioBota.
*
* Réalise un graphique correspondant au nombre d'intérogation d'organismes.
*
*@package BiblioBota
*@package statistique
//Auteur original :
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2005
*@version $Revision: 1.1 $ $Date: 2005-11-23 10:22:25 $
// +------------------------------------------------------------------------------------------------------+
*/
 
// +------------------------------------------------------------------------------------------------------+
// | ENTÊTE du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
/** Inclusion du fichier de configuration spécifique à l'installation de Papyrus.*/
require_once '../../../../../papyrus/configuration/pap_config_avancee.inc.php';
/** Inclusion du fichier de configuration de Papyrus.*/
require_once '../../../../../papyrus/configuration/pap_config.inc.php';
/** Inclusion du fichier de configuration de la base de données de BiblioBota.*/
require_once '../../../configuration/bb_config_bdd.inc.php';
/** Inclusion du fichier de configuration général de BiblioBota.*/
require_once '../../../configuration/bb_config.inc.php';
 
/** Inclusion d'un fichier de l'API JPGraph. */
include_once PAP_CHEMIN_RACINE.BB_CHEMIN_API_JPGRAPH.'jpgraph.php';
/** Inclusion d'un fichier de l'API JPGraph. */
include_once PAP_CHEMIN_RACINE.BB_CHEMIN_API_JPGRAPH.'jpgraph_line.php';
/** Inclusion d'un fichier de l'API JPGraph. */
include_once PAP_CHEMIN_RACINE.BB_CHEMIN_API_JPGRAPH.'jpgraph_bar.php';
/** Inclusion de la classe PEAR d'abstraction de base de donnée. */
include_once 'DB.php';
/** Inclusion de l'API Débogage du sql */
require_once PAP_CHEMIN_RACINE.BB_CHEMIN_API_DEBOGAGE.'BOG_sql.fonct.php';
 
// +------------------------------------------------------------------------------------------------------+
// | CORPS du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
$tab_mois_fr = array('Jan','Fev','Mar','Avr','Mai','Juin','Juil','Aout','Sep','Oct','Nov','Déc');
 
// +------------------------------------------------------------------------------------------------------+
// Connexion à la base de données.
$GLOBALS['db'] = DB::connect(BB_DSN) ;
if (DB::isError($GLOBALS['db'])) {
$msg_erreur_connection = 'Impossible de se connecter à la base de données.';
die(BOG_afficherErreurSql(__FILE__, __LINE__, $GLOBALS['db']->getMessage(), 'connexion à la base de données',$msg_erreur_connection));
}
 
$graph_donnees_organisme = array();
$graph_donnees_total = array();
$graph_etiquette_axeX = array();
 
$requete = 'SELECT min(B_SPY_DATE) as min, max(B_SPY_DATE) as max '.
'FROM biblio_spy';
$resultat =& $GLOBALS['db']->query($requete);
if (DB::isError($resultat)) {
die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage(), $requete));
}
while ($ligne =& $resultat->fetchRow(DB_FETCHMODE_OBJECT)) {
$tps_unix_fin = $ligne->max;
$tps_unix_debut = $ligne->min;
}
$resultat->free();
 
$i = 0;
 
//Recherche du nombre d'intérogation par mois
while ($tps_unix_debut <= $tps_unix_fin) {
$nbre_recherche_organisme = 0;
$nbre_recherche_total = 0;
$annee_debut = date('Y', $tps_unix_debut);
//echo $annee_debut;
$mois_debut = date('n', $tps_unix_debut);
//echo $mois_debut;
if($mois_debut == 12) {
$annee_fin_mois = $annee_debut+1;
$mois_fin_mois = 1;
} else {
$annee_fin_mois = $annee_debut;
$mois_fin_mois = $mois_debut+1;
}
$tps_unix_fin_mois = mktime(0, 0, 0, $mois_fin_mois, 0, $annee_fin_mois);
$requete = 'SELECT b_spy_moteur '.
'FROM biblio_spy '.
'WHERE b_spy_date >= "'.$tps_unix_debut.'" '.
'AND b_spy_date <= "'.$tps_unix_fin_mois.'"';
$resultat =& $GLOBALS['db']->query($requete);
//echo $requete;
if (DB::isError($resultat)) {
die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage(), $requete));
}
while ($ligne =& $resultat->fetchRow(DB_FETCHMODE_OBJECT)) {
if ($ligne->b_spy_moteur == 'str') {
$nbre_recherche_organisme++;
} else {
$nbre_recherche_total++;
}
}
$nbre_recherche_total = $nbre_recherche_organisme + $nbre_recherche_total;
$graph_donnees_total[$i] = $nbre_recherche_total;
$graph_donnees_organisme[$i] = $nbre_recherche_organisme;
$graph_etiquette_axeX[$i] = $tab_mois_fr[($mois_debut-1)].' '.$annee_debut;
$i++;
$resultat->free();
$tps_unix_debut = mktime(0, 0, 0, $mois_fin_mois, 1, $annee_fin_mois);
}
 
$donnees_organisme = array_values($graph_donnees_organisme);
$donnees_total = array_values($graph_donnees_total);
 
// Création de la structure du graph
$graph = new Graph(500,400,'auto');
$graph->SetMarginColor('white');
$graph->img->SetMargin(50,30,30,70);
$graph->SetScale('textint');
$graph->SetShadow();//Ombre du graph
 
// Définition du titre du graph
$graph->title->Set('Evolution du nombre de recherche d\'organisme');
$graph->title->SetFont(FF_FONT1,FS_BOLD);
 
// Définition de l'axe X
// Un angle autre que 0 ou 90° ne marche pas car les polices TTF ne sont pas supportée par Sequoia
$graph->xaxis->SetTickLabels($graph_etiquette_axeX);
$graph->xaxis->SetFont(FF_FONT1,FS_NORMAL,11);
$graph->xaxis->SetLabelAngle(90);
 
// Affichage du tracé numéro 1 : organisme
$trace_01 = new LinePlot($donnees_organisme);
$trace_01->SetColor('brown');
//$trace_01->mark->SetType(MARK_DIAMOND);
//$trace_01->mark->SetColor('brown');
//$trace_01->value->Show();
//$trace_01->value->SetFormat('%u');
$graph->Add($trace_01);
 
// Définition de la légende
$trace_01->SetLegend ('nombre recherches organismes');
$graph ->legend->Pos(0.15, 0.15, 'left', 'center');
 
// Envoi du graph au navigateur sous forme d'image.
$graph->Stroke();
 
// +------------------------------------------------------------------------------------------------------+
// | PIED du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
 
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.1 2005/03/01 17:43:05 jpm
* Ajout des fichiers fournissant des graphiques sur les statistiques de consultation de Biblio Bota.
*
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>
/trunk/presentations/images/statistique/graph_biblio_site.php
New file
0,0 → 1,186
<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.1 |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org) |
// +------------------------------------------------------------------------------------------------------+
// | This file is part of Biblio Bota. |
// | |
// | Foobar 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. |
// | |
// | Foobar 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 Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: graph_biblio_site.php,v 1.1 2005-11-23 10:22:25 jp_milcent Exp $
/**
* Image créée en php sur les statistiques de BiblioBota.
*
* Réalise un graphique correspondant au nombre d'intérogation de livres.
*
*@package BiblioBota
*@package Statistique
//Auteur original :
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.1 $ $Date: 2005-11-23 10:22:25 $
// +------------------------------------------------------------------------------------------------------+
*/
 
// +------------------------------------------------------------------------------------------------------+
// | ENTÊTE du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
/** Inclusion du fichier de configuration spécifique à l'installation de Papyrus.*/
require_once '../../../../../papyrus/configuration/pap_config_avancee.inc.php';
/** Inclusion du fichier de configuration de Papyrus.*/
require_once '../../../../../papyrus/configuration/pap_config.inc.php';
/** Inclusion du fichier de configuration de la base de données de BiblioBota.*/
require_once '../../../configuration/bb_config_bdd.inc.php';
/** Inclusion du fichier de configuration général de BiblioBota.*/
require_once '../../../configuration/bb_config.inc.php';
 
/** Inclusion d'un fichier de l'API JPGraph. */
include_once PAP_CHEMIN_RACINE.BB_CHEMIN_API_JPGRAPH.'jpgraph.php';
/** Inclusion d'un fichier de l'API JPGraph. */
include_once PAP_CHEMIN_RACINE.BB_CHEMIN_API_JPGRAPH.'jpgraph_line.php';
/** Inclusion d'un fichier de l'API JPGraph. */
include_once PAP_CHEMIN_RACINE.BB_CHEMIN_API_JPGRAPH.'jpgraph_bar.php';
/** Inclusion de la classe PEAR d'abstraction de base de donnée. */
include_once 'DB.php';
/** Inclusion de l'API Débogage du sql */
require_once PAP_CHEMIN_RACINE.BB_CHEMIN_API_DEBOGAGE.'BOG_sql.fonct.php';
 
// +------------------------------------------------------------------------------------------------------+
// | CORPS du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
$tab_mois_fr = array('Jan','Fev','Mar','Avr','Mai','Juin','Juil','Aout','Sep','Oct','Nov','Déc');
 
// +------------------------------------------------------------------------------------------------------+
// Connexion à la base de données.
$GLOBALS['db'] = DB::connect(BB_DSN) ;
if (DB::isError($GLOBALS['db'])) {
$msg_erreur_connection = 'Impossible de se connecter à la base de données.';
die(BOG_afficherErreurSql(__FILE__, __LINE__, $GLOBALS['db']->getMessage(), 'connexion à la base de données',$msg_erreur_connection));
}
 
$graph_donnees_livre = array();
$graph_donnees_total = array();
$graph_etiquette_axeX = array();
 
$requete = 'SELECT min(B_SPY_DATE) as min, max(B_SPY_DATE) as max '.
'FROM biblio_spy';
$resultat =& $GLOBALS['db']->query($requete);
if (DB::isError($resultat)) {
die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage(), $requete));
}
while ($ligne =& $resultat->fetchRow(DB_FETCHMODE_OBJECT)) {
$tps_unix_fin = $ligne->max;
$tps_unix_debut = $ligne->min;
}
$resultat->free();
 
$i = 0;
 
//Recherche du nombre d'intérogation par mois
while ($tps_unix_debut <= $tps_unix_fin) {
$nbre_recherche_site = 0;
$nbre_recherche_autre = 0;
$annee_debut = date('Y', $tps_unix_debut);
//echo $annee_debut;
$mois_debut = date('n', $tps_unix_debut);
//echo $mois_debut;
if($mois_debut == 12) {
$annee_fin_mois = $annee_debut+1;
$mois_fin_mois = 1;
} else {
$annee_fin_mois = $annee_debut;
$mois_fin_mois = $mois_debut+1;
}
$tps_unix_fin_mois = mktime(0, 0, 0, $mois_fin_mois, 0, $annee_fin_mois);
$requete = 'SELECT b_spy_moteur '.
'FROM biblio_spy '.
'WHERE b_spy_date >= "'.$tps_unix_debut.'" '.
'AND b_spy_date <= "'.$tps_unix_fin_mois.'"';
$resultat =& $GLOBALS['db']->query($requete);
//echo $requete;
if (DB::isError($resultat)) {
die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage(), $requete));
}
while ($ligne =& $resultat->fetchRow(DB_FETCHMODE_OBJECT)) {
if ($ligne->b_spy_moteur == 'link') {
$nbre_recherche_site++;
} else {
$nbre_recherche_autre++;
}
}
$graph_donnees_total[$i] = $nbre_recherche_site + $nbre_recherche_autre;
$graph_donnees_site[$i] = $nbre_recherche_site;
$graph_etiquette_axeX[$i] = $tab_mois_fr[($mois_debut-1)].' '.$annee_debut;
$i++;
$resultat->free();
$tps_unix_debut = mktime(0, 0, 0, $mois_fin_mois, 1, $annee_fin_mois);
}
 
$donnees_site = array_values($graph_donnees_site);
$donnees_total = array_values($graph_donnees_total);
 
// Création de la structure du graph
$graph = new Graph(500,400,'auto');
$graph->SetMarginColor('white');
$graph->img->SetMargin(50,30,30,70);
$graph->SetScale('textint');
$graph->SetShadow();//Ombre du graph
 
// Définition du titre du graph
$graph->title->Set('Evolution du nombre de recherche de sites web');
$graph->title->SetFont(FF_FONT1,FS_BOLD);
 
// Définition de l'axe X
// Un angle autre que 0 ou 90° ne marche pas car les polices TTF ne sont pas supportée par Sequoia
$graph->xaxis->SetTickLabels($graph_etiquette_axeX);
$graph->xaxis->SetFont(FF_FONT1,FS_NORMAL,11);
$graph->xaxis->SetLabelAngle(90);
 
// Affichage du tracé numéro 1 : organisme
$trace_01 = new LinePlot($donnees_site);
$trace_01->SetColor('brown');
//$trace_01->mark->SetType(MARK_DIAMOND);
//$trace_01->mark->SetColor('brown');
//$trace_01->value->Show();
//$trace_01->value->SetFormat('%u');
$graph->Add($trace_01);
 
// Définition de la légende
$trace_01->SetLegend ('nombre recherches sites');
$graph ->legend->Pos(0.15, 0.15, 'left', 'center');
 
// Envoi du graph au navigateur sous forme d'image.
$graph->Stroke();
 
// +------------------------------------------------------------------------------------------------------+
// | PIED du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
 
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.1 2005/03/01 17:43:05 jpm
* Ajout des fichiers fournissant des graphiques sur les statistiques de consultation de Biblio Bota.
*
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>
/trunk/presentations/images/statistique/graph_biblio_ouvrage.php
New file
0,0 → 1,186
<?php
/*vim: set expandtab tabstop=4 shiftwidth=4: */
// +------------------------------------------------------------------------------------------------------+
// | PHP version 4.1 |
// +------------------------------------------------------------------------------------------------------+
// | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org) |
// +------------------------------------------------------------------------------------------------------+
// | This file is part of Biblio Bota. |
// | |
// | Foobar 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. |
// | |
// | Foobar 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 Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: graph_biblio_ouvrage.php,v 1.1 2005-11-23 10:22:25 jp_milcent Exp $
/**
* Image créée en php sur les statistiques de BiblioBota.
*
* Réalise un graphique correspondant au nombre d'intérogation de livres.
*
*@package BiblioBota
*@package Statistique
//Auteur original :
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2005
*@version $Revision: 1.1 $ $Date: 2005-11-23 10:22:25 $
// +------------------------------------------------------------------------------------------------------+
*/
 
// +------------------------------------------------------------------------------------------------------+
// | ENTÊTE du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
/** Inclusion du fichier de configuration spécifique à l'installation de Papyrus.*/
require_once '../../../../../papyrus/configuration/pap_config_avancee.inc.php';
/** Inclusion du fichier de configuration de Papyrus.*/
require_once '../../../../../papyrus/configuration/pap_config.inc.php';
/** Inclusion du fichier de configuration de la base de données de BiblioBota.*/
require_once '../../../configuration/bb_config_bdd.inc.php';
/** Inclusion du fichier de configuration général de BiblioBota.*/
require_once '../../../configuration/bb_config.inc.php';
 
/** Inclusion d'un fichier de l'API JPGraph. */
include_once PAP_CHEMIN_RACINE.BB_CHEMIN_API_JPGRAPH.'jpgraph.php';
/** Inclusion d'un fichier de l'API JPGraph. */
include_once PAP_CHEMIN_RACINE.BB_CHEMIN_API_JPGRAPH.'jpgraph_line.php';
/** Inclusion d'un fichier de l'API JPGraph. */
include_once PAP_CHEMIN_RACINE.BB_CHEMIN_API_JPGRAPH.'jpgraph_bar.php';
/** Inclusion de la classe PEAR d'abstraction de base de donnée. */
include_once 'DB.php';
/** Inclusion de l'API Débogage du sql */
require_once PAP_CHEMIN_RACINE.BB_CHEMIN_API_DEBOGAGE.'BOG_sql.fonct.php';
 
// +------------------------------------------------------------------------------------------------------+
// | CORPS du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
$tab_mois_fr = array('Jan','Fev','Mar','Avr','Mai','Juin','Juil','Aout','Sep','Oct','Nov','Déc');
 
// +------------------------------------------------------------------------------------------------------+
// Connexion à la base de données.
$GLOBALS['db'] = DB::connect(BB_DSN) ;
if (DB::isError($GLOBALS['db'])) {
$msg_erreur_connection = 'Impossible de se connecter à la base de données.';
die(BOG_afficherErreurSql(__FILE__, __LINE__, $GLOBALS['db']->getMessage(), 'connexion à la base de données',$msg_erreur_connection));
}
 
$graph_donnees_livre = array();
$graph_donnees_total = array();
$graph_etiquette_axeX = array();
 
$requete = 'SELECT min(B_SPY_DATE) as min, max(B_SPY_DATE) as max '.
'FROM biblio_spy';
$resultat =& $GLOBALS['db']->query($requete);
if (DB::isError($resultat)) {
die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage(), $requete));
}
while ($ligne =& $resultat->fetchRow(DB_FETCHMODE_OBJECT)) {
$tps_unix_fin = $ligne->max;
$tps_unix_debut = $ligne->min;
}
$resultat->free();
 
$i = 0;
 
//Recherche du nombre d'intérogation par mois
while ($tps_unix_debut <= $tps_unix_fin) {
$nbre_recherche_livre = 0;
$nbre_recherche_autre = 0;
$annee_debut = date('Y', $tps_unix_debut);
//echo $annee_debut;
$mois_debut = date('n', $tps_unix_debut);
//echo $mois_debut;
if($mois_debut == 12) {
$annee_fin_mois = $annee_debut+1;
$mois_fin_mois = 1;
} else {
$annee_fin_mois = $annee_debut;
$mois_fin_mois = $mois_debut+1;
}
$tps_unix_fin_mois = mktime(0, 0, 0, $mois_fin_mois, 0, $annee_fin_mois);
$requete = 'SELECT b_spy_doc, b_spy_moteur '.
'FROM biblio_spy '.
'WHERE b_spy_date >= "'.$tps_unix_debut.'" '.
'AND b_spy_date <= "'.$tps_unix_fin_mois.'"';
$resultat =& $GLOBALS['db']->query($requete);
//echo $requete;
if (DB::isError($resultat)) {
die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage(), $requete));
}
while ($ligne =& $resultat->fetchRow(DB_FETCHMODE_OBJECT)) {
if ($ligne->b_spy_moteur == 'media' && $ligne->b_spy_doc == 'bibliographie_livres') {
$nbre_recherche_livre++;
} else {
$nbre_recherche_autre++;
}
}
$graph_donnees_total[$i] = $nbre_recherche_livre + $nbre_recherche_autre;
$graph_donnees_livre[$i] = $nbre_recherche_livre;
$graph_etiquette_axeX[$i] = $tab_mois_fr[($mois_debut-1)].' '.$annee_debut;
$i++;
$resultat->free();
$tps_unix_debut = mktime(0, 0, 0, $mois_fin_mois, 1, $annee_fin_mois);
}
 
$donnees_livre = array_values($graph_donnees_livre);
$donnees_total = array_values($graph_donnees_total);
 
// Création de la structure du graph
$graph = new Graph(500,400,'auto');
$graph->SetMarginColor('white');
$graph->img->SetMargin(50,30,30,70);
$graph->SetScale('textint');
$graph->SetShadow();//Ombre du graph
 
// Définition du titre du graph
$graph->title->Set('Evolution du nombre de recherche de livres');
$graph->title->SetFont(FF_FONT1,FS_BOLD);
 
// Définition de l'axe X
// Un angle autre que 0 ou 90° ne marche pas car les polices TTF ne sont pas supportée par Sequoia
$graph->xaxis->SetTickLabels($graph_etiquette_axeX);
$graph->xaxis->SetFont(FF_FONT1,FS_NORMAL,11);
$graph->xaxis->SetLabelAngle(90);
 
// Affichage du tracé numéro 1 : organisme
$trace_01 = new LinePlot($donnees_livre);
$trace_01->SetColor('brown');
//$trace_01->mark->SetType(MARK_DIAMOND);
//$trace_01->mark->SetColor('brown');
//$trace_01->value->Show();
//$trace_01->value->SetFormat('%u');
$graph->Add($trace_01);
 
// Définition de la légende
$trace_01->SetLegend ('nombre recherches livres');
$graph ->legend->Pos(0.15, 0.15, 'left', 'center');
 
// Envoi du graph au navigateur sous forme d'image.
$graph->Stroke();
 
// +------------------------------------------------------------------------------------------------------+
// | PIED du PROGRAMME |
// +------------------------------------------------------------------------------------------------------+
 
 
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.1 2005/03/01 17:43:05 jpm
* Ajout des fichiers fournissant des graphiques sur les statistiques de consultation de Biblio Bota.
*
*
* +-- Fin du code ----------------------------------------------------------------------------------------+
*/
?>
/trunk/presentations/images/bb_epuise.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/presentations/images/bb_epuise.png
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property
/trunk/presentations/images/bb_partenaire.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/trunk/presentations/images/bb_partenaire.png
New file
Property changes:
Added: svn:mime-type
+application/octet-stream
\ No newline at end of property