?>
            <?php 
if ($orderby == 4 && $orderdi == "DESC") {
    ?>
            <img src="<?php 
    echo DOC_ROOT_ADMIN;
    ?>
/images/sortd.gif" alt="Desc" width="9" height="9" border="0">
            <?php 
}
?>
            </a>
        </th>

        <th valign="top" width="14%" nowrap><a href="<?php 
echo rebuildurl(array("orderby" => 5, "orderdi" => $orderby == 5 && $orderdi == "ASC" ? "DESC" : "ASC"));
?>
">
            Independent Page
            <?php 
if ($orderby == 5 && $orderdi == "ASC") {
    ?>
            <img src="<?php 
    echo DOC_ROOT_ADMIN;
    ?>
/images/sorta.gif" alt="Asc"  width="9" height="9" border="0">
            <?php 
}
?>
            <?php 
if ($orderby == 5 && $orderdi == "DESC") {
##--
## Left to current page
$j = 1;
$a = $cur_page_no;
if ($cur_page_no != 0) {
    for ($i = $cur_page_no - 1; $i >= 0; $i--) {
        $b = $a - 1;
        $pr_y = '';
        if ($j == $max_l) {
            if ($i >= 0) {
                $pr0[] = "... ";
            }
            break;
        }
        $j++;
        $pr_y .= "\n    <a href=\"" . rebuildurl(array("pageindex" => $b)) . "\" style='cursor:pointer;";
        $pr_y .= "'>{$a}</a>";
        $pr0[] = $pr_y;
        $a--;
    }
}
$pr0 = array_reverse($pr0);
##--
$pr = array_merge($pr0, $pr2);
echo implode('', $pr);
/////////////////////////////
if ($pageindex == ceil($count / $pagesize) - 1) {
    echo sprintf("&nbsp;<b>&raquo;</b>\n");
} else {
    echo sprintf("&nbsp;<a href=\"%s\">&raquo;</a>\n", rebuildurl(array("pageindex" => $pageindex + 1)));
}