Index: /trunk/ippMonitor/Makefile.in
===================================================================
--- /trunk/ippMonitor/Makefile.in	(revision 18312)
+++ /trunk/ippMonitor/Makefile.in	(revision 18313)
@@ -39,4 +39,14 @@
 $(DESTWWW)/phptest.php \
 $(DESTWWW)/site.php \
+$(DESTWWW)/broken.png \
+$(DESTWWW)/down.png \
+$(DESTWWW)/down_sel.png \
+$(DESTWWW)/left.png \
+$(DESTWWW)/left_sel.png \
+$(DESTWWW)/missing.png \
+$(DESTWWW)/right.png \
+$(DESTWWW)/right_sel.png \
+$(DESTWWW)/up.png \
+$(DESTWWW)/up_sel.png \
 $(DESTWWW)/getimage.php
 
Index: /trunk/ippMonitor/def/autocode.php
===================================================================
--- /trunk/ippMonitor/def/autocode.php	(revision 18312)
+++ /trunk/ippMonitor/def/autocode.php	(revision 18313)
@@ -28,13 +28,14 @@
 // get the result table count
 $sql = "SELECT count(*) FROM $TABLE $WHERE";
-// echo "<br><small><b> count query : $sql </b></small><br>\n";
 
 $qry = $db->query($sql);
