\n");
$parm_ipp = ($ipp == $def_ipp) ? "": "&ipp=$ipp";
$parm_sort = ($sort == $def_sort) ? "": "&sort=$sort";
$parm_sortorder = ($sortorder == $def_sortorder) ? "": "&sortorder=$sortorder";
$i = 1;
echo("Pages | ");
$pages = intval($totalitems / $ipp) + 1;
while ($i <= $pages) {
if ($i != $page) echo("");
echo ("-$i-");
if ($i != $page) echo("");
echo (" ");
$i = $i + 1;
if ($i > 5) {
if ($i < ($page - 2)) {
$i = $page - 2;
echo (" . . . ");
}
}
if (($i > ($page + 2)) && ($i > 5)) {
if ($i < ($pages - 4)) {
$i = $pages - 4;
echo (" . . . ");
}
}
}
echo (" |
\n");
echo("Items per Page | ");
$ipp_list = array (1,10,20,50,100,200,500,1000,9999999);
$i = 0;
while ($i <= 7) {
if ($ipp != $ipp_list[$i]) echo("");
echo ("-$ipp_list[$i]-");
if ($ipp != $ipp_list[$i]) echo("");
echo (" ");
$j = $i + 1;
if (($ipp > $ipp_list[$i]) && ($ipp < $ipp_list[$j])) echo ("-$ipp- ");
$i = $i + 1;
}
echo (" |
\n");
echo("Sort By | ");
$s_list = array ("dateAdded", "title", "creator", "type", "date", "publisher", "publication", "journalAbbreviation", "language", "dateModified", "accessDate", "libraryCatalog", "callNumber", "rights", "addedBy", "numItems");
$i = 0;
while ($i <= 15) {
if ($sort != $s_list[$i]) echo("");
echo ("-$s_list[$i]-");
if ($sort != $s_list[$i]) echo("");
echo (" ");
$i = $i + 1;
}
echo (" |
\n");
echo("Sort Order | ");
$so_list = array ("asc", "desc");
$i = 0;
while ($i <= 1) {
if ($sortorder != $so_list[$i]) echo("");
echo ("-$so_list[$i]-");
if ($sortorder != $so_list[$i]) echo("");
echo (" ");
$i = $i + 1;
}
echo (" |
\n
\n");
?>