|
maxious
|
1 |
<?php if (!empty($rows)): ?> |
|
|
2 |
|
|
|
3 |
<script> |
|
|
4 |
|
|
|
5 |
jQuery(document).ready(function() { |
|
|
6 |
jQuery("#<?php echo $table_id;?>").tablesorter(); |
|
|
7 |
}); |
|
|
8 |
|
|
|
9 |
</script> |
|
|
10 |
|
|
|
11 |
<table class="<?php echo $sort_table_class;?> <?php echo $table_class;?>" summary="" id="<?php echo $table_id;?>"> |
|
|
12 |
<?php if (!empty($caption)): ?> |
|
|
13 |
<caption><?php echo $caption;?></caption> |
|
|
14 |
<?php endif;?> |
|
|
15 |
<thead> |
|
|
16 |
<TR> |
|
|
17 |
<?php if (!empty($labels)):?> |
|
|
18 |
<?php foreach ($labels as $label): ?> |
|
|
19 |
<TH scope="<?php echo $th_scope;?>"><?php echo $label;?></TH> |
|
|
20 |
<?php endforeach;?> |
|
|
21 |
<?php endif;?> |
|
|
22 |
</TR> |
|
|
23 |
</thead> |
|
|
24 |
<?php if (!empty($table_footer)): ?> |
|
|
25 |
<tfoot> |
|
|
26 |
<td colspan="<?php echo $col_count;?>"><?php echo $table_footer;?></td> |
|
|
27 |
</tfoot> |
|
|
28 |
<?php endif;?> |
|
|
29 |
<tbody> |
|
|
30 |
<?php foreach ($rows as $row):?> |
|
|
31 |
<TR> |
|
|
32 |
<?php if (!empty($table_row_template)): ?> |
|
|
33 |
<?php include($this->setTemplate($table_row_template));?> |
|
|
34 |
<?php else: ?> |
|
|
35 |
<?php foreach ($row as $item): ?> |
|
|
36 |
<TD><?php echo $item;?></TD> |
|
|
37 |
<?php endforeach;?> |
|
|
38 |
<?php endif;?> |
|
|
39 |
</TR> |
|
|
40 |
<?php endforeach;?> |
|
|
41 |
</tbody> |
|
|
42 |
</table> |
|
|
43 |
|
|
|
44 |
<?php else: ?> |
|
|
45 |
<?php if ($show_error):?> |
|
|
46 |
<div class="owa_status-msg">No data to display.</div> |
|
|
47 |
<?php endif;?> |
|
|
48 |
<?php endif;?> |