* Adjust the code.

This commit is contained in:
hufangzhou
2021-01-25 17:41:25 +08:00
parent fef3a4c410
commit 3c3e1d4348
2 changed files with 7 additions and 2 deletions
+3
View File
@@ -1359,6 +1359,9 @@ class story extends control
$this->product->setMenu($products, $productID, $branch);
}
/* Save session. */
$this->session->set('storyList', $this->app->getURI(true));
/* Load pager and get tracks. */
$this->app->loadClass('pager', $static = true);
$pager = new pager($recTotal, $recPerPage, $pageID);
+4 -2
View File
@@ -17,6 +17,8 @@
</div>
<?php else:?>
<?php $style = $this->app->rawModule == 'projectstory' ? "style='overflow: unset;'" : '';?>
<?php $openModel = $this->app->rawModule == 'projectstory' ? 'project' : 'product';?>
<?php $module = $this->app->rawModule == 'projectstory' ? 'projectstory' : 'story';?>
<div class='main-table' data-ride="table">
<table class='table table-bordered' id="trackList">
<thead>
@@ -48,7 +50,7 @@
<?php $rowspan = count($track);?>
<tr>
<td <?php if($rowspan != 0) echo "rowspan=" . $rowspan;?> class='requirement'>
<?php echo $key == 'noRequirement' ? $lang->story->noRequirement : html::a($this->createLink('story', 'view', "storyID=$requirement->id"), $requirement->title, '', "title=$requirement->title");?>
<?php echo $key == 'noRequirement' ? $lang->story->noRequirement : html::a($this->createLink($module, 'view', "storyID=$requirement->id"), $requirement->title, '', "title=$requirement->title data-group='$openModel'");?>
<?php if($key != 'noRequirement'):?>
<span class="label label-primary label-outline"><?php echo zget($lang->story->statusList, $requirement->status);?></span>
<?php endif;?>
@@ -57,7 +59,7 @@
<?php $i = 1;?>
<?php foreach($track as $storyID => $story):?>
<?php if($i != 1) echo '<tr>';?>
<td style='padding-left: 10px;'><?php echo html::a($this->createLink('story', 'view', "storyID=$storyID"), $story->title, '',"title='$story->title'");?></td>
<td style='padding-left: 10px;'><?php echo html::a($this->createLink($module, 'view', "storyID=$storyID"), $story->title, '',"title='$story->title' data-group='$openModel'");?></td>
<td>
<?php foreach($story->design as $designID => $design):?>
<?php echo html::a($this->createLink('design', 'view', "designID=$designID"), $design->name, '', "title='$design->name'") . '<br/>';?>