| 1575 | | function drawListMenu($results, $skip, $type, $dispnum, $extdisplay, $description) { |
|---|
| 1576 | | // Dirty Fix to get rid of [NEXT/PREV] since I'm not sure what passing skip does and don't want to mess with it. |
|---|
| 1577 | | // When someone feels like looking closer at the below, probably should remove the code. |
|---|
| 1578 | | // I removed pagination cause of the new scroll box ticket #1415 |
|---|
| 1579 | | $perpage=20000; |
|---|
| 1580 | | |
|---|
| 1581 | | $skipped = 0; |
|---|
| | 1575 | // $skip has been dprecated, used to be used to page-enate |
|---|
| | 1576 | function drawListMenu($results, $skip, $type, $dispnum, $extdisplay, $description=false) { |
|---|
| | 1577 | |
|---|
| 1600 | | echo "\t<li><a".($extdisplay==$result[0] ? ' class="current"':''). " href=\"config.php?type=".$type."&display=".$dispnum."&extdisplay={$result[0]}&skip={$skip}\">{$result[1]} <{$result[0]}></a></li>\n"; |
|---|
| 1601 | | } |
|---|
| 1602 | | } |
|---|
| 1603 | | |
|---|
| 1604 | | $prevtag = ""; |
|---|
| 1605 | | $prevtag_pre = ""; |
|---|
| 1606 | | if ($skip) { |
|---|
| 1607 | | $prevskip= $skip - $perpage; |
|---|
| 1608 | | if ($prevskip<0) $prevskip= 0; |
|---|
| 1609 | | $prevtag_pre= "<a href='?type=".$type."&display=".$dispnum."&skip=$prevskip'>" . |
|---|
| 1610 | | _("[PREVIOUS]") ."</a>"; |
|---|
| 1611 | | print "\t<li><center>"; |
|---|
| 1612 | | print "$prevtag_pre"; |
|---|
| 1613 | | print "</center></li>\n"; |
|---|
| 1614 | | } |
|---|
| 1615 | | |
|---|
| 1616 | | if (isset($shownext)) { |
|---|
| 1617 | | $nextskip= $skip + $index; |
|---|
| 1618 | | if ($prevtag_pre) $prevtag .= " | "; |
|---|
| 1619 | | print "\t<li><center>"; |
|---|
| 1620 | | print "$prevtag <a href='?type=".$type."&display=".$dispnum."&skip=$nextskip'>" . |
|---|
| 1621 | | _("[NEXT]") . "</a>"; |
|---|
| 1622 | | print "</center></li>\n"; |
|---|
| | 1586 | echo "\t<li><a".($extdisplay==$result[0] ? ' class="current"':''). " href=\"config.php?type=".$type."&display=".$dispnum."&extdisplay={$result[0]}\">{$result[1]} <{$result[0]}></a></li>\n"; |
|---|
| | 1587 | } |
|---|