
<div    id="patient_profile_print">

    <div class="row text-right">

        <div class="col-md-12">

            <h1 class="h1" style="text-align: center;"> Follow up </h1>          

            <table style="width: 98%;margin: 5px auto;direction: rtl" cellpadding="2" class="noborder">
                <tr>
                    <td class="bold" style=" width: 10%;">  اليوم /  </td>
                    <td style="width: 20%"> {$followup.op_day}    </td>
                    <td class="bold" style=" width: 10%;">  الموافق /  </td>
                    <td style="width: 20%"> {$followup.op_date}    </td>
                    <td class="bold" style=" width: 10%;">  نوع العملية  /  </td>
                    <td> {$followup.operationName}    </td>
                </tr>

                <tr>
                    <td class="bold">  اسم الحالة  /  </td>
                    <td colspan="3"> {if  $forHusband == 1 }   {$followup.husdandname} {else}    {$followup.wifename}   {/if} </td>
                    <td class="bold">  رقم الغرفة  /  </td>
                    <td>   </td>
                </tr>

                {if $programesetting->surgeon != 1 } 
                <tr>
                    <td class="bold" style=" width: 10%;">  الجراح  /  </td>
                    <td style="width: 20%"> {$followup.surgeonName}    </td>
                    <td class="bold" style=" width: 10%;">  المساعد  /  </td>
                    <td style="width: 20%"> {$followup.assistantName}    </td>
                    <td class="bold" style=" width: 10%;">  التخدير   /  </td>
                    <td> {$followup.anaesthetistName}    </td>
                </tr>
                {/if}
            </table>

            <table class="table" style="border: 1px solid #000;">
                <caption class="txtc h3">Pre-Operative </caption>
                <thead>
                    <tr >
                        <th style="width: 15%;background: #DDD;" rowspan="2">    الطبيب  </th>
                        <th style="width: 14%;background: #DDD;" rowspan="2">     الممرضة   </th>
                        <th style="background: #DDD;" colspan="4">    التحاليل المسحوبة  </th>
                        <th style="background: #DDD;" colspan="4">     العلامات الحيوية   </th>
                        <th style="background: #DDD;" rowspan="2">       التوقيت   </th>
                    </tr>
                    <tr>
                        <th style="width: 10%;background: #DDD;">    ABO-RH  </th>
                        <th style="width: 6%;background: #DDD;">    Hb  </th>
                        <th style="width: 7%;background: #DDD;">    PLT  </th>
                        <th style="width: 7%;background: #DDD;">    RBS  </th>
                        <th style="width: 7%;background: #DDD;">    BP  </th>
                        <th style="width:7%;background: #DDD;">    Pulse  </th>
                        <th style="width: 6%;background: #DDD;">    Temp  </th>
                        <th style="width: 4%;background: #DDD;">    So2  </th>
                    </tr>
                </thead>
                <tbody>
                    {foreach $follow_pres as $obj}
                    <tr>
                        <td> {$obj.doctorName}  </td>
                        <td> {$obj.nurseName}  </td>
                        <td> {$obj.aborh}  </td>
                        <td> {$obj.hb}  </td>
                        <td> {$obj.plt}  </td>
                        <td> {$obj.rbs}  </td>
                        <td><input type="text" class="bp_mask" value="{$obj.bp}"
                                   disabled style="border: none;background: inherit ;width: 60px;"/></td>
                        <td> {$obj.pulse}  </td>
                        <td> {$obj.temp}  </td>
                        <td> {$obj.so2}  </td>
                        <td> {$obj.timing}  </td>
                    </tr>
                    {/foreach}
                </tbody>
            </table>

            {if $programesetting->notes == 1 } 
            <table class="table" style="border: 1px solid #000;">
                <tbody>
                    <tr>
                        <th style="width: 15%;background: #DDD;" >Notes </th>
                        <td> {$followup.pre_note} </td>
                    </tr>
                </tbody>
            </table>
            {else}

            <table class="table" style="border: 1px solid #000;">
                <tbody>
                    <tr>
                        <th style="width: 30%;background: #DDD;" > Operative Notes  </th>
                        <td> {$followup.pre_note} </td>
                    </tr>
                    <tr>
                        <th style="width: 30%;background: #DDD;" > Post Operative Instructions  </th>
                        <td> {$followup.post_instruction} </td>
                    </tr>
                </tbody>
            </table>
            {/if}




            <table class="table" style="border: 1px solid #000;">
                <caption class="txtc h3">Post-Operative </caption>
                <thead>
                    <tr >
                        <th style="width: 15%;background: #DDD;" rowspan="2">    الطبيب  </th>
                        <th style="width: 14%;background: #DDD;" rowspan="2">     الممرضة   </th>
                        <th style="background: #DDD;" colspan="4">    التحاليل المسحوبة  </th>
                        <th style="background: #DDD;" colspan="4">     العلامات الحيوية   </th>
                        <th style="background: #DDD;" rowspan="2">       التوقيت   </th>
                    </tr>
                    <tr>
                        <th style="width: 8%;background: #DDD;">    U.O.P  </th>
                        <th style="width: 8%;background: #DDD;">    Drain  </th>
                        <th style="width: 8%;background: #DDD;">    V.pack  </th>
                        <th style="width: 6%;background: #DDD;">    RBS  </th>
                        <th style="width: 7%;background: #DDD;">    BP  </th>
                        <th style="width:6%;background: #DDD;">    Pulse  </th>
                        <th style="width: 6%;background: #DDD;">    Temp  </th>
                        <th style="width: 6%;background: #DDD;">    So2  </th>
                    </tr>
                </thead>

                <tbody>
                    {foreach $follow_posts as $obj}
                    <tr>
                        <td> {$obj.doctorName}  </td>
                        <td> {$obj.nurseName}  </td>
                        <td> {$obj.uop}  </td>
                        <td> {$obj.drain}  </td>
                        <td> {$obj.vpack}  </td>
                        <td> {$obj.rbs}  </td>
                        <td><input type="text" class="bp_mask" value="{$obj.bp}"
                                   disabled style="border: none;background: inherit ;width: 60px;"/></td>
                        <td> {$obj.pulse}  </td>
                        <td> {$obj.temp}  </td>
                        <td> {$obj.so2}  </td>
                        <td> {$obj.timing}  </td>
                    </tr>
                    {/foreach}
                </tbody>
            </table>






        </div>
    </div>

