コード例 #1
0
/**
 * The original method didn't return anything..
 *
 * @todo Remove for v4.0 - caseydk 06 March 2013
 * @deprecated
 */
function get_dependencies_pd($task_id)
{
    trigger_error("get_dependencies_pd() has been deprecated in v3.0 and will be removed in v4.0. Use CTask->getDependencyList instead.", E_USER_NOTICE);
    $task = new CTask();
    return $task->getDependencyList($task_id);
}
コード例 #2
0
    $s .= '</tr>';
}
echo '<table width="100%" cellspacing="1" bgcolor="black">' . $s . '</table>';
?>
                    </td>
                </tr>
                <tr>
                    <td colspan="3"><strong><?php 
echo $AppUI->_('Dependencies');
?>
</strong></td>
                </tr>
                <tr>
                    <td colspan="3">
                    <?php 
$taskDep = $obj->getDependencyList($task_id);
$s = count($taskDep) == 0 ? '<tr><td bgcolor="#ffffff">' . $AppUI->_('none') . '</td></tr>' : '';
foreach ($taskDep as $key => $array) {
    $s .= '<tr><td class="hilite" width=80%>';
    $s .= '<a href="./index.php?m=tasks&a=view&task_id=' . $key . '">' . $array['task_name'] . '</a>';
    $s .= '</td>';
    $s .= $htmlHelper->createCell('task_percent_complete', $array['task_percent_complete']);
    $s .= '</tr>';
}
echo '<table width="100%" cellspacing="1" bgcolor="black">' . $s . '</table>';
?>
                    </td>
                </tr>
                <tr>
                    <td colspan="3"><strong><?php 
echo $AppUI->_('Tasks depending on this Task');