<form action="externalMaintenanceGoReport.php?do=all" method="post" class="form-horizontal">
    <div class="row">
        <div class="col-lg-12">
            <div class="panel panel-default panel-m">
                <div class="panel-heading">
                    <h6 class="text-center"><strong> بحث </strong> </h6>
                </div>
                <div class="panel-body">
                    <div class="form-group">
                        <div class="col-lg-2">
                            <label class="sr-only">اسم المورد</label>
                        </div>
                        <div class="col-lg-4">
                            <select class="select2 wdt300"  name="supplierid" id="supplierid" >
                                <option value="-1">  اختر مورد </option>

                                {foreach $allSuppliers as $mysupplier}


                                <option value="{$mysupplier->supplierid}">{$mysupplier->suppliername}</option>


                                {/foreach}


                            </select>
                        </div>
                        <br/>
                    </div>
                    <br/>

                    <div class="form-group">
                        <div class="col-lg-2">
                            <label class="sr-only">من التاريخ</label>
                        </div>
                        <div class="col-lg-4">
                            <input type="text" class="form-control awdatepicker" autocomplete="off"   data-date-format="yyyy-mm-dd" name="from" >
                        </div>
                    </div>



                    <div class="form-group">

                        <div class="col-lg-2">
                            <label class="sr-only">إلى التاريخ</label>
                        </div>
                        <div class="col-lg-4">
                            <input type="text" class="form-control awdatepicker" autocomplete="off"   data-date-format="yyyy-mm-dd" name="to" >
                        </div>
                        <button type="submit" class="btn btn-primary">بحث</button>
                    </div>





                </div>
            </div>
        </div>
    </div>


</form>

<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default panel-m">
            <div class="panel-heading">
                <h6 class="text-center"><strong> صيانة خارجية ذهاب</strong> </h6>
            </div>
            <div class="panel-body">
                <div class="table-responsive">

                    <table class="table table-condensed table-black">
                        <thead>
                            <tr>
                                <td><strong> اسم المنتج</strong></td>
                                <td><strong> اسم المورد</strong></td>
                                <td><strong> السيريال الخاص</strong></td>
                                <td><strong> السيريال</strong></td>
                                <td><strong> تقرير الفحص</strong></td>

                            </tr>

                        </thead>

                        <tbody>
                            <tr>
                                {foreach $MExternalmaintenanceData as $myMExternalmaintenanceData}
                                <td>{$myMExternalmaintenanceData->productName}</td>
                                <td>{$myMExternalmaintenanceData->suppliername}</td>
                                <td>{$myMExternalmaintenanceData->ourSerial}</td>
                                <td>{$myMExternalmaintenanceData->productserial}</td>
                                <td class="hidden-print"> <a id="1" type="button" data-externalmaintenanceId={$myMExternalmaintenanceData->externalmaintenanceId} data-ourSerial={$myMExternalmaintenanceData->ourSerial} data-supplierId={$myMExternalmaintenanceData->supplierId}  class="btn btn-default btn-lg editicon check"></a> </td>
                            </tr>
                            {/foreach}
                        </tbody>
                    </table>

                    <div class="dataTables_info" id="datatable_2_info"> يعرض &nbsp;[{$paginate.first}-{$paginate.last}]&nbsp; عنصر من &nbsp; &nbsp; [{$paginate.total}]</div>
                    <div class="dataTables_paginate paging_full_numbers" id="datatable_2_paginate"> {if {paginate_prev} eq ""}
                        {else} <span class="next paginate_button" id="datatable_2_next">{paginate_prev}</span> {/if} <span> {if {paginate_middle} eq ""}
                            {else} <span class="paginate_button">{paginate_middle format="page"}</span> {/if} </span> {if {paginate_next} eq ""}
                        {else} <span class="last paginate_button" id="datatable_2_last">{paginate_next}</span> {/if} </div>
                </div>
                <!------ END RESULT ---------------------------------->
            </div>
        </div>
    </div>
</div>
</div>



<!-- ======================= externalMaintenanceGoReport Modal Box =========== -->
<!-- Modal -->
<div class="modal fade" id="externalMaintenanceGoReportModal" tabindex="-1" role="dialog" aria-labelledby="externalMaintenanceGoReportModal" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close pull-left" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title"> تقرير الفحص</h4>
            </div>
            <div class="modal-body">
                <form id="externalMaintenanceGoReportInfo" action="#" method="post" class="form-horizontal">


                    <!------------------------------>
                    <div class="form-group">
                        <label class="col-lg-2 control-label"> تقرير الفحص</label>
                        <div class="col-lg-4">
                            <textarea name="checkComment" cols="" rows="" class="form-control"></textarea>
                        </div>
                    </div>
                    <!------------------------------>
                    <br/>
                    <div class="form-group">
                        <label class="col-lg-2 control-label"> تكلفة المورد</label>
                        <div class="col-lg-4">
                            <input name="supplierCost" id="supplierCost" type="number" min="0" class="form-control"/>
                        </div>
                    </div>
                    <!------------------------------>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default closeReport" id="1">اغلاق</button>
                <button type="button" id="a1" class="btn btn-primary insertcheckReport" >حفظ</button>
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
<!-- /.modal -->
<!-- ============================================= -->
