* change for print blok.

This commit is contained in:
wangyidong
2016-04-11 15:48:58 +08:00
parent 13f7011a05
commit 13f1fd6bf7
17 changed files with 321 additions and 67 deletions
+6 -5
View File
@@ -20,8 +20,11 @@
</tr>
</thead>
<?php foreach($bugs as $bug):?>
<?php $appid = isset($_GET['entry']) ? "class='app-btn' data-id='{$this->get->entry}'" : ''?>
<tr data-url='<?php echo $sso . $sign . 'referer=' . base64_encode($this->createLink('bug', 'view', "bugID={$bug->id}")); ?>' <?php echo $appid?>>
<?php
$appid = isset($_GET['entry']) ? "class='app-btn' data-id='{$this->get->entry}'" : '';
$viewLink = $this->createLink('bug', 'view', "bugID={$bug->id}");
?>
<tr data-url='<?php echo empty($sso) ? $viewLink : $sso . $sign . 'referer=' . base64_encode($viewLink); ?>' <?php echo $appid?>>
<td><?php echo $bug->id;?></td>
<td><?php echo zget($lang->bug->severityList, $bug->severity, $bug->severity)?></td>
<td><?php echo zget($lang->bug->priList, $bug->pri, $bug->pri)?></td>
@@ -29,8 +32,6 @@
</tr>
<?php endforeach;?>
</table>
<p class='hide block-bug-link'><?php echo $listLink;?></p>
<script>
$('.block-bug').dataTable();
$('.block-bug-link').closest('.panel').find('.panel-heading .more').attr('href', $('.block-bug-link').html());
if(typeof(dataTable) == 'function')$('.block-bug').dataTable();
</script>