diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index 764a3c49da7..1f36cf91d6f 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -21,7 +21,7 @@ * \file htdocs/core/class/html.formfile.class.php * \ingroup core * \brief File of class to offer components to list and upload files - * \version $Id: html.formfile.class.php,v 1.56 2011/08/15 23:17:52 eldy Exp $ + * \version $Id: html.formfile.class.php,v 1.57 2011/08/16 09:36:00 eldy Exp $ */ @@ -31,339 +31,339 @@ */ class FormFile { - var $db; - var $error; + var $db; + var $error; - var $numoffiles; + var $numoffiles; - /** - * Constructor - * @param DB handler d'acces base de donnee - */ - function FormFile($DB) - { - $this->db = $DB; + /** + * Constructor + * @param DB handler d'acces base de donnee + */ + function FormFile($DB) + { + $this->db = $DB; - $this->numoffiles=0; + $this->numoffiles=0; - return 1; - } + return 1; + } - /** - * Show form to upload a new file - * @param url Url - * @param title Title zone (Title or '' or 'none') - * @param addcancel 1=Add 'Cancel' button - * @param sectionid If upload must be done inside a particular ECM section - * @param perm Value of permission to allow upload - * @param size Length of input file area - * @return int <0 ij KO, >0 if OK - */ - function form_attach_new_file($url, $title='', $addcancel=0, $sectionid=0, $perm=1, $size=50) - { - global $conf,$langs; + /** + * Show form to upload a new file + * @param url Url + * @param title Title zone (Title or '' or 'none') + * @param addcancel 1=Add 'Cancel' button + * @param sectionid If upload must be done inside a particular ECM section + * @param perm Value of permission to allow upload + * @param size Length of input file area + * @return int <0 ij KO, >0 if OK + */ + function form_attach_new_file($url, $title='', $addcancel=0, $sectionid=0, $perm=1, $size=50) + { + global $conf,$langs; - $maxlength=$size; + $maxlength=$size; - print "\n\n\n"; + print "\n\n\n"; - if (empty($title)) $title=$langs->trans("AttachANewFile"); - if ($title != 'none') print_titre($title); + if (empty($title)) $title=$langs->trans("AttachANewFile"); + if ($title != 'none') print_titre($title); - print '
'; - if (empty($sectionid)) print '