<div class="page-content-wrapper" id="mydiv" >
    <h4  class="enfnt bold underline txtc" >الهيئة العامة للمستشفيات والمعاهد التعليمية    </h4>     
    <h4  class="enfnt bold underline txtc" > Operation Form  - صحيفة العمليات  </h4>     

    <hr style="border: 1px solid black;     margin: 5px 0; ">
    <div class="col-md-12">

        <table style="width: 98%;margin: 5px auto;    direction: rtl;    text-align: right;" cellpadding="2" class="noborder">
            <tr>
                <td style="width: 25%;font-weight: bold;text-align: right !important;"> اسم المريض :   </td>
                <td style="width: 25%;text-align: right !important;"> {$name}     </td>
                <td style="width: 25%;font-weight: bold;text-align: right !important;"> رقم الملف :   </td>
                <td style="width: 25%;text-align: right !important;"> {$statusNo}    </td>
            </tr>
            <tr>
                <td style="width: 25%;font-weight: bold;text-align: right !important;"> النوع  / السن     : </td>
                <td style="width: 25%; direction:ltr ;text-align: right !important;"> {$age}   / {$sex}      </td>
                <td style="width: 25%;font-weight: bold;text-align: right !important;"> القسم      : </td>
                <td style="width: 25%;text-align: right !important;">  {$deptName} </td>
            </tr>
            <tr>
                <td style="width: 25%;font-weight: bold;text-align: right !important;">  السرير   / رقم الغرفة         : </td>
                <td style="width: 25%;text-align: right !important;"> {$bedNo}   / {$roomNo}     </td>
                <td style="width: 25%;font-weight: bold;text-align: right !important;"> تاريخ دخول القسم     : </td>
                <td style="width: 25%;text-align: right !important;">   {$visitDate}   </td>
            </tr>
        </table>
    </div>

    <hr style="border: 1px solid black;  margin: 5px 0;">

    <div class="col-md-12">
        <table style="width: 98%;margin: 5px auto;" cellpadding="2">
            <tr>
                <td style="width: 23%;font-weight: bold;">Date : </td>
                <td  style="width: 15%;"> {$operation_form.op_date}     </td>
                <td style="width: 23%;font-weight: bold;">OR Num : </td>
                <td> {$operation_form.or_num}     </td>
            </tr>

            <tr>
                <td style="width: 23%;font-weight: bold;">Start of anasthesa : </td>
                <td> {$operation_form.anasthesa_start}     </td>
                <td style="width: 23%;font-weight: bold;">OR Nurse : </td>
                <td> {$operation_form.or_nurse}     </td>
            </tr>

            <tr>
                <td style="width: 23%;font-weight: bold;">End of anasthesa : </td>
                <td> {$operation_form.anasthesa_end}     </td>
                <td style="width: 23%;font-weight: bold;"> Operation Category : </td>
                <td>{if $operation_form.category == 1} Elective  {else if  $operation_form.category == 2} Emergency {/if} </td>
            </tr>
        </table>

        <table style="width: 98%;margin: 5px auto;" cellpadding="2" class="noborder">
            <tr>
                <td style="width: 30%;font-weight: bold;">Surgeons : </td>
                <td> {$operation_form.surgeon}     </td>
            </tr>
            <tr>
                <td style="width: 30%;font-weight: bold;">Assistants : </td>
                <td> {$operation_form.assistant}     </td>
            </tr>
            <tr>
                <td style="width: 30%;font-weight: bold;">Anaesthesiologists : </td>
                <td> {$operation_form.anasthesiologist}     </td>
            </tr>
            <tr>
                <td style="width: 30%;font-weight: bold;">Pre-operative diagnosis : </td>
                <td>{$operation_form.pre_diagnoses}     </td>
            </tr>
            <tr>
                <td style="width: 30%;font-weight: bold;">Operation : </td>
                <td>{$operation_form.operations}     </td>
            </tr>
            <tr>
                <td style="width: 30%;font-weight: bold;">Procedure : </td>
                <td> {$operation_form.procedures}      </td>
            </tr>

            <tr>
                <td style="width: 30%;font-weight: bold;">Operative findings : </td>
                <td> {$operation_form.findings}      </td>
            </tr>

            <tr>
                <td style="width: 30%;font-weight: bold;">Closure : </td>
                <td> {$operation_form.closure}      </td>
            </tr>

            <tr>
                <td style="width: 30%;font-weight: bold;">Complications : </td>
                <td> {$operation_form.complications}      </td>
            </tr>

            <tr>
                <td style="width: 30%;font-weight: bold;"> Implementable Devices  : </td>
                <td> {if $operation_form.devices != 1} No   {else}   Yes  (  Batch No : {$operation_form.batch_no} ) {/if}   </td>
            </tr>

            {if $operation_form.devices == 1}
            <tr>
                <td style="width: 30%;font-weight: bold;">Details : </td>
                <td> {$operation_form.devices_details}      </td>
            </tr>
            {/if}

            <tr>
                <td style="width: 30%;font-weight: bold;">Post-operative diagnosis : </td>
                <td> {$operation_form.post_diagnoses}      </td>
            </tr>

            <tr>
                <td style="width: 30%;font-weight: bold;">Specimen sent to pathology : </td>
                <td> {$operation_form.to_pathology}      </td>
            </tr>
        </table>

        <table style="width: 98%;margin: 5px auto;" cellpadding="2" class="noborder">
            <tr>
                <td style="width: 50%; font-weight: bold;">Physician Signature  </td>
                <td style="width: 20%;font-weight: bold;">Date  : </td>
                <td style="width: 30%;">  {$date}</td>
            </tr>
        </table>
    </div>
</div>

{literal}
<style>

    table{
        width: 100%;
        border-spacing: 0px;
        border: none;
    }

    tr {
        line-height: 25px;
    }

    .tb1 td , .noborder {
        border: none;
    }

    .tb1{
        border-bottom: 1px solid black;
        border-right: 1px solid black;
    }

    td , th{
        border: 1px solid black;
        padding: 3px;
    }

    p3{    padding: 3px}

    .txtc{    text-align:  center !important; }

    th{    text-align:  center !important; }

    .bold { font-weight: bold;}

    .underline { text-decoration: underline;}

    .vertical{
        writing-mode: vertical-rl;
        -webkit-transform:rotate(180deg);
        -moz-transform:rotate(180deg);
        -o-transform: rotate(180deg);
        -ms-transform:rotate(180deg);
        transform: rotate(180deg);
        white-space:nowrap;
    }

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

        .break { page-break-after: always;}


        table{
            width: 100%;
            border-spacing: 0px;
            border: none;
        }

        tr {
            line-height: 25px;
        }

        .tb1 td , .noborder {
            border: none;
        }

        .tb1{
            border-bottom: 1px solid black;
            border-right: 1px solid black;
        }

        td , th{
            border: 1px solid black;
            padding: 3px;
        }

        p3{    padding: 3px}

        .txtc{    text-align:  center !important; }

        th{    text-align:  center !important; }

        td{    text-align:  left !important; }


        .bold { font-weight: bold;}

        .underline { text-decoration: underline;}

        .vertical{
            writing-mode: vertical-rl;
            -webkit-transform:rotate(180deg);
            -moz-transform:rotate(180deg);
            -o-transform: rotate(180deg);
            -ms-transform:rotate(180deg);
            transform: rotate(180deg);
            white-space:nowrap;
        }
    }
</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>