<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row">
            <div class="col-md-12">
                <div class="portlet box blue">
                    <div class="portlet-title" style="height:5px">
                        <div class="caption">
                            <i class="fa fa-edit"></i> {$shcontrollname}
                        </div>

                        <div class="actions">
                            <a class="btn default btn-xs blue tooltips" href="{$hosturl}/controllers/{$controllname}.php?ac=index&patientid={$patientId}" id="btn_showm_index">
                                <i class="fa  fa-plus"></i>Add New
                            </a>
                        </div>


                    </div>
                    <div class="portlet-body " style="padding: 15px">
                        <table class="table table-striped table-bordered table-hover table-checkable order-column" id="sample_3">
                            <thead>
                            <tr>
                                <th>
                                    Exam date
                                </th>
                                <th style="width: 5%;" class="btn_showm_edit"></th>
                                <th style="width: 5%;" class="btn_showm_edit"></th>
                                <th style="width: 5%;" class="btn_showm_edit"></th>
                                <th style="width: 5%;" class="btn_showm_del"></th>
                            </tr>
                            </thead>
                            <tbody>
                            {foreach $arr as $single}
                                <tr class="odd gradeX">
                                    <td>
                                        {$single->exam_date}
                                    </td>
                                    <td class="btn_showm_edit">
                                        <a href="{$hosturl}/controllers/{$controllname}.php?ac=uploadImage&patientid={$patientId}&id={$single->id}" class="btn green-haze btn-xs">
                                            <i class="fa fa-upload"></i>
                                        </a>
                                    </td>
                                    <td class="btn_showm_edit">
                                        <a href="javascript:" class="btn purple-intense btn-xs print-endoscopy" data-id="{$single->id}" data-patient-id="{$patientId}">
                                            <i class="fa fa-print"></i>
                                        </a>
                                    </td>
                                    <td class="btn_showm_edit">
                                        <a href="{$hosturl}/controllers/{$controllname}.php?ac=edit&patientid={$patientId}&id={$single->id}" class="btn blue-hoki btn-xs">
                                            <i class="fa fa-pencil"></i>
                                        </a>
                                    </td>
                                    <td class="btn_showm_del">
                                        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="{$single->id}"
                                           data-link="{$controllname}" data-fn="del" data-tableName="{$tableName}">
                                            <i class="fa fa-times"></i>
                                        </a>

                                    </td>
                                </tr>
                            {/foreach}
                            </tbody>
                        </table>
                    </div>

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

<style>
    .dz-default .dz-message {
        display: none !important;
    }

    .table-borderless > tbody > tr > td,
    .table-borderless > tbody > tr > th,
    .table-borderless > tfoot > tr > td,
    .table-borderless > tfoot > tr > th,
    .table-borderless > thead > tr > td,
    .table-borderless > thead > tr > th {
        border: none;
    }

    .table-borderless > tbody > tr > td,
    .table-borderless > tbody > tr > th,
    .table-borderless > tfoot > tr > td,
    .table-borderless > tfoot > tr > th,
    .table-borderless > thead > tr > td,
    .table-borderless > thead > tr > th {
        text-align: left;
        padding: 8px 5px;
        font-size: 16px;
    }
</style>

<div id="printDiv" ></div>




