<div class="content">
    <div id="feature_list">
        <ul id="tabs">
           <?php foreach($homepartitions as $hn){ ?>
            <li><a href="<?= base_url(); ?>partitions/show/<?= $hn['par_id']; ?>" onclick="window.open(this.href); return false;"><?= $hn['par_title']; ?></a></li>     
            <?php } ?>
        </ul>
        <ul id="output">
            <?php foreach($homepartitions as $hn){ ?>
            <li>
                <?php if($hn['par_img'] !=null){?>
                <?php if(file_exists(PUBPATH."global/uploads/".$hn['par_img'])){?>
                    <img src="<?= base_url() ?>global/uploads/<?php echo $hn['par_img']?>" width="350px" height="240px" alt="" />
                <?php }}else{?>
                    <img src="<?php echo $hn['par_link_img'] ?>" width="350px" height="240px" alt="" />
                <?php }?>
                <a href="<?= base_url(); ?>partitions/show/<?= $hn['par_id']; ?>" onclick="window.open(this.href); return false;">التفاصيل</a>
            </li>  
            <?php } ?>
        </ul>
    </div>
</div>



     