<div class="modal fade" tabindex="-1" role="dialog" aria-hidden="false" data-backdrop="static" data-keyboard="false" 
     id="newPatientsModel" style="min-width:1000px;">
    <div class="modal-dialog  modal-lg wds90">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close closeDrug" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title txtc"> {$patientName} </h4>
            </div>
            <div class="modal-body">
                <div class="portlet-body form">
                    <form class="form-horizontal" role="form" action="" method="post" id="gynaDrugs" enctype="multipart/form-data">
                        <div class="row">
                            <div class="col-md-12">
                                <div class="portlet blue-hoki box">

                                    <div class="portlet-body  scroll_y showNum isheight" style="padding: 25px 7px 0  7px;">
                                        <table class="table table-striped table-hover table-bordered"  id="repTable"
                                               style="direction: rtl;">
                                            <thead>
                                                <tr>
                                                    <th>م</th>
                                                    <th>رقم الحالة</th>
                                                    <th> اسم الحالة  </th>
                                                    <th> الطبيب المعالج   </th>
                                                    {if $programesetting->system_lang  == 1}  
                                                    <th> اسم الزوج   </th>
                                                    <th> الطبيب المعالج   </th>
                                                    {/if}
                                                    <th> تاريخ الإضافة     </th>
                                                    <th> وسيلة المعرفة بالمركز      </th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                {assign var=i value=1}
                                                {foreach $newPats as $newPat}
                                                <tr>
                                                    <td> {$i}</td>
                                                    <td> {$newPat.statusno}</td>
                                                    <td> {$newPat.wifename}</td>
                                                    <td> {$newPat.wDrName}</td>
                                                    {if $programesetting->system_lang  == 1}  
                                                    <td> {$newPat.husdandname}</td>
                                                    <td> {$newPat.hDrName}</td>
                                                    {/if}
                                                    <td> {$newPat.entryDate}</td>
                                                    <td> {$newPat.knownFrom}</td>
                                                </tr>
                                                {capture assign=i}{$i+1}{/capture}
                                                {/foreach}
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn default" id="closemodel" data-dismiss="modal"> Close</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>


{literal}
<script type="text/javascript" >
    $('#repTable').dataTable({
        "pageLength": 15,
        "lengthMenu": [
            [15, 25, 50, 100, 150, -1],
            [15, 25, 50, 100, 150, "All"] // change per page values here
        ]
    });


</script>
{/literal}