From 354fa8a605627e86de5131587d915cb95e77c991 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 28 Jan 2010 08:52:41 +0000 Subject: [PATCH] Works on enhancement of project tasks --- htdocs/html.form.class.php | 2 +- htdocs/html.formother.class.php | 39 +++++++++++++++++++++++++++--- htdocs/lib/functions.lib.php | 2 +- htdocs/lib/project.lib.php | 32 +++++++++++++++++------- htdocs/projet/tasks/fiche.php | 4 +-- htdocs/projet/tasks/task.class.php | 8 +++--- 6 files changed, 66 insertions(+), 21 deletions(-) diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 73445151fed..9acbf91f282 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -4,7 +4,7 @@ * Copyright (C) 2004 Benoit Mortier * Copyright (C) 2004 Sebastien Di Cintio * Copyright (C) 2004 Eric Seigne - * Copyright (C) 2005-2009 Regis Houssin + * Copyright (C) 2005-2010 Regis Houssin * Copyright (C) 2006 Andre Cianfarani * Copyright (C) 2006 Marc Barilley/Ocebo * Copyright (C) 2007 Franky Van Liedekerke diff --git a/htdocs/html.formother.class.php b/htdocs/html.formother.class.php index 23fca351263..5e2ada84236 100644 --- a/htdocs/html.formother.class.php +++ b/htdocs/html.formother.class.php @@ -4,7 +4,7 @@ * Copyright (C) 2004 Benoit Mortier * Copyright (C) 2004 Sebastien Di Cintio * Copyright (C) 2004 Eric Seigne - * Copyright (C) 2005-2009 Regis Houssin + * Copyright (C) 2005-2010 Regis Houssin * Copyright (C) 2006 Andre Cianfarani * Copyright (C) 2006 Marc Barilley/Ocebo * Copyright (C) 2007 Franky Van Liedekerke @@ -200,6 +200,37 @@ class FormOther } } + /** + * \brief Retourne une liste de pourcentage + * \param selected pourcentage pre-selectionne + * \param htmlname nom de la liste deroulante + * \param increment increment value + * \param start start value + * \param end end value + * \return return combo + */ + function select_percent($selected=0,$htmlname='percent',$increment=5,$start=0,$end=100) + { + $return = ''; + + return $return; + } /** * \brief Retourn list of project and tasks @@ -217,7 +248,7 @@ class FormOther //print $modeproject.'-'.$modetask; $task=new Task($this->db); - $tasksarray=$task->getTasksArray($modetask?$user:0, $modeproject?$user:0, $mode); + $tasksarray=$task->getTasksArray($modetask?$user:0, $modeproject?$user:0, $selected); if ($tasksarray) { print '