<div id="middleContent">

   

     <!-- Bread Crumb Start -->

    <div class="breadCrumb">

        <a class="home" href="#"></a>

        <span>عنوان القسم الرئيسي</span>

        <span><a href="#">القسم الفرعي 1</a></span>

        <span class="current">القسم الفرعي 2</span>

    </div>

    <!-- Bread Crumb End -->

    <!-- Ads Area Start -->

    <?php $this->load->view("theme/main_ads"); ?>

    <!-- Ads Area End -->

    <!-- Main Block Start -->

   

    

    <?php if($visitors != null){?>

    <div class="block lrg">

        <form action="<?= base_url().'visitors/add_visitor/'?>" method="post">

                <fieldset class="form">

                  <input id="submit" type="submit" value="اضافة زيارة جديدة" class="button" />

                </fieldset>

            </form>

        <div class="title">سجل الزوار</div>

        <div class="content">

        <?php foreach($visitors as $v):?>

            <div class="comment odd"><!-- class "odd" to change comment background color between one another -->

                <div class="commentDetails">

                    <a href="#" class="thumb"><img src="<?= base_url() ?>global/site/images/person.png" alt="Thumb" /></a>

                    <a href="#" class="name"><?php echo $v['vi_name']?></a>

                    <span class="date"><?php echo date('d/m/Y',$v['vi_created'])?> </span>

                </div>

                <div class="quote"><?php echo $v['vi_message']?></div>

            </div>

       <?php endforeach;?>

       </div>

    </div>

    <?php }?>

    <!-- Main Block End -->

            <table class="dataGrid" cellspacing="0" cellpadding="0" border="0">

                 <tr>

                            <td colspan="3">

    <div class="resultsCount">النتائج من <?php echo $row?> الى <?php echo $row +10?>&nbsp;&nbsp;من أصل&nbsp;&nbsp;<?php echo $total_rows;?> نتيجة</div>

                                <div class="pages"><?php echo $links;?></div>

                              

                            </td>

                 </tr>

            </table>

                                

</div>