
<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>ICSI / Embryo Freezing
                        </div>
                        <div class="actions">

                            {if $patientId}

                            <a href="{$hosturl}/controllers/{$controllname}.php?ac=addnotconfirm&patientid={$patientId}" class="btn btn-default btn-sm">
                                <i class="fa fa-plus"></i> Add </a>
                            {else}
                            <a href="{$hosturl}/controllers/{$controllname}.php?ac=addnotconfirm" class="btn btn-default btn-sm">
                                <i class="fa fa-plus"></i> Add </a>
                            {/if}

                            {if $tanks_settings == 1 }
                            <a href="{$hosturl}/controllers/{$controllname}.php?ac=tankSetting" class="btn btn-success btn-sm"  target="_blank" >
                                <i class="fa fa-gear"></i>  Tank Settings </a>
                            {/if}

                        </div>
                    </div>
                    <div class="portlet-body">
                        <input type="hidden" id="patientId" value="{$patientId}">
                        <table class="table table-striped table-bordered table-hover" id="sample_3">
                            <thead>
                                <tr>
                                    <!--                                    <th class="table-checkbox">
                                                                            <input type="checkbox" class="group-checkable" data-set="#sample_3 .checkboxes"/>
                                                                        </th>-->
                                    <th width="7%">No</th>
                                    <th>Date</th>
                                    <th>Clinician </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 $showElems as $single}
                                <tr class="odd gradeX">
                                    <!--                                    <td>
                                                                            <input type="checkbox" class="checkboxes inst" data-intId="{$single.id}" value="1"/>-->
                                    <td>{$m}</td>
                                    <td>{$single.visitdate}</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>
                                    {if $patientId}
                                    <td>
                                        <a href="{$hosturl}/controllers/{$controllname}.php?ac=edit&id={$single.embryoslab_id}&patientid={$patientId}" class="btn green btn-block btn-xs"><i class="fa fa-pencil"></i> Edit</a>
                                    </td>
                                    {else}
                                    <td>
                                        <a href="{$hosturl}/controllers/{$controllname}.php?ac=edit&id={$single.embryoslab_id}" class="btn green btn-block btn-xs"><i class="fa fa-pencil"></i> Edit</a>
                                    </td>
                                    {/if}
                                    <td>
                                        <a class="btn grey-cascade btn-xs deletemsgEX" data-id="{$single.embryoslab_id}" 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>
        <input type="hidden" id="embryoslab" value="1">

        <!-- <div  class="">

             <div class="modal fade" tabindex="-1" role="dialog" aria-hidden="false" data-backdrop="static" data-keyboard="false"   id="instDetail">
                 <div class="modal-dialog  modal-lg wds50">
                     <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" id="printIns">
                                             <div class="portlet-title">
                                                 <div class="caption bold">   </div>
                                             </div>
                                             <div class="portlet-body">
                                                 <div id="instPrint">


                                                 </div>
                                             </div>
                                         </div>
                                     </div>
                                     <div class="modal-footer">
                                         <button type="button" class="btn default showInst1" id="printtt">  Print  </button>
                                         <button type="button" class="btn default" id="closemodel" data-dismiss="modal"> Close</button>

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

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




