Exemplo n.º 1
0
	        <?php 
        task_delete_link();
        ?>
	        <?php 
        task_view_link($on_list_page);
        ?>
	        <?php 
        task_comments_link();
        ?>
	        <?php 
        task_complete_link();
        ?>
              </div>
          
              <?php 
        task_start_date();
        ?>
	      <?php 
        task_due_date();
        ?>
	      <?php 
        task_assignee();
        ?>
            </div>
          </td>
      </tr>
      <?php 
    }
    ?>
    </table>
  </div>
Exemplo n.º 2
0
function task_child_enddate($id_task)
{
    global $config;
    $start_date = task_start_date($id_task);
    $tasktime = get_db_sql("SELECT hours FROM ttask WHERE id= {$id_task}");
    $tasktime = $tasktime / $config["hours_perday"];
    $end_date = calcdate_business($start_date, $tasktime);
    $max = '1980-01-01';
    $query1 = "SELECT * FROM ttask WHERE id_parent_task = {$id_task}";
    $resq1 = mysql_query($query1);
    while ($row = mysql_fetch_array($resq1)) {
        $thisvalue = $row["hours"];
        $thisstart = $row["start"];
        $childtime = $thisvalue / $config["hours_perday"];
        $childdate = calcdate_business($thisstart, $childtime);
        $grandchilddate = task_child_enddate($row["id"]);
        if ($grandchilddate != $childdate) {
            $childdate = $grandchilddate;
        }
        if (strtotime($childdate) > strtotime($max)) {
            $max = $childdate;
        }
    }
    if (strtotime($max) > strtotime($end_date)) {
        return $max;
    } else {
        return $end_date;
    }
}