Rev 30185 | Rev 30973 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<div class="col-lg-12"><table class="table table-border table-condensed table-bordered" id="commitment-table" style="width:100%"><thead class="row htable" style="background:#F5F5F5;"><tr style="color:black;"><th>Committed By</th><th>Partner Name</th><th>Col_Tgt (<span id = "coltgt"> </span>)</th><th>Col_Ach (<span id = "colach"> </span>)</th><th>Samsung_Tgt</th><th>Samsung_Ach</th><th>Oppo_Tgt</th><th>Oppo_Ach</th><th>Vivo_Tgt</th><th>Vivo_Ach</th><th>Itel_Tgt</th><th>Itel_Ach</th><th>Almost_New_Tgt</th><th>Almost_New_Ach</th><th>Others_Tgt</th><th>Others_Ach</th></tr></thead><tbody>#foreach($commitment in $commitments )<tr>#parse("team-commitment-index.vm")</tr>#end</tbody></table></div><script type="text/javascript">$(document).ready(function() {var table = $('#commitment-table').DataTable({"scrollX": true,"bPaginate" : true,"bLengthChange" : true,"bFilter" : true,"bInfo" : false,"bAutoWidth" : false,"pageLength": 100,});datatableSum();table.on('search.dt', function () {console.log('Currently applied global search: ' + table.search());datatableSum();});});function datatableSum() {var col_tgt_sum = $('#commitment-table').DataTable().column(2,{page:'current'}).data().sum();$('#coltgt').html(col_tgt_sum);var col_acv_sum = $('#commitment-table').DataTable().column(3,{page:'current'}).data().sum();console.log(col_acv_sum)$('#colach').html(col_acv_sum);}</script>