Datatables

This commit is contained in:
root 2014-03-01 13:42:53 -07:00
parent 02f4f967b1
commit dfc71bfeeb
8 changed files with 19 additions and 14 deletions

5
public/site_assets/bootstrap/js/mpos.js Normal file → Executable file
View File

@ -16,3 +16,8 @@ $(function() {
}
})
})
// Make all table with "datatable" class a datatable
$(document).ready(function() {
$('.datatable').dataTable();
});

4
public/templates/bootstrap/master.tpl Normal file → Executable file
View File

@ -29,10 +29,10 @@
<script src="{$PATH}/js/jquery-2.0.3.min.js"></script>
<script src="{$PATH}/js/bootstrap.min.js"></script>
<script src="{$PATH}/js/bootstrap-switch.min.js"></script>
<script src="{$PATH}/js/plugins/dataTables/jquery.dataTables.js"></script>
<script src="{$PATH}/js/plugins/dataTables/dataTables.bootstrap.js"></script>
<script src="{$PATH}/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<!-- Page-Level Plugin Scripts - Morris -->
<script src="{$PATH}/js/plugins/morris/raphael-2.1.0.min.js"></script>
<script src="{$PATH}/js/plugins/morris/morris.js"></script>

View File

@ -16,4 +16,4 @@
{include file="statistics/round/block_stats.tpl"}
{include file="statistics/round/round_shares.tpl"}
</div>
{/if}
{/if}

View File

@ -3,9 +3,9 @@
<div class="panel-heading">
<i class="fa fa-refresh fa-fw"></i> PPLNS Round Shares
</div>
<div class="panel-body no-padding">
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover">
<table class="table table-striped table-bordered table-hover datatable">
<thead>
<tr>
<th>Rank</th>

View File

@ -4,9 +4,9 @@
<div class="panel-heading">
<i class="fa fa-credit-card fa-fw"></i> Round Transactions
</div>
<div class="panel-body no-padding">
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover">
<table class="table table-striped table-bordered table-hover datatable">
<thead>
<tr>
<th >User Name</th>

View File

@ -4,9 +4,9 @@
<div class="panel-heading">
<i class="fa fa-refresh fa-fw"></i> Round Statistics
</div>
<div class="panel-body no-padding">
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover">
<table class="table table-striped table-bordered table-hover datatable">
<thead>
<tr>
<th >User Name</th>

View File

@ -3,9 +3,9 @@
<div class="panel-heading">
<i class="fa fa-refresh fa-fw"></i> Round Shares
</div>
<div class="panel-body no-padding">
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover">
<table class="table table-striped table-bordered table-hover datatable">
<thead>
<tr>
<th>Rank</th>

View File

@ -3,15 +3,15 @@
<div class="panel-heading">
Round Transactions
</div>
<div class="panel-body no-padding">
<div class="panel-body">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover">
<table class="table table-striped table-bordered table-hover datatable">
<thead>
<tr>
<th>User Name</th>
<th>Type</th>
<th>Round Shares</th>
<th scope="col">Round %</th>
<th>Round %</th>
<th>Amount</th>
</tr>
</thead>