- Timestamp:
- May 15, 2018, 9:46:33 AM (8 years ago)
- File:
-
- 1 edited
-
trunk/ippMonitor/raw/czartool_labels.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/raw/czartool_labels.php
r40359 r40427 357 357 echo $table; 358 358 echo "<tr>"; 359 createTableTitle("Status of last night's data", 3);359 createTableTitle("Status of last night's data", 4); 360 360 echo "<tr>"; 361 361 createTableColumnHeader("Exposure type"); 362 362 createTableColumnHeader("At summit"); 363 363 createTableColumnHeader("Registered at MHPCC"); 364 createTableColumnHeader("At summit (Dropped)"); 364 365 365 366 $msg = "No science images taken since $date"; … … 368 369 while ($qry->fetchInto($expType)) { 369 370 370 $sql = "SELECT COUNT(*) FROM summitExp WHERE dateobs > '$date' AND exp_type = '$expType[0]'"; 371 $sql = "SELECT COUNT(*) FROM summitExp left join pzDownloadExp using (summit_id) WHERE dateobs > '$date' AND exp_type = '$expType[0]' and (state != 'drop' or state is null) and fault != 1042"; 372 # $sql = "SELECT COUNT(*) FROM summitExp WHERE dateobs > '$date' AND exp_type = '$expType[0]'"; 371 373 $qry2 = $projectdb->query($sql); 372 374 $qry2->fetchInto($summit); 375 373 376 $sql = "SELECT COUNT(*) FROM summitExp JOIN rawExp ON summitExp.exp_name = rawExp.exp_name WHERE summitExp.dateobs > '$date' AND rawExp.dateobs > '$date' AND summitExp.exp_type = '$expType[0]'"; 374 377 $qry2 = $projectdb->query($sql); 375 378 $qry2->fetchInto($mhpcc); 376 379 380 $sql = "SELECT COUNT(*) FROM summitExp join pzDownloadExp using (summit_id) WHERE dateobs > '$date' AND exp_type = '$expType[0]' and state = 'drop'"; 381 $qry2 = $projectdb->query($sql); 382 $qry2->fetchInto($dropped); 383 377 384 echo "<tr>"; 378 385 … … 382 389 echo "<td>$expType[0]</td>"; 383 390 echo "<td>$summit[0]</td>"; 384 385 391 createFormattedTableCell("", "", $mhpcc[0], $error, 0); 392 echo "<td>$dropped[0]</td>"; 386 393 387 394 echo "</tr>";
Note:
See TracChangeset
for help on using the changeset viewer.
