* finish task #1401.
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
</div>
|
||||
<ul data-role='listview'>
|
||||
<?php foreach($stories as $story):?>
|
||||
<li><?php echo html::a($this->createLink('story', 'view', "storyID=$story->id"), $story->title)?></li>
|
||||
<li><?php echo html::a($this->createLink('story', 'view', "storyID=$story->id"), "#$story->id $story->title")?></li>
|
||||
<?php endforeach;?>
|
||||
</ul>
|
||||
<p>
|
||||
|
||||
Executable
+18
@@ -0,0 +1,18 @@
|
||||
function setStory(reason)
|
||||
{
|
||||
if(reason == 'duplicate')
|
||||
{
|
||||
$('#duplicateStoryBox').show();
|
||||
$('#childStoriesBox').hide();
|
||||
}
|
||||
else if(reason == 'subdivided')
|
||||
{
|
||||
$('#duplicateStoryBox').hide();
|
||||
$('#childStoriesBox').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#duplicateStoryBox').hide();
|
||||
$('#childStoriesBox').hide();
|
||||
}
|
||||
}
|
||||
Executable
+45
@@ -0,0 +1,45 @@
|
||||
function switchShow(result)
|
||||
{
|
||||
if(result == 'reject')
|
||||
{
|
||||
$('#rejectedReasonBox').show();
|
||||
$('#preVersionBox').hide();
|
||||
$('#assignedTo').val('closed');
|
||||
}
|
||||
else if(result == 'revert')
|
||||
{
|
||||
$('#preVersionBox').show();
|
||||
$('#rejectedReasonBox').hide();
|
||||
$('#duplicateStoryBox').hide();
|
||||
$('#childStoriesBox').hide();
|
||||
$('#assignedTo').val(assignedTo);
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#preVersionBox').hide();
|
||||
$('#rejectedReasonBox').hide();
|
||||
$('#duplicateStoryBox').hide();
|
||||
$('#childStoriesBox').hide();
|
||||
$('#rejectedReasonBox').hide();
|
||||
$('#assignedTo').val(assignedTo);
|
||||
}
|
||||
}
|
||||
|
||||
function setStory(reason)
|
||||
{
|
||||
if(reason == 'duplicate')
|
||||
{
|
||||
$('#duplicateStoryBox').show();
|
||||
$('#childStoriesBox').hide();
|
||||
}
|
||||
else if(reason == 'subdivided')
|
||||
{
|
||||
$('#duplicateStoryBox').hide();
|
||||
$('#childStoriesBox').show();
|
||||
}
|
||||
else
|
||||
{
|
||||
$('#duplicateStoryBox').hide();
|
||||
$('#childStoriesBox').hide();
|
||||
}
|
||||
}
|
||||
Executable
+26
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* The activate view file of story module of ZenTaoPMS.
|
||||
*
|
||||
* @copyright Copyright 2009-2013 青岛易软天创网络科技有限公司 (QingDao Nature Easy Soft Network Technology Co,LTD www.cnezsoft.com)
|
||||
* @license LGPL (http://www.gnu.org/licenses/lgpl.html)
|
||||
* @author Yidong Wang <yidong@cnezsoft.com>
|
||||
* @package story
|
||||
* @version $Id: activate.html.php 4129 2013-01-18 01:58:14Z wwccss $
|
||||
* @link http://www.zentao.net
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/m.header.html.php';?>
|
||||
</div>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<h3><?php echo $lang->story->activate;?></h3>
|
||||
<span><?php echo $lang->story->assignedTo;?></span>
|
||||
<?php echo html::select('assignedTo', $users, $story->closedBy, 'class="select-3"');?>
|
||||
<span><?php echo $lang->story->comment;?></span>
|
||||
<?php echo html::textarea('comment', '', 'rows=5 class="area-1"');?>
|
||||
<p>
|
||||
<?php echo html::submitButton('', "data-inline='true' data-theme='b'");?>
|
||||
<?php echo html::backButton("data-inline='true'");?>
|
||||
</p>
|
||||
</form>
|
||||
<?php include '../../common/view/m.footer.html.php';?>
|
||||
Executable
+34
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* The close view file of story module of ZenTaoPMS.
|
||||
*
|
||||
* @copyright Copyright 2009-2013 青岛易软天创网络科技有限公司 (QingDao Nature Easy Soft Network Technology Co,LTD www.cnezsoft.com)
|
||||
* @license LGPL (http://www.gnu.org/licenses/lgpl.html)
|
||||
* @author Yidong Wang <yidong@cnezsoft.com>
|
||||
* @package story
|
||||
* @version $Id: close.html.php 4129 2013-01-18 01:58:14Z wwccss $
|
||||
* @link http://www.zentao.net
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/m.header.html.php';?>
|
||||
</div>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<h3><?php echo $story->title;?></h3>
|
||||
<span><?php echo $lang->story->closedReason;?></span>
|
||||
<?php echo html::select('closedReason', $lang->story->reasonList, '', 'onchange="setStory(this.value)"');?>
|
||||
<div id='duplicateStoryBox' class='hidden'>
|
||||
<span><?php echo $lang->story->duplicateStory;?></span>
|
||||
<?php echo html::input('duplicateStory', '');?>
|
||||
</div>
|
||||
<div id='childStoriesBox' class='hidden'>
|
||||
<span><?php echo $lang->story->childStories;?></span>
|
||||
<?php echo html::input('childStories', '');?>
|
||||
</div>
|
||||
<span><?php echo $lang->story->comment;?></span>
|
||||
<?php echo html::textarea('comment', '');?>
|
||||
<p>
|
||||
<?php echo html::submitButton('', "data-inline='true' data-theme='b'");?>
|
||||
<?php echo html::backButton("data-inline='true'");?>
|
||||
</p>
|
||||
</form>
|
||||
<?php include '../../common/view/m.footer.html.php';?>
|
||||
Executable
+50
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/**
|
||||
* The view file of review method of story module of ZenTaoPMS.
|
||||
*
|
||||
* @copyright Copyright 2009-2013 青岛易软天创网络科技有限公司 (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 story
|
||||
* @version $Id: review.html.php 4129 2013-01-18 01:58:14Z wwccss $
|
||||
* @link http://www.zentao.net
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/m.header.html.php';?>
|
||||
</div>
|
||||
<h3><?php echo $story->title?></h3>
|
||||
<form method='post' target='hiddenwin'>
|
||||
<span><?php echo $lang->story->reviewedDate;?></span>
|
||||
<?php echo html::input('reviewedDate', helper::today(), 'class=text-3');?>
|
||||
<span><?php echo $lang->story->reviewResult;?></span>
|
||||
<?php echo html::select('result', $lang->story->reviewResultList, '', 'class=select-3 onchange="switchShow(this.value)"');?>
|
||||
<div id='rejectedReasonBox' class='hidden'>
|
||||
<span><?php echo $lang->story->rejectedReason;?></span>
|
||||
<?php echo html::select('closedReason', $lang->story->reasonList, '', 'class=select-3 onchange="setStory(this.value)"');?>
|
||||
</div>
|
||||
<div id='duplicateStoryBox' class='hidden'>
|
||||
<span><?php echo $lang->story->duplicateStory;?></span>
|
||||
<?php echo html::input('duplicateStory', '', 'class=text-3');?>
|
||||
</div>
|
||||
<div id='childStoriesBox' class='hidden'>
|
||||
<span><?php echo $lang->story->childStories;?></span>
|
||||
<?php echo html::input('childStories', '', 'class=text-3');?>
|
||||
</div>
|
||||
<?php if($story->status == 'changed' or ($story->status == 'draft' and $story->version > 1)):?>
|
||||
<div id='preVersionBox' class='hidden'>
|
||||
<span><?php echo $lang->story->preVersion;?></span>
|
||||
<?php echo html::radio('preVersion', array_combine(range($story->version - 1, 1), range($story->version - 1, 1)), $story->version - 1);?>
|
||||
</div>
|
||||
<?php endif;?>
|
||||
<span><?php echo $lang->story->assignedTo;?></span>
|
||||
<?php echo html::select('assignedTo', $users, $story->lastEditedBy ? $story->lastEditedBy : $story->openedBy, 'class=select-3');?>
|
||||
<span><?php echo $lang->story->reviewedBy;?></span>
|
||||
<?php echo html::input('reviewedBy', $app->user->account . ', ', 'class=text-1');?>
|
||||
<span><?php echo $lang->story->comment;?></span>
|
||||
<?php echo html::textarea('comment', '', "rows='8' class='area-1'");?>
|
||||
<p>
|
||||
<?php echo html::submitButton('', "data-inline='true' data-theme='b'");?>
|
||||
<?php echo html::backButton("data-inline='true'");?>
|
||||
</p>
|
||||
</form>
|
||||
<?php include '../../common/view/m.footer.html.php';?>
|
||||
Executable
+39
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* The mail file of story module of ZenTaoPMS.
|
||||
*
|
||||
* @copyright Copyright 2009-2013 青岛易软天创网络科技有限公司 (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 bug
|
||||
* @version $Id: sendmail.html.php 4129 2013-01-18 01:58:14Z wwccss $
|
||||
* @link http://www.zentao.net
|
||||
*/
|
||||
?>
|
||||
<table width='98%' align='center'>
|
||||
<tr class='header'>
|
||||
<td>
|
||||
STORY #<?php echo $story->id . "=>$story->assignedTo " . html::a(common::getSysURL() . $this->createLink('story', 'view', "storyID=$story->id"), $story->title);?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<fieldset>
|
||||
<legend><?php echo $lang->story->legendSpec;?></legend>
|
||||
<div class='content'>
|
||||
<?php
|
||||
if(strpos($story->spec, 'src="data/upload'))
|
||||
{
|
||||
$story->spec = str_replace('<img src="', '<img src="http://' . $this->server->http_host . $this->config->webRoot, $story->spec);
|
||||
$story->spec = str_replace('<img alt="" src="', '<img src="http://' . $this->server->http_host . $this->config->webRoot, $story->spec);
|
||||
}
|
||||
echo $story->spec;
|
||||
?>
|
||||
</div>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?php include '../../common/view/mail.html.php';?></td>
|
||||
</tr>
|
||||
</table>
|
||||
Executable
+62
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/**
|
||||
* The view file of story module of ZenTaoPMS.
|
||||
*
|
||||
* @copyright Copyright 2009-2013 青岛易软天创网络科技有限公司 (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 story
|
||||
* @version $Id: view.html.php 4728 2013-05-03 06:14:34Z chencongzhi520@gmail.com $
|
||||
* @link http://www.zentao.net
|
||||
*/
|
||||
?>
|
||||
<?php include '../../common/view/m.header.html.php';?>
|
||||
</div>
|
||||
<h3><?php echo "STORY #$story->id $story->title"?></h3>
|
||||
<div>
|
||||
<p><strong><?php echo $lang->story->spec?><strong></p>
|
||||
<?php echo $story->spec?>
|
||||
</div>
|
||||
<div>
|
||||
<p><strong><?php echo $lang->story->verify?><strong></p>
|
||||
<?php echo $story->verify?>
|
||||
</div>
|
||||
<?php include '../../common/view/m.action.html.php'?>
|
||||
<div data-role='footer' data-position='fixed'>
|
||||
<div data-role='navbar'>
|
||||
<ul>
|
||||
<?php
|
||||
$browseLink = $app->session->storyList != false ? $app->session->storyList : $this->createLink('product', 'browse', "productID=$story->product&moduleID=$story->module");
|
||||
$actionLinks = '';
|
||||
ob_start();
|
||||
if($this->story->isClickable($story, 'review'))
|
||||
{
|
||||
echo "<li>";
|
||||
common::printLink('story', 'review', "storyID=$story->id", $lang->story->review);
|
||||
echo '</li>';
|
||||
}
|
||||
if($this->story->isClickable($story, 'activate'))
|
||||
{
|
||||
echo "<li>";
|
||||
common::printLink('story', 'activate', "storyID=$story->id", $lang->story->activate);
|
||||
echo '</li>';
|
||||
}
|
||||
if($this->story->isClickable($story, 'close'))
|
||||
{
|
||||
echo "<li>";
|
||||
common::printLink('story', 'close', "storyID=$story->id", $lang->story->close);
|
||||
echo '</li>';
|
||||
}
|
||||
echo "<li>";
|
||||
common::printLink('story', 'delete', "storyID=$story->id", $lang->delete, 'hiddenwin');
|
||||
echo '</li>';
|
||||
echo "<li>" . html::a($browseLink, $lang->goback) . '</li>';
|
||||
$actionLinks = ob_get_contents();
|
||||
ob_clean();
|
||||
echo $actionLinks;
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<?php include '../../common/view/syntaxhighlighter.html.php';?>
|
||||
<?php include '../../common/view/m.footer.html.php';?>
|
||||
@@ -61,22 +61,6 @@ function setPing()
|
||||
$('#hiddenwin').attr('src', createLink('misc', 'ping'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Set required fields, add star class to them.
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function setRequiredFields()
|
||||
{
|
||||
if(!config.requiredFields) return false;
|
||||
requiredFields = config.requiredFields.split(',');
|
||||
for(i = 0; i < requiredFields.length; i++)
|
||||
{
|
||||
$('#' + requiredFields[i]).after('<span class="star"> * </span>');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set paceholder
|
||||
*
|
||||
@@ -223,7 +207,6 @@ $(document).ready(function()
|
||||
{
|
||||
setForm();
|
||||
|
||||
setRequiredFields();
|
||||
setPlaceholder();
|
||||
|
||||
toggleSearch();
|
||||
|
||||
Reference in New Issue
Block a user