Removed useless div around pagesel

This commit is contained in:
pezcurrel 2021-12-19 08:24:40 +01:00
parent 48fd1ee315
commit 769e0d6722

View file

@ -424,7 +424,6 @@ $il=$if+$ipp;
$ptot=ceil($itot/$ipp);
//echo('ptot: '.$ptot.'<br>'.N);
if ($ptot>1) {
$out='<div>'.N;
$out.='<select id="pagesel" onchange="document.getElementById(\'p\').value=this.value; document.getElementById(\'searchf\').submit();">'.N;
for ($i=1; $i<=$ptot; $i++) {
($i!=$p) ? $selected='' : $selected=' selected';
@ -434,7 +433,6 @@ if ($ptot>1) {
$out.='<option value="'.$i.'"'.$selected.'>'._('Page').' '.$i.' '._('of').' '.$ptot.' ('._('instances').': '.(($i-1)*$ipp+1).'-'.$li.'/'.$itot.')</option>'.N;
}
$out.='</select>'.N;
$out.='</div>'.N;
echo($out);
} else {
echo('<script language="JavaScript">document.getElementById(\'bmenu\').style.display=\'none\';</script>'.N);