<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row">
            <div class="col-md-12 clinick">
                <div class="col-md-3"></div>
                <div class="col-md-2">
                    <div class="form-group">
                        <input type="hidden" id="controllName" value="completereport"/>
                        <input type="hidden" id="reportPage" value="1"/>
                        <label class="control-label ls2">Patient Number</label>
                        <select class="form-control select2me patientReport" id="pNo" data-placeholder="Select...">
                            <option></option>
                            {foreach $allPatient as $patient}
                            <option value="{$patient->id}" {if $patient->id eq $patientid}selected{/if}>{$patient->statusno}</option>
                            {/foreach}
                        </select>
                    </div>
                </div>
                <div class="col-md-4">
                    <div class="form-group">
                        <input type="hidden" id="controllName" value="completereport"/>
                        <input type="hidden" id="reportPage" value="1"/>
                        <label class="control-label ls2">Patient Name</label>
                        <select class="form-control select2me patientReport" id="pName" data-placeholder="Select...">
                            <option></option>
                            {foreach $allPatient as $patient}
                            <option value="{$patient->id}" {if $patient->id eq $patientid}selected{/if}>{$patient->wifename}</option>
                            {/foreach}
                        </select>
                    </div>
                </div>
                <div class="clearfix"></div>

                <!-- BEGIN EXAMPLE TABLE PORTLET-->

                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            Complete Report
                        </div>
                        <div class="actions">
                            <a class="btn btn-default btn-sm" id="printc" data-id="{$patientid}">
                                <i class="fa fa-print"></i> Print </a>
                            <a class="btn btn-default btn-sm" id="exportExcel" >
                                <i class="fa fa-print"></i> Excel Sheets </a>
                        </div>
                    </div>

                    <div class="portlet-body" id="CompleteReportDiv"></div>

                </div>

                <!-- END EXAMPLE TABLE PORTLET-->
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
</div>
<div class="clearfix"></div>
<div id="cprint"></div>




<!----####################       Excel sheeeets    ###################-->
<div class="modal fade" tabindex="-1" role="dialog" aria-hidden="false" data-backdrop="static" data-keyboard="false"   id="ExelSheetsD" style="min-width:1000px;">
    <div class="modal-dialog  modal-lg wds40">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title">  </h4>
            </div>
            <div class="modal-body">
                <div class="portlet-body form">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="portlet blue-hoki box">
                                <div class="portlet-title">
                                    <div class="caption"> Excel Sheets  </div>
                                </div>
                                <div class="portlet-body all">
                                    <div>
                                        <table class="table table-striped table-hover table-bordered">
                                            <thead>
                                                <tr>
                                                    <th> <div align="center">File Name </div></th>
                                                </tr>
                                            </thead>
                                            <tbody id="filesExcel">
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="modal-footer">
                            <button type="button" class="btn default" data-dismiss="modal"> Close</button>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!----#############################################-->

{literal}
<script>
    $(document).ready(function (e) {
        $("#pNo").trigger("change");
    });
</script>
{/literal}