IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 15, 2007, 1:51:36 PM (19 years ago)
Author:
eugene
Message:

fixing sort for the < << >> > buttons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/raw/ipp.php

    r14128 r14221  
    308308function navigate_buttons ($rowStart, $rowLast, $dTABLE, $rowTotal, $buttonLink, $ID, $file) {
    309309
     310  // add a sort key?
     311  $sortKey = "";
     312  if ($_SERVER[REQUEST_METHOD] == 'GET') {
     313    $sortKey = "&sort=" . $_GET['sort'];
     314  } else {
     315    $sortKey = "&sort=" . $_POST['sort'];
     316  }
     317
    310318  if ($rowStart > 0) {
    311319    $value = 0;
     
    314322      $link = $link . "&$buttonLink";
    315323    }
     324    $link = $link . $sortKey;
    316325    echo "<a width=10 class=\"button\" href=\"$link\">&#60&#60</a>\n";
    317326  } else {
     
    324333      $link = $link . "&$buttonLink";
    325334    }
     335    $link = $link . $sortKey;
    326336    echo "<a class=\"button\" href=\"$link\">&#60</a>\n";
    327337  } else {
     
    335345      $link = $link . "&$buttonLink";
    336346    }
     347    $link = $link . $sortKey;
    337348    echo "<a class=\"button\" href=\"$link\">&#62</a>\n";
    338349  } else {
     
    346357      $link = $link . "&$buttonLink";
    347358    }
     359    $link = $link . $sortKey;
    348360    echo "<a class=\"button\" href=\"$link\">&#62&#62</a>\n";
    349361  } else {
Note: See TracChangeset for help on using the changeset viewer.