Correction bug ajout d'une dure
This commit is contained in:
parent
aee3083f23
commit
bfbb583bea
@ -43,7 +43,7 @@ Function PLines(&$inc, $parent, $lines, &$level)
|
|||||||
if ($lines[$i][1] == $parent)
|
if ($lines[$i][1] == $parent)
|
||||||
{
|
{
|
||||||
$var = !$var;
|
$var = !$var;
|
||||||
print "<tr $bc[$var]><td>";
|
print "<tr $bc[$var]>\n<td>";
|
||||||
|
|
||||||
for ($k = 0 ; $k < $level ; $k++)
|
for ($k = 0 ; $k < $level ; $k++)
|
||||||
{
|
{
|
||||||
@ -59,8 +59,8 @@ Function PLines(&$inc, $parent, $lines, &$level)
|
|||||||
print '<td align="right">'.$heure." h ".$minutes."</td>\n";
|
print '<td align="right">'.$heure." h ".$minutes."</td>\n";
|
||||||
print '<td><input size="4" type="text" class="flat" name="task'.$lines[$i][2].'" value="">';
|
print '<td><input size="4" type="text" class="flat" name="task'.$lines[$i][2].'" value="">';
|
||||||
print ' <input type="submit" class="flat" value="'.$langs->trans("Save").'"></td>';
|
print ' <input type="submit" class="flat" value="'.$langs->trans("Save").'"></td>';
|
||||||
print '<td>';
|
print "\n<td>";
|
||||||
print $form->select_date();
|
print $form->select_date('',$lines[$i][2]);
|
||||||
print '</td>';
|
print '</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
$inc++;
|
$inc++;
|
||||||
@ -77,7 +77,6 @@ Function PLines(&$inc, $parent, $lines, &$level)
|
|||||||
|
|
||||||
Function PLineSelect(&$inc, $parent, $lines, &$level)
|
Function PLineSelect(&$inc, $parent, $lines, &$level)
|
||||||
{
|
{
|
||||||
|
|
||||||
for ($i = 0 ; $i < sizeof($lines) ; $i++)
|
for ($i = 0 ; $i < sizeof($lines) ; $i++)
|
||||||
{
|
{
|
||||||
if ($parent == 0)
|
if ($parent == 0)
|
||||||
@ -126,7 +125,6 @@ if ($_POST["action"] == 'addtime' && $user->rights->projet->creer)
|
|||||||
|
|
||||||
if ($result == 0)
|
if ($result == 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
foreach ($_POST as $key => $post)
|
foreach ($_POST as $key => $post)
|
||||||
{
|
{
|
||||||
//$pro->CreateTask($user, $_POST["task_name"]);
|
//$pro->CreateTask($user, $_POST["task_name"]);
|
||||||
@ -134,8 +132,10 @@ if ($_POST["action"] == 'addtime' && $user->rights->projet->creer)
|
|||||||
{
|
{
|
||||||
if ($post > 0)
|
if ($post > 0)
|
||||||
{
|
{
|
||||||
$date = mktime(12,12,12,$_POST["remonth"],$_POST["reday"],$_POST["reyear"]);
|
$id = ereg_replace("task","",$key);
|
||||||
$pro->TaskAddTime($user, ereg_replace("task","",$key) , $post, $date);
|
|
||||||
|
$date = mktime(12,12,12,$_POST["$id"."month"],$_POST["$id"."day"],$_POST["$id"."year"]);
|
||||||
|
$pro->TaskAddTime($user, $id , $post, $date);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user