-if (DB::iserror($db)) {
+if (DB::isError($qry)) {
   echo "<b>error reading $TABLE table count</b><br>\n";
+  echo "<br><small><b> count query : $sql </b></small><br>\n";
   menu_end();
 }
 if (!$qry->fetchInto($row)) {
   echo "<b>error reading $TABLE table count</b><br>\n";
+  echo "<br><small><b> count query : $sql </b></small><br>\n";
   menu_end();
 }
@@ -52,9 +53,9 @@
 // query the database
 $sql = "SELECT $FIELDS FROM $TABLE $WHERE LIMIT $dTABLE OFFSET $rowStart";
-// echo "<br><small><b> table query : $sql </b></small><br>\n";
 
 $qry = $db->query($sql);
-if (DB::iserror($db)) {
+if (DB::isError($qry)) {
   echo "<b>error reading $TABLE table</b><br>\n";
+  echo "<br><small><b> table query : $sql </b></small><br>\n";
   menu_end();
 }
Index: /trunk/ippMonitor/def/camProcessedExp.d
===================================================================
--- /trunk/ippMonitor/def/camProcessedExp.d	(revision 18312)
+++ /trunk/ippMonitor/def/camProcessedExp.d	(revision 18313)
@@ -9,5 +9,4 @@
 WHERE chipRun.exp_id = rawExp.exp_id
 WHERE camProcessedExp.cam_id  = camRun.cam_id
-WHERE camProcessedExp.chip_id = camRun.chip_id
 
 # define image names to be used below
Index: /trunk/ippMonitor/def/camProcessedExp_NoImages.d
===================================================================
--- /trunk/ippMonitor/def/camProcessedExp_NoImages.d	(revision 18312)
+++ /trunk/ippMonitor/def/camProcessedExp_NoImages.d	(revision 18313)
@@ -9,5 +9,4 @@
 WHERE chipRun.exp_id = rawExp.exp_id
 WHERE camProcessedExp.cam_id  = camRun.cam_id
-WHERE camProcessedExp.chip_id = camRun.chip_id
 WHERE camProcessedExp.fault = 0
 
@@ -19,8 +18,8 @@
 ARGS  ARG1  chipRun.exp_id=$chipRun.exp_id
 
-ARGS  ARG2 camRun.cam_id=$camRun.cam_id
-ARGS  ARG2 rawExp.exp_id=$rawExp.exp_id
-ARGS  ARG2 camera=$rawExp.camera
-ARGS  ARG2 basename=$camProcessedExp.path_base
+#ARGS  ARG2 camRun.cam_id=$camRun.cam_id
+#ARGS  ARG2 rawExp.exp_id=$rawExp.exp_id
+#ARGS  ARG2 camera=$rawExp.camera
+#ARGS  ARG2 basename=$camProcessedExp.path_base
 
 OP   OP1  $rawExp.ra * 57.295783
Index: /trunk/ippMonitor/def/camProcessedExp_failure.d
===================================================================
--- /trunk/ippMonitor/def/camProcessedExp_failure.d	(revision 18312)
+++ /trunk/ippMonitor/def/camProcessedExp_failure.d	(revision 18313)
@@ -9,5 +9,4 @@
 WHERE chipRun.exp_id = rawExp.exp_id
 WHERE camProcessedExp.cam_id  = camRun.cam_id
-WHERE camProcessedExp.chip_id = camRun.chip_id
 WHERE camProcessedExp.fault != 0
 
Index: /trunk/ippMonitor/def/camProcessedImfile.d
===================================================================
--- /trunk/ippMonitor/def/camProcessedImfile.d	(revision 18312)
+++ /trunk/ippMonitor/def/camProcessedImfile.d	(revision 18313)
@@ -9,5 +9,4 @@
 WHERE chipRun.exp_id = rawExp.exp_id
 WHERE camProcessedExp.cam_id = camRun.cam_id
-WHERE camProcessedExp.chip_id = camRun.chip_id
 WHERE chipProcessedImfile.chip_id = camRun.chip_id
 
@@ -19,11 +18,11 @@
 FIELD rawExp.telescope,      		10,   %s,     Telescope
 FIELD rawExp.camera,         		10,   %s,     Camera
-FIELD chipProcessedImfile.bg,            5,   %s,     backgnd
-FIELD chipProcessedImfile.bg_stdev,      5,   %s,     stdev    
-FIELD chipProcessedImfile.bg_mean_stdev, 5,   %s,     &lt;backgnd&gt;
-FIELD chipProcessedImfile.n_stars,  	 5,   %s,     Nstars
-FIELD chipProcessedImfile.n_astrom, 	 5,   %s,     Nastrom
-FIELD chipProcessedImfile.sigma_ra, 	 5,   %s,     sigma ra
-FIELD chipProcessedImfile.fwhm_major,  	 5,   %s,     FHWM (major)
+FIELD chipProcessedImfile.bg,            5,   %.2f,   backgnd
+FIELD chipProcessedImfile.bg_stdev,      5,   %.2f,   stdev    
+FIELD chipProcessedImfile.bg_mean_stdev, 5,   %.2f,   &lt;backgnd&gt;
+FIELD chipProcessedImfile.n_stars,  	 5,   %d,     Nstars
+FIELD camProcessedExp.n_astrom, 	 5,   %d,     Nastrom
+FIELD camProcessedExp.sigma_ra, 	 5,   %.2f,   sigma ra
+FIELD chipProcessedImfile.fwhm_major,  	 5,   %.2f,   FHWM (major)
 
 TAIL PHP insert_image ('PPIMAGE.JPEG1');
Index: /trunk/ippMonitor/def/chipProcessedImfile.d
===================================================================
--- /trunk/ippMonitor/def/chipProcessedImfile.d	(revision 18312)
+++ /trunk/ippMonitor/def/chipProcessedImfile.d	(revision 18313)
@@ -28,8 +28,8 @@
 FIELD rawExp.camera,         	   	 10, %s,     Camera
 FIELD rawExp.dateobs,        	   	 19, %T,     Date/Time
-FIELD rawExp.filter,         	   	 10, %s,     FILTER
 FIELD rawExp.ra,           	 	  8, %10.6f, RA,           op=OP1      
 FIELD rawExp.decl,         	 	  8, %10.6f, DEC,          op=OP2
 FIELD rawExp.object,       	   	  8, %s,     Object
+FIELD rawExp.filter,         	   	 10, %s,     FILTER
 FIELD rawExp.exp_time,       	   	  5, %.2f,     exp_time    
 FIELD rawExp.airmass,        	   	  5, %.4f,     airmass     
@@ -37,6 +37,4 @@
 FIELD chipProcessedImfile.bg_stdev,       5, %.2f,     stdev    
 FIELD chipProcessedImfile.n_stars,  	  5, %d,     Nstars
-FIELD chipProcessedImfile.n_astrom, 	  5, %d,     Nastrom
-FIELD chipProcessedImfile.sigma_ra, 	  5, %f,     sigma ra
 FIELD chipProcessedImfile.fwhm_major, 	  5, %f,     FHWM
 FIELD chipProcessedImfile.path_base,      5, %s,     path_base, none
Index: /trunk/ippMonitor/def/chipProcessedImfile_failure.d
===================================================================
--- /trunk/ippMonitor/def/chipProcessedImfile_failure.d	(revision 18312)
+++ /trunk/ippMonitor/def/chipProcessedImfile_failure.d	(revision 18313)
@@ -28,8 +28,8 @@
 FIELD rawExp.camera,         	   	 10, %s,     Camera
 FIELD rawExp.dateobs,        	   	 19, %T,     Date/Time
-FIELD rawExp.filter,         	   	 10, %s,     FILTER
 FIELD rawExp.ra,           	 	  8, %10.6f, RA,           op=OP1      
 FIELD rawExp.decl,         	 	  8, %10.6f, DEC,          op=OP2
 FIELD rawExp.object,       	   	  8, %s,     Object
+FIELD rawExp.filter,         	   	 10, %s,     FILTER
 FIELD rawExp.exp_time,       	   	  5, %.2f,   exp_time    
 FIELD rawExp.airmass,        	   	  5, %.4f,   airmass     
@@ -37,6 +37,4 @@
 FIELD chipProcessedImfile.bg_stdev,       5, %.2f,   stdev    
 FIELD chipProcessedImfile.n_stars,  	  5, %d,     Nstars
-FIELD chipProcessedImfile.n_astrom, 	  5, %d,     Nastrom
-FIELD chipProcessedImfile.sigma_ra, 	  5, %f,     sigma ra
 FIELD chipProcessedImfile.fwhm_major, 	  5, %f,     FHWM
 FIELD chipProcessedImfile.path_base,      5, %s,     path_base, none
