<div id="screen[index]" style="width: 100%;height:100%">
    <div class="kt-portlet kt-portlet--mobile">
        <div class="kt-portlet__body kt-portlet__body--fit">

            <!--begin: Datatable -->
            <div class="kt-datatable kt-datatable--default kt-datatable--brand kt-datatable--loaded" style="">
                <table class="kt-datatable__table" style="min-height: 600px;" id="customer_table_data">
                    <thead class="kt-datatable__head">
                        <tr class="dnd-moved kt-datatable__row" style="left: 0px;">
                        <th data-field="id" class="kt-datatable__cell" id="col_id" style="display: none;">
                            ID<span><i class="fa"></i></span>
                        </th>
                        <th data-field="code" class="kt-datatable__cell" style="width: 10%;" id="col_code" name="customer_sort_column" onclick="sortColumn(this,'col_code','asc');">
                            Code<span><i class="fa"></i></span>
                        </th>
                        <th data-field="name" class="kt-datatable__cell" style="width: 25%;" id="col_name" name="customer_sort_column" onclick="sortColumn(this,'col_name','desc');">
                            Name<span><i class="fa fa-sort-up"></i></span>
                        </th>
                        <th data-field="status" class="kt-datatable__cell" style="width: 10%;" id="col_status" name="customer_sort_column" onclick="sortColumn(this,'col_status','asc');">
                            Status<span><i class="fa"></i></span>
                        </th>
                        <th data-field="activejob" class="kt-datatable__cell" style="width: 40%;" name="customer_sort_column" id="col_activejob" onclick="sortTable(this,4);">
                            Active Job<span><i class="fa"></i></span>
                        </th>
                        <th data-field="filter" class="kt-datatable__cell" style="width:2%;" id="col_filter">
                            <button type="button" class="btn btn-default btn-sm btn-icon btn-icon-md" id="btnFilterCustomer" onclick="filterRow('customer-row-filter',this,true);"><i class="fa fa-filter"></i></button>
                        </th>
                        <th data-field="new" class="kt-datatable__cell" style="width:2%;" id="col_new">
                            <button type="button" class="btn btn-success btn-sm btn-icon btn-icon-md" id="btnNewRecord" onclick="newCustomer();"><i class="fa fa-plus"></i></button>
                        </th>
                        <th data-field="blank" class="kt-datatable__cell" id="col_blank">&nbsp;</th>
                    </tr>
                    </thead>
                    <tbody class="kt-datatable__body" style="" id="customer-list-table">
                        <tr data-row="customer-rows-0" class="dnd-moved kt-datatable__row" style="left: 0px;" id="customer-row-filter">
                            <td data-field="id" class="kt-datatable__cell" id="col_id" style="display: none;">&nbsp;</td>
                            <td data-field="code" class="kt-datatable__cell" id="col_code">
                                <input type="text" class="form-control" name="customer_input_filter" id="txtcolcode" onkeyup="filterData(this,1);" />
                            </td>
                            <td data-field="name" class="kt-datatable__cell" id="col_name">
                                <input type="text" class="form-control" name="customer_input_filter" id="txtcolname" onkeyup="filterData(this,2);" />
                            </td>
                            <td data-field="status" class="kt-datatable__cell" id="col_status">
                                <input type="text" class="form-control" name="customer_input_filter" id="txtcolstatus" onkeyup="filterData(this,3);" />
                            </td>
                            <td data-field="activejob" class="kt-datatable__cell" id="col_activejob">
                                <input type="text" class="form-control" name="customer_input_filter" id="txtcolactivejob" onkeyup="filterData(this,4);" />
                            </td>
                            <td data-field="filter" class="kt-datatable__cell" id="col_filter">&nbsp;</td>
                            <td data-field="new" class="kt-datatable__cell" id="col_new">&nbsp;</td>
                            <td data-field="blank" class="kt-datatable__cell" id="col_blank">&nbsp;</td>
                        </tr>
                    </tbody>
                </table>
            </div>

            <!--end: Datatable -->
        </div>
        <!-- button to trigger the things -->
        <button id="activatebuttonscreen[index]" onclick='reactivatescreen[index]();' style="display: none;">activate screen button</button>
    </div>
</div>
<div id="screen[index]a" style="width: 100%;height:100%"> 

</div>
<script>
    // $('.table').dragableColumns();
    $(document).ready(function () {
        sorts = "";
        filterRow("customer-row-filter",this,false);
        filterCustomer();
    });
</script>
<script type="text/javascript">
    function reactivatescreen[index]() {
        swal2("activation screen [index]");
    }
</script>