<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 -->    
    <!-- Data Grid Block Start -->
    <div class="block">
        <div class="content">
            <?php
                if (isset($result1) and count($result1) > 0) {
                    ?>
                    <table class="dataGrid" cellspacing="0" cellpadding="0" border="0" >
                        <tr> 
                            <th><?= lang('fa_name') ?></th>
                            <th><?= lang('fa_area') ?></th>
                            <th><?= lang('fa_city') ?></th>
                            <th><?= lang('fa_product_type') ?></th>
                            <th><?= lang('fa_product_desc') ?></th>
                        </tr>
                        <?php
                        $i = 0;
                        foreach ($result1 as $re):
                            ?>

            <?php if (isset($re['fa_name'])) { ?>
                                <tr<?php if (($i % 2) == 1) { ?> class="odd" <?php } ?>>

                                    <td  style="width: 100px"><?= $re['fa_name'] ?></td>
                                    <td  style="width: 100px"><?= $re['ar_name'] ?></td>
                                    <td style="width: 100px"><?= $re['ct_name'] ?></td>
                                    <td style="width: 100px"><?= $re['pt_name'] ?></td>
                                    <td style="width: 100px"><?= $re['fa_product_desc'] ?></td>
                                </tr>
                            <?php } ?>

        <?php endforeach; ?>
                        <tr>
                            <td colspan="3">
                                <div class="pages"><?php //echo $links;     ?></div>
                            </td>
                        </tr>
                    </table>
                    <?php
                } else {
                    echo "<p class='notice information'>عفوا لا يوجد نتائج لكلمة البحث التى قمت بإختيارها ، حاول البحث بكلمة أخرى</p>";
                }
            ?>
            <!-- Data Grid Block End -->
            <!-- Main Block End -->
        </div>
    </div>
        <!--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 +10?>&nbsp;من أصل&nbsp;<?php echo $total_rows;?> نتيجة</b></div>
                        <!--<div class="pages">-->
                            <?php echo $links; ?>
                        <!--</div>-->
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <!--end pager -->
</div>