| 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_formulaireDocument.class.php,v 1.3 2006-01-05 15:02:55 alexandre_tb Exp $
|
22 |
// CVS : $Id: HTML_formulaireDocument.class.php,v 1.4 2007-02-13 15:11:39 jp_milcent Exp $
|
| 23 |
/**
|
23 |
/**
|
| 24 |
* Application projet
|
24 |
* Application projet
|
| 25 |
*
|
25 |
*
|
| 26 |
* La classe HTML_formulaireDocument
|
26 |
* La classe HTML_formulaireDocument
|
| 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.3 $
|
34 |
*@version $Revision: 1.4 $
|
| 35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
| 36 |
*/
|
36 |
*/
|
| Line 37... |
Line 37... |
| 37 |
|
37 |
|
| Line 95... |
Line 95... |
| 95 |
$this->addGroup($radio, null, PROJET_FICHIERS_VISIBILITE, ' ');
|
95 |
$this->addGroup($radio, null, PROJET_FICHIERS_VISIBILITE, ' ');
|
| Line 96... |
Line 96... |
| 96 |
|
96 |
|
| 97 |
// Le champs fichier si le type du document est un fichier
|
97 |
// Le champs fichier si le type du document est un fichier
|
| 98 |
if ($this->_type == 'fichier' && $action == PROJET_NOUVEAU_FICHIER) {
|
98 |
if ($this->_type == 'fichier' && $action == PROJET_NOUVEAU_FICHIER) {
|
| 99 |
$GLOBALS['fichier'] = $this->addElement ('file', 'fichier', PROJET_FICHIER_LE_FICHIER) ;
|
99 |
$GLOBALS['fichier'] = $this->addElement ('file', 'fichier', PROJET_FICHIER_LE_FICHIER) ;
|
| 100 |
$this->setMaxFileSize(4*1024*1024) ;
|
100 |
$this->setMaxFileSize(PROJET_UPLOAD_MAX_FILE_SIZE) ;
|
| 101 |
$this->addRule ('fichier', PROJET_FICHIER_ALERTE_PAS_DE_FICHIER, 'required', '', 'client') ;
|
101 |
$this->addRule ('fichier', PROJET_FICHIER_ALERTE_PAS_DE_FICHIER, 'required', '', 'client') ;
|
| Line 102... |
Line 102... |
| 102 |
}
|
102 |
}
|
| 103 |
|
103 |
|