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_formulaireProjet.class.php,v 1.1 2005-09-22 14:02:48 ddelon Exp $ |
// CVS : $Id: HTML_formulaireProjet.class.php,v 1.2 2005-09-27 16:42:00 alexandre_tb Exp $ |
/** |
* Application projet |
* |
31,7 → 31,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.1 $ |
*@version $Revision: 1.2 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
96,14 → 96,14 |
* @return void |
* @access public |
*/ |
function construitFormulaire(&$tableau_projet) |
function construitFormulaire(&$tableau_projet, $tableau_type = '') |
{ |
$this->addElement ('text', 'projet_titre', PROJET_TITRE, array ('size' => 60)) ; |
$this->addElement ('text', 'projet_titre', PROJET_TITRE, array ('class' => 'projet_titre', 'maxlength' => 255)) ; |
$this->addRule ('projet_titre', PROJET_ALERTE_TITRE, 'required', '', 'client') ; |
|
$this->addElement ('textarea', 'projet_resume', PROJET_RESUME, array('cols'=>"60", 'rows'=>"10")) ; |
$this->addElement ('textarea', 'projet_description', PROJET_DESCRIPTION, array('cols'=>"60", 'rows'=>"40")) ; |
$this->addElement ('text', 'projet_espace_internet', PROJET_ESPACE_INTERNET, array ('size' => 60)) ; |
$this->addElement ('textarea', 'projet_resume', PROJET_RESUME, array('class'=>'projet_resume', 'rows'=>"10")) ; |
$this->addElement ('textarea', 'projet_description', PROJET_DESCRIPTION, array('class'=>"projet_resume", 'rows'=>"40")) ; |
$this->addElement ('text', 'projet_espace_internet', PROJET_ESPACE_INTERNET, array ('class' => 'projet_espace_internet')) ; |
|
$label_projet = array() ; |
$id_projet = array() ; |
111,12 → 111,17 |
$label_projet[] = $projet->getTitre() ; |
$id_projet[] = $projet->getId() ; |
} |
$select = new HTML_QuickForm_select ('projet_asso', PROJET_PERE, $label_projet) ; |
$select = new HTML_QuickForm_select ('projet_asso', PROJET_PERE, $label_projet, array ('class' => 'projet_asso')) ; |
$this->addElement($select) ; |
unset ($select) ; |
|
$this->applyFilter(array('projet_resume', 'projet_description'), 'addslashes') ; |
|
if ($tableau_type != '') { |
$select = new HTML_QuickForm_select ('projet_type', PROJET_TYPE, $tableau_type, array ('class' => 'projet_type')) ; |
$this->addElement($select) ; |
unset ($select) ; |
} |
$this->setRequiredNote('<span style="color: #ff0000">*</span>'.PROJET_CHAMPS_REQUIS) ; |
$url_annuler = new Net_URL($this->getAttribute('action')) ; |
$url_annuler->removeQueryString(PROJET_VARIABLE_ACTION) ; |