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: documents.php,v 1.8 2007-06-25 12:15:06 alexandre_tb Exp $
|
22 |
// CVS : $Id: documents.php,v 1.9 2007-10-02 08:58:23 alexandre_tb Exp $
|
23 |
/**
|
23 |
/**
|
24 |
* Application projet
|
24 |
* Application projet
|
25 |
*
|
25 |
*
|
26 |
* Action documents
|
26 |
* Action documents
|
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-2005
|
33 |
*@copyright Tela-Botanica 2000-2005
|
34 |
*@version $Revision: 1.8 $
|
34 |
*@version $Revision: 1.9 $
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
*/
|
36 |
*/
|
Line 37... |
Line 37... |
37 |
|
37 |
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
39 |
// | ENTETE du PROGRAMME |
|
39 |
// | ENTETE du PROGRAMME |
|
Line 40... |
Line 40... |
40 |
// +------------------------------------------------------------------------------------------------------+
|
40 |
// +------------------------------------------------------------------------------------------------------+
|
41 |
|
41 |
|
42 |
// RAPPEL IMPORTANT
|
42 |
// RAPPEL IMPORTANT
|
43 |
// On se situe dans la méthode run() de la classe projetControleur
|
43 |
// On se situe dans la methode run() de la classe projetControleur
|
Line 44... |
Line 44... |
44 |
//
|
44 |
//
|
45 |
if (!isset($retour)) $retour = '';
|
45 |
if (!isset($retour)) $retour = '';
|
Line 109... |
Line 109... |
109 |
$vue_liste_document->construitListe ($liste_documents, $droits, '', $this->_db) ;
|
109 |
$vue_liste_document->construitListe ($liste_documents, $droits, '', $this->_db) ;
|
Line 110... |
Line 110... |
110 |
|
110 |
|
Line 111... |
Line 111... |
111 |
$retour .= '<h1>'.PROJET_PROJET.' : '.$projet->getTitre()."</h1>" ;
|
111 |
$retour .= '<h1>'.PROJET_PROJET.' : '.$projet->getTitre()."</h1>" ;
|
- |
|
112 |
|
- |
|
113 |
$retour .= '<h2>'.PROJET_DOCUMENT_DU_PROJET.'</h2>'."\n" ;
|
- |
|
114 |
// Les liens pour l affichage classique ou arborescent (avec dojo)
|
112 |
|
115 |
$this->_url->addQueryString('affichage', 'ajax');
|
- |
|
116 |
$retour .= '<a href="'.$this->_url->getURL().'">'.PROJET_AFFICHAGE_ARBORESCENT.'</a>'."\n";
|
- |
|
117 |
$this->_url->addQueryString('affichage', 'standart');
|
Line 113... |
Line 118... |
113 |
$retour .= '<h2>'.PROJET_DOCUMENT_DU_PROJET.'</h2>'."\n" ;
|
118 |
$retour .= '<a href="'.$this->_url->getURL().'">'.PROJET_AFFICHAGE_CLASSIQUE.'</a>'."\n";
|
Line -... |
Line 119... |
- |
|
119 |
$this->_url->removeQueryString('affichage');
|
- |
|
120 |
|
- |
|
121 |
$arbre = document::getArbreDocument($this->_id_projet) ;
|
- |
|
122 |
|
Line -... |
Line 123... |
- |
|
123 |
$retour .= '<noscript>';
|
- |
|
124 |
$vue_liste_document->setModeAffichage('standart');
|
- |
|
125 |
$retour .= $vue_liste_document->toHTML('', '') ;
|
114 |
$retour .= $vue_liste_document->toHTML() ;
|
126 |
$retour .= '</noscript>';
|
115 |
|
127 |
|
- |
|
128 |
if (!isset ($_SESSION['mode_affichage'])) {
|
Line -... |
Line 129... |
- |
|
129 |
if (isset($_GET['affichage'])) $_SESSION['mode_affichage'] = $_GET['affichage']; else $_SESSION['mode_affichage'] = 'ajax';
|
- |
|
130 |
} else {
|
116 |
$arbre = document::getArbreDocument($this->_id_projet) ;
|
131 |
if (isset($_GET['affichage'])) $_SESSION['mode_affichage'] = $_GET['affichage'];
|
117 |
|
132 |
}
|