124 lines
5.0 KiB
PHP
124 lines
5.0 KiB
PHP
<?php
|
|
/**
|
|
* The edit view of task module of ZenTaoPMS.
|
|
*
|
|
* @copyright Copyright 2009-2010 QingDao Nature Easy Soft Network Technology Co,LTD (www.cnezsoft.com)
|
|
* @license LGPL (http://www.gnu.org/licenses/lgpl.html)
|
|
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
|
|
* @package task
|
|
* @version $Id$
|
|
* @link http://www.zentao.net
|
|
*/
|
|
?>
|
|
<?php include '../../common/view/header.html.php';?>
|
|
<?php include '../../common/view/datepicker.html.php';?>
|
|
<?php include '../../common/view/autocomplete.html.php';?>
|
|
<?php include '../../common/view/kindeditor.html.php';?>
|
|
<style>
|
|
#story {width:220px}
|
|
.select-1 {width:220px}
|
|
.text-1 {width:215px}
|
|
</style>
|
|
|
|
<script language='Javascript'>
|
|
var userList = "<?php echo join(',', array_keys($users));?>".split(',');
|
|
$(function() {
|
|
$("#mailto").autocomplete(userList, { multiple: true, mustMatch: true});
|
|
$("#searchStories").colorbox({width:680, height:400, iframe:true, transition:'none'});
|
|
KE.show({ id:'desc', items:simpleTools, filterMode:true, imageUploadJson: createLink('file', 'ajaxUpload')});
|
|
|
|
})
|
|
</script>
|
|
<form method='post' enctype='multipart/form-data' target='hiddenwin'>
|
|
<div class='yui-d0'>
|
|
<div id='titlebar'>
|
|
<div id='main'>TASK #<?php echo $task->id . $lang->colon . html::input('name', $task->name, 'class="text-1"');?></div>
|
|
<div><?php echo html::submitButton();?></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class='yui-d0 yui-t8'>
|
|
<div class='yui-main'>
|
|
<div class='yui-b'>
|
|
<table class='table-1 bd-none'>
|
|
<tr class='bd-none'><td class='bd-none'>
|
|
<fieldset>
|
|
<legend><?php echo $lang->task->desc;?></legend>
|
|
<?php echo html::textarea('desc', htmlspecialchars($task->desc), "rows='8' class='area-1'");?>
|
|
</fieldset>
|
|
<fieldset>
|
|
<legend><?php echo $lang->comment;?></legend>
|
|
<?php echo html::textarea('comment', '', "rows='5' class='area-1'");?>
|
|
</fieldset>
|
|
<fieldset>
|
|
<legend><?php echo $lang->files;?></legend>
|
|
<?php echo $this->fetch('file', 'buildform');?>
|
|
</fieldset>
|
|
</td></tr>
|
|
</table>
|
|
<div class='a-center'><?php echo html::submitButton() . html::linkButton($lang->goback, $this->inlink('view', "taskID=$task->id"));?></div>
|
|
<?php include '../../common/view/action.html.php';?>
|
|
</div>
|
|
</div>
|
|
<div class='yui-b'>
|
|
<fieldset>
|
|
<legend><?php echo $lang->task->legendBasic;?></legend>
|
|
<table class='table-1'>
|
|
<tr>
|
|
<th class='rowhead w-p20'><?php echo $lang->task->project;?></th>
|
|
<td><?php echo $project->name;?></td>
|
|
</tr>
|
|
<tr>
|
|
<th class='rowhead'><?php echo $lang->task->story;?></th>
|
|
<td><?php echo html::select('story', $stories, $task->story, 'class=select-1');?>
|
|
<?php echo html::a($this->createLink('search', 'select', "productID=0&projectID=$project->id&module=story&storyID=$task->story"), $lang->go, "_blank", "class='search' id='searchStories'");?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class='rowhead'><?php echo $lang->task->owner;?></th>
|
|
<td><?php echo html::select('owner', $members, $task->owner, 'class=select-1');?>
|
|
</tr>
|
|
<tr>
|
|
<th class='rowhead'><?php echo $lang->task->type;?></th>
|
|
<td><?php echo html::select('type', $lang->task->typeList, $task->type, 'class=select-1');?></td>
|
|
</tr>
|
|
<tr>
|
|
<th class='rowhead'><?php echo $lang->task->status;?></th>
|
|
<td><?php echo html::select('status', (array)$lang->task->statusList, $task->status, 'class=select-1');?></td>
|
|
</tr>
|
|
<tr>
|
|
<th class='rowhead'><?php echo $lang->task->pri;?></th>
|
|
<td><?php echo html::select('pri', $lang->task->priList, $task->pri, 'class=select-1');?>
|
|
</tr>
|
|
<tr>
|
|
<td class='rowhead'><?php echo $lang->task->mailto;?></td>
|
|
<td><?php echo html::input('mailto', $task->mailto, 'class="text-1"');?></td>
|
|
</tr>
|
|
</table>
|
|
</fieldset>
|
|
<fieldset>
|
|
<legend><?php echo $lang->task->legendEffort;?></legend>
|
|
<table class='table-1'>
|
|
<tr>
|
|
<th class='rowhead'><?php echo $lang->task->deadline;?></th>
|
|
<td><?php echo html::input('deadline', $task->deadline, "class='text-1 date'");?></td>
|
|
</tr>
|
|
<tr>
|
|
<th class='rowhead w-p20'><?php echo $lang->task->estimate;?></th>
|
|
<td><?php echo html::input('estimate', $task->estimate, "class='text-1'");?></td>
|
|
</tr>
|
|
<tr>
|
|
<th class='rowhead'><?php echo $lang->task->consumed;?></th>
|
|
<td><?php echo html::input('consumed', $task->consumed, "class='text-1'");?></td>
|
|
</tr>
|
|
<tr>
|
|
<th class='rowhead'><?php echo $lang->task->left;?></th>
|
|
<td><?php echo html::input('left', $task->left, "class='text-1'");?></td>
|
|
</tr>
|
|
</table>
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<?php include '../../common/view/footer.html.php';?>
|