20,7 → 20,7 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
|
// CVS : $Id: projetControleur.class.php,v 1.28 2006-07-04 09:29:49 alexandre_tb Exp $ |
// CVS : $Id: projetControleur.class.php,v 1.29 2006-10-05 08:51:09 alexandre_tb Exp $ |
|
/** |
* Application projet |
33,7 → 33,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.28 $ |
*@version $Revision: 1.29 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
604,34 → 604,39 |
*/ |
function formulaireProjet($action) |
{ |
if (!$this->_auth->getAuth()) { |
return PROJET_TEXTE_NON_IDENTIFIE; |
} |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, $action) ; |
$formulaire_projet = new HTML_formulaireProjet('formulaire_projet', 'post',str_replace ("&", "&", $this->_url->getURL())) ; |
$tableau_type = '' ; |
if (PROJET_UTILISE_TYPE) { |
include_once PROJET_CHEMIN_CLASSES.'projet_type.class.php' ; |
$tableau_type = projet_type::getTousLesTypes($this->_db) ; |
} |
$formulaire_projet->construitFormulaire(projet::getTousLesProjets($this->_db), $tableau_type) ; |
if ($action == PROJET_MODIFIER_DESCRIPTION_V) { |
$projet = new projet($this->_db, $this->_id_projet) ; |
$valeurs_par_defaut = array ( 'projet_titre' => $projet->getTitre(), |
'projet_description' => $projet->getDescription(), |
'projet_asso' => $projet->getIdPere(), |
'projet_wikini' => $projet->getWikini(), |
'projet_resume' => $projet->getResume(), |
'projet_espace_internet' => $projet->getEspaceInternet(), |
'projet_type'=> $projet->getType(), |
'projet_moderation' => $projet->isModere() |
) ; |
$formulaire_projet->setDefaults($valeurs_par_defaut) ; |
} else { |
$formulaire_projet->setDefaults (array ('projet_moderation'=> '0')) ; |
} |
$res = PROJET_PROPOSER_PROJET ; |
return $res . $formulaire_projet->toHTML() ; |
if (!$this->_auth->getAuth()) { |
return PROJET_TEXTE_NON_IDENTIFIE; |
} |
|
if (fileperms(PROJET_CHEMIN_FICHIER) & 0x0002) { |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, $action) ; |
$formulaire_projet = new HTML_formulaireProjet('formulaire_projet', 'post',str_replace ("&", "&", $this->_url->getURL())) ; |
$tableau_type = '' ; |
if (PROJET_UTILISE_TYPE) { |
include_once PROJET_CHEMIN_CLASSES.'projet_type.class.php' ; |
$tableau_type = projet_type::getTousLesTypes($this->_db) ; |
} |
$formulaire_projet->construitFormulaire(projet::getTousLesProjets($this->_db), $tableau_type) ; |
if ($action == PROJET_MODIFIER_DESCRIPTION_V) { |
$projet = new projet($this->_db, $this->_id_projet) ; |
$valeurs_par_defaut = array ( 'projet_titre' => $projet->getTitre(), |
'projet_description' => $projet->getDescription(), |
'projet_asso' => $projet->getIdPere(), |
'projet_wikini' => $projet->getWikini(), |
'projet_resume' => $projet->getResume(), |
'projet_espace_internet' => $projet->getEspaceInternet(), |
'projet_type'=> $projet->getType(), |
'projet_moderation' => $projet->isModere() |
) ; |
$formulaire_projet->setDefaults($valeurs_par_defaut) ; |
} else { |
$formulaire_projet->setDefaults (array ('projet_moderation'=> '0')) ; |
} |
$res = PROJET_PROPOSER_PROJET ; |
return $res . $formulaire_projet->toHTML() ; |
} else { |
return 'Veuillez régler les permissions en écriture sur '.PROJET_CHEMIN_FICHIER ; |
} |
} // end of member function nouveauProjet |
|
/** |