Index: /trunk/ippMonitor/def/autocode.php
===================================================================
--- /trunk/ippMonitor/def/autocode.php	(revision 10620)
+++ /trunk/ippMonitor/def/autocode.php	(revision 10621)
@@ -20,12 +20,41 @@
 echo "<p> $TITLE </p>";
 
+// set up the form
+echo "<form action=\"$FILE\" method=\"POST\">\n";
+
 // define restrictiosn to the queries
 // ** TABLE RESTRICTIONS **
 
+// get the result table count
+if ($WHERE) {
+  $sql = "SELECT count(*) FROM $TABLE WHERE $WHERE";
+} else {
+  $sql = "SELECT count(*) FROM $TABLE";
+}
+$qry = $db->query($sql);
+if (DB::iserror($db)) {
+  echo "<b>error reading $TABLE table count</b><br>\n";
+  menu_end();
+}
+if (!$qry->fetchInto($row)) {
+  echo "<b>error reading $TABLE table count</b><br>\n";
+  menu_end();
+}
+// set up the row counter variables
+if ($ID['from']) {
+  $rowStart = $ID['from'];
+} else {
+  $rowStart = 0;
+}
+$rowLast = $rowStart + $dTABLE;
+$rowTotal = $row[0];
+if ($rowLast > $rowTotal) { $rowLast = $rowTotal; }
+echo "<b> $rowStart to $rowLast of $rowTotal items</b><br>\n";
+
 // query the database
 if ($WHERE) {
-  $sql = "SELECT $FIELDS FROM $TABLE WHERE $WHERE LIMIT 40";
+  $sql = "SELECT $FIELDS FROM $TABLE WHERE $WHERE LIMIT $dTABLE OFFSET $rowStart";
 } else {
-  $sql = "SELECT $FIELDS FROM $TABLE LIMIT 40";
+  $sql = "SELECT $FIELDS FROM $TABLE LIMIT $dTABLE OFFSET $rowStart";
 }
 
@@ -38,7 +67,38 @@
 // ** HEAD CODE **
 
-// set up the table and form
-echo "<form action=\"$FILE\" method=\"POST\">\n";
+if ($rowStart > 0) {
+  $value = 0;
+  $link = "$FILE" . "?" . $ID['link'] . "&from=$value";
+  echo "<a width=10 class=\"button\" href=\"$link\">&#60&#60</a>\n";
+} else {
+  echo "&#60&#60\n";
+}
+if ($rowStart >= $dTABLE) {
+  $value = $rowStart - $dTABLE;
+  $link = "$FILE" . "?" . $ID['link'] . "&from=$value";
+  echo "<a class=\"button\" href=\"$link\">&#60</a>\n";
+} else {
+  echo "&#60\n";
+}
 
+if ($rowLast < $rowTotal) {
+  $value = $rowStart + $dTABLE;
+  $link = "$FILE" . "?" . $ID['link'] . "&from=$value";
+  echo "<a class=\"button\" href=\"$link\">&#62</a>\n";
+} else {
+  echo "&#62\n";
+}
+
+if ($rowLast < $rowTotal) {
+  $value = $rowTotal - $dTABLE;
+  $link = "$FILE" . "?" . $ID['link'] . "&from=$value";
+  echo "<a class=\"button\" href=\"$link\">&#62&#62</a>\n";
+} else {
+  echo "&#62&#62\n";
+}
+
+echo "&nbsp; : &nbsp; or enter start row: <input type=\"text\" name=\"from\" size=\"5\" value=\"$rowStart\">\n";
+
+// set up the table
 echo "<table class=list>\n";
 echo "<tr>\n";
Index: /trunk/ippMonitor/def/pzPendingExp.d
===================================================================
--- /trunk/ippMonitor/def/pzPendingExp.d	(revision 10620)
+++ /trunk/ippMonitor/def/pzPendingExp.d	(revision 10621)
@@ -8,4 +8,2 @@
 FIELD    camera, 	20,   camera
 FIELD    telescope,	20,   telescope
-FIELD    exp_type,	20,   type
-FIELD    imfiles,	20,   N files
Index: /trunk/ippMonitor/def/pzPendingImfile.d
===================================================================
--- /trunk/ippMonitor/def/pzPendingImfile.d	(revision 10620)
+++ /trunk/ippMonitor/def/pzPendingImfile.d	(revision 10621)
@@ -8,7 +8,4 @@
 FIELD    camera,      20,   camera
 FIELD    telescope,   20,   telescope
-FIELD    bytes,	      20,   number of bytes
-FIELD    md5sum,      20,   checksum
 FIELD    class,	      20,   class
 FIELD    class_id,    20,   class ID 
-FIELD    uri,	      20,   URI
Index: /trunk/ippMonitor/raw/ipp.css
===================================================================
--- /trunk/ippMonitor/raw/ipp.css	(revision 10620)
+++ /trunk/ippMonitor/raw/ipp.css	(revision 10621)
@@ -9,7 +9,8 @@
 a:link, a:visited, a:active { text-decoration: underline; font-weight: bold; color: #ff0000 }
 
-a.menutop     { text-decoration: none; color: #ffffff; font-weight: bold }
-a.menutops    { text-decoration: none; color: #80f0ff; font-weight: bold }
-a.menuext     { text-decoration: none; color: #ffffff; font-weight: bold }
+a.button      { text-decoration: none; font-weight: bold;   color: #000000; background: #0080c0}
+a.menutop     { text-decoration: none; font-weight: bold;   color: #ffffff}
+a.menutops    { text-decoration: none; font-weight: bold;   color: #80f0ff}
+a.menuext     { text-decoration: none; font-weight: bold;   color: #ffffff}
 a.menulink    { text-decoration: none; font-weight: normal; color: #000000}
 a.menuselect  { text-decoration: none; font-weight: normal; color: #0000ff}
Index: /trunk/ippMonitor/raw/ipp.imfiles.dat
===================================================================
--- /trunk/ippMonitor/raw/ipp.imfiles.dat	(revision 10620)
+++ /trunk/ippMonitor/raw/ipp.imfiles.dat	(revision 10621)
@@ -32,5 +32,4 @@
 menulink  | menuselect 	 | link    | detResidImfile           	  | detResidImfile.php            
 menulink  | menuselect 	 | link    | masterDetrendImfiles      	  | masterDetrendImfiles.php
-menulink  | menuselect 	 | link    | detMasterImfile          	  | detMasterImfile.php                   
 menulink  | menuselect 	 | link    | pzPendingImfile          	  | pzPendingImfile.php                   
 menulink  | menuselect 	 | link    | p2PendingImfile          	  | p2PendingImfile.php                   
Index: /trunk/ippMonitor/raw/ipp.php
===================================================================
--- /trunk/ippMonitor/raw/ipp.php	(revision 10620)
+++ /trunk/ippMonitor/raw/ipp.php	(revision 10621)
@@ -1,3 +1,5 @@
 <?php
+
+$dTABLE = 40;
 
 function logintext () {
@@ -126,4 +128,5 @@
     $ID['proj'] = $_GET[proj];
     $ID['menu'] = $_GET[menu];
+    $ID['from'] = $_GET[from];
 
     if ($VERBOSE) {
@@ -139,4 +142,5 @@
     $ID['proj'] = $_POST[proj];
     $ID['menu'] = $_POST[menu];
+    $ID['from'] = $_POST[from];
 
     if ($VERBOSE) {
