Subversion Repositories Applications.projet

Rev

Rev 208 | Rev 303 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 208 Rev 249
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.8 2007-04-19 15:34:35 neiluj Exp $
22
// CVS : $Id: HTML_listeDocuments.class.php,v 1.9 2007-06-25 12:15:06 alexandre_tb 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.8 $
34
*@version       $Revision: 1.9 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
Line 79... Line 79...
79
     * @access private
79
     * @access private
80
     */
80
     */
81
    var $_chemin_icone = "icones/";
81
    var $_chemin_icone = "icones/";
Line 82... Line 82...
82
    
82
    
83
    /**
83
    /**
84
     * L'identifiant du répertoire que l'on est en train d'observer.
84
     * L'identifiant du repertoire que l'on est en train d'observer.
85
     * @access private
85
     * @access private
86
     */
86
     */
Line 87... Line 87...
87
    var $_id_repertoire;
87
    var $_id_repertoire;
Line 96... Line 96...
96
    /**
96
    /**
97
     * un pointeur vers une authentificatin PEAR
97
     * un pointeur vers une authentificatin PEAR
98
     * @access private
98
     * @access private
99
     */
99
     */
100
    var $_auth ;
100
    var $_auth ;
-
 
101
    
-
 
102
    /**
-
 
103
     * le style d affichage
-
 
104
     * @access private
-
 
105
     */
-
 
106
    var $_mode_affichage ;
101
    /**
107
    /**
102
     * 
108
     * 
103
     *
109
     *
104
     * @param bool utilise_pager Indique l'utilisation ou non du Pager.
110
     * @param bool utilise_pager Indique l'utilisation ou non du Pager.
105
     * @return void
111
     * @return void
Line 112... Line 118...
112
        
118
        
113
        $this->_id_repertoire = $id_repertoire ;
119
        $this->_id_repertoire = $id_repertoire ;
114
        if (is_object($auth)) {
120
        if (is_object($auth)) {
115
            $this->_auth = $auth ;
121
            $this->_auth = $auth ;
-
 
122
        }
116
        }
123
        $this->_mode_affichage = 'standart';
Line 117... Line 124...
117
    } // end of member function HTML_listeDocuments
124
    } // end of member function HTML_listeDocuments
118
 
125
 
119
    /**
126
    /**
120
     * 
127
     * 
121
     *
128
     *
122
     * @param bool utilise_pager Voir HTML_listeDocuments
129
     * @param bool utilise_pager Voir HTML_listeDocuments
123
     * @return void
130
     * @return void
124
     * @access public
131
     * @access public
125
     */
132
     */
126
    function __construct( &$url,  $utilise_pager = false, $id_repertoire = 0, $auth = '' )
133
    function __construct( &$url,  $utilise_pager = false, $id_repertoire = 0, $auth = '', $id_projet = '' )
