19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: HTML_listeProjet.class.php,v 1.4 2005-09-28 16:29:39 ddelon Exp $ |
// CVS : $Id: HTML_listeProjet.class.php,v 1.5 2005-10-14 08:56:53 alexandre_tb Exp $ |
/** |
* Application projet |
* |
31,7 → 31,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.4 $ |
*@version $Revision: 1.5 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
112,10 → 112,12 |
if ($this->_mode == 1) { |
$id_projet = array_shift ($label_liste[$i]) ; |
$id_statut = array_pop ($label_liste[$i]) ; |
|
} |
|
$resume = array_shift ($label_liste[$i]) ; |
$this->addRow ($label_liste[$i]) ; |
|
|
if ($this->_mode == 1 && $id_statut < 3) { |
$this->_url->addQueryString ('identifiant_projet', $id_projet) ; |
$this->_url->removeQueryString (PROJET_VARIABLE_ID_PROJET) ; |
135,6 → 137,10 |
$this->setCellContents($i+1, 2, PROJET_PAS_DE_LISTE) ; |
} |
} |
// On affiche le résumé dans la deuxième ligne |
if (PROJET_LISTE_RESUME) { |
$this->addRow (array ($resume), array('colspan' => $this->getColCount())); |
} |
} |
$this->altRowAttributes(1, array('class' => 'ligne_impaire'), array('class' => 'ligne_paire')) ; |
|
162,6 → 168,29 |
{ |
$this->_url = $url ; |
} // end of member function setURL |
|
/** |
* Alternates the row attributes starting at $start |
* @param int $start Row index of row in which alternating begins |
* @param mixed $attributes1 Associative array or string of table row attributes |
* @param mixed $attributes2 Associative array or string of table row attributes |
* @param bool $inTR false if attributes are to be applied in TD tags |
* true if attributes are to be applied in TR tag |
* @access public |
*/ |
|
function altRowAttributes($start, $attributes1, $attributes2, $inTR = false) |
{ |
for ($row = $start ; $row < $this->_rows ; $row++) { |
$attributes = ( ($row+$start)%2 == 0 ) ? $attributes1 : $attributes2; |
$this->updateRowAttributes($row, $attributes, $inTR); |
if (PROJET_LISTE_RESUME) { |
$row++; |
$this->updateRowAttributes($row, $attributes, $inTR); |
$start++; |
} |
} |
} // end func altRowAttributes |
|
} // end of HTML_listeProjet |
?> |