Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Rev 15 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15 Rev 17
1
<?php
1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
3
// +------------------------------------------------------------------------------------------------------+
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
7
// +------------------------------------------------------------------------------------------------------+
8
// | This library is free software; you can redistribute it and/or                                        |
8
// | This library is free software; you can redistribute it and/or                                        |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
10
// | License as published by the Free Software Foundation; either                                         |
10
// | License as published by the Free Software Foundation; either                                         |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
12
// |                                                                                                      |
12
// |                                                                                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | Lesser General Public License for more details.                                                      |
16
// | Lesser General Public License for more details.                                                      |
17
// |                                                                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
19
// | License along with this library; if not, write to the Free Software                                  |
19
// | License along with this library; if not, write to the Free Software                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: eflore_photo.inc.php,v 1.5 2004-07-01 14:22:41 linda Exp $
22
// CVS : $Id: eflore_photo.inc.php,v 1.6 2004-08-17 11:13:38 linda Exp $
23
/**
23
/**
24
* Titre
24
* Titre
25
*
25
*
26
* Description
26
* Description
27
*
27
*
28
*@package nom_du_paquetage
28
*@package nom_du_paquetage
29
*@subpackage nom_du_sous-paquetage_si_necessaire
29
*@subpackage nom_du_sous-paquetage_si_necessaire
30
//Auteur original :
30
//Auteur original :
31
*@author        linda ANGAMA<linda_angama@yahoo.fr>
31
*@author        linda ANGAMA<linda_angama@yahoo.fr>
32
//Autres auteurs :
32
//Autres auteurs :
33
*@author        Aucun
33
*@author        Aucun
34
*@copyright     Tela-Botanica 2000-2004
34
*@copyright     Tela-Botanica 2000-2004
35
*@version       $Revision: 1.5 $ $Date: 2004-07-01 14:22:41 $
35
*@version       $Revision: 1.6 $ $Date: 2004-08-17 11:13:38 $
36
*/
36
*/
37
 
37
 
38
 
38
 
39
$res="";
39
$res='';
-
 
40
 
40
 
41
GEN_stockerStyleExterne('photo', GEN_CHEMIN_CLIENT.'eflore/presentations/styles/photo.css');
41
GEN_stockerStyleExterne('photo', GEN_CHEMIN_CLIENT.'eflore/presentations/styles/photo.css');
42
//connexion a la base
42
 
43
 
