
<div id="screen[index]" > 
    
    <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="jobplan_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 width="8%" data-field="jobnumber" class="kt-datatable__cell" name="jobplan_sort_column" id="col_jobnumber" onclick="sortColumn(this,'col_jobnumber','asc');">
                                            Job Plan No.<span><i class="fa"></i></span>
                                        </th>
                                        <th width="25%" data-field="jobtitle" class="kt-datatable__cell" name="jobplan_sort_column" id="col_jobtitle" onclick="sortColumn(this,'col_jobtitle','desc');">
                                            Job Title<span><i class="fa fa-sort-up"></i></span>
                                        </th>
                                        <th width="6%" data-field="jobtype" class="kt-datatable__cell" name="jobplan_sort_column" id="col_jobtype" onclick="sortColumn(this,'col_jobtype','asc');">
                                            Job Type<span><i class="fa"></i></span>
                                        </th>
                                        <th width="14%" data-field="customer" class="kt-datatable__cell" name="jobplan_sort_column" id="col_customer" onclick="sortColumn(this,'col_customer','asc');">
                                            Customer<span><i class="fa"></i></span>
                                        </th>
                                        <th width="8%" data-field="status" class="kt-datatable__cell" name="jobplan_sort_column" id="col_statusplan" onclick="sortColumn(this,'col_statusplan','asc');">
                                            Status<span><i class="fa"></i></span>
                                        </th>
                                        <th width="20%" data-field="bill" class="kt-datatable__cell" name="jobplan_sort_column" id="col_bill">
                                            Bill<span><i class="fa"></i></span>
                                        </th>

                                        <!-- <th width="10%" data-field="actions" class="kt-datatable__cell">
                                            <span>Actions</span>
                                        </th> -->
                                        <th width="17%" data-field="filter" class="kt-datatable__cell" id="col_filter">
                                            <button type="button" class="btn btn-default btn-sm btn-icon btn-icon-md" id="btnFilterColumn" onclick="filterRow('jobcentre_row_filter',this,true);"><i class="fa fa-filter"></i></button>
                                        </th>
                                    </tr>
                                </thead>
                                <tbody class="kt-datatable__body" style="" id="job-centre-list-table">
                                    <tr class="dnd-moved kt-datatable__row" style="left: 0px;" id="jobcentre_row_filter">
                                        <td data-field="id" class="kt-datatable__cell" id="col_id" style="display: none;">&nbsp;</td>
                                        <td width="8%" data-field="jobnumber" class="kt-datatable__cell" id="col_jobnumber">
                                            <input type="text" class="form-control" name="jobplan_input_filter" id="txtcoljobnumber" onkeyup="filterData(this,1);" />
                                        </td>
                                        <td width="25%" data-field="jobtitle" class="kt-datatable__cell" id="col_jobtitle">
                                            <input type="text" class="form-control" name="jobplan_input_filter" id="txtcoljobtitle" onkeyup="filterData(this,2);" />
                                        </td>
                                        <td width="6%" data-field="jobtype" class="kt-datatable__cell" id="col_jobtype">
                                            <input type="text" class="form-control" name="jobplan_input_filter" id="txtcoljobtype" onkeyup="filterData(this,3);" />
                                        </td>
                                        <td width="14%" data-field="customer" class="kt-datatable__cell" id="col_customer">
                                            <input type="text" class="form-control" name="jobplan_input_filter" id="txtcolcustomer" onkeyup="filterData(this,4);" />
                                        </td>
                                        <td width="8%" data-field="status" class="kt-datatable__cell" id="col_statusplan">
                                            <input type="text" class="form-control" name="jobplan_input_filter" id="txtcolstatusplan" value="Incomplete" onkeyup="filterData(this,5);" />
                                        </td>
                                        <td width="20%" data-field="bill" class="kt-datatable__cell" id="col_bill">
                                            <input type="text" class="form-control" name="jobplan_input_filter" id="txtcolbill" onkeyup="filterData(this,6);" />
                                        </td>

                                        <!-- <td width="10%" data-field="actions" class="kt-datatable__cell" style="width:125px;" id="col_action">&nbsp;</td> -->
                                        <td width="14%" data-field="filter" class="kt-datatable__cell" id="col_filter">&nbsp;</td>
                                    </tr>
                                </tbody>
                            </table>
                            
                        </div>
                    </div>                  

                <!--end::body-->
    </div>

            <!--end::Portlet-->

    <!-- button to trigger the things -->
    <button id="activatebuttonscreen[index]" onclick='reactivatescreen[index]();' style="display: none;">activate screen button</button>
</div>
<div id="screen[index]a" > 
</div>
<!-- the function index that you want to run -->
<script>
$(document).ready(function () {
    sorts = "";
    filterRow('jobcentre_row_filter',this,false);
    filterJobCentre();
});
</script>

<script type="text/javascript">
    function reactivatescreen[index]() {
        swal2("activation screen [index]");
    }
</script>