<commit_before><? $this->load->view('_head'); ?>
<link href="<?=base_url()?>assets/css/simple-side-bar.css" rel="stylesheet" type="text/css" />
<div id="wrapper" class="">
  <div id="sidebar-wrapper">
    <? $this->load->view(active_module().'/_navbar'); ?>
  </div>
  <div id="page-content-wrapper">
    <div class="content">
    <!-- content -->
      <ul class="nav nav-tabs">
        <li class="active">
          <a href="#"><strong>Jurnal - Ketetapan </strong></a>
        </li>
      </ul>
      <?=msg_block();?>
      <table class="table" id="table1">
        <thead>
          <tr>
            <th><input type="checkbox"id="select_all" name="select_all"></th>
            <th>No</th>
            <th>Tanggal</th>
            <th>NOPD</th>
            <th>Wajib Pajak/Objek Pajak</th>
            <th>Rekening</th>
            <th>Pokok</th>
            <th>Rekening</th>
            <th>Denda</th>
            <th>Bunga</th>
            <th>Posted</th>
          </tr>
        </thead>
        <tbody>
        </tbody>
      </table>
    </div>
  </div>
</div>
<? $this->load->view('_foot'); ?>
<script>
function addCommas(nStr)
{
    nStr += '';
    x = nStr.split('.');
    x1 = x[0];
    x2 = x.length > 1 ? '.' + x[1] : '';
    var rgx = /(\d+)(\d{3})/;
    while (rgx.test(x1)) {
        x1 = x1.replace(rgx, '$1' + ',' + '$2');
    }
    return x1 + x2;
}


$(document).ready(function() {
  var oTable;
  var rows_selected = [];

  oTable = $('#table1').DataTable({
    paginationType: "full_numbers",
    dom: '<"toolbar">flrtip',
    processing: true,
    serverSide: true,
    ajaxSource: "<? echo active_module_url($controller); ?>grid/",

    order: [[ 1, "asc" ]],
        columns: [
            { data: "id",
                render: function ( data, type, row ) {
                        return '<input type="checkbox" class="editor-active" value="'+data.id+'">';
                    }},
            { data: "nomor_tagihan" },
            { data: "tanggal" },
            { data: "nopd" },
            { data: "customernm" },
            { data: "rekening_pokok" },
            { data: "pokok",
                render: function ( data, type, row ) {
                        return addCommas(data.pokok);
                }},
            { data: "rekening_denda" },
            { data: "denda",
                render: function ( data, type, row ) {
                        return addCommas(data.denda);
                }},
            { data: "bunga"
                render: function ( data, type, row ) {
                        return addCommas(data.bunga);
                }},
            { data: "posted" }
            ],
      columnDefs: [ {
        orderable: false,
        visible: true,
        className: 'select-checkbox',
        targets:   0
        }],

      rowCallback: function(row, data, dataIndex){
         var rowId = data.id;
         //console.log('id:'.rowId);
         if($.inArray(rowId, rows_selected) !== -1){
            $(row).find('input[type="checkbox"]').prop('checked', true);
            $(row).addClass('selected');<commit_msg>comma<commit_after><? $this->load->view('_head'); ?>
<link href="<?=base_url()?>assets/css/simple-side-bar.css" rel="stylesheet" type="text/css" />
<div id="wrapper" class="">
  <div id="sidebar-wrapper">
    <? $this->load->view(active_module().'/_navbar'); ?>
  </div>
  <div id="page-content-wrapper">
    <div class="content">
    <!-- content -->
      <ul class="nav nav-tabs">
        <li class="active">
          <a href="#"><strong>Jurnal - Ketetapan </strong></a>
        </li>
      </ul>
      <?=msg_block();?>
      <table class="table" id="table1">
        <thead>
          <tr>
            <th><input type="checkbox"id="select_all" name="select_all"></th>
            <th>No</th>
            <th>Tanggal</th>
            <th>NOPD</th>
            <th>Wajib Pajak/Objek Pajak</th>
            <th>Rekening</th>
            <th>Pokok</th>
            <th>Rekening</th>
            <th>Denda</th>
            <th>Bunga</th>
            <th>Posted</th>
          </tr>
        </thead>
        <tbody>
        </tbody>
      </table>
    </div>
  </div>
</div>
<? $this->load->view('_foot'); ?>
<script>
function addCommas(nStr)
{
    nStr += '';
    x = nStr.split('.');
    x1 = x[0];
    x2 = x.length > 1 ? '.' + x[1] : '';
    var rgx = /(\d+)(\d{3})/;
    while (rgx.test(x1)) {
        x1 = x1.replace(rgx, '$1' + ',' + '$2');
    }
    return x1 + x2;
}


$(document).ready(function() {
  var oTable;
  var rows_selected = [];

  oTable = $('#table1').DataTable({
    paginationType: "full_numbers",
    dom: '<"toolbar">flrtip',
    processing: true,
    serverSide: true,
    ajaxSource: "<? echo active_module_url($controller); ?>grid/",

    order: [[ 1, "asc" ]],
        columns: [
            { data: "id",
              render: function ( data, type, row ) {
                        return '<input type="checkbox" class="editor-active" value="'+data.id+'">';
                    }},
            { data: "nomor_tagihan" },
            { data: "tanggal" },
            { data: "nopd" },
            { data: "customernm" },
            { data: "rekening_pokok" },
            { data: "pokok",
              render: function ( data, type, row ) {
                        return addCommas(data.pokok);
                }},
            { data: "rekening_denda" },
            { data: "denda",
                render: function ( data, type, row ) {
                        return addCommas(data.denda);
                }},
            { data: "bunga",
              render: function ( data, type, row ) {
                        return addCommas(data.bunga);
                }},
            { data: "posted" }
            ],
      columnDefs: [ {
        orderable: false,
        visible: true,
        className: 'select-checkbox',
        targets:   0
        }],

      rowCallback: function(row, data, dataIndex){
         var rowId = data.id;
         //console.log('id:'.rowId);
         if($.inArray(rowId, rows_selected) !== -1){
            $(row).find('input[type="checkbox"]').prop('checked', true);
            $(row).addClass('selected');
{'fraction_non_alphanumeric': 0.19396201915273495, 'fraction_numerical': 0.005843207271546827, 'mean_word_length': 1.6617710583153347, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 133, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5145810', 'n_tokens_mistral': 2073, 'n_tokens_neox': 2009, 'n_words': 363}