Logo Search packages:      
Sourcecode: nag2 version File versions  Download package

task.inc

<div class="header">
 <span class="smallheader" style="float:right">
<?php
    if (!$print_view) {
        $taskurl = Util::addParameter('task.php', 'task', $task['task_id']);
        $taskurl = Util::addParameter($taskurl, 'tasklist', $tasklist_id);
        $share = $GLOBALS['nag_shares']->getShare($tasklist_id);
    ?>
    <?php if ($share->hasPermission(Auth::getAuth(), PERMS_EDIT)): ?>
      <?php if (!$task['completed']): ?>
        <?php echo Horde::widget(Horde::applicationUrl(Util::addParameter($taskurl, 'actionID', 'complete_task')), _("Complete"), 'smallheader', '', '', _("_Complete")) ?> |
      <?php endif; ?>
      <?php echo Horde::widget(Horde::applicationUrl(Util::addParameter($taskurl, 'actionID', 'modify_task')), _("Edit"), 'smallheader', '', '', _("_Edit")) ?>
    <?php endif; ?>
    <?php if ($share->hasPermission(Auth::getAuth(), PERMS_DELETE)): ?>
      | <?php echo Horde::widget(Horde::applicationUrl(Util::addParameter($taskurl, 'actionID', 'delete_tasks')), _("Delete"), 'smallheader', '', '', _("_Delete")) ?>
    <?php endif; ?>
    <?php } ?>
 </span>
 <?php echo htmlspecialchars($task['name']) ?>
</div>

<?php $i = 0 ?>

<table cellspacing="0" width="100%" class="headerbox">
<tr>
  <td class="item<?php echo ($i %2) ?>" align="right" valign="top" nowrap="nowrap"><b><?php echo _("Category") ?></b>&nbsp;</td>
  <td class="item<?php echo ($i++ %2) ?>" width="100%"><?php echo htmlspecialchars($task['category'] ? $task['category'] : _("Unfiled")) ?></td>
</tr>
<tr>
  <td class="item<?php echo ($i %2) ?>" align="right" valign="top" nowrap="nowrap"><b><?php echo _("Due By") ?></b>&nbsp;</td>
  <td class="item<?php echo ($i++ %2) ?>" width="100%"><?php echo Nag::formatDate($task['due']) ?></td>
</tr>
<tr>
  <td class="item<?php echo ($i %2) ?>" align="right" valign="top" nowrap="nowrap"><b><?php echo _("Alarm") ?></b>&nbsp;</td>
  <td class="item<?php echo ($i++ %2) ?>" width="100%"><?php echo $alarm_text ?></td>
</tr>
<tr>
  <td class="item<?php echo ($i %2) ?>" align="right" valign="top" nowrap="nowrap"><b><?php echo _("Priority") ?></b>&nbsp;</td>
  <td class="item<?php echo ($i++ %2) ?>" width="100%"><?php echo Nag::formatPriority($task['priority']) ?></td>
</tr>
<tr>
  <td class="item<?php echo ($i %2) ?>" align="right" valign="top" nowrap="nowrap"><b><?php echo _("Completed?") ?></b>&nbsp;</td>
  <td class="item<?php echo ($i++ %2) ?>" width="100%"><?php echo Nag::formatCompletion($task['completed']) ?></td>
</tr>

<?php if (isset($created)): ?>
<tr>
  <td class="item<?php echo ($i %2) ?>" nowrap="nowrap" align="right"><b><?php echo _("Created") ?></b>&nbsp;</td>
  <td class="item<?php echo ($i++ %2) ?>" nowrap="nowrap"><?php echo strftime($prefs->getValue('date_format'), $created) . ' ' . date($prefs->getValue('twentyFour') ? 'G:i' : 'g:i a', $created) ?></td>
</tr>
<?php endif; ?>

<?php if (isset($modified)): ?>
<tr>
  <td class="item<?php echo ($i %2) ?>" nowrap="nowrap" align="right"><b><?php echo _("Last Modified") ?></b>&nbsp;</td>
  <td class="item<?php echo ($i++ %2) ?>" nowrap="nowrap"><?php echo strftime($prefs->getValue('date_format'), $modified) . ' ' . date($prefs->getValue('twentyFour') ? 'G:i' : 'g:i a', $modified) ?></td>
</tr>
<?php endif; ?>

<tr><td class="text" style="padding:3px;" colspan="2" align="left"><?php echo Text_Filter::filter($task['desc'], 'text2html', array('parselevel' => TEXT_HTML_MICRO, 'class' => null)) ?></td></tr>

</table>

Generated by  Doxygen 1.6.0   Back to index