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: documents.php,v 1.8 2007-06-25 12:15:06 alexandre_tb Exp $ |
// CVS : $Id: documents.php,v 1.9 2007-10-02 08:58:23 alexandre_tb Exp $ |
/** |
* Application projet |
* |
31,7 → 31,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2005 |
*@version $Revision: 1.8 $ |
*@version $Revision: 1.9 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
40,7 → 40,7 |
// +------------------------------------------------------------------------------------------------------+ |
|
// RAPPEL IMPORTANT |
// On se situe dans la méthode run() de la classe projetControleur |
// On se situe dans la methode run() de la classe projetControleur |
// |
if (!isset($retour)) $retour = ''; |
|
111,12 → 111,27 |
$retour .= '<h1>'.PROJET_PROJET.' : '.$projet->getTitre()."</h1>" ; |
|
$retour .= '<h2>'.PROJET_DOCUMENT_DU_PROJET.'</h2>'."\n" ; |
$retour .= $vue_liste_document->toHTML() ; |
// Les liens pour l affichage classique ou arborescent (avec dojo) |
$this->_url->addQueryString('affichage', 'ajax'); |
$retour .= '<a href="'.$this->_url->getURL().'">'.PROJET_AFFICHAGE_ARBORESCENT.'</a>'."\n"; |
$this->_url->addQueryString('affichage', 'standart'); |
$retour .= '<a href="'.$this->_url->getURL().'">'.PROJET_AFFICHAGE_CLASSIQUE.'</a>'."\n"; |
$this->_url->removeQueryString('affichage'); |
|
$arbre = document::getArbreDocument($this->_id_projet) ; |
|
$retour .= '<noscript>'; |
$vue_liste_document->setModeAffichage('standart'); |
$retour .= $vue_liste_document->toHTML('', '') ; |
$retour .= '</noscript>'; |
|
$retour .= $vue_liste_document->AJAX_construitListe ($this->_id_projet, $droits, '', $this->_db) ; |
if (!isset ($_SESSION['mode_affichage'])) { |
if (isset($_GET['affichage'])) $_SESSION['mode_affichage'] = $_GET['affichage']; else $_SESSION['mode_affichage'] = 'ajax'; |
} else { |
if (isset($_GET['affichage'])) $_SESSION['mode_affichage'] = $_GET['affichage']; |
} |
$vue_liste_document->setModeAffichage($_SESSION['mode_affichage']); |
|
|
$retour .= $vue_liste_document->toHTML($projet->getId(), $droits); |
$this->_url->removeQueryString(PROJET_VARIABLE_SERVICE); |
?> |