<!-- Main Block Start -->
<div id="middleContent">
    <!-- Bread Crumb Start -->
    <div class="breadCrumb">
        <span><a class="home" href="<?= base_url(); ?>"></a></span>        
        <span class="current">الأسر</span>
    </div>
    <!-- Bread Crumb End -->    
    <?php foreach($patient as $ne):?>
    <div class="block">
        <div class="title "><?php echo $ne['pi_name']?></div>
        <div class="info"><?php echo date('d/m/Y',$ne['pi_created'])?>  ▪ التعليقات (<?php echo $ne['COUNT( d_comments_patient.cn_new_id )']?>)  ▪  <?php echo $ne['pt_name'] ?> ▪ عدد المشاهدات (<?php echo $ne['pi_count_visit'] ?>)</div>
        <div class="content text">
            <?php if($ne['pi_img'] !=null){?>
            <?php if(file_exists(PUBPATH."global/uploads/".$ne['pi_img'])){?>
            <img src="<?= base_url() ?>global/uploads/<?php echo $ne['pi_img']?>" width="130px" height="100px" alt="" class="img" />
            <?php }}elseif($ne['pi_link_img'] !=null){?>
            <img src="<?php echo $ne['pi_link_img']?>" width="130px" height="100px" alt="" class="img" />
            <?php }?>
            <?php echo $ne['pi_product_desc']?>...<a href="<?= base_url()?>patient/show/<?= $ne['pi_new_slug']?>" class="details detail"></a>
        </div>
    </div>
    <?php endforeach;?>
    <!-- Main Block End -->
    <!--pager-->
    <div class="block">
        <div class="content rnd">
            <table class="dataGrid" cellspacing="0" cellpadding="0" border="0">
                <tr >
                    <td colspan="3" class="pager">
                        <div class="resultsCount"><b>النتائج من <?php echo $row + 1?> الى <?php echo $row +5?>&nbsp;من أصل&nbsp;<?php echo $total_rows;?> نتيجة</b></div>
                        <!--<div class="pages">-->
                            <?php echo $links; ?>
                        <!--</div>-->
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <!--end pager -->
</div>