
<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" id="jobquotation_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="10%" data-field="jobnumber" class="kt-datatable__cell" name="jobquotation_sort_column" id="col_jobnumber" onclick="sortColumn(this,'col_jobnumber','asc');">
                                            Quotation Number<span><i class="fa"></i></span>
                                        </th>
                                        <th width="25%" data-field="jobtitle" class="kt-datatable__cell" name="jobquotation_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="8%" data-field="jobtype" class="kt-datatable__cell" name="jobquotation_sort_column" id="col_jobtype" onclick="sortColumn(this,'col_jobtype','asc');">
                                            Job Type<span><i class="fa"></i></span>
                                        </th>
                                        <th width="25%" data-field="customer" class="kt-datatable__cell" name="jobquotation_sort_column" id="col_customer" onclick="sortColumn(this,'col_customer','asc');">
                                            Customer<span><i class="fa"></i></span>
                                        </th>
                                        <th width="10%" data-field="status" class="kt-datatable__cell" name="jobquotation_sort_column" id="col_statusplan" onclick="sortColumn(this,'col_statusplan','asc');">
                                            Status<span><i class="fa"></i></span>
                                        </th>
                                        <th width="2%" 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('jobquotation_row_filter',this,true);"><i class="fa fa-filter"></i></button>
                                        </th>
                                        <th width="2%" data-field="new" class="kt-datatable__cell" id="col_new">
											<button type="button" class="btn btn-success btn-sm btn-icon btn-icon-md" id="btnNewRecord" onclick="showAddJobQuotation();"><i class="fa fa-plus"></i></button>
                                        </th>
										<th width="2%" data-field="print" class="kt-datatable__cell" id="col_print">&nbsp;</th>
										<th width="2%" data-field="export" class="kt-datatable__cell" id="col_export">&nbsp;</th>
										<th data-field="blank" class="kt-datatable__cell" id="col_blank">&nbsp;</th>
                                    </tr>
                                </thead>
                                <tbody class="kt-datatable__body" style="" id="job-quotation-list-table">
                                    <tr class="dnd-moved kt-datatable__row" style="left: 0px;" id="jobquotation_row_filter">
                                        <td data-field="id" class="kt-datatable__cell" id="col_id" style="display: none;">&nbsp;</td>
                                        <td data-field="jobnumber" class="kt-datatable__cell" id="col_jobnumber" >
                                            <input type="text" class="form-control" name="jobquotation_input_filter" id="txtcoljobnumber" onkeyup="filterData(this,1);" />
                                        </td>
                                        <td data-field="jobtitle" class="kt-datatable__cell" id="col_jobtitle">
                                            <input type="text" class="form-control" name="jobquotation_input_filter" id="txtcoljobtitle" onkeyup="filterData(this,2);" />
                                        </td>
                                        <td data-field="jobtype" class="kt-datatable__cell" id="col_jobtype">
                                            <input type="text" class="form-control" name="jobquotation_input_filter" id="txtcoljobtype" onkeyup="filterData(this,3);" />
                                        </td>
                                        <td data-field="customer" class="kt-datatable__cell" id="col_customer">
                                            <input type="text" class="form-control" name="jobquotation_input_filter" id="txtcolcustomer" onkeyup="filterData(this,4);" />
                                        </td>
                                        <td data-field="status" class="kt-datatable__cell" id="col_statusplan">
                                            <input type="text" class="form-control" name="jobquotation_input_filter" id="txtcolstatusplan" value="Incomplete" onkeyup="filterData(this,5);" />
                                        </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="print" class="kt-datatable__cell" id="col_print">&nbsp;</td>
										<td data-field="export" class="kt-datatable__cell" id="col_export">&nbsp;</td>
										<td data-field="blank" class="kt-datatable__cell" id="col_blank">&nbsp;</td>
                                    </tr>
                                </tbody>
                            </table>                            
                        </div>
                        <!--end: Datatable -->
                    </div>                  

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

<!-- Upload Document Modal HTML -->
<div class="modal fade" id="uploadDocJobQuotationView" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-xl" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLabel">Document Detail</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                </button>
            </div>
            <div class="modal-body">
                <div id="modaluploadDocJobQuotationContent">
                </div>
            </div>
            <div class="modal-footer">
                <div id="modaluploadDocJobQuotationButtonContent">
                </div>
            </div>
        </div>
    </div>
</div>

    <!-- 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('jobquotation_row_filter',this,false);
    filterJobQuotation();
});
</script>

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