* adjust the goback logic.

This commit is contained in:
wangchunsheng
2010-04-13 06:59:21 +00:00
parent a75edd381f
commit 02eecaf871
6 changed files with 20 additions and 5 deletions

View File

@@ -37,7 +37,10 @@
</tr>
<tr>
<td colspan='2' class='a-center'>
<?php echo html::submitButton() . html::linkButton($lang->goback, inlink('view', "storyID=$story->id"));?>
<?php
echo html::submitButton();
echo html::linkButton($lang->goback, $app->session->storyList ? $app->session->storyList : inlink('view', "storyID=$story->id"));
?>
</td>
</tr>
</table>

View File

@@ -15,6 +15,7 @@
<th><?php echo $lang->task->consumed;?></th>
<th><?php echo $lang->task->left;?></th>
</tr>
<?php if(isset($story->tasks[$projectID])):?>
<?php foreach($story->tasks[$projectID] as $task):?>
<tr class='a-center'>
<td><?php echo $task->id;?></td>
@@ -25,6 +26,7 @@
<td><?php echo $task->left;?></td>
</tr>
<?php endforeach;?>
<?php endif;?>
</table>
</td>
</tr>

View File

@@ -48,7 +48,12 @@
<td><?php echo $this->fetch('file', 'buildform', 'filecount=2');?></td>
</tr>
</table>
<div class='a-center'><?php echo html::submitButton() . html::linkButton($lang->goback, inlink('view', "storyID=$story->id"));?></div>
<div class='a-center'>
<?php
echo html::submitButton();
echo html::linkButton($lang->goback, $app->session->storyList ? $app->session->storyList : inlink('view', "storyID=$story->id"));
?>
</div>
<?php include './affected.html.php';?>
<?php include '../../common/view/action.html.php';?>
</form>

View File

@@ -66,7 +66,7 @@ function setStory(reason)
<tr>
<td colspan='2' class='a-center'>
<?php echo html::submitButton();?>
<?php echo html::linkButton($lang->goback, inlink('view', "storyID=$story->id"));?>
<?php echo html::linkButton($lang->goback, $app->session->storyList ? $app->session->storyList : inlink('view', "storyID=$story->id"));?>
</td>
</tr>
</table>

View File

@@ -45,7 +45,12 @@
<legend><?php echo $lang->story->comment;?></legend>
<?php echo html::textarea('comment', '', "rows='5' class='area-1'");?>
</fieldset>
<div class='a-center'><?php echo html::submitButton() . html::linkButton($lang->goback, inlink('view', "storyID=$story->id"));?></div>
<div class='a-center'>
<?php
echo html::submitButton();
echo html::linkButton($lang->goback, $app->session->storyList ? $app->session->storyList : inlink('view', "storyID=$story->id"));
?>
</div>
<?php include '../../common/view/action.html.php';?>
</div>
</div>

View File

@@ -116,7 +116,7 @@ function setStory(reason)
<tr>
<td colspan='2' class='a-center'>
<?php echo html::submitButton();?>
<?php echo html::linkButton($lang->goback, inlink('view', "storyID=$story->id"));?>
<?php echo html::linkButton($lang->goback, $app->session->storyList ? $app->session->storyList : inlink('view', "storyID=$story->id"));?>
</td>
</tr>
</table>