| Line 8... |
Line 8... |
| 8 |
* | Affiche les derniers fichiers uploader dans le module projet |
|
8 |
* | Affiche les derniers fichiers uploader dans le module projet |
|
| 9 |
* +-----------------------------------------------------------------------+
|
9 |
* +-----------------------------------------------------------------------+
|
| 10 |
* | Auteur : Alexandre Granier <alexandre@tela-botanica.org> |
|
10 |
* | Auteur : Alexandre Granier <alexandre@tela-botanica.org> |
|
| 11 |
* +-----------------------------------------------------------------------+
|
11 |
* +-----------------------------------------------------------------------+
|
| Line 12... |
Line 12... |
| 12 |
|
12 |
|
| 13 |
* $Id: projet_derniers_telechargements.php,v 1.4.2.1 2007-05-11 13:59:27 alexandre_tb Exp $
|
13 |
* $Id: projet_derniers_telechargements.php,v 1.4.2.2 2007-06-04 15:43:28 alexandre_tb Exp $
|
| Line 14... |
Line 14... |
| 14 |
*/
|
14 |
*/
|
| 15 |
|
15 |
|
| Line 16... |
Line 16... |
| 16 |
// Cette application affiche les derniers documents uploadé dans le module projet
|
16 |
// Cette application affiche les derniers documents uploades dans le module projet
|
| 17 |
// ainsi que tous les documents du module
|
17 |
// ainsi que tous les documents du module
|
| 18 |
|
18 |
|
| Line 19... |
Line 19... |
| 19 |
// ===========================================================
|
19 |
// ===========================================================
|
| 20 |
// Configuration
|
20 |
// Configuration
|
| Line 21... |
Line 21... |
| 21 |
// ===========================================================
|
21 |
// ===========================================================
|
| 22 |
|
22 |
|
| 23 |
|
23 |
|
| 24 |
// Le nombre à afficher
|
24 |
// Le nombre a afficher
|
| Line 25... |
Line 25... |
| 25 |
define ("PROJET_TELECHARGEMENT_NOMBRE", 8) ;
|
25 |
define ("PROJET_TELECHARGEMENT_NOMBRE", 8) ;
|
| 26 |
|
26 |
|
| Line 27... |
Line 27... |
| 27 |
//==================== Les labels =======================================
|
27 |
//==================== Les labels =======================================
|
| 28 |
define ("PROJET_TELECHARGEMENT_TITRE", "Page de téléchargements rapides") ;
|
28 |
define ("PROJET_TELECHARGEMENT_TITRE", "Page de téléchargements rapides") ;
|
| 29 |
define ("PROJET_TELECHARGEMENT_DERNIERS", "Derniers documents mis en ligne") ;
|
29 |
define ("PROJET_TELECHARGEMENT_DERNIERS", "Derniers documents mis en ligne") ;
|
| 30 |
define ("PROJET_TELECHARGEMENT_TOUS", "Tous les documents, par projet") ;
|
30 |
define ("PROJET_TELECHARGEMENT_TOUS", "Tous les documents, par projet") ;
|
| 31 |
|
31 |
|
| Line 32... |
Line 32... |
| 32 |
//=============bibliothèques PEAR ===================================
|
32 |
//=============bibliotheques PEAR ===================================
|
| 33 |
include_once 'HTML/Table.php' ;
|
33 |
include_once 'HTML/Table.php' ;
|
| Line -... |
Line 34... |
| - |
|
34 |
|
| 34 |
|
35 |
// ========== Bibliotheque Projet ====================================
|
| 35 |
// ========== Bibliothèque Projet ====================================
|
36 |
include_once 'configuration/projet.config.inc.php' ;
|
| - |
|
37 |
include_once PROJET_CHEMIN_CLASSES.'projetControleur.class.php' ;
|
| - |
|
38 |
include_once PROJET_CHEMIN_CLASSES.'document.class.php' ;
|
| - |
|
39 |
include_once PROJET_CHEMIN_APPLI.'langues/pro_langue_fr.inc.php' ;
|
| - |
|
40 |
|
| 36 |
include_once 'configuration/projet.config.inc.php' ;
|
41 |
|
| 37 |
include_once PROJET_CHEMIN_CLASSES.'projetControleur.class.php' ;
|
42 |
function afficherContenuCorps() {
|
| 38 |
include_once PROJET_CHEMIN_CLASSES.'document.class.php' ;
|
43 |
global $id_projet, $repcourant, $baseURL, $projet ;
|
| Line 39... |
Line 44... |
| 39 |
include_once PROJET_CHEMIN_APPLI.'langues/pro_langue_fr.inc.php' ;
|
44 |
|
| Line 40... |
Line 45... |
| 40 |
|
45 |
if (isset($_GET['service'])) {
|
| Line 59... |
Line 64... |
| 59 |
$entete_liste = array (PROJET_FICHIERS_NOM, PROJET_FICHIERS_TAILLE, PROJET_FICHIERS_PAR, PROJET_FICHIERS_CREE_LE) ;
|
64 |
$entete_liste = array (PROJET_FICHIERS_NOM, PROJET_FICHIERS_TAILLE, PROJET_FICHIERS_PAR, PROJET_FICHIERS_CREE_LE) ;
|
| 60 |
if (!isset($droits)) $droits = PROJET_DROIT_AUCUN ;
|
65 |
if (!isset($droits)) $droits = PROJET_DROIT_AUCUN ;
|
| Line 61... |
Line 66... |
| 61 |
|
66 |
|
| 62 |
$vue_liste_document->construitEntete($entete_liste) ;
|
67 |
$vue_liste_document->construitEntete($entete_liste) ;
|
| 63 |
$vue_liste_document->construitListe ($liste_documents, $droits, 'ignore_repertoire', $GLOBALS['projet_db']) ;
|
68 |
$vue_liste_document->construitListe ($liste_documents, $droits, 'ignore_repertoire', $GLOBALS['projet_db']) ;
|
| Line 64... |
Line 69... |
| 64 |
$res .= $vue_liste_document->toHTML() ;
|
69 |
$res .= $vue_liste_document->toHTML('', PROJET_DROIT_AUCUN) ;
|
| Line 65... |
Line 70... |
| 65 |
|
70 |
|
| Line 100... |
Line 105... |
| 100 |
//$res .= '</p>';
|
105 |
//$res .= '</p>';
|
| Line 101... |
Line 106... |
| 101 |
|
106 |
|
| 102 |
return $res ;
|
107 |
return $res ;
|
| Line 103... |
Line 108... |
| 103 |
}
|
108 |
}
|
| 104 |
|
109 |
|
| 105 |
/** fonction projet_fichiers() - Remplie un noeud avec les fichiers et répertoires
|
110 |
/** fonction projet_fichiers() - Remplie un noeud avec les fichiers et repertoires
|
| 106 |
*
|
111 |
*
|
| 107 |
* Le noeud est passé en référence. Ainsi, cette fonction ne retourne rien mais modifie le tableau des
|
112 |
* Le noeud est passe en reference. Ainsi, cette fonction ne retourne rien mais modifie le tableau des
|
| 108 |
* noeuds passé en référence.
|
113 |
* noeuds passe en reference.
|
| 109 |
*
|
114 |
*
|
| Line 110... |
Line 115... |
| 110 |
* return void
|
115 |
* return void
|
| 111 |
*/
|
116 |
*/
|
| 112 |
|
117 |
|
| Line 113... |
Line 118... |
| 113 |
function projet_fichiers ($noeud, $id_rep, $pere = 0)
|
118 |
function projet_fichiers ($noeud, $id_rep, $pere = 0)
|
| 114 |
{
|
119 |
{
|
| Line 115... |
Line 120... |
| 115 |
//Récupération de l'identifiant du répertoire courant
|
120 |
//Recuperation de l'identifiant du repertoire courant
|
| 116 |
|
121 |
|
| 117 |
//La fonction est appelé récursivement quand $pere ne vaut pas null
|
122 |
//La fonction est appele recursivement quand $pere ne vaut pas null
|
| Line 181... |
Line 186... |
| 181 |
}
|
186 |
}
|
| Line 182... |
Line 187... |
| 182 |
|
187 |
|
| 183 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
188 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
| 184 |
*
|
189 |
*
|
| - |
|
190 |
* $Log: not supported by cvs2svn $
|
| - |
|
191 |
* Revision 1.4.2.1 2007-05-11 13:59:27 alexandre_tb
|
| - |
|
192 |
* adaptation a ecouteArbreFichier qui est maintenant appele par papyrus.php
|
| 185 |
* $Log: not supported by cvs2svn $
|
193 |
*
|
| 186 |
* Revision 1.4 2007/04/19 09:17:35 alexandre_tb
|
194 |
* Revision 1.4 2007/04/19 09:17:35 alexandre_tb
|
| 187 |
* utilisation de dojo pour afficher l arbre des derniers documents
|
195 |
* utilisation de dojo pour afficher l arbre des derniers documents
|
| 188 |
*
|
196 |
*
|
| 189 |
* Revision 1.3 2005/10/06 08:23:48 alexandre_tb
|
197 |
* Revision 1.3 2005/10/06 08:23:48 alexandre_tb
|