diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php index 3ecc086a548..dce3e4fcb62 100644 --- a/htdocs/core/class/html.formother.class.php +++ b/htdocs/core/class/html.formother.class.php @@ -43,12 +43,13 @@ class FormOther /** - * Constructeur - * @param DB Database handler + * Constructor + * + * @param DoliDB $db Database handler */ - function FormOther($DB) + function FormOther($db) { - $this->db = $DB; + $this->db = $db; return 1; } @@ -56,10 +57,12 @@ class FormOther /** * Return HTML select list of export models - * @param selected Id modele pre-selectionne - * @param htmlname Nom de la zone select - * @param type Type des modeles recherches - * @param useempty Affiche valeur vide dans liste + * + * @param string $selected Id modele pre-selectionne + * @param string $htmlname Nom de la zone select + * @param string $type Type des modeles recherches + * @param int $useempty Affiche valeur vide dans liste + * @return void */ function select_export_model($selected='',$htmlname='exportmodelid',$type='',$useempty=0) { @@ -103,10 +106,12 @@ class FormOther /** * Return list of export models - * @param selected Id modele pre-selectionne - * @param htmlname Nom de la zone select - * @param type Type des modeles recherches - * @param useempty Affiche valeur vide dans liste + * + * @param string $selected Id modele pre-selectionne + * @param string $htmlname Nom de la zone select + * @param string $type Type des modeles recherches + * @param int $useempty Affiche valeur vide dans liste + * @return void */ function select_import_model($selected='',$htmlname='importmodelid',$type='',$useempty=0) { @@ -150,8 +155,10 @@ class FormOther /** * Retourne la liste des ecotaxes avec tooltip sur le libelle - * @param selected code ecotaxes pre-selectionne - * @param htmlname nom de la liste deroulante + * + * @param string $selected code ecotaxes pre-selectionne + * @param string $htmlname nom de la liste deroulante + * @return void */ function select_ecotaxes($selected='',$htmlname='ecotaxe_id') { @@ -202,6 +209,7 @@ class FormOther /** * Return a HTML select list to select a percent + * * @param selected pourcentage pre-selectionne * @param htmlname nom de la liste deroulante * @param increment increment value @@ -234,6 +242,7 @@ class FormOther /** * Return select list for categories (to use in form search selectors) + * * @param type Type of categories (0=product, 1=suppliers, 2=customers, 3=members) * @param selected Preselected value * @param htmlname Name of combo list @@ -269,6 +278,7 @@ class FormOther /** * Return select list for categories (to use in form search selectors) + * * @param selected Preselected value * @param htmlname Name of combo list * @param user Object user @@ -325,13 +335,15 @@ class FormOther /** * Return list of project and tasks - * @param selectedtask Pre-selected task - * @param projectid Project id - * @param htmlname Name of html select - * @param modeproject 1 to restrict on projects owned by user - * @param modetask 1 to restrict on tasks associated to user - * @param mode 0=Return list of tasks and their projects, 1=Return projects and tasks if exists - * @param useempty 0=Allow empty values + * + * @param int $selectedtask Pre-selected task + * @param int $projectid Project id + * @param string $htmlname Name of html select + * @param int $modeproject 1 to restrict on projects owned by user + * @param int $modetask 1 to restrict on tasks associated to user + * @param int $mode 0=Return list of tasks and their projects, 1=Return projects and tasks if exists + * @param int $useempty 0=Allow empty values + * @return void */ function selectProjectTasks($selectedtask='', $projectid=0, $htmlname='task_parent', $modeproject=0, $modetask=0, $mode=0, $useempty=0) { @@ -360,11 +372,13 @@ class FormOther /** * Output a HTML code to select a color + * * @param set_color Pre-selected color * @param prefix Name of HTML field * @param form_name Name of form * @param showcolorbox 1=Show color code and color box, 0=Show only color code * @param arrayofcolors Array of colors. Example: array('29527A','5229A3','A32929','7A367A','B1365F','0D7813') + * @return void */ function select_color($set_color='', $prefix='f_color', $form_name='objForm', $showcolorbox=1, $arrayofcolors='') { @@ -412,42 +426,6 @@ class FormOther } ); }); '; print ''; - - /* - // No list of colors forced, we can suggest any color - print "\n".'
| '; - print ''."\n"; - print ''."\n"; - print ''."\n"; - print ' | ';
- print ' | ';
-
- if ($showcolorbox)
- {
- print '';
- print '';
- print ' | ';
- }
-
- print '