pagenav.php

File Type: php File Location: monofiles/ File name: pagenav.php
<?php

include_once 'data_connect.php';

    if (
$n 0) {
        
        
$gt = array('sortbycat','sortbystat','sortbyauth','sortbytitle','sortbyalpha','sortbyrev');
        
        
        foreach(
$gt as $set) {
            
            if (isset(
$_GET[$set])) {
                
$sort '&amp;'.$set.'='.$_GET[$set];
                break;
            }
            
            else
                
$sort '';
        }
        
        
        
        
        if((
$ofp $n) && ($ofp != '')) 
            
            echo 
'<a href="?max='.$prevlink.'&amp;at='.time().$sort.'"><span id="prev" class="navbutton">&#8249;&#8249; previous</span></a>';

        
        if(
$ofp == $n)
            
            echo 
'<a href="?'.time().$sort.'"><span id="prev" class="navbutton">&#8249;&#8249; previous</span></a>';


        if (
$c $ofp)
            
            echo 
'<a href="?max='.$nextlink.'&amp;at='.time().$sort.'"><span id="next" class="navbutton">next &#8250;&#8250;</span></a>';


    }



?>