Index: trunk/ippMonitor/def/detProcessedImfile.d
===================================================================
--- trunk/ippMonitor/def/detProcessedImfile.d	(revision 26888)
+++ trunk/ippMonitor/def/detProcessedImfile.d	(revision 40882)
@@ -1,3 +1,3 @@
-TABLE detProcessedImfile, rawExp
+TABLE detProcessedImfile JOIN rawExp USING (exp_id)
 TITLE detProcessedImfile
 FILE  detProcessedImfile.php
@@ -5,5 +5,7 @@
 
 # the following WHERE clauses are added to all queries joined by AND
-WHERE detProcessedImfile.exp_id = rawExp.exp_id
+
+RESTRICT_COUNT WHERE rawExp.dateobs >= CURDATE()
+UNRESTRICTED WHERE rawExp.dateobs >= CURDATE()
 
 #     field                          size  format  name      show   link to     extras
