Index: /trunk/ippMonitor/def/detInputExp.d
===================================================================
--- /trunk/ippMonitor/def/detInputExp.d	(revision 13724)
+++ /trunk/ippMonitor/def/detInputExp.d	(revision 13725)
@@ -1,6 +1,9 @@
-TABLE detInputExp
+TABLE detInputExp, rawExp
 TITLE detInputExp
 FILE  detInputExp.php
 MENU  ipp.detrend.dat
+
+# limit this table to non-OBJECT types of images
+WHERE detInputExp.exp_tag = rawExp.exp_tag
 
 ARGS  ARG1  rawImfile.exp_tag=$detInputExp.exp_tag
@@ -20,8 +23,18 @@
 #     field                  width 	name        show         link to                 extras
 FIELD detInputExp.det_id,    7,    	det_id
+FIELD detInputExp.iteration, 5,    	iteration
 FIELD detInputExp.exp_tag,   20,   	exposure,   value,       rawImfile.php,          ARG1
-FIELD detInputExp.iteration, 5,    	iteration
 FIELD detInputExp.include,   7,   	include
-FIELD *,                     5,    	choose,     value=resid, detResidImfile.php,     ARG2
-FIELD *,                     5,    	choose,     value=proc,  detProcessedImfile.php, ARG3
-
+FIELD rawExp.telescope,      10,   	Telescope
+FIELD rawExp.camera,         10,   	Camera
+FIELD rawExp.exp_type,       10,   	Type    
+FIELD rawExp.filter,         10,   	FILTER
+FIELD rawExp.dateobs,        20,   	Date/Time
+FIELD rawExp.exp_time,        5,   	exp_time    
+FIELD rawExp.sat_pixel_frac,  5,   	f(sat pixels)
+FIELD rawExp.airmass,         5,   	airmass     
+FIELD rawExp.bg,              5,   	backgnd
+FIELD rawExp.bg_stdev,        5,   	stdev    
+FIELD rawExp.bg_mean_stdev,   5,   	&lt;backgnd&gt;
+FIELD *,                      5,    	choose,     value=resid, detResidImfile.php,     ARG2
+FIELD *,                      5,    	choose,     value=proc,  detProcessedImfile.php, ARG3
Index: /trunk/ippMonitor/def/detNormalizedImfile.d
===================================================================
--- /trunk/ippMonitor/def/detNormalizedImfile.d	(revision 13724)
+++ /trunk/ippMonitor/def/detNormalizedImfile.d	(revision 13725)
@@ -15,2 +15,3 @@
 
 TAIL PHP insert_image ('PPIMAGE.JPEG1');
+TAIL PHP insert_log ('LOG.EXP');
Index: /trunk/ippMonitor/def/detRun.d
===================================================================
--- /trunk/ippMonitor/def/detRun.d	(revision 13724)
+++ /trunk/ippMonitor/def/detRun.d	(revision 13725)
@@ -35,2 +35,5 @@
 FIELD use_begin,    10,   use_begin  
 FIELD use_end,      10,   use_end    
+
+TD_CLASS list_off $state == 'drop'
+TD_CLASS list_run $state == 'run'
Index: /trunk/ippMonitor/def/detRunSummary.d
===================================================================
--- /trunk/ippMonitor/def/detRunSummary.d	(revision 13724)
+++ /trunk/ippMonitor/def/detRunSummary.d	(revision 13725)
@@ -1,6 +1,8 @@
-TABLE detRunSummary
+TABLE detRunSummary, detRun
 TITLE detRunSummary
 FILE  detRunSummary.php
 MENU  ipp.detrend.dat
+
+WHERE detRunSummary.det_id = detRun.det_id
 
 ARGS  ARG1  detInputExp.det_id=$detRunSummary.det_id
@@ -19,4 +21,6 @@
 FIELD detRunSummary.bg,        20,    bg
 FIELD detRunSummary.bg_stdev,  20,    bg_stdev
+FIELD detRun.state,            20,    state,     none
 
-TD_CLASS list_off $detRunSummary.accept == 0
+TD_CLASS list_off $detRun.state == 'drop'
+TD_CLASS list_run $detRun.state == 'run'
Index: /trunk/ippMonitor/def/rawDetrendExp_detrend.d
===================================================================
--- /trunk/ippMonitor/def/rawDetrendExp_detrend.d	(revision 13724)
+++ /trunk/ippMonitor/def/rawDetrendExp_detrend.d	(revision 13725)
@@ -1,5 +1,5 @@
 TABLE rawExp
 TITLE Raw Detrend Exposures
-FILE  rawDetrendExp.php
+FILE  rawDetrendExp_detrend.php
 MENU  ipp.detrend.dat
 
@@ -17,4 +17,5 @@
 FIELD    dateobs,     20,   Date/Time
 FIELD    exp_time,     5,   exp_time    
+FIELD    sat_pixel_frac, 5, f(sat pixels)
 FIELD    airmass,      5,   airmass     
 FIELD    bg,           5,   backgnd
Index: /trunk/ippMonitor/generate
===================================================================
--- /trunk/ippMonitor/generate	(revision 13724)
+++ /trunk/ippMonitor/generate	(revision 13725)
@@ -85,5 +85,5 @@
 	# the TD_CLASS command sets up an alternate TD class
 	if ($key eq "TD_CLASS") {
-	    $tdClass = $value;
+	    push @tdClasses, $value;
 	    # print STDERR "found TD_CLASS\n";
 	}
@@ -242,15 +242,21 @@
     my ($field, $testline);
 
-    if ($tdClass eq "") { return; }
-    # print STDERR "write TD CLASS: $tdClass...\n";
-
-    # TD_CLASS class field expression
-    ($class, $field, $testline) = split (" ", $tdClass, 3);
-
-    $field = &parse_fieldname ($field);
-
-    printf FILE "  if ($field $testline) {\n";
-    printf FILE "    \$class = \"$class\";\n";
-    printf FILE "  }\n";
+    if (@tdClasses == 0) { return; }
+    foreach $tdClass (@tdClasses) {
+	print STDERR "write TD CLASS: $tdClass...\n";
+
+	# TD_CLASS class field expression
+	($class, $field, $testline) = split (" ", $tdClass, 3);
+
+	$field = &parse_fieldname ($field);
+
+	printf FILE "  if ($field $testline) {\n";
+	printf FILE "    \$class = \"$class\";\n";
+	printf FILE "  }\n";
+
+	printf STDERR "  if ($field $testline) {\n";
+	printf STDERR "    \$class = \"$class\";\n";
+	printf STDERR "  }\n";
+    }
 }
 
Index: /trunk/ippMonitor/raw/ipp.css
===================================================================
--- /trunk/ippMonitor/raw/ipp.css	(revision 13724)
+++ /trunk/ippMonitor/raw/ipp.css	(revision 13725)
@@ -112,4 +112,15 @@
 }
 
+td.list_run  { 
+           text-align: left; 
+           font-size: normal;  
+           font-weight: normal;  
+           vertical-align: top;
+	   background: #ffa0a0; 
+	   background-color: #ffa0a0;
+	   border: 2px solid #000000; 
+	   padding: 2px; 
+}
+
 th.list  { 
            text-align: left; 
