Ejemplo n.º 1
0
                  <a href="<?php 
    echo BaseUrl;
    ?>
">
                    <!--<i class="fa fa-dashboard"></i> <span>Home</span> <i class="fa fa-angle-left pull-right"></i>-->
                  </a>
              <ul class="treeview-menu">
              <?php 
    $count = 0;
    foreach ($subjects as $subject) {
        if (isset($_REQUEST['notesCategoryId'])) {
            $notesCategoryId = $_REQUEST['notesCategoryId'];
            if ($subject->notesCategoryId == $notesCategoryId) {
                $CategoryName = $subject->CategoryName;
            }
            $allNotesCategory = $htmlFactory->getDataFromServer("notescategory");
            if (count($allNotesCategory) > 0) {
                foreach ($allNotesCategory as $notesCategory) {
                    if ($notesCategory->notesCategoryId == $notesCategoryId) {
                        $CategoryName = $notesCategory->CategoryName;
                    }
                }
            }
        } else {
            if ($count == 0) {
                $notesCategoryId = $subject->notesCategoryId;
                $CategoryName = $subject->CategoryName;
            }
        }
        $count++;
        ?>