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 '