43
if (isset($_GET['agrandit']))
44
if (DB::isError($GLOBALS['db_eflore']))
44
{
45
{
45
$res.="<div>";
46
    echo '<ERREUR>';
46
$res.="<p><a href=\"papyrus.php?site=3&menu=39&onglet=photo&"./*.SID."&*/"deb=".$_SESSION['dep']."\">Retour &agrave; la miniature</a></p>";
47
    echo 'Impossible d\'&eacutetablir de connexion '.$GLOBALS['db_eflore']->getMessage();
-
 
48
    echo '</ERREUR>';
-
 
49
    exit;
-
 
50
}
-
 
51
 
-
 
52
    //requete sql 
-
 
53
    $req_img='select * from eflore_info_image, eflore_info_txt_a_taxon, eflore_inventaire_observation, eflore_licence, eflore_personne_contributeur';
-
 
54
    $req=' where eii_id_image=eitat_id_taxon_ref ';
-
 
55
    $req.=' and eii_id_version_projet_img=eitat_id_version_projet_taxon_ref ';
-
 
56
    $req.=' and eio_ce_image=eii_id_image ';
-
 
57
    $req.=' and eii_id_version_projet_img=eio_ce_version_projet_img ';
-
 
58
    $req.=' and eii_ce_licence_img=eli_id_licence';
-
 
59
    $req.=' and eitat_id_texte='.N_TAXON;
-
 
60
    $req.=' and eitat_id_version_projet_txt='.N_VERSION_PROJET_TAXON;
-
 
61
    $req.=' and epc_id_contributeur=eii_ce_contributeur_image';
-
 
62
    if (isset($_GET['suppr'])){
-
 
63
        $req.=' and eii_ce_contributeur_image='.CONTRIBUTEUR;
-
 
64
    }
-
 
65
    $req_img.=$req;
-
 
66
    $resultat_img=$GLOBALS['db_eflore']->query($req_img);
-
 
67
    (DB::isError($resultat_img)) ?
-
 
68
           die (BOG_afficherErreurSql(__FILE__, __LINE__, 'img:'.$resultat_img->getMessage(), $req_img)) : '' ;
-
 
69
    $nbre_ligne=$resultat_img->numRows();
-
 
70
//-------------------------------------------PAGE AVEC LA PHOTO TAILLE REELLE-------------------------------------------------//
-
 
71
if (isset($_GET['agrandit'])){
-
 
72
    $req_img.=' and eii_id_image='.$_GET['id'];
-
 
73
    $resultat_img=$GLOBALS['db_eflore']->query($req_img);
-
 
74
    (DB::isError($resultat_img)) ?
-
 
75
           die (BOG_afficherErreurSql(__FILE__, __LINE__, 'img:'.$resultat_img->getMessage(), $req_img)) : '' ;
-
 
76
    $ligne=& $resultat_img->fetchRow(DB_FETCHMODE_ASSOC);
-
 
77
    $req_nom='select *';
-
 
78
    $req_nom.=' from eflore_selection_nom , eflore_nom ';
-
 
79
    $req_nom.=' LEFT JOIN eflore_botaniste_intitule_abreviation ON en_ce_auteur_basio= ebia_id_intitule_botaniste_abrege';
-
 
80
    $req_nom.=' where esn_id_taxon='.N_TAXON;
-
 
81
    $req_nom.=' and esn_id_version_projet_taxon='.N_VERSION_PROJET_TAXON;
-
 
82
    $req_nom.=' and esn_id_nom=en_id_nom';
-
 
83
    if ($ligne['eio_ce_autre_nom_latin']==0){
-
 
84
        $req_nom.=' and en_id_nom='.selectNom();
-
 
85
    }
-
 
86
    else {
-
 
87
        $req_nom.=' and en_id_nom='.$ligne['eio_ce_autre_nom_latin'];
-
 
88
    }
-
 
89
    $resultat_nom=$GLOBALS['db_eflore']->query($req_nom);
-
 
90
    (DB::isError($resultat_nom)) ?
-
 
91
           die (BOG_afficherErreurSql(__FILE__, __LINE__, 'cpt:'.$resultat_nom->getMessage(), $req_nom)) : '' ;
-
 
92
    $nom=& $resultat_nom->fetchRow(DB_FETCHMODE_ASSOC);
-
 
93
    $req_cat='select * from eflore_info_image_valeur, eflore_info_image_posseder_valeur';
-
 
94
    $req_cat.=' where  eiipv_id_valeur_categorie_img= eiiv_id_valeur_categorie_img ';
-
 
95
    $req_cat.=' and eiipv_id_image='.$_GET['id'];
-
 
96
    $resultat_cat=$GLOBALS['db_eflore']->query($req_cat);
-
 
97
    (DB::isError($resultat_cat)) ?
-
 
98
           die (BOG_afficherErreurSql(__FILE__, __LINE__, 'cpt:'.$resultat_cat->getMessage(), $req_cat)) : '' ;
-
 
99
    $res.='<div>';
-
 
100
    $res.='<p><a href="'.EFLORE_CHEMIN_APPLI.'&onglet=photo&deb='.$_SESSION['dep'].'">Retour &agrave; la miniature</a></p>';
-
 
101
    $res.='<p>'.EN_ID_NOM.$nom['en_nom_genre'].' '.$nom['en_epithete_espece'].' '.$nom['ebia_intitule_botaniste_abrege'].'</p>';
-
 
102
    if ($ligne['eio_ce_autre_nom_latin']!=0){
-
 
103
        $res.='<p>'.EIO_AUTRE_FLORE.$ligne['eio_autre_flore'].'</p>';
-
 
104
    }
-
 
105
    $res.='<p>'.CONTRIBUTEUR_IMG.$ligne['epc_nom_principal'].'</p>';
-
 
106
    $res.='<p>'.EII_AUTEUR_IMG.$ligne['eii_auteur_img'].'</p>';
-
 
107
    if ($ligne['eio_autre_auteur_determination']!=NULL){
-
 
108
        $res.='<p>'.EIO_AUTRE_AUTEUR_DETERMINATION.$ligne['eio_autre_auteur_determination'].'</p>';
-
 
109
    }
-
 
110
    
-
 
111
    while($cat=& $resultat_cat->fetchRow(DB_FETCHMODE_ASSOC)){
-
 
112
        switch ($cat['eiiv_ce_categorie_img']) {
-
 
113
            case 1:
-
 
114
                $res.='<p>'.NATURE.$cat['eiiv_intitule_valeur_categorie_img'].'</p>';
-
 
115
                break;
-
 
116
            case 2:
-
 
117
                $res.='<p>'.DEVELOPPEMENT.$cat['eiiv_intitule_valeur_categorie_img'].'</p>';
-
 
118
                break;
-
 
119
            case 3:
-
 
120
                $res.='<p>'.SUJET.$cat['eiiv_intitule_valeur_categorie_img'].'</p>';
-
 
121
        }
-
 
122
    }
-
 
123
    
-
 
124
    $res.='<p>'.EIS_LIEUDIT.'</p>';
-
 
125
    $form_date=substr($ligne['eio_date_observation'],0,4);
-
 
126
    if (($mois=substr($ligne['eio_date_observation'],5,2))!='00'){
-
 
127
        $form_date=$mois.'/'.$form_date;
-
 
128
    }
-
 
129
    if (($jour=substr($ligne['eio_date_observation'],8,2))!='00'){
-
 
130
        $form_date=$jour.'/'.$form_date;
-
 
131
    }
-
 
132
    $res.='<p>'.DATE_IMG.$form_date.'</p>';
-
 
133
    $info='';
-
 
134
    if ($ligne['eii_description_courte_img']!=NULL){
-
 
135
        $info=$ligne['eii_description_courte_img'];
-
 
136
    }
-
 
137
    else {
-
 
138
        $info=$ligne['eii_description_longue_img'];
-
 
139
    }
-
 
140
    if ($ligne['eii_description_courte_img']!=NULL || $ligne['eii_description_longue_img']!=NULL){
-
 
141
        $res.='<p>Informations compl&eacute;mentaires : '.$info.'</p>';
-
 
142
    }
-
 
143
    $res.='<div class="debord"><img src="'.$_GET['agrandit'].'"></div></div>';
-
 
144
 
-
 
145
$res.=$ligne['eli_texte_licence'];
47
$res.="<div class=\"debord\"><img src=\"".$_GET['agrandit']."\"></div></div>";
146
}
48
//unset($agrandit);
147
 
49
}
148
//-----------------------------------------PAGE AVEC L'AFFICHAGE DES MINIATURES------------------------------------------------//
50
else
149
else
51
{
150
{
52
    if (!isset($_GET['deb']))    {$deb=0;}
151
    if (!isset($_GET['deb']))    {$deb=0;}
53
    else {$deb=$_GET['deb'];}
152
    else {$deb=$_GET['deb'];}
54
    $_SESSION['dep']=$deb;
153
    $_SESSION['dep']=$deb;
55
    $sep="\"\n";
-
 
56
    $img_pg=6;
154
    $img_pg=6;
57
    $img_l=3;
155
    $img_l=3;
58
    $prec=null;
156
    $prec=null;
59
    $suiv=null;
157
    $suiv=null;
60
 
-
 
61
    //en-tete commune a tous les fichiers rdf
-
 
62
    $en_tete="<rdf=RDF";
-
 
63
    $en_tete .="\n";
-
 
64
    $en_tete .="xmls:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#";
158
 
65
    $en_tete .=$sep;
159
    if (!isset($_GET['suppr'])){
66
    $en_tete .="xmls:dc=\"http://purl.org/dc/elements/1.1/".$sep;
160
    //affichage du lien vers le formulaire de soumission d'images
67
    $en_tete .="xmls:dcterms=\"http://purl.org/dc/terms".$sep;
-
 
68
    $en_tete .=">"."\n\n"; 
-
 
69
 
-
 
70
    //connexion a la base
-
 
71
 
-
 
72
    if (DB::isError($GLOBALS['db_eflore']))
-
 
73
    {
161
    $res.='<a href="'.EFLORE_CHEMIN_APPLI.'&onglet=photo&soum=1">'.FORM_AJOUT.'</a>';
74
        echo "<ERREUR>";
162
    if ($nbre_ligne==0){
75
        echo "Impossible d'&eacutetablir de connexion ",$GLOBALS['db_eflore']->getMessage();
-
 
76
        echo "</ERREUR>";
-
 
77
        exit;
163
        $res.='<p class="plein_texte">Il n\'y a aucune illustration de ce taxon disponible</p>';
78
    }
-
 
79
 
-
 
80
 
-
 
81
    //requete sql 
-
 
82
    $req="select * from images";
-
 
83
    $cond="";
-
 
84
//    $cond="where identifier<=7";
-
 
85
    $requete="select count('identifier') from images ";
-
 
86
    if(!$cond=="")
-
 
87
    {
-
 
88
        $resultat=$GLOBALS['db_eflore']->query($req." ".$cond);
-
 
89
        $cpt=$GLOBALS['db_eflore']->query("select count('identifier') from images ".$cond);
-
 
90
        $nbre_ligne=$cpt->fetchRow(DB_FETCHMODE_ORDERED);
164
    }
91
        //print("nombre de lignes r&eacute;sultat de la requ&ecirc;te : ".$nbre_ligne[0]."<br>");
165
    $res.='<br /><a href="'.EFLORE_CHEMIN_APPLI.'&onglet=photo&suppr=1">'.FORM_MODIF.'</a>';
92
    }
166
    }
93
    else
-
 
94
    {
-
 
95
        $resultat=$GLOBALS['db_eflore']->query($req);
167
    else{
96
        $cpt=$GLOBALS['db_eflore']->query("select count('identifier') from images ");
-
 
97
        $nbre_ligne=$cpt->fetchRow(DB_FETCHMODE_ORDERED);
168
        $res.='<p><a href="'.EFLORE_CHEMIN_APPLI.'&onglet=photo&deb='.$_SESSION['dep'].'">'.AFF_MINI.'</a></p>';
98
    }
169
    }
99
 
170
 
100
    //selection des lignes de la requete &agrave; traiter
171
    //selection des lignes de la requete &agrave; traiter
101
 
172
 
102
    if (($deb+$img_pg+1)<=($nbre_ligne[0])) 
173
    if (($deb+$img_pg+1)<=($nbre_ligne)) 
103
    {
174
    {
104
        $fin=$deb+$img_pg-1;
175
        $fin=$deb+$img_pg-1;
105
    }
176
    }
106
    else 
177
    else 
107
    {
178
    {
108
        $fin=$nbre_ligne[0]-1;
179
        $fin=$nbre_ligne-1;
109
    }
180
    }
110
 
-
 
111
 
-
 
112
 
181
 
113
    //affichage des miniatures et g&eacute;n&eacute;ration des fichiers rdf
182
    //affichage des miniatures et g&eacute;n&eacute;ration des fichiers rdf
114
    if ($fin!==0)
183
    if ($fin!==0)
115
    {
184
    {
116
        $res.="            <ul class=\"liste_photo\">\n";
185
        $res.='            <ul class="liste_photo">'."\n";
-
 
186
        $i=0;
117
        foreach (range($deb, $fin) as $num_ligne) 
187
        foreach (range($deb, $fin) as $num_ligne) 
118
        {
188
        {
119
            if (!$ligne = $resultat->fetchrow(DB_FETCHMODE_ORDERED, $num_ligne)) 
189
            if (!$ligne =& $resultat_img->fetchrow(DB_FETCHMODE_ASSOC, $num_ligne)) 
120
            {
190
            {
121
                break;
191
                break;
122
            }
192
            }
123
            if ($num_ligne%$img_l==0)
193
            if ($num_ligne%$img_l==0)
124
            {
194
            {
125
                $res.="              ";
195
                $res.='              ';
126
                $res.="<li class=\"colonne\">";
196
                $res.='<li class="colonne">';
127
                $res.="\n              ";
197
                $res.="\n              ";
128
                $res.="<ul>\n";
198
                $res.='<ul>'."\n";
129
            }
199
            }
130
            $url_img=$ligne[8];
200
            $i++;
131
            $url_img_mini=$url_img."mini_photos_plte/mini_";
201
            $url_img=$ligne['eii_lien_vers_img'];
132
            $url_img_mini .=$ligne[1];
202
            $url_img_mini=EFLORE_CHEMIN_IMG_PLTE.'mini_photos_plte/mini_';
133
            $url_img .=$ligne[1];
203
            $url_img_mini .=$ligne['eii_id_image'].'.jpg';
134
            $res.="                ";
-
 
135
            $res.="<li class=\"ligne\">\n";
-
 
136
            $res.="                  ";
-
 
137
            $res.="<p class=\"info\">";
-
 
138
            $res.="<a href=\"papyrus.php?site=3&menu=39&onglet=photo&agrandit=".$url_img."\">";
-
 
139
            $res.="\n                    ";
-
 
140
            $res.="<img src=\"".$url_img_mini."\" border=0 />";
-
 
141
            $res.="\n                  ";
-
 
142
            $res.="</a>";
-
 
143
            $res.="\n                  ";
-
 
144
            $res.="\n                  ";
-
 
145
            
-
 
146
            $res.="\n                    ";
-
 
147
            $res.="<p class=\"label\">";
-
 
148
            $res.="\n                      ";
-
 
149
            $res.="taille réelle de l'image : ".intval(filesize($url_img)/1024)." ko";
-
 
150
            $res.="\n                    ";
-
 
151
            list($long,$larg,$type,$attr)=getimagesize($url_img);
204
            if ($ligne['eii_lien_vers_img']!=EFLORE_CHEMIN_IMG_PLTE){
152
            $res.="largeur : ".$larg." px<br>";
-
 
153
            $res.="\n                    ";
-
 
154
            $res.="longueur :".$long." px<br>";
-
 
155
            $res.="\n                      ";
-
 
156
            $res.="auteur : ";
-
 
157
            $res.="\n                    ";
-
 
158
            $res.="</p>";
-
 
159
            $res.="\n                  ";
-
 
160
            $res.="</p>";
-
 
161
            $res.="\n                   ";
-
 
162
            $res.="</li>\n";
-
 
163
            $res.="<li class=\"ligne2\"><div class=\"separateur\">&nbsp;</div></li>\n";
-
 
164
            if ($num_ligne%$img_l==2)
-
 
165
            {
-
 
166
                $res.="            </ul>  \n";
205
                $url_img .=$ligne['eii_nom_fichier_img'];
167
                $res.="<li class=\"colonne\"><span class=\"spacer\"></span></li>";
-
 
168
            }
206
            }
169
            
-
 
170
            
-
 
-
 
207
            else{
171
            //g&eacute;n&eacute;ration d'un fichier rdf pour chaque resultat de la requete
208
                $url_img .=$ligne['eii_id_image'].'.jpg';
-
 
209
            }
172
            $fic=EFLORE_CHEMIN_RDF;
210
            $res.='                ';
173
            $fic .=$ligne[0];
211
            $res.='<li class="ligne">'."\n";
-
 
212
            $res.='                  ';
174
            $fic .=".rdf";
213
            $res.='<p class="info">';
175
            if(!file_exists($fic))
214
            if (!@fopen($url_img,'r')){
-
 
215
                $res.="\n                    ";
-
 
216
                $res.='<img src="'.$url_img_mini.'" alt="'.$ligne['eii_description_courte_img'].' date:'.$ligne['eio_date_observation'].'" border=0 />';
-
 
217
                $res.="\n                  ";
176
            {
218
                $res.='</a>';
-
 
219
                $res.="\n                  ";
177
                $fp=fopen($fic,"w+");
220
                $res.="\n                  ";
178
                $text_rdf="";
221
                $res.='</p>';
-
 
222
                $res.="\n                  ";
-
 
223
                $res.="\n                    ";
179
                if(!$fp)
224
                $res.='<p class="label">';
-
 
225
                $res.="\n                      ";
-
 
226
                $res.=DEFAUT_IMG.'<br />';
-
 
227
                $res.="\n                      ";
-
 
228
                $res.=AUTEUR.$ligne['eii_auteur_img'];
-
 
229
                $res.="\n                    ";
180
                {
230
                $res.='</p>';
181
                    $res.="erreur de cr&eacute;ation du fichier rdf";
231
                $res.="\n                   ";
-
 
232
                $res.='</li>'."\n";
-
 
233
            }
182
                    exit;
234
            else{
-
 
235
                if (!isset($_GET['suppr'])){
-
 
236
                    $res.='<a href="'.EFLORE_CHEMIN_APPLI.'&onglet=photo&agrandit='.$url_img.'&id='.$ligne['eii_id_image'].'">';
183
                }
237
                }
184
            
-
 
185
                $text_rdf .=$en_tete;
-
 
186
            
-
 
187
                $text_rdf .="<rdf:Description  rdf:about=\"";
-
 
188
                $url_img=$ligne[8];
-
 
189
                $url_img .=$ligne[1];
-
 
190
                $text_rdf .=$url_img .$sep;
-
 
191
            
-
 
192
                $text_rdf .="dc:identifier=\"";
-
 
193
                $text_rdf .=$ligne[0];
-
 
194
                $text_rdf .=$sep;
-
 
195
            
-
 
196
                $text_rdf .="dc:title=\"";
-
 
197
                $text_rdf .=$ligne[1];
-
 
198
                $text_rdf .=$sep;
-
 
199
            
-
 
200
                $text_rdf .="dc:creator=\"";
-
 
201
                $text_rdf .=$ligne[2];
-
 
202
                $text_rdf .=$sep;
-
 
203
            
-
 
204
                $text_rdf .="dc:type=\"";
-
 
205
                $text_rdf .=$ligne[3];
-
 
206
                $text_rdf .=$sep;
-
 
207
            
-
 
208
                if(!(is_null($ligne[4])))
-
 
209
                {
238
                else{
210
            
-
 
211
                    $text_rdf .="dcterms:created=\"";
239
                    $res.='<a href="'.EFLORE_CHEMIN_APPLI.'&onglet=photo&modif=1&id='.$ligne['eii_id_image'].'">';
212
                    $text_rdf .=$ligne[4];
-
 
213
                    $text_rdf .=$sep;
-
 
214
                }
240
                }
-
 
241
                $res.="\n                    ";
-
 
242
                $res.='<img src="'.$url_img_mini.'" alt="'.$ligne['eii_description_courte_img'].DATE_IMG.$ligne['eio_date_observation'].'" border=0 />';
-
 
243
                $res.="\n                  ";
-
 
244
                $res.='</a>';
-
 
245
                $res.="\n                  ";
-
 
246
                $res.="\n                  ";
-
 
247
                $res.='</p>';
-
 
248
                $res.="\n                  ";
-
 
249
                $res.="\n                    ";
-
 
250
                $res.='<p class="label">';
-
 
251
                $res.="\n                      ";
-
 
252
                $res.=POIDS.$ligne['eii_poids_img'].' ko<br />';
-
 
253
                $res.="\n                    ";
-
 
254
                $res.=TAILLE.$ligne['eii_larg_img'].'x'.$ligne['eii_long_img'].' px<br />';
-
 
255
                $res.="\n                      ";
-
 
256
                $res.=AUTEUR.$ligne['eii_auteur_img'];
-
 
257
                $res.="\n                    ";
-
 
258
                $res.='</p>';
-
 
259
                $res.="\n                   ";
-
 
260
                $res.='</li>'."\n";
-
 
261
            }
-
 
262
            if ($num_ligne%$img_l==($img_l-1))
-
 
263
            {
-
 
264
                $res.="            </ul></li>  \n";
-
 
265
                $res.='<li class="colonne"><span class="spacer"></span></li>';
-
 
266
            }
215
            
-
 
216
                $text_rdf .=">\n</rdf:Description>\n</rdf:RDF>\n";
-
 
217
            
267
            
218
                $i=fwrite($fp,$text_rdf);
268
            if (!isset($_GET['suppr'])){
219
                fclose($fp);
269
                generationRdf($ligne);
220
            }
270
            }
-
 
271
        }
221
        }
272
        $res.='<li class="colonne"><span class="spacer"></span></li>';
222
        $res.="</ul>\n";
273
        $res.="</ul>\n";
223
        //affichage des liens suivant/précédent
274
        //affichage des liens suivant/précédent
224
        if ($deb!=0)
275
        if ($deb!=0)
225
        {
276
        {
226
            if (($deb-$img_pg-1)>=0)
277
            if (($deb-$img_pg)>=0)
227
            {
278
            {
-
 
279
                if (!isset($_GET['suppr'])){
228
                $prec="<a href=papyrus.php?site=3&menu=39&onglet=photo&deb=".($deb-$img_pg-1).">Pr&eacute;c&eacute;dent</a>";
280
                    $prec='<a href="'.EFLORE_CHEMIN_APPLI.'&onglet=photo&deb='.($deb-$img_pg).'">'.PREC.'</a>';
-
 
281
                }
229
                $res.="<div class=\"prec\">".$prec."</div>";
282
                else{
-
 
283
                    $prec='<a href="'.EFLORE_CHEMIN_APPLI.'&onglet=photo&deb='.($deb-$img_pg).'&suppr=1">'.PREC.'</a>';
-
 
284
                }
230
            }
285
            }
231
            else
286
            else
232
            {
287
            {
-
 
288
                if (!isset($_GET['suppr'])){
-
 
289
                    $prec='<a href="'.EFLORE_CHEMIN_APPLI.'"&onglet=photo&deb=0">'.PREC.'</a>';
-
 
290
                }
-
 
291
                else{
233
                $prec="<a href=papyrus.php?site=3&menu=39&onglet=photo&deb=0>Pr&eacute;c&eacute;dent</a>";
292
                    $prec='<a href="'.EFLORE_CHEMIN_APPLI.'"&onglet=photo&deb=0&suppr=1">'.PREC.'</a>';
-
 
293
                }
234
            }
294
            }
235
            $res.="<div class=\"prec\">".$prec."</div>";
295
            $res.='<div class="prec">'.$prec.'</div>';
236
        }
296
        }
237
    
297
    
238
        if ($deb+$img_pg<$nbre_ligne[0]) 
298
        if ($deb+$img_pg<$nbre_ligne) 
-
 
299
        {
239
        {
300
            if (!isset($_GET['suppr'])){
-
 
301
                $suiv='<a href="'.EFLORE_CHEMIN_APPLI.'&onglet=photo&deb='.($fin+1).'">'.SUIV.'</a>';
-
 
302
            }
-
 
303
            else{
-
 
304
                $suiv='<a href="'.EFLORE_CHEMIN_APPLI.'&onglet=photo&deb='.($fin+1).'&suppr=1">'.SUIV.'</a>';
240
            $suiv="<a href=papyrus.php?site=3&menu=39&onglet=photo&deb=".($fin+1).">Suivant</a>";
305
            }
241
            $res.="<div class=\"suiv\">".$suiv."</div>";
306
            $res.='<div class="suiv">'.$suiv.'</div>';
242
        }
307
        }
243
    }
308
    }
244
 
309
 
245
}
310
}
-
 
311
 
246
 
312
 
247
?>
313
?>