Line 127... Line 134...
127
    {
134
    {
Line 137... Line 144...
137
     * @access public
144
     * @access public
138
     */
145
     */
139
    function construitEntete( $tableau_label )
146
    function construitEntete( $tableau_label )
140
    {
147
    {
141
        $this->addRow ($tableau_label, NULL, 'TH') ;
148
        $this->addRow ($tableau_label, NULL, 'TH') ;
142
    } // end of member function construitEntete
149
    }
Line 143... Line 150...
143
 
150
 
144
    /**
151
    /**
145
     * 
152
     * 
146
     *
153
     *
147
     * @param Array tableau_label Un tableau à deux dimensions avec les labels à afficher dans le corps du
154
     * @param Array tableau_label Un tableau a deux dimensions avec les labels a afficher dans le corps du
148
     * tableau.
155
     * tableau.
149
     * @return void
156
     * @return void
150
     * @access public
157
     * @access public
151
     */
158
     */
152
    function construitListe( &$tableau_document, $droits, $mode = '', $objetDB = '')
159
    function construitListe( &$tableau_document, $droits, $mode = '', $objetDB = '', $id_projet = '')
-
 
160
    {
153
    {
161
        if ($this->_mode_affichage == 'standart') {
154
        $compteur = 0 ;$class[0] = 'ligne_impaire'; $class[1] = 'ligne_paire' ;
162
	        $compteur = 0 ;$class[0] = 'ligne_impaire'; $class[1] = 'ligne_paire' ;
155
 
163
	
156
        for ($i = 0; $i < count ($tableau_document) ; $i++) {
164
	        for ($i = 0; $i < count ($tableau_document) ; $i++) {
157
            // première condition : est-ce que le fichier a pour père le répertoire courant, si oui on l'affiche
165
	            // Premiere condition : est-ce que le fichier a pour pere le repertoire courant, si oui on l'affiche
158
            if ($tableau_document[$i]->_id_pere == $this->_id_repertoire || $mode == 'ignore_repertoire') {
166
	            if ($tableau_document[$i]->_id_pere == $this->_id_repertoire || $mode == 'ignore_repertoire') {
159
                // d'abord l'image
167
	                // d'abord l'image
160
                $icone = '<img src="'.$tableau_document[$i]->getCheminIcone().'" />' ;
168
	                $icone = '<img src="'.$tableau_document[$i]->getCheminIcone().'" />' ;
161
                // Si le document est un répertoire, on ajoute id_repertoire au lien.
169
	                // Si le document est un repertoire, on ajoute id_repertoire au lien.
162
                if ($tableau_document[$i]->isRepertoire()) {
170
	                if ($tableau_document[$i]->isRepertoire()) {
163
                    $this->_url->addQueryString ('id_repertoire', $tableau_document[$i]->getChemin()) ;
171
	                    $this->_url->addQueryString ('id_repertoire', $tableau_document[$i]->getIdDocument()) ;
164
                    $lien = $this->_url->getURL() ;
172
	                    $lien = $this->_url->getURL() ;
165
                } else {    //  Si c'est un fichier, on fait un lien direct
-
 
166
                    $lien = $tableau_document[$i]->getChemin() ;
-
 
167
                }
-
 
168
                // pour éviter des effets de bords, on enlève id_repertoire de l'url
-
 
169
                // dans le cas d'un répertoire, pour les fichiers on le laisse pour
-
 
170
                // qu'après une opération, on reste dans le répertoire où a eu lieu l'opération
-
 
171
                if ($tableau_document[$i]->isRepertoire()) $this->_url->removeQueryString('id_repertoire') ;
-
 
172
                
-
 
173
                // on insère le lien
173
	                } else {    //  Si c'est un fichier, on fait un lien direct
174
                $lien_nom = '<a href="'.$lien.'">'.$icone.' '.$tableau_document[$i]->getNomLong()."</a>\n" ;
-
 
175
                
174
	                	$this->_url->addQueryString('id_document', $tableau_document[$i]->getIdDocument());
176
                // Pour la taille on divise par 1000 et on écrit Ko
-
 
177
                $taille = round($tableau_document[$i]->getTaille() / 1000).'&nbsp;Ko' ;
-
 
178
                
175
	                	$this->_url->addQueryString('service', 'telechargement');
179
                // Récupération de l'auteur
-
 
180
                include_once PROJET_CHEMIN_CLASSES.'annuaire.class.php' ;
-
 
181
                $annuaire = new annuaire($objetDB, array('table' => PROJET_ANNUAIRE, 'identifiant' => PROJET_CHAMPS_ID, 
-
 
182
                                            'nom' => PROJET_CHAMPS_NOM, 'prenom' => PROJET_CHAMPS_PRENOM)) ;
-
 
183
                $annuaire->setId($tableau_document[$i]->_id_proprietaire) ;
-
 
184
                $nom_prenom = $annuaire->getInfo('nom').' '.$annuaire->getInfo('prenom') ;
-
 
185
                // On rempli le tableau à donner en paramètre à HTML_Table avec toutes ces infos, une par colonne
-
 
186
                $ligne_tableau = array($lien_nom, $taille, $nom_prenom, $tableau_document[$i]->getDateMiseAJour()) ;
-
 
187
                if ($droits <= PROJET_DROIT_CONTRIBUTEUR) array_push ($ligne_tableau, $tableau_document[$i]->getVisibilite()) ;
-
 
188
                
-
 
189
                // On ajoute au tableau, les action couper / modifier / supprimer
-
 
190
                if ($droits <= PROJET_DROIT_COORDINATEUR || $this->_auth->getAuthData(PROJET_CHAMPS_ID) == $tableau_document[$i]->_id_proprietaire) 
-
 
191
                                                array_push ($ligne_tableau, $this->_actions ($tableau_document[$i])) ;
-
 
192
                if ($tableau_document[$i]->getVisibilite() != 'prive' || $droits < PROJET_DROIT_AUCUN) {
-
 
193
	                $this->addRow ($ligne_tableau, array('class' => $class[$compteur]), 'TD', true) ;
-
 
194
	                // enfin , s'il y a une description, on l'ajoute, mais sur une ligne entière (colspan)
-
 
195
	                if ($tableau_document[$i]->getDescription() != "") {
176
	                    $lien = $this->_url->getURL() ;
196
	                    $this->addRow (array ($tableau_document[$i]->getDescription()), 
-
 
197
	                    		array ('colspan' => $this->getColCount(), 'class' => $class[$compteur])) ;
-
 
198
	                    $this->updateRowAttributes ($this->getRowCount()-1, array ('class' => $class[$compteur]), true) ;
177
	                    $this->_url->removeQueryString('service');
-
 
178
	                }
-
 
179
	                // pour eviter des effets de bords, on enleve id_repertoire de l'url
-
 
180
	                // dans le cas d'un repertoire, pour les fichiers on le laisse pour
-
 
181
	                // qu'apres une operation, on reste dans le repertoire ou a eu lieu l'operation
-
 
182
	                if ($tableau_document[$i]->isRepertoire()) $this->_url->removeQueryString('id_repertoire') ;
-
 
183
	                
-
 
184
	                // on insere le lien
-
 
185
	                $lien_nom = '<a href="'.$lien.'">'.$icone.' '.$tableau_document[$i]->getNomLong()."</a>\n" ;
-
 
186
	                
-
 
187
	                $taille = $tableau_document[$i]->getTailleFormatee();
-
 
188
	                
-
 
189
	                // Recuperation de l'auteur
-
 
190
	                include_once PROJET_CHEMIN_CLASSES.'annuaire.class.php' ;
-
 
191
	                $annuaire = new annuaire($objetDB, array('table' => PROJET_ANNUAIRE, 'identifiant' => PROJET_CHAMPS_ID, 
-
 
192
	                                            'nom' => PROJET_CHAMPS_NOM, 'prenom' => PROJET_CHAMPS_PRENOM)) ;
-
 
193
	                $annuaire->setId($tableau_document[$i]->_id_proprietaire) ;
-
 
194
	                $nom_prenom = $annuaire->getInfo('nom').' '.$annuaire->getInfo('prenom') ;
-
 
195
	                // On rempli le tableau a donner en parametre a HTML_Table avec toutes ces infos, une par colonne
-
 
196
	                $ligne_tableau = array($lien_nom, $taille, $nom_prenom, $tableau_document[$i]->getDateMiseAJour()) ;
-
 
197
	                if ($droits <= PROJET_DROIT_CONTRIBUTEUR) array_push ($ligne_tableau, $tableau_document[$i]->getVisibilite()) ;
-
 
198
	                
-
 
199
	                // On ajoute au tableau, les action couper / modifier / supprimer
-
 
200
	                if ($droits <= PROJET_DROIT_COORDINATEUR || $this->_auth->getAuthData(PROJET_CHAMPS_ID) == $tableau_document[$i]->_id_proprietaire) 
-
 
201
	                                                array_push ($ligne_tableau, $this->_actions ($tableau_document[$i])) ;
-
 
202
	                if ($tableau_document[$i]->getVisibilite() != 'prive' || $droits < PROJET_DROIT_AUCUN) {
-
 
203
		                $this->addRow ($ligne_tableau, array('class' => $class[$compteur]), 'TD', true) ;
-
 
204
		                // enfin , s'il y a une description, on l'ajoute, mais sur une ligne entière (colspan)
-
 
205
		                if ($tableau_document[$i]->getDescription() != "") {
-
 
206
		                    $this->addRow (array ($tableau_document[$i]->getDescription()), 
-
 
207
		                    		array ('colspan' => $this->getColCount(), 'class' => $class[$compteur])) ;
-
 
208
		                    $this->updateRowAttributes ($this->getRowCount()-1, array ('class' => $class[$compteur]), true) ;
199
	                }
209
		                }
200
                }
210
	                }
201
                $compteur++;
211
	                $compteur++;
202
            }
212
	            }
203
            
213
	            
-
 
214
	            if ($compteur == 2) $compteur = 0 ;
-
 
215
	        }
-
 
216
	        $this->_url->removeQueryString('id_document');
-
 
217
	        $this->updateColAttributes(0, array ('class' => 'col1')) ;
-
 
218
        } else {
204
            if ($compteur == 2) $compteur = 0 ;
219
        	
205
        }
-
 
206
        $this->updateColAttributes(0, array ('class' => 'col1')) ;
220
        }
Line 207... Line 221...
207
    } // end of member function construitListe
221
    } // end of member function construitListe
208
 
222
 
209
    /**
223
    /**
210
     * 
224
     * 
211
     *
225
     *
212
     * @param Array actions Un tableau avec les valeurs d'actions comme clé. "couper", modifier",
226
     * @param Array actions Un tableau avec les valeurs d'actions comme cle. "couper", modifier",
213
     * "supprimer".
227
     * "supprimer".
214
     * @return void
228
     * @return void
215
     * @access public
229
     * @access public
216
     */
230
     */
217
    function setAction( $actions )
231
    function setAction( $actions )
-
 
232
    {
-
 
233
        $this->_actions = $actions ;
-
 
234
    }
-
 
235
 
-
 
236
    /**
-
 
237
     * 
-
 
238
     *
-
 
239
     * @param string le mode, valeur possible standart ou ajax
-
 
240
     * @return void
-
 
241
     * @access public
-
 
242
     */
218
    {
243
    function setModeAffichage( $mode )
-
 
244
    {
Line -... Line 245...
-
 
245
        $this->_mode_affichage = $mode ;
219
        $this->_actions = $actions ;
246
    }
220
    } // end of member function setAction
247
    
221
    
248
 
222
    /**
249
    /**
223
     * 
250
     * 
224
     *
251
     *
225
     * @param string chemin Le chemin vers les icones couper, coller ...
252
     * @param string chemin Le chemin vers les icones couper, coller ...
226
     * @return void
253
     * @return void
227
     * @access public
254
     * @access public
228
     */
255
     */
229
    function setCheminIcones( $chemin )
256
    function setCheminIcones( $chemin )
Line 230... Line 257...
230
    {
257
    {
231
        $this->_chemin_icone = $chemin ;
258
        $this->_chemin_icone = $chemin ;
232
    } // end of member function setCheminIcones
259
    }
233
 
260
 
234
    /**
261
    /**
235
     * Surcharge de l'opération de la classe mère. Ajoute la navigation dans les
262
     * Surcharge de l'operation de la classe mere. Ajoute la navigation dans les
236
     * répertoires.
263
     * repertoires.
237
     *
264
     *
238
     * @return string
265
     * @return string
-
 
266
     * @access public
239
     * @access public
267
     */
240
     */
268
    function toHTML($id_projet = '', $droits)
241
    function toHTML( )
269
    {
242
    {
270
        if ($this->_mode_affichage == 'standart') {
243
        $chemin_navig = "" ;
271
	        $chemin_navig = "" ;
244
        if ($this->_id_repertoire != "") {
272
	        if ($this->_id_repertoire != "") {
245
            $this->_url->removeQueryString(PROJET_VARIABLE_ID_REPERTOIRE) ;
273
	            $this->_url->removeQueryString(PROJET_VARIABLE_ID_REPERTOIRE) ;
246
            $chemin_navig = "<p>" ;
274
	            $chemin_navig = "<p>" ;
-
 
275
	            $chemin_navig .= "<a href=\"".$this->_url->getURL()."\">".PROJET_RACINE."</a>\n" ;
247
            $chemin_navig .= "<a href=\"".$this->_url->getURL()."\">".PROJET_RACINE."</a>\n" ;
276
	            $this->_url->addQueryString(PROJET_VARIABLE_ID_REPERTOIRE, $this->_id_repertoire) ;
248
            $this->_url->addQueryString(PROJET_VARIABLE_ID_REPERTOIRE, $this->_id_repertoire) ;
277
	            for ($i = 0; $i < count ($this->_chemin_navigation); $i++) {
249
            for ($i = 0; $i < count ($this->_chemin_navigation); $i+=2) {
278
	                $chemin_navig .= "&gt;&nbsp;" ;
250
                $chemin_navig .= "&gt;&nbsp;" ;
279
	                $doc = new document ($this->_chemin_navigation[$i], $GLOBALS['projet_db']);
251
                $nom = $this->_chemin_navigation[$i+1] ;
280
	                $nom = $doc->getNomLong() ;
252
                $this->_url->addQueryString ('id_repertoire', $this->_chemin_navigation[$i]) ;
281
	                $this->_url->addQueryString ('id_repertoire', $this->_chemin_navigation[$i]) ;
253
                $chemin_navig .= "<a href=\"".$this->_url->getURL()."\">".$nom."</a>\n" ; 
282
	                $chemin_navig .= "<a href=\"".$this->_url->getURL()."\">".$nom."</a>\n" ; 
254
            }
283
	            }
255
            $chemin_navig .= "</p>\n" ;
284
	            $chemin_navig .= "</p>\n" ;
-
 
285
	        }
-
 
286
	        $res = $chemin_navig.HTML_Liste::toHTML() ;
-
 
287
	        if ($this->getRowCount() == 1 && $this->_id_repertoire == '') {
-
 
288
	            return '<div>'.PROJET_PAS_DE_DOCUMENTS.'</div>'."\n";
-
 
289
	        }
-
 
290
        } else {
-
 
291
        	GEN_stockerFichierScript('dojo', 'api/js/dojo/dojo.js', 'text/javascript');
-
 
292
        	GEN_stockerFichierScript('dojoScriptProjet', 'client/projet/js/arbreDocument.js');
-
 
293
		
-
 
294
			$res = '' ;
-
 
295
			
-
 
296
			$RCPUrl = PROJET_CHEMIN_APPLI.'services/ecouteArbreFichier.php?id_projet='.$id_projet;
-
 
297
			$this->_url->addQueryString(PROJET_VARIABLE_SERVICE, 'ecouteArbreFichier');
-
 
298
			
-
 
299
			$RCPUrl = $this->_url->getURL();
-
 
300
			// Le noeud racine
-
 
301
				
-
 
302
			if ($droits <= PROJET_DROIT_CONTRIBUTEUR) {
-
 
303
				$tree = '<div dojoType="Tree" DNDMode="between" selector="treeSelector" DNDAcceptTypes="bandTree" widgetId="bandTree" controller="treeController" eventNames="moveTo:nodeRemoved">';
-
 
304
			} else {
-
 
305
				$tree = '<div dojoType="Tree" selector="treeSelector" DNDAcceptTypes="bandTree" widgetId="bandTree" controller="treeController">';
-
 
306
			}
256
        }
307
	        $res .= '<div dojoType="TreeLoadingController" RPCUrl="'.$RCPUrl.'" widgetId="treeController" DNDController="create"></div>
257
        $res = $chemin_navig.HTML_Liste::toHTML() ;
308
				<div dojoType="TreeSelector" widgetId="treeSelector"></div>'.$tree.
258
        if ($this->getRowCount() == 1 && $this->_id_repertoire == '') {
309
				'<div dojoType="TreeNode" title="Racine" widgetId="rootNode" objectId="root" isFolder="true"></div></div>';    
Line 259... Line 310...
259
            return '<div>'.PROJET_PAS_DE_DOCUMENTS.'</div>'."\n";
310
			                              
260
        }
311
        }
261
        return $res ;
312
        return $res ;
262
    } // end of member function toHTML
313
    } // end of member function toHTML
263
 
314
 
264
    /**
315
    /**
265
     * 
316
     * 
266
     *
317
     *
267
     * @param Array tableau_navigation Un tableau contenant les identifiants et les noms des répertoires.  0 => ["id"],
318
     * @param Array tableau_navigation Un tableau contenant les identifiants et les noms des repertoires.  0 => ["id"],
268
     * ["nom"] etc.
319
     * ["nom"] etc.
269
     * @return void
320
     * @return void
270
     * @access public
321
     * @access public
Line 271... Line 322...
271
     */
322
     */
272
    function setCheminNavigation( $tableau_navigation )
323
    function setCheminNavigation( $tableau_navigation )
273
    {
324
    {
274
        $this->_chemin_navigation = $tableau_navigation ;
325
        $this->_chemin_navigation = $tableau_navigation ;
275
    } // end of member function setCheminNavigation
326
    } // end of member function setCheminNavigation
276
 
327
 
277
    /**
328
    /**
Line 285... Line 336...
285
        $res = "<h2 class=\"titre2_projet\">".PROJET_LEGENDE."</h2>\n" ;
336
        $res = "<h2 class=\"titre2_projet\">".PROJET_LEGENDE."</h2>\n" ;
286
        $res .= "<p><img src=\"".$this->_chemin_icone."/cut.gif\" title=\"couper\" alt=\"couper\">".PROJET_LEGENDE_DEPLACE."</p>\n" ;
337
        $res .= "<p><img src=\"".$this->_chemin_icone."/cut.gif\" title=\"couper\" alt=\"couper\">".PROJET_LEGENDE_DEPLACE."</p>\n" ;
287
        $res .= "<p><img src=\"".$this->_chemin_icone."/modif.png\" title=\"modifier\" alt=\"modifier\"> ".PROJET_LEGENDE_MODIFIE."</p>\n" ;
338
        $res .= "<p><img src=\"".$this->_chemin_icone."/modif.png\" title=\"modifier\" alt=\"modifier\"> ".PROJET_LEGENDE_MODIFIE."</p>\n" ;
288
        $res .= "<p><img src=\"".$this->_chemin_icone."/trash.gif\" title=\"supprimer\" alt=\"supprimer\"> ".PROJET_LEGENDE_SUPPR."</p>\n" ;
339
        $res .= "<p><img src=\"".$this->_chemin_icone."/trash.gif\" title=\"supprimer\" alt=\"supprimer\"> ".PROJET_LEGENDE_SUPPR."</p>\n" ;
289
        return $res ;
340
        return $res ;
290
    } // end of member function affLegende
341
    }
Line 291... Line 342...
291
 
342
 
292
 
343
 
293
    /**
344
    /**
294
     * Renvoie le chemin HTML, depuis le répertoire courant jusqu'à la racine.
345
     * Renvoie le chemin HTML, depuis le repertoire courant jusqu'a la racine.
295
     *
346
     *
296
     * @return string
347
     * @return string
297
     * @access private
348
     * @access private
298
     */
349
     */
299
    function _getCheminHTML( )
350
    function _getCheminHTML( )
Line 300... Line 351...
300
    {
351
    {
301
        $path = "" ;
-
 
302
 
-
 
303
        return $path ;
352
        $path = "" ;
Line 304... Line 353...
304
    } // end of member function _getCheminHTML
353
 
305
 
354
        return $path ;
306
 
355
    }
307
 
356
 
308
    /**
357
    /**
309
     * Renvoie une chaine contenant le code html des icones des actions possibles sur un
358
     * Renvoie une chaine contenant le code html des icones des actions possibles sur un
310
     * fichier, c'est à dire couper, modifier, supprimer.
359
     * fichier, c'est a dire couper, modifier, supprimer.
311
     *
360
     *
312
     * @return string
361
     * @return string
313
     * @access private
362
     * @access private
Line 314... Line 363...
314
     */
363
     */
315
    function _actions($document)
364
    function _actions($document)
316
    {
365
    {
Line 317... Line 366...
317
        $this->_url->addQueryString ('id_document', $document->getIdDocument()) ;
366
        $this->_url->addQueryString ('id_document', $document->getIdDocument()) ;
318
        
367
        
319
        $this->_url->addQueryString (PROJET_VARIABLE_ACTION, $this->_actions["couper"]) ;
368
        $this->_url->addQueryString (PROJET_VARIABLE_ACTION, $this->_actions["couper"]) ;
320
        $couper = ' '.PROJET_FICHIER_COUPER ;
369
        $couper = ' '.PROJET_FICHIER_COUPER ;