Change :
PHP Code:
for_($i = 0;_$i_<_$pages;_$i++)____{
________$url_=_"$PHP_SELF?action=list&type=$design_id&screen="_._$i;
________$j_=_$i_+_1;
________echo_"_| <a_href=\"$url\">$j</a> |_";
____}
into
PHP Code:
for_($i_=_0;_$i_<=_10;_$i++)____{
________$url_=_"$PHP_SELF?action=list&type=$design_id&screen="_._$i;
________$j_=_$i_+_1;
________echo_"_| <a_href=\"$url\">$j</a> |_";
____}
If ($pages > 10) {
$url_=_"$PHP_SELF?action=list&type=$design_id&screen=11";
________echo_"_| <a_href=\"$url\">$j</a> |_";
echo
}
well, it'll need some extra's bcause i can imagen you would like to get the next 10 links (previous - 11-20 - next) so you'll have a few extra conditions like
PHP Code:
if ($screen > 10) {
echo previous .....
}
and you then can't set the screen to $i but you need to have another incrementing variable inside the for-loop like
PHP Code:
$lowest = 10;
for_($i_=_0;_$i_<=_10;_$i++)____{
_______ $url_=_"$PHP_SELF?action=list&type=$design_id&screen="_._$lowest;
________$lowest ++;
$j_=_$i_+_1;
________echo_"_| <a_href=\"$url\">$j</a> |_";
____}
end so on
<edit>ignore the underscores, i don't know how they get added)</edit>