Subversion Repositories Applications.projet

Rev

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

Rev 95 Rev 104
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.5 2006-01-11 10:32:09 alexandre_tb Exp $
22
// CVS : $Id: HTML_listeDocuments.class.php,v 1.6 2006-03-08 15:38:02 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.5 $
34
*@version       $Revision: 1.6 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
Line 185... Line 185...
185
                if ($droits <= PROJET_DROIT_CONTRIBUTEUR) array_push ($ligne_tableau, $tableau_document[$i]->getVisibilite()) ;
185
                if ($droits <= PROJET_DROIT_CONTRIBUTEUR) array_push ($ligne_tableau, $tableau_document[$i]->getVisibilite()) ;
Line 186... Line 186...
186
                
186
                
187
                // On ajoute au tableau, les action couper / modifier / supprimer
187
                // On ajoute au tableau, les action couper / modifier / supprimer
188
                if ($droits <= PROJET_DROIT_COORDINATEUR || $this->_auth->getAuthData(PROJET_CHAMPS_ID) == $tableau_document[$i]->_id_proprietaire) 
188
                if ($droits <= PROJET_DROIT_COORDINATEUR || $this->_auth->getAuthData(PROJET_CHAMPS_ID) == $tableau_document[$i]->_id_proprietaire) 
-
 
189
                                                array_push ($ligne_tableau, $this->_actions ($tableau_document[$i])) ;
189
                                                array_push ($ligne_tableau, $this->_actions ($tableau_document[$i])) ;
190
                if ($tableau_document[$i]->getVisibilite() != 'prive' || $droits < PROJET_DROIT_AUCUN) {
190
                $this->addRow ($ligne_tableau, array('class' => $class[$compteur]), 'TD', true) ;
191
	                $this->addRow ($ligne_tableau, array('class' => $class[$compteur]), 'TD', true) ;
191
                // enfin , s'il y a une description, on l'ajoute, mais sur une ligne entière (colspan)
192
	                // enfin , s'il y a une description, on l'ajoute, mais sur une ligne entière (colspan)
192
                if ($tableau_document[$i]->getDescription() != "") {
193
	                if ($tableau_document[$i]->getDescription() != "") {
193
                    $this->addRow (array ($tableau_document[$i]->getDescription()), 
194
	                    $this->addRow (array ($tableau_document[$i]->getDescription()), 
194
                    		array ('colspan' => $this->getColCount(), 'class' => $class[$compteur])) ;
195
	                    		array ('colspan' => $this->getColCount(), 'class' => $class[$compteur])) ;
-
 
196
	                    $this->updateRowAttributes ($i*2+2, array ('class' => $class[$compteur]), true) ;
195
                    $this->updateRowAttributes ($i*2+2, array ('class' => $class[$compteur]), true) ;
197
	                }
196
                }
198
                }
197
                $compteur++;
199
                $compteur++;
Line 198... Line 200...
198
            }
200
            }