Line 17... |
Line 17... |
17 |
// | |
|
17 |
// | |
|
18 |
// | You should have received a copy of the GNU General Public |
|
18 |
// | You should have received a copy of the GNU 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: HTML_listeDocuments.class.php,v 1.7 2006-07-05 10:30:05 alexandre_tb Exp $
|
22 |
// CVS : $Id: HTML_listeDocuments.class.php,v 1.8 2007-04-19 15:34:35 neiluj Exp $
|
23 |
/**
|
23 |
/**
|
24 |
* Application projet
|
24 |
* Application projet
|
25 |
*
|
25 |
*
|
26 |
* La classe HTML_listeDocuments
|
26 |
* La classe HTML_listeDocuments
|
27 |
*
|
27 |
*
|
Line 29... |
Line 29... |
29 |
//Auteur original :
|
29 |
//Auteur original :
|
30 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
30 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
31 |
//Autres auteurs :
|
31 |
//Autres auteurs :
|
32 |
*@author Aucun
|
32 |
*@author Aucun
|
33 |
*@copyright Tela-Botanica 2000-2004
|
33 |
*@copyright Tela-Botanica 2000-2004
|
34 |
*@version $Revision: 1.7 $
|
34 |
*@version $Revision: 1.8 $
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
*/
|
36 |
*/
|
Line 37... |
Line 37... |
37 |
|
37 |
|
Line 48... |
Line 48... |
48 |
define ("FICHIER_ICONE_COUPER", "cut.gif") ;
|
48 |
define ("FICHIER_ICONE_COUPER", "cut.gif") ;
|
49 |
define ("FICHIER_ICONE_COLLER", "paste.gif") ;
|
49 |
define ("FICHIER_ICONE_COLLER", "paste.gif") ;
|
50 |
define ("FICHIER_ICONE_SUPPRIMER", "trash.gif") ;
|
50 |
define ("FICHIER_ICONE_SUPPRIMER", "trash.gif") ;
|
51 |
define ("FICHIER_ICONE_MODIFIER", "modif.png") ;
|
51 |
define ("FICHIER_ICONE_MODIFIER", "modif.png") ;
|
Line -... |
Line 52... |
- |
|
52 |
|
- |
|
53 |
|
52 |
|
54 |
include_once PROJET_CHEMIN_CLASSES.'HTML_Liste.class.php';
|
53 |
/**
|
55 |
/**
|
54 |
* class HTML_listeDocuments
|
56 |
* class HTML_listeDocuments
|
55 |
*
|
57 |
*
|
56 |
*/
|
58 |
*/
|
Line 150... |
Line 152... |
150 |
function construitListe( &$tableau_document, $droits, $mode = '', $objetDB = '')
|
152 |
function construitListe( &$tableau_document, $droits, $mode = '', $objetDB = '')
|
151 |
{
|
153 |
{
|
152 |
$compteur = 0 ;$class[0] = 'ligne_impaire'; $class[1] = 'ligne_paire' ;
|
154 |
$compteur = 0 ;$class[0] = 'ligne_impaire'; $class[1] = 'ligne_paire' ;
|
Line 153... |
Line 155... |
153 |
|
155 |
|
154 |
for ($i = 0; $i < count ($tableau_document) ; $i++) {
|
156 |
for ($i = 0; $i < count ($tableau_document) ; $i++) {
|
155 |
// Première condition : est-ce que le fichier a pour père le répertoire courant, si oui on l'affiche
|
157 |
// première condition : est-ce que le fichier a pour père le répertoire courant, si oui on l'affiche
|
156 |
if ($tableau_document[$i]->_id_pere == $this->_id_repertoire || $mode == 'ignore_repertoire') {
|
158 |
if ($tableau_document[$i]->_id_pere == $this->_id_repertoire || $mode == 'ignore_repertoire') {
|
157 |
// d'abord l'image
|
159 |
// d'abord l'image
|
158 |
$icone = '<img src="'.$tableau_document[$i]->getCheminIcone().'" />' ;
|
160 |
$icone = '<img src="'.$tableau_document[$i]->getCheminIcone().'" />' ;
|
159 |
// Si le document est un répertoire, on ajoute id_repertoire au lien.
|
161 |
// Si le document est un répertoire, on ajoute id_repertoire au lien.
|