

<table  cellpadding="2" class=" tb1 noborder rtl mb10">
    <thead>
        <tr>
            <th>عدد الحالات المطابقى للبحث : {$customResults}  </th>
            <th>  إجمالى الحالات خلال فترة البحث : {$totalResults} </th>
        </tr>
    </thead>
</table>


<table  cellpadding="2" class="rtl">
    <thead>
        <tr>
            <th>م</th>
            <th>رقم الحالة</th>
            <th> الزوجة </th>
            <th> الطبيب  </th>
            <th> التاريخ  </th>
            <th>   الموبايل 1   </th>
            <th>  الموبايل 2     </th>
            <th>  نوع الكشف     </th>
            <th class="wds6"> Result </th>
            <th> ملاحظات</th>
        </tr>
    </thead>
    <tbody>
        {assign var=i value=1}
        {foreach $visitsAll as $lab}

        <tr >
            <td> {$i}</td>
            <td> {$lab.statusno}</td>
            <td> 
                <ul style="margin-bottom: 22px;">
                    <li style="float: right;    margin-right: -15%;">{$lab.wifename}</li>
                </ul>
                <ul style="margin-bottom: 22px;">
                    <li style="float: right;    margin-right: -15%;">{$lab.husdandname}</li>
                </ul>
            </td>
            <td> {$lab.drName}</td>
            <td> {$lab.visitdate}</td>
            <td> {$lab.phone}</td>
            <td> {$lab.mobile}</td>
            <td> {$lab.detectionType}</td>
            <td class="ltr">  {if  $lab.result == 1 } +ve  {else if  $lab.result == 2}  -ve  {/if}  </td>
            <td> {$lab.dr_report_note}</td>
        </tr>
        {capture assign=i}{$i+1}{/capture}
        {/foreach}
    </tbody>
</table>



{literal}
<style>

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

    caption{
        text-align: center;
        background-color: #DDD;
    }

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

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

    td , th{
        border: 1px solid black;
        padding: 3px;
        text-align:  center !important;
    }

    p3{    padding: 3px}

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

    th{    text-align:  center !important;  background-color: #aaa; }

    .bold { font-weight: bold;}

    .underline { text-decoration: underline;}

    .mb10{
        margin-bottom: 10px;
    }

    .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;}

        caption{
            text-align: center;
            background-color: #DDD;
        }


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

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

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

        td , th{
            border: 1px solid black;
            padding: 3px;
            text-align:  center !important;
        }

        p3{    padding: 3px}

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

        th{    text-align:  center !important;   background-color: #aaa; }

        .bold { font-weight: bold;}

        .underline { text-decoration: underline;}

        .mb10{
            margin-bottom: 10px;
        }

        .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>