</div>

{literal}

<script>
    $(".bp_mask").inputmask("999/999", {
        autoUnmask: true});
</script>
<style>

    .noborder tr { height: 10mm; }
    .table tr { height: 10mm; }
    .emptyLine{ height: 20mm !important; }
    .bold { font-weight: bold;}
    .h1 { font-weight: 900; font-size: 28px;}
    .h3 { font-weight: 700; font-size: 25px;}

    .form-group.form-md-line-input .help-block {
        position: absolute;
        margin: 2px 0 0 0;
        opacity: 1;
        filter: alpha(opacity=0);
        font-size: 13px;
    }

    @media print {
        #patient_profile_print {
            transform: scale(.9);
        }

        .noborder tr { height: 10mm; }
        .table tr { height: 10mm; }
        .emptyLine{ height: 20mm !important; }

        .bold { font-weight: bold;}
        .h1 { font-weight: 900; font-size: 28px;}
        .h3 { font-weight: 700; font-size: 25px;}
    }
</style>
{/literal}

<style>

    @page {ldelim}
    size: auto;
    margin-top: {$programesetting->above2}cm !important;
    margin-bottom: {$programesetting->buttom2}cm !important;
    {rdelim}

    .arbfnt {ldelim}
    font-size: {$programesetting->fontsizear2}px !important;
    {rdelim}

    .enfnt {ldelim}
    font-size: {$programesetting->fontsizeen2}px !important;
    {rdelim}

    #content, #page {
        width: 100%; 
        margin: 0; 
        float: none;
    }


    /* Unnötige Elemente ausblenden für den Druck */

    #header-widgets, nav, aside.mashsb-container, 
    .sidebar, .mashshare-top, .mashshare-bottom, 
    .content-ads, .make-comment, .author-bio, 
    .heading, .related-posts, #decomments-form-add-comment, 
    #breadcrumbs, #footer, .post-byline, .meta-single, 
    .site-title img, .post-tags, .readability 
    {
        display: none;
    }



</style>