* @package todo * @version $Id: view.html.php 4955 2013-07-02 01:47:21Z chencongzhi520@gmail.com $ * @link http://www.zentao.net */ ?> private or ($todo->private and $todo->account == $app->user->account)):?>
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");?>
status == 'done' || $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($this->session->todoList) { $browseLink = $this->session->todoList; } elseif($todo->account == $app->user->account) { $browseLink = $this->createLink('my', 'todo'); } else { $browseLink = $this->createLink('user', 'todo', "account=$todo->account"); } 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'); if($createStoryPriv or $createTaskPriv or $createBugPriv) { $isonlybody = isonlybody(); unset($_GET['onlybody']); echo ""; echo ""; if($isonlybody) $_GET['onlybody'] = 'yes'; } echo "
"; } common::printRPN($browseLink); ?>
todo->legendBasic;?>
getClientLang() == 'en' ? 'w-100px' : 'w-80px';?> 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->assignTo;?> assignedTo);?>
todo->assignTo . $lang->todo->date;?> assignedDate, DT_DATE1);?>
cycle):?> config = json_decode($todo->config);?>
todo->cycle;?>
getClientLang() == 'en' ? 'w-100px' : 'w-80px';?>
todo->beginAndEnd?> config->begin . " ~ " . $todo->config->end;?>
todo->cycleConfig?> config->type == 'day') { echo $lang->todo->every . $todo->config->day . $lang->day; } 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);?> todo->thisIsPrivate;?>