This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
lnapp/views/table.php

34 lines
1.3 KiB
PHP
Raw Permalink Normal View History

<table class="table table-striped table-condensed table-hover" id="list-table<?php echo $jssort ? '-'.$jssort : ''; ?>">
2013-05-07 01:38:28 +00:00
<thead><tr><th><?php echo implode('</th><th>',$th); ?></th></tr></thead>
<tbody>
<?php if ($td) : ?>
<?php foreach ($td as $details) : ?>
<tr><td><?php echo implode('</td><td>',$details['val']); ?></td></tr>
<?php endforeach ?>
<?php if ($other) : ?>
<tr><td>Other</td><td colspan="<?php #echo count($data)-1; ?>"><?php #printf('(%s) %s',$count,$other); ?></td></tr>
<?php endif ?>
<?php else : ?>
<tr><td colspan="<?php echo count($th); ?>">NO records.</td></tr>
2013-05-07 01:38:28 +00:00
<?php endif ?>
</tbody>
</table>
<?php if ($jssort) : ?>
<div class="pager pager<?php echo $jssort ? '-'.$jssort : ''; ?>">
2013-05-07 01:38:28 +00:00
Page: <select class="input-mini gotoPage"></select>
<i class="icon-fast-backward first"></i>
<i class="icon-step-backward prev"></i>
<span class="pagedisplay"></span> <!-- this can be any element, including an input -->
<i class="icon-step-forward next"></i>
<i class="icon-fast-forward last"></i>
<select class="input-mini pagesize">
2013-05-28 11:40:44 +00:00
<option value="10">10</option>
2013-05-07 01:38:28 +00:00
<option selected="selected" value="25">25</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
Items per page
</div>
<?php endif ?>