* @package todo * @version $Id: view.html.php 4955 2013-07-02 01:47:21Z chencongzhi520@gmail.com $ * @link http://www.zentao.net */ ?>
todo->desc; if($todo->type == 'bug') common::printLink('bug', 'view', "id={$todo->idvalue}", ' BUG#' . $todo->idvalue); if($todo->type == 'task') common::printLink('task', 'view', "id={$todo->idvalue}", ' TASK#' . $todo->idvalue); if($todo->type == 'story') common::printLink('story', 'view', "id={$todo->idvalue}", ' STORY#' . $todo->idvalue); ?>
desc;?>
createLink('action', 'comment', "objectType=todo&objectID=$todo->id");?>
session->todoList) { $browseLink = empty($todo->deleted) ? $this->session->todoList : $this->createLink('action', 'trash'); } elseif($todo->account == $app->user->account) { $browseLink = $this->createLink('my', 'todo'); } else { $browseLink = $this->createLink('user', 'todo', "userID=$user->id"); } if(!$todo->deleted) { if($this->app->user->admin or ($this->app->user->account == $todo->account) or ($this->app->user->account == $todo->assignedTo)) { if($todo->status == 'wait') common::printLink('todo', 'start', "todoID=$todo->id", "", 'hiddenwin', "title='{$lang->todo->start}' class='btn showinonlybody'"); if($todo->status == 'done' or $todo->status == 'closed') common::printLink('todo', 'activate', "todoID=$todo->id", "", 'hiddenwin', "title='{$lang->todo->activate}' class='btn showinonlybody'"); if($todo->status == 'done') common::printLink('todo', 'close', "todoID=$todo->id", "", 'hiddenwin', "title='{$lang->todo->close}' class='btn showinonlybody'"); common::printLink('todo', 'edit', "todoID=$todo->id", "", '', "title='{$lang->todo->edit}' class='btn showinonlybody'"); common::printLink('todo', 'delete', "todoID=$todo->id", "", 'hiddenwin', "title='{$lang->todo->delete}' class='btn showinonlybody'"); if($todo->status != 'done' && $todo->status != 'closed') { echo "
"; echo html::a($this->createLink('todo', 'finish', "id=$todo->id", 'html', true), "", 'hiddenwin', "title='{$lang->todo->finish}' class='btn showinonlybody btn-success'"); $createStoryPriv = common::hasPriv('story', 'create'); $createTaskPriv = common::hasPriv('task', 'create'); $createBugPriv = common::hasPriv('bug', 'create'); $printBtn = ($config->vision == 'lite' and empty($projects)) ? false : true; if($printBtn and ($createStoryPriv or $createTaskPriv or $createBugPriv)) { $isonlybody = isonlybody(); unset($_GET['onlybody']); echo ""; echo ""; if($isonlybody) $_GET['onlybody'] = 'yes'; } echo "
"; } } } common::printRPN($browseLink); ?>
todo->legendBasic;?>
assignedTo)):?>
todo->pri;?> pri;?>' title='todo->priList, $todo->pri, $todo->pri);?>'>todo->priList, $todo->pri)?>
todo->status;?> todo->statusList[$todo->status];?>
todo->type;?> todo->typeList[$todo->type];?>
todo->account;?> account);?>
todo->date;?> date == '20300101' ? $lang->todo->periods['future'] : formatTime($todo->date, DT_DATE1);?>
todo->beginAndEnd;?> begin])) echo $times[$todo->begin]; if(isset($times[$todo->end])) echo ' ~ ' . $times[$todo->end];?>
todo->assignedTo;?> assignedTo);?>
todo->assignedBy;?> assignedBy);?>
todo->assignedDate;?> assignedDate, DT_DATE1);?>
cycle):?> config = json_decode($todo->config);?>
todo->cycle;?>
todo->beginAndEnd?> config->begin . " ~ " . $todo->config->end;?>
todo->cycleConfig?> config->type == 'day') { if(isset($todo->config->day)) echo $lang->todo->every . $todo->config->day . $lang->day; if(isset($todo->config->specifiedDate)) { $specifiedNotes = $lang->todo->specify; if(isset($todo->config->cycleYear)) $specifiedNotes .= $lang->todo->everyYear; $specifiedNotes .= zget($lang->datepicker->monthNames, $todo->config->specify->month) . $todo->config->specify->day . $lang->todo->day; echo $specifiedNotes; } } elseif($todo->config->type == 'week') { foreach(explode(',', $todo->config->week) as $week) echo $lang->todo->dayNames[$week] . ' '; } elseif($todo->config->type == 'month') { foreach(explode(',', $todo->config->month) as $month) echo $month . ' '; } echo '
'; if($todo->config->beforeDays) printf($lang->todo->lblBeforeDays, $todo->config->beforeDays); ?>
id);?> execution->selectExecution);?> todo->selectProduct);?>