1
<script type="text/javascript">
3
var PREFS_UPDATE_TIMEOUT;
5
function table_sortCallback(tableId, column, sortDown)
7
if (typeof PREFS_UPDATE_TIMEOUT != "undefined") {
8
window.clearTimeout(PREFS_UPDATE_TIMEOUT);
11
PREFS_UPDATE_TIMEOUT = window.setTimeout('doPrefsUpdate("' + column + '", "' + sortDown + '")', 300);
14
function doPrefsUpdate(column, sortDown)
16
baseurl = '<?php echo $GLOBALS['registry']->getServiceLink('prefs', 'nag') ?>';
18
new Ajax.Request(baseurl, { parameters: { pref: 'sortby', value: encodeURIComponent(column.substring(1)) } });
19
new Ajax.Request(baseurl, { parameters: { pref: 'sortdir', value: encodeURIComponent(sortDown) } });
25
<?php echo $this->render('list/header'); ?>
26
<?php echo $this->tabs; ?>
27
<?php echo $this->browser; ?>
28
<?php if (!$this->tasks->hasTasks()): ?>
30
<p class="text"><em><?php echo _("There are no tasks matching the current criteria.") ?></em></p>
34
<table id="tasks" class="horde-table sortable nowrap">
35
<?php echo $this->render('list/task_headers'); ?>
36
<tbody id="tasks-body">
37
<?php while ($task = $this->tasks->each()):
38
$due = $task->due ? $task->getNextDue() : null;
39
if (!empty($task->completed)) {
40
$style = 'linedRow closed';
41
} elseif ($due && $due->before(time())) {
42
$style = 'linedRow overdue';
46
if ($task->tasklist == '**EXTERNAL**') {
47
$share = $GLOBALS['nag_shares']->newShare($GLOBALS['registry']->getAuth(), '**EXTERNAL**', $task->tasklist_name);
48
$owner = $task->tasklist_name;
51
$share = $GLOBALS['nag_shares']->getShare($task->tasklist);
52
$owner = Nag::getLabel($share);
53
} catch (Horde_Share_Exception $e) {
54
$owner = $task->tasklist;
59
'have_read' => $share->hasPermission($GLOBALS['registry']->getAuth(), Horde_Perms::READ),
60
'have_edit' => $share->hasPermission($GLOBALS['registry']->getAuth(), Horde_Perms::EDIT),
64
'columns' => $this->columns,
65
'dynamic_sort' => $this->dynamic_sort &= !$task->hasSubTasks(),
66
'dateFormat' => $GLOBALS['prefs']->getValue('date_format')); ?>
67
<?php echo $this->renderPartial('list/task', array('locals' => $locals)) ?>
71
<?php if ($this->dynamic_sort) $GLOBALS['page_output']->addScriptFile('tables.js', 'horde') ?>
75
<div id="tasks_empty" style="display:none">
76
<?php echo _("No tasks match") ?>
b'\\ No newline at end of file'