* 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
@@ -25,8 +25,11 @@ td.delayed{background: #e84e0f!important; color: white;}
</tr>
</thead>
<?php foreach($tasks as $task):?>
<?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('task', 'view', "taskID={$task->id}")); ?>' <?php echo $appid?>>
<?php
$appid = isset($_GET['entry']) ? "class='app-btn' data-id='{$this->get->entry}'" : '';
$viewLink = $this->createLink('task', 'view', "taskID={$task->id}");
?>
<tr data-url='<?php echo empty($sso) ? $viewLink : $sso . $sign . 'referer=' . base64_encode($viewLink); ?>' <?php echo $appid?>>
<td><?php echo $task->id;?></td>
<td><?php echo zget($lang->task->priList, $task->pri, $task->pri)?></td>
<td title='<?php echo $task->name?>'><?php echo $task->name?></td>
@@ -36,8 +39,6 @@ td.delayed{background: #e84e0f!important; color: white;}
</tr>
<?php endforeach;?>
</table>
<p class='hide block-task-link'><?php echo $listLink;?></p>
<script>
$('.block-task').dataTable();
$('.block-task-link').closest('.panel').find('.panel-heading .more').attr('href', $('.block-task-link').html());
if(typeof(dataTable) == 'function')$('.block-task').dataTable();
</script>