<?php
if (isset($searched_person)) {
    ?>
    <div id="searchTitle">People</div>
    <div id="person_view" class="notifications">
        <ul>
            <li>   
                <?php
                foreach ($searched_person as $person_value) {
                    ?>
                    <a href="<?php echo base_url() . $person_value->url . '/profile' ?>" target="_blank">
                        <p><?php echo $person_value->person_first_name . ' ' . $person_value->person_last_name ?></p>
                    </a>
                    <?php
                }
                if ($total_searched_person > 2) {
                    ?>
                    <a href="javascript:void(0)" 
                       onclick="getMoreSearchInfo('person', '<?php echo base_url() . 'get-more-search-info' ?>', '<?php echo $search_value ?>', '0')"
                       style="float:  right !important">
                        More.. &nbsp;&nbsp;&nbsp;
                    </a>
                    <hr>
                    <?php
                }
                ?>
            </li>
        </ul>
    </div>
<?php } ?>



<?php
if (isset($searched_course)) {
    ?>
    <div id="searchTitle">Course</div>
    <div id="notificationsBody" class="notifications">
        <ul>
            <li>
                <?php
                foreach ($searched_course as $course_value) {
                    ?>
                    <a href="<?php echo base_url() . $course_value->url ?>" target="_blank">
                        <p><?php echo $course_value->course_name ?></p>
                    </a>
                    <?php
                }
                if ($total_searched_course > 2) {
                    ?>
                    <a href="javascript:void(0)" 
                       onclick="getMoreSearchInfo('course', '<?php echo base_url() . 'get-more-search-info' ?>', '<?php echo $search_value ?>', '0')"
                       style="float:  right !important">
                        More.. &nbsp;&nbsp;&nbsp;
                    </a>
                    <hr>
                    <?php
                }
                ?>
                <hr>
            </li>
        </ul>
    </div>
<?php } ?>


<?php
if (isset($searched_video_course)) {
    ?>
    <div id="searchTitle">Video course</div>
    <div id="notificationsBody" class="notifications">
        <ul>
            <li>
                <?php
                foreach ($searched_video_course as $video_course_value) {
                    ?>
                    <a href="<?php echo base_url() . $video_course_value->url ?>" target="_blank">
                        <p><?php echo $video_course_value->video_course_title ?></p>
                    </a>
                    <?php
                }
                if ($total_searched_video_course > 2) {
                    ?>
                    <a href="javascript:void(0)" 
                       onclick="getMoreSearchInfo('video_course', '<?php echo base_url() . 'get-more-search-info' ?>', '<?php echo $search_value ?>', '0')"
                       style="float:  right !important">
                        More.. &nbsp;&nbsp;&nbsp;
                    </a>
                    <hr>
                    <?php
                }
                ?>
                <hr>
            </li>
        </ul>
    </div>
<?php } ?>


<?php
if (isset($searched_group)) {
    ?>
    <div id="searchTitle">Group</div>
    <div id="notificationsBody" class="notifications">
        <ul>
            <li>
                <?php
                foreach ($searched_group as $group_value) {
                    ?>
                    <a href="<?php echo base_url() . 'group/' . $group_value->url ?>" target="_blank">
                        <p><?php echo $group_value->group_name ?></p>
                    </a>
                    <?php
                }
                if ($total_searched_group > 2) {
                    ?>
                    <a href="javascript:void(0)" 
                       onclick="getMoreSearchInfo('group', '<?php echo base_url() . 'get-more-search-info' ?>', '<?php echo $search_value ?>', '0')"
                       style="float:  right !important">
                        More.. &nbsp;&nbsp;&nbsp;
                    </a>
                    <hr>
                    <?php
                }
                ?>   
                <hr>
            </li>
        </ul>
    </div>
<?php } ?>


<?php
if (isset($searched_quiz)) {
    ?>
    <div id="searchTitle">Quiz</div>
    <div id="notificationsBody" class="notifications">
        <ul>
            <li>   
                <?php
                foreach ($searched_quiz as $quiz_value) {
                    ?>
                    <a href="<?php echo base_url() . 'quiz/' . $quiz_value->url ?>" target="_blank" >
                        <p><?php echo $quiz_value->quiz_name ?></p>
                    </a>
                    <?php
                }
                if ($total_searched_quiz > 2) {
                    ?>
                    <a href="javascript:void(0)" 
                       onclick="getMoreSearchInfo('quiz', '<?php echo base_url() . 'get-more-search-info' ?>', '<?php echo $search_value ?>', '0')"
                       style="float:  right !important">
                        More.. &nbsp;&nbsp;&nbsp;
                    </a>
                    <hr>
                    <?php
                }
                ?>
                <hr>
            </li>
        </ul>
    </div>
    <?php
}