Ejemplo n.º 1
0
if (isset($_REQUEST['page'])) {
    if ($_REQUEST['page'] > 1) {
        $sr = $_REQUEST['page'] * LIMIT;
        $sr = $sr - LIMIT + 1;
    } else {
        $sr = 1;
    }
} else {
    $sr = 1;
}
if ($selectCategoryData) {
    foreach ($selectCategoryData as $category) {
        $dropDown = "";
        if ($category->categoryId != 0) {
            $seletedCategoryid = "";
            $notesCategoryDesc = $selectCategory->getCategoryDataByCategoryId($category->categoryId);
            $parent = $notesCategoryDesc->parentid;
            $title = $notesCategoryDesc->title;
            $category_id = $notesCategoryDesc->category_id;
            $ele = "span";
            $dropDown = $selectCategory->genrateCategory($category_id, $title, $parent, $seletedCategoryid, $ele);
        }
        ?>
                      <tr>
                        <td><?php 
        echo $sr++;
        ?>
 </td>
                        <td><?php 
        echo $dropDown;
        ?>