Exemplo n.º 1
0
?>
</th>
            <th nowrap="nowrap"><?php 
echo sort_by_item_title('Start Date', 'task_start_date', SORT_NUMERIC, '&amp;a=todo');
?>
</th>
            <th nowrap="nowrap"><?php 
echo sort_by_item_title('Duration', 'task_duration', SORT_NUMERIC, '&amp;a=todo');
?>
</th>
            <th nowrap="nowrap"><?php 
echo sort_by_item_title('Finish Date', 'task_end_date', SORT_NUMERIC, '&amp;a=todo');
?>
</th>
            <th nowrap="nowrap"><?php 
echo sort_by_item_title('Due In', 'task_due_in', SORT_NUMERIC, '&amp;a=todo');
?>
</th>
            <?php 
if (w2PgetConfig('direct_edit_assignment')) {
    ?>
<th width="0">&nbsp;</th><?php 
}
?>
        </tr>
        <?php 
// sorting tasks
if ($task_sort_item1 != '') {
    if ($task_sort_item2 != '' && $task_sort_item1 != $task_sort_item2) {
        $tasks = array_csort($tasks, $task_sort_item1, $task_sort_order1, $task_sort_type1, $task_sort_item2, $task_sort_order2, $task_sort_type2);
    } else {
Exemplo n.º 2
0
sort_by_item_title('Start Date', 'task_start_date', SORT_NUMERIC);
?>
</th>
		<th nowrap="nowrap"><?php 
sort_by_item_title('Duration', 'task_duration', SORT_NUMERIC);
?>
&nbsp;&nbsp;</th>
		<th nowrap="nowrap"><?php 
sort_by_item_title('Finish Date', 'task_end_date', SORT_NUMERIC);
?>
</th>
		<?php 
if (!empty($mods['history']) && canView('history')) {
    ?>
<th nowrap="nowrap"><?php 
    sort_by_item_title('Last Update', 'last_update', SORT_NUMERIC);
    ?>
</th><?php 
} else {
    $cols--;
}
if ($showEditCheckbox) {
    echo '<th width="1">&nbsp;</th>';
} else {
    $cols--;
}
?>
	</tr>
	<?php 
reset($projects);
if ($w2Pconfig['direct_edit_assignment']) {
Exemplo n.º 3
0
?>
</th>
	<th nowrap><?php 
sort_by_item_title('Start Date', 'task_start_date', SORT_NUMERIC);
?>
</th>
	<th nowrap><?php 
sort_by_item_title('Duration', 'task_duration', SORT_NUMERIC);
?>
</th>
	<th nowrap><?php 
sort_by_item_title('Finish Date', 'task_end_date', SORT_NUMERIC);
?>
</th>
	<th nowrap><?php 
sort_by_item_title('Due In', 'task_due_in', SORT_NUMERIC);
?>
</th>
	<?php 
if (dPgetConfig('direct_edit_assignment')) {
    ?>
<th width="0">&nbsp;</th><?php 
}
?>
</tr>

<?php 
/*** Tasks listing ***/
$now = new CDate();
$df = $AppUI->getPref('SHDATEFORMAT');
// generate the 'due in' value