| 36 |
* @param string The basic link to include in the href |
* @param string The basic link to include in the href |
| 37 |
* @return string |
* @return string |
| 38 |
*/ |
*/ |
| 39 |
function getLimitBox ( $link ) { |
function getLimitBox () { |
| 40 |
$limits = array(); |
$limits = array(); |
| 41 |
for ($i=5; $i <= 30; $i+=5) { |
for ($i=5; $i <= 30; $i+=5) { |
| 42 |
$limits[] = mosHTML::makeOption( "$i" ); |
$limits[] = mosHTML::makeOption( "$i" ); |
| 43 |
} |
} |
| 44 |
$limits[] = mosHTML::makeOption( "50" ); |
$limits[] = mosHTML::makeOption( "50" ); |
| 45 |
|
$limits[] = mosHTML::makeOption( "100" ); |
| 46 |
|
$limits[] = mosHTML::makeOption( "500" ); |
| 47 |
|
$limits[] = mosHTML::makeOption( "1000" ); |
| 48 |
|
$limits[] = mosHTML::makeOption( "2500" ); |
| 49 |
|
$limits[] = mosHTML::makeOption( "5000" ); |
| 50 |
|
|
| 51 |
// build the html select list |
// build the html select list |
| 52 |
$link = sefRelToAbs($link.'&limit=\' + this.options[selectedIndex].value + \'&limitstart='.$this->limitstart); |
$html = mosHTML::selectList( $limits, 'limit', 'class="inputbox" size="1" onchange="document.adminForm.submit();"', |
|
return mosHTML::selectList( $limits, 'limit', |
|
|
'class="inputbox" size="1" onchange="document.location.href=\''.$link.'\';"', |
|
| 53 |
'value', 'text', $this->limit ); |
'value', 'text', $this->limit ); |
| 54 |
|
$html .= "\n<input type=\"hidden\" name=\"limitstart\" value=\"$this->limitstart\" />"; |
| 55 |
|
return $html; |
| 56 |
} |
} |
| 57 |
/** |
/** |
| 58 |
* Writes the html limit # input box |
* Writes the html limit # input box |