136 lines
5.3 KiB
PHP
136 lines
5.3 KiB
PHP
<?php
|
|
/**
|
|
* The edit view file of story module of ZenTaoMS.
|
|
*
|
|
* ZenTaoMS is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* ZenTaoMS is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
* along with ZenTaoMS. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
* @copyright Copyright: 2009 Chunsheng Wang
|
|
* @author Chunsheng Wang <wwccss@263.net>
|
|
* @package story
|
|
* @version $Id$
|
|
* @link http://www.zentao.cn
|
|
*/
|
|
?>
|
|
<?php include './header.html.php';?>
|
|
<style>
|
|
#module, #plan {width:90%}
|
|
</style>
|
|
<form method='post' enctype='multipart/form-data' target='hiddenwin'>
|
|
<div class='yui-d0'>
|
|
<div id='titlebar'>
|
|
<div id='main'>STORY #<?php echo $story->id . $lang->colon . $story->title;?></div>
|
|
<div><?php echo html::submitButton()?></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class='yui-d0 yui-t8'>
|
|
<div class='yui-main'>
|
|
<div class='yui-b'>
|
|
<fieldset>
|
|
<legend><?php echo $lang->story->legendSpec;?></legend>
|
|
<div class='content'><?php echo nl2br($story->spec);?></div>
|
|
</fieldset>
|
|
<fieldset>
|
|
<legend><?php echo $lang->story->comment;?></legend>
|
|
<textarea name='comment' rows='5' class='area-1'></textarea>
|
|
</fieldset>
|
|
<div class='a-center'><?php echo html::submitButton() . html::linkButton($lang->goback, inlink('view', "storyID=$story->id"));?></div>
|
|
<?php include '../../common/action.html.php';?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class='yui-b'>
|
|
<fieldset>
|
|
<legend><?php echo $lang->story->legendBasicInfo;?></legend>
|
|
<table class='table-1'>
|
|
<tr>
|
|
<td class='rowhead w-p20'><?php echo $lang->story->product;?></td>
|
|
<td><?php echo html::select('product', $products, $story->product, 'class="select-1" onchange="loadProduct(this.value)";');?></td>
|
|
</tr>
|
|
<tr>
|
|
<td class='rowhead'><?php echo $lang->story->module;?></td>
|
|
<td><span id='moduleIdBox'><?php echo html::select('module', $moduleOptionMenu, $story->module, 'class="select-1"');?></span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class='rowhead'><?php echo $lang->story->plan;?></td>
|
|
<td><span id='planIdBox'><?php echo html::select('plan', $plans, $story->plan, 'class=select-1');?></span></td>
|
|
</tr>
|
|
<tr>
|
|
<td class='rowhead'><?php echo $lang->story->status;?></td>
|
|
<td><?php echo $lang->story->statusList[$story->status];?></td>
|
|
</tr>
|
|
<?php if($story->status != 'draft'):?>
|
|
<tr>
|
|
<td class='rowhead'><?php echo $lang->story->stage;?></td>
|
|
<td><?php echo html::select('stage', $lang->story->stageList, $story->stage, 'class=select-1');?></td>
|
|
</tr>
|
|
<?php endif;?>
|
|
</table>
|
|
</fieldset>
|
|
<fieldset>
|
|
<legend><?php echo $lang->story->legendLifeTime;?></legend>
|
|
<table class='table-1'>
|
|
<tr>
|
|
<td class='rowhead w-p20'><?php echo $lang->story->openedBy;?></td>
|
|
<td><?php echo $users[$story->openedBy];?></td>
|
|
</tr>
|
|
<tr>
|
|
<td class='rowhead'><?php echo $lang->story->assignedTo;?></td>
|
|
<td><?php echo html::select('assignedTo', $users, $story->assignedTo, 'class="select-1"');?></td>
|
|
</tr>
|
|
<?php if($story->reviewedBy):?>
|
|
<tr>
|
|
<td class='rowhead'><?php echo $lang->story->reviewedBy;?></td>
|
|
<td><?php echo html::textarea('reviewedBy', $story->reviewedBy, 'class="area-1"');?></td>
|
|
</tr>
|
|
<?php endif;?>
|
|
<?php if($story->closedBy):?>
|
|
<tr>
|
|
<td class='rowhead'><?php echo $lang->story->closedBy;?></td>
|
|
<td><?php echo html::select('closedBy', $users, $story->closedBy, 'class="select-1"');?></td>
|
|
</tr>
|
|
<tr>
|
|
<td class='rowhead'><?php echo $lang->story->closedReason;?></td>
|
|
<td><?php echo html::select('closedReason', $lang->story->reasonList, $story->closedReason, 'class="select-1"');?></td>
|
|
</tr>
|
|
<?php endif;?>
|
|
</table>
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
<legend><?php echo $lang->story->legendMisc;?></legend>
|
|
<table class='table-1'>
|
|
<tr>
|
|
<td class='rowhead w-p20'><?php echo $lang->story->duplicateStory;?></td>
|
|
<td><?php echo html::input('duplicateStory', $story->duplicateStory, "class='text-1'");?></td>
|
|
</tr>
|
|
<tr>
|
|
<td class='rowhead w-p20'><?php echo $lang->story->linkStories;?></td>
|
|
<td><?php echo html::input('linkStories', $story->linkStories, "class='text-1'");?></td>
|
|
</tr>
|
|
<tr>
|
|
<td class='rowhead'><?php echo $lang->story->childStories;?></td>
|
|
<td><?php echo html::input('childStories', $story->childStories, "class='text-1'");?></td>
|
|
</tr>
|
|
<tr>
|
|
<td class='rowhead'><?php echo $lang->story->mailto;?></td>
|
|
<td><?php echo html::textarea('mailto', $story->mailto, "class='area-1'");?></td>
|
|
</tr>
|
|
</table>
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<?php include '../../common/footer.html.php';?>
|