Subversion Repositories Applications.papyrus

Rev

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

Rev 448 Rev 474
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_listeParticipants.class.php,v 1.1 2005-09-22 14:02:48 ddelon Exp $
22
// CVS : $Id: HTML_listeParticipants.class.php,v 1.2 2005-09-27 16:42:00 alexandre_tb Exp $
23
/**
23
/**
24
* Application projet
24
* Application projet
25
*
25
*
26
* La classe HTML_listeParticipants
26
* La classe HTML_listeParticipants
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.1 $
34
*@version       $Revision: 1.2 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
Line 135... Line 135...
135
                $this->setCellContents($i+1, 4, $select) ;
135
                $this->setCellContents($i+1, 4, $select) ;
136
            }
136
            }
137
            if ($id_statut == 1 && $this->_mode != 1) {
137
            if ($id_statut == 1 && $this->_mode != 1) {
138
                $this->setCellContents($i + 1, 4, PROJET_CHEF) ;
138
                $this->setCellContents($i + 1, 4, PROJET_CHEF) ;
139
                $this->updateRowAttributes ($i + 1, array('style' => 'font-weight:bold'), true) ;
139
                $this->updateRowAttributes ($i + 1, array('style' => 'font-weight:bold'), true) ;
140
 
-
 
141
 
-
 
142
            }
140
            }
143
            if ($this->_mode != 1 && $id_statut != 1) {
141
            if ($this->_mode != 1 && $id_statut != 1) {
144
                $this->setCellContents($i + 1, 4, $tableau_statut[$id_statut]) ;
142
                $this->setCellContents($i + 1, 4, $tableau_statut[$id_statut]) ;
145
            }
143
            }
-
 
144
            $this->updateCellAttributes ($i + 1, 0, array ('class' => 'nom')) ;
-
 
145
            $this->updateCellAttributes ($i + 1, 1, array ('class' => 'prenom')) ;
146
        }
146
        }
Line 147... Line 147...
147
        
147
        
Line 148... Line 148...
148
    } // end of member function construitListe
148
    } // end of member function construitListe
Line 165... Line 165...
165
     * @access public
165
     * @access public
166
     */
166
     */
167
    function toHTML( )
167
    function toHTML( )
168
    {
168
    {
169
        // Application de style
169
        // Application de style
170
        $this->altRowAttributes(1, array('class' =>'ligne_paire'), array('class' =>'ligne_impaire')) ;
170
        $this->altRowAttributes(1, array('class' =>'ligne_paire'), array('class' =>'ligne_impaire'), true) ;
Line 171... Line 171...
171
        
171
        
172
        // s'il n'y a qu'une seule ligne, on renvoie un message indiquant qu'il n'y a pas de participants
172
        // s'il n'y a qu'une seule ligne, on renvoie un message indiquant qu'il n'y a pas de participants
173
        if ($this->getRowCount() == 1) {
173
        if ($this->getRowCount() == 1) {
174
            return '<div>'.PROJET_PAS_D_INSCRIT.'</div>'."\n";
174
            return '<div>'.PROJET_PAS_D_INSCRIT.'</div>'."\n";