Subversion Repositories Applications.papyrus

Rev

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

Rev 465 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_listeProjet.class.php,v 1.2 2005-09-26 20:18:27 ddelon Exp $
22
// CVS : $Id: HTML_listeProjet.class.php,v 1.3 2005-09-27 16:36:56 alexandre_tb Exp $
23
/**
23
/**
24
* Application projet
24
* Application projet
25
*
25
*
26
* La classe controleur projet
26
* La classe controleur projet
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.2 $
34
*@version       $Revision: 1.3 $
35
// +------------------------------------------------------------------------------------------------------+
35
// +------------------------------------------------------------------------------------------------------+
36
*/
36
*/
Line 37... Line 37...
37
 
37
 
Line 77... Line 77...
77
     * 
77
     * 
78
     *
78
     *
79
     * @return void
79
     * @return void
80
     * @access public
80
     * @access public
81
     */
81
     */
82
    function __construct($utilise_pager = false)
82
    function __construct( )
83
    {
83
    {
84
    	$this->HTML_listeProjet($utilise_pager);
-
 
Line 85... Line 84...
85
        
84
        
Line 86... Line 85...
86
    } // end of member function __cosntruct
85
    } // end of member function __cosntruct
87
 
86
 
Line 109... Line 108...
109
    function construitListe( $label_liste, $tableau_statut = '' )
108
    function construitListe( $label_liste, $tableau_statut = '' )
110
    {
109
    {
111
        for ($i = 0; $i < count ($label_liste) ; $i++) {
110
        for ($i = 0; $i < count ($label_liste) ; $i++) {
112
            if ($this->_mode == 1) {
111
            if ($this->_mode == 1) {
113
                $id_projet = array_shift ($label_liste[$i]) ;
112
                $id_projet = array_shift ($label_liste[$i]) ;
114
                $id_statut = array_shift ($label_liste[$i]) ;
-
 
115
                $id_statut = array_pop ($label_liste[$i]) ;
113
                $id_statut = array_pop ($label_liste[$i]) ;
116
            }
114
            }
Line 117... Line 115...
117
            
115
            
Line 128... Line 126...
128
                        $select .= ' selected="selected"' ;
126
                        $select .= ' selected="selected"' ;
129
                    }
127
                    }
130
                    $select .= '>'.$element_statut.'</option>'."\n" ;
128
                    $select .= '>'.$element_statut.'</option>'."\n" ;
131
                }
129
                }
132
                $select .= '</select>'."\n".'</form>'."\n" ;
130
                $select .= '</select>'."\n".'</form>'."\n" ;
-
 
131
                if (is_int($id_statut)) {
133
                if ($id_statut != PROJET_PAS_DE_LISTE) $this->setCellContents($i+1, 2, $select) ;
132
                    $this->setCellContents($i+1, 2, $select) ;
-
 
133
                } else {
-
 
134
                    $this->setCellContents($i+1, 2, PROJET_PAS_DE_LISTE) ;
-
 
135
                }
134
            }
136
            }
135
        }
137
        }
136
        $this->altRowAttributes(1, array('class' => 'ligne_impaire'), array('class' => 'ligne_paire')) ;
138
        $this->altRowAttributes(1, array('class' => 'ligne_impaire'), array('class' => 'ligne_paire')) ;
Line 137... Line 139...
137
        
139