
<div class="page-content-wrapper">
    <div class="page-content">
        <div class="row clinick">
            <div class="col-md-12">
                <!-- BEGIN EXAMPLE TABLE PORTLET-->
                <div class="portlet box blue">
                    <div class="portlet-title">
                        <div class="caption" style="float: right;">
                          <i style="float: right; font-weight: bold;" class="fa fa-user"></i>       بطاقة متابعة  
                        </div>
                    </div>
                    <div class="portlet-body">
                    
                        <!--Begin Semen-->

                        <div class="row">

                            <form action="{$hosturl}/controllers/followupcard.php?ac=printit" id="followardForm" method="post" enctype="multipart/form-data">
                                <div class="form-body">

    <br/>
                                    <table class="table table-striped table-hover table-bordered">
                                        <tr>
                                            <td style="width: 39%;">{$patient->wifename}</td>
                                            <th style="width: 11%;">اسم المريض </th>
                                            <td style="width: 39%;">{$patient->statusno}</td>
                                            <th style="width: 11%;">رقم المريض </th>
                                            
                                            
                                        </tr>
                               
                                        
                                        <tr>
                                            <td style="width: 39%;">{$followupcard->exitdate}</td>
                                            <th style="width: 11%;">تاريخ الخروج </th>
                                            <td style="width: 39%;">{$followupcard->enterdate}</td>
                                            <th style="width: 11%;">تاريخ الدخول </th>
                                            
                                            
                                        </tr>
                                        
                                        <tr>
                                            <td colspan="3">{$followupcard->diagnosis}</td>
                                            <th style="width: 11%;">التشخيص </th>
                                            
                                        </tr>
                                        
                                        
                                    </table>
                                    
                                   <div class="portlet box blue">
                                        <div class="portlet-title" >
                                            <div class="caption" style="float: right;"> العلاج </div>
                                            
                                        </div>

                                        <div class="portlet-body">

                                            <table class="table table-striped table-hover table-bordered" id="pre_table" >
                                                <thead>
                                                    <tr>
                                                        <th class="col-md-2">
                                                            Drug
                                                        </th>
                                                        <th class="col-md-2">
                                                            Form
                                                        </th>
                                                        <th class="col-md-5">
                                                            Use
                                                        </th>

                                                    </tr>
                                                </thead>
                                                <tbody id="drugContent">
                                                {foreach $followupcarddrugs as $drug}     
                                                    <tr>
                                                        <td>
                                                            {$drug->drugname}
                                                        </td>
                                                        <td>
                                                            {$drug->drugtype}
                                                        </td>
                                                        <td>
                                                            {$drug->drugdos}
                                                        </td>
                                                    </tr>
                                                    {/foreach}
                                                </tbody>
                                            </table>
                                       
                                            <div id="drugPrint">

                                            </div>

                                        </div>

                                    </div>
                           
                                <div class="modal-footer">
                                    <button type="button" class="btn default printCard"  id="saveWithPrint" data-print="yesOnly" data-controller="followupcard">  طباعة   </button>

                                </div>

                                    <input type="hidden" name="followupcardid" value="{$followupcard->id}">
                                    <input type="hidden" name="cardPrint" id="cardPrint" value="{$followupcard->id}">
                                    <input type="hidden" id="controllName" value="followupcard"/>
                                    <input type="hidden" id="patientId" name="patientId" value="{$patient->id}"/>

                                </div>

                            </form>

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

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


