| @@ 48-52 (lines=5) @@ | ||
| 45 | } elseif (isset($_POST['dirid'])) { |
|
| 46 | $get_dirid = (int)$_POST['dirid']; |
|
| 47 | } |
|
| 48 | if (isset($_GET['orderby'])) { |
|
| 49 | $orderby = convertOrderByIn($_GET['orderby']); |
|
| 50 | } else { |
|
| 51 | $orderby = 'title ASC'; |
|
| 52 | } |
|
| 53 | if (isset($_GET['page'])) { |
|
| 54 | $get_page = (int)$_GET['page']; |
|
| 55 | } else { |
|
| @@ 294-298 (lines=5) @@ | ||
| 291 | if (!isset($max)) { |
|
| 292 | $max = $min + $show; |
|
| 293 | } |
|
| 294 | if (isset($_GET['orderby'])) { |
|
| 295 | $orderby = convertOrderByIn($_GET['orderby']); |
|
| 296 | } else { |
|
| 297 | $orderby = 'typelevel DESC'; |
|
| 298 | } |
|
| 299 | $fullcountresult = $xoopsDB->query('select count(*) from ' . $xoopsDB->prefix($module->getVar('dirname', 'n') . '_items') . ' i, ' . $xoopsDB->prefix($module->getVar('dirname', 'n') . '_item_x_cat') . " x WHERE i.itemid=x.itemid AND x.cid=$get_catid AND i.status='2'"); |
|
| 300 | list($numrows) = $xoopsDB->fetchRow($fullcountresult); |
|
| 301 | $totalcount = $numrows; |
|
| @@ 42-46 (lines=5) @@ | ||
| 39 | } else { |
|
| 40 | $get_dirid = '1'; |
|
| 41 | } |
|
| 42 | if (isset($_GET['orderby'])) { |
|
| 43 | $orderby = convertOrderByIn($_GET['orderby']); |
|
| 44 | } else { |
|
| 45 | $orderby = 'title ASC'; |
|
| 46 | } |
|
| 47 | if (isset($_GET['page'])) { |
|
| 48 | $get_page = (int)$_GET['page']; |
|
| 49 | } else { |
|