77 lines
2.8 KiB
PHP
77 lines
2.8 KiB
PHP
<?php
|
|
/**
|
|
* The close 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-2010 青岛易软天创网络科技有限公司(www.cnezsoft.com)
|
|
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
|
|
* @package story
|
|
* @version $Id$
|
|
* @link http://www.zentao.net
|
|
*/
|
|
?>
|
|
<?php include './header.html.php';?>
|
|
<script language='Javascript'>
|
|
function setStory(reason)
|
|
{
|
|
if(reason == 'duplicate')
|
|
{
|
|
$('#duplicateStoryBox').show();
|
|
$('#childStoriesBox').hide();
|
|
}
|
|
else if(reason == 'subdivided')
|
|
{
|
|
$('#duplicateStoryBox').hide();
|
|
$('#childStoriesBox').show();
|
|
}
|
|
else
|
|
{
|
|
$('#duplicateStoryBox').hide();
|
|
$('#childStoriesBox').hide();
|
|
}
|
|
}
|
|
</script>
|
|
<div class='yui-d0'>
|
|
<form method='post' target='hiddenwin'>
|
|
<table class='table-1'>
|
|
<caption><?php echo $story->title;?></caption>
|
|
<tr>
|
|
<th class='rowhead'><?php echo $lang->story->closedReason;?></th>
|
|
<td><?php echo html::select('closedReason', $lang->story->reasonList, '', 'class=select-3 onchange="setStory(this.value)"');?></td>
|
|
</tr>
|
|
<tr id='duplicateStoryBox' class='hidden'>
|
|
<th class='rowhead'><?php echo $lang->story->duplicateStory;?></th>
|
|
<td><?php echo html::input('duplicateStory', '', 'class=text-3');?></td>
|
|
</tr>
|
|
<tr id='childStoriesBox' class='hidden'>
|
|
<th class='rowhead'><?php echo $lang->story->childStories;?></th>
|
|
<td><?php echo html::input('childStories', '', 'class=text-3');?></td>
|
|
</tr>
|
|
<tr>
|
|
<th class='rowhead'><?php echo $lang->story->comment;?></th>
|
|
<td><?php echo html::textarea('comment', '', "rows='8' class='area-1'");?></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan='2' class='a-center'>
|
|
<?php echo html::submitButton();?>
|
|
<?php echo html::linkButton($lang->goback, $app->session->storyList ? $app->session->storyList : inlink('view', "storyID=$story->id"));?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
<?php include '../../common/view/action.html.php';?>
|
|
</div>
|
|
<?php include '../../common/view/footer.html.php';?>
|