<div class="page-content-wrapper" id="mydiv">
    <h4 class="enfnt bold underline txtc">وصف وإعطاء علاج مرة واحدة</h4>
    <h4 class="enfnt bold underline txtc">Once Only Medication Prescription & administration</h4>
    <div class="col-md-12" style="direction: rtl;">
        <table style="width: 98%;margin: 5px auto;" cellpadding="2" class="noborder">
            <tr>
                <td style="font-weight: bold;">اسم المريض:</td>
                <td>{$name}</td>
                <td style="font-weight: bold;">الرقم الطبي:</td>
                <td>{$medication_sheet.patient_id}</td>
            </tr>
            <tr>
                <td style="font-weight: bold;">تاريخ الدخول:</td>
                <td> {$medication_sheet.sheet_date} </td>
                <td style="font-weight: bold;">الطبيب: </td>
                <td> {$medication_sheet.doctor}</td>
            </tr>
            <tr>
                <td style="font-weight: bold;">التشخيص: </td>
                <td colspan="3"> {$medication_sheet.examination}</td>
            </tr>
            <tr>
                <td style="font-weight: bold;">الوزن:</td>
                <td> {$medication_sheet.weight} </td>
                <td style="font-weight: bold;">الطول:</td>
                <td> {$medication_sheet.height} </td>
                <td style="font-weight: bold;">الحساسية: </td>
                <td> {$medication_sheet.allergies}</td>
            </tr>
            <tr>
                <td>ملاحظات:</td>
                <td colspan="3"> {$medication_sheet.notes} </td>
            </tr>
        </table>

        {if $medCount > 0}
        <table style="direction: ltr;">
            <thead>
                <tr>
                    <th>Date</th>
                    <th>Time</th>
                    <th>Drug name</th>
                    <th>Form</th>
                    <th>Direction</th>
                    <th>Dr. Sig.</th>
                    <th>Time Given</th>
                    <th>Checked by</th>
                </tr>
            <tbody>
                {foreach $allMedData as $data }
                <tr>
                    <td>{$data.drug_date}</td>
                    <td>{$data.drug_time}</td>
                    <td>{$data.drugName}</td>
                    <td>{$data.drug_form}</td>
                    <td>{$data.drug_direction}</td>
                    <td></td>
                    <td>{$data.drug_given_time}</td>
                    <td>{$data.checked_by}</td>
                </tr>
                {/foreach}
            </tbody>
            </thead>
        </table>
        {/if}
    </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: right !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>