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.4 2005-09-28 16:29:39 ddelon Exp $
|
22 |
// CVS : $Id: HTML_listeDocuments.class.php,v 1.5 2006-01-11 10:32:09 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.4 $
|
34 |
*@version $Revision: 1.5 $
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
*/
|
36 |
*/
|
Line 37... |
Line 37... |
37 |
|
37 |
|
Line 188... |
Line 188... |
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 |
$this->addRow ($ligne_tableau, array('class' => $class[$compteur]), 'TD', true) ;
|
190 |
$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)
|
191 |
// enfin , s'il y a une description, on l'ajoute, mais sur une ligne entière (colspan)
|
192 |
if ($tableau_document[$i]->getDescription() != "") {
|
192 |
if ($tableau_document[$i]->getDescription() != "") {
|
- |
|
193 |
$this->addRow (array ($tableau_document[$i]->getDescription()),
|
- |
|
194 |
array ('colspan' => $this->getColCount(), 'class' => $class[$compteur])) ;
|
193 |
$this->addRow (array ($tableau_document[$i]->getDescription()), array ("colspan" => count ($ligne_tableau), 'class' => $class[$compteur]), 'TD', true) ;
|
195 |
$this->updateRowAttributes ($i*2+2, array ('class' => $class[$compteur]), true) ;
|
194 |
}
|
196 |
}
|
195 |
$compteur++;
|
197 |
$compteur++;
|
196 |
}
|
198 |
}
|
Line 197... |
Line 199... |
197 |
|
199 |
|
Line 309... |
Line 311... |
309 |
function _actions($document)
|
311 |
function _actions($document)
|
310 |
{
|
312 |
{
|
311 |
$this->_url->addQueryString ('id_document', $document->getIdDocument()) ;
|
313 |
$this->_url->addQueryString ('id_document', $document->getIdDocument()) ;
|
Line 312... |
Line 314... |
312 |
|
314 |
|
313 |
$this->_url->addQueryString (PROJET_VARIABLE_ACTION, $this->_actions["couper"]) ;
|
315 |
$this->_url->addQueryString (PROJET_VARIABLE_ACTION, $this->_actions["couper"]) ;
|
314 |
$couper = ' '.PROJET_FICHIER_COUPER ;
|
316 |
$couper = ' '.PROJET_FICHIER_COUPER ;
|
Line 315... |
Line 317... |
315 |
if (!$document->isRepertoire()) $couper = '<a href="'.$this->_url->getURL().'">'.$couper.'</a>' ;
|
317 |
if (!$document->isRepertoire()) $couper = '<a href="'.$this->_url->getURL().'">'.$couper.'</a>' ;
|
316 |
|
318 |
|
317 |
$this->_url->addQueryString (PROJET_VARIABLE_ACTION, $this->_actions["modifier"]) ;
|
319 |
$this->_url->addQueryString (PROJET_VARIABLE_ACTION, $this->_actions["modifier"]) ;
|
318 |
$modifier = '<a href="'.$this->_url->getURL().'">'.PROJET_FICHIER_MODIFIER.'</a> ' ;
|
320 |
$modifier = '<a href="'.$this->_url->getURL().'">'.PROJET_FICHIER_MODIFIER.'</a> ' ;
|
319 |
$this->_url->addQueryString (PROJET_VARIABLE_ACTION, $this->_actions["supprimer"]) ;
|
321 |
$this->_url->addQueryString (PROJET_VARIABLE_ACTION, $this->_actions["supprimer"]) ;
|
320 |
$supprimer= '<a href="'.$this->_url->getURL().'" onclick="javascript:return confirm (\''.PROJET_FICHIER_SUPPRIMER.' ?\');">'.PROJET_FICHIER_SUPPRIMER.'</a>' ;
|
322 |
$supprimer= '<a href="'.$this->_url->getURL().'" onclick="javascript:return confirm (\''.PROJET_FICHIER_SUPPRIMER.' ?\');">'.PROJET_FICHIER_SUPPRIMER.'</a>' ;
|
321 |
$this->_url->removeQueryString ('id_document') ;
|
323 |
$this->_url->removeQueryString ('id_document') ;
|