diff options
author | plumbeo <plumbeo@users.noreply.github.com> | 2016-12-21 22:37:23 +0100 |
---|---|---|
committer | Steve Beaver <sbeaver@netgate.com> | 2016-12-21 20:50:15 -0500 |
commit | 1f40cc7d3ff1de331745a1ff848eb59c84d0f76f (patch) | |
tree | 2d2f0cd1992708e9650b5734e533265db0c72b5d /src/usr/local/www/status_captiveportal_voucher_rolls.php | |
parent | 3dc2d0f17790001c00ab846e844cd8cab4f5af53 (diff) | |
download | pfsense-1f40cc7d3ff1de331745a1ff848eb59c84d0f76f.zip pfsense-1f40cc7d3ff1de331745a1ff848eb59c84d0f76f.tar.gz |
Captive portal: convert tables to sortable tables
Convert the used vouchers table from the old GET order method to a sortable table, and make the other tables (allowed IPs, hostnames, zones) sortable too.
Diffstat (limited to 'src/usr/local/www/status_captiveportal_voucher_rolls.php')
-rw-r--r-- | src/usr/local/www/status_captiveportal_voucher_rolls.php | 56 |
1 files changed, 21 insertions, 35 deletions
diff --git a/src/usr/local/www/status_captiveportal_voucher_rolls.php b/src/usr/local/www/status_captiveportal_voucher_rolls.php index 2294fdb..091f1cb 100644 --- a/src/usr/local/www/status_captiveportal_voucher_rolls.php +++ b/src/usr/local/www/status_captiveportal_voucher_rolls.php @@ -75,17 +75,17 @@ display_top_tabs($tab_array); ?> <div class="table-responsive"> - <table class="table table-striped table-hover table-condensed"> - <thead> - <tr> - <th><?=gettext("Roll#"); ?></th> - <th><?=gettext("Minutes/Ticket"); ?></th> - <th><?=gettext("# of Tickets"); ?></th> - <th><?=gettext("Comment"); ?></th> - <th><?=gettext("used"); ?></th> - <th><?=gettext("active"); ?></th> - <th><?=gettext("ready"); ?></th> - </tr> + <table class="table table-striped table-hover table-condensed sortable-theme-bootstrap" data-sortable> + <thead> + <tr> + <th><?=gettext("Roll#"); ?></th> + <th><?=gettext("Minutes/Ticket"); ?></th> + <th><?=gettext("# of Tickets"); ?></th> + <th><?=gettext("Comment"); ?></th> + <th><?=gettext("used"); ?></th> + <th><?=gettext("active"); ?></th> + <th><?=gettext("ready"); ?></th> + </tr> </thead> <tbody> <?php @@ -98,35 +98,21 @@ display_top_tabs($tab_array); /* used also count active vouchers, remove them */ $used = $used - $active; ?> - <tr> - <td> - <?=htmlspecialchars($rollent['number'])?> - </td> - <td> - <?=htmlspecialchars($rollent['minutes'])?> - </td> - <td> - <?=htmlspecialchars($rollent['count'])?> - </td> - <td> - <?=htmlspecialchars($rollent['comment'])?> - </td> - <td> - <?=htmlspecialchars($used)?> - </td> - <td> - <?=htmlspecialchars($active)?> - </td> - <td> - <?=htmlspecialchars($ready)?> - </td> - </tr> + <tr> + <td><?=htmlspecialchars($rollent['number'])?></td> + <td><?=htmlspecialchars($rollent['minutes'])?></td> + <td><?=htmlspecialchars($rollent['count'])?></td> + <td><?=htmlspecialchars($rollent['comment'])?></td> + <td><?=htmlspecialchars($used)?></td> + <td><?=htmlspecialchars($active)?></td> + <td><?=htmlspecialchars($ready)?></td> + </tr> <?php $i++; endforeach; unlock($voucherlck)?> - </tbody> + </tbody> </table> </div> <?php include("foot.inc"); |