
<div class="page-content-wrapper">
    <div class="page-content all">
        <div class="row">
            <div class="col-md-12">
                <!-- BEGIN EXAMPLE TABLE PORTLET-->

                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption">
                            <i class="fa fa-cogs"></i>Sperm Extraction Report
                        </div>
                        <div class="actions">
                            <a href="{$hosturl}/controllers/{$controllname}.php?ac=sperm_extract_add&patientid={$patientId}" 
                               class="btn btn-default btn-sm"> <i class="fa fa-plus"></i> Add </a>
                        </div>
                    </div>
                    <div class="portlet-body">

                        <table class="table table-striped table-bordered table-hover" id="sample_3">
                            <thead>
                                <tr>
                                    <th width="7%">No</th>
                                    <th>Date</th>
                                    <th>Referred Dr</th>
                                    <!--th width="5%">Print</th-->
                                    <th width="5%">Edit</th>
                                    <th width="5%">Delete</th>
                                </tr>
                            </thead>
                            <tbody>
                                {assign var=m value=1}
                                {foreach $sperm_extract as $single}
                                <tr class="odd gradeX">
                                    <td>{$m}</td>
                                    <td>{$single.date}</td>
                                    <td>{if !empty($single.referred_dr_name)}{$single.referred_dr_name}{else}لايوجد{/if}</td>
                                    <!--td><a  class="btn btn-default btn-xs printembryoslab" 
                                            data-intId="{$single.embryoslab_id}" data-print="yes" 
                                            data-patientId="{$patientId}"><i class="fa fa-print"></i> Print 
                                        </a>
                                    </td-->
                                    <td>
                                        <a href="{$hosturl}/controllers/{$controllname}.php?ac=sperm_extract_edit&id={$single.id}&patientid={$patientId}" class="btn green btn-block btn-xs"><i class="fa fa-pencil"></i> Edit</a>
                                    </td>
                                    <td>
                                        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="{$single.id}"   data-tableName="sperm_extract"
                                           data-link="{$controllname}"  data-fn="del"><i class="fa fa-times"></i>Delete </a>
                                    </td>

                                </tr>
                                {capture assign=m}{$m+1}{/capture}
                                {/foreach}
                            </tbody>

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




