Changeset 19450 for trunk/www/dch/obs_summary.php
- Timestamp:
- 03/18/19 22:46:48 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/dch/obs_summary.php
r18884 r19450 80 80 81 81 $suspend = false; 82 $doubleresume=false; 82 83 $prev_data = array(); 83 84 … … 94 95 // Sanity check: There is not much we can do 95 96 if (empty($prev_data) || !$suspend) 97 { 98 $doubleresume=true; 96 99 continue; 100 } 97 101 98 102 $prev_data['fStart'] = $array[$i]['fStart']; … … 116 120 $data .= "'".$array[$i]['fSourceName']."',"; 117 121 $data .= fmt($array[$i]['fStart']).","; 118 $data .= fmt($array[$i+1]['fStart']).","; 122 // in case two resumes are scheduled without suspend inbetween, the stop of a later observations needs to be used 123 if ($array[$i+1]['fMeasurementTypeName']=='Resume' && !$suspend) 124 $data .= fmt($array[$i+2]['fStart']).","; 125 else 126 $data .= fmt($array[$i+1]['fStart']).","; 119 127 $data .= "],\n"; 120 128 … … 122 130 $html2 .= " <td>".$array[$i]['fStart']."|</td>\n"; 123 131 $html2 .= " <td>".$array[$i]["fSourceName"]."</td>\n"; 124 $html2 .= " <td>|".$array[$i+1]["fStart"]."|</td>\n"; 132 // in case two resumes are scheduled without suspend inbetween, the stop of a later observations needs to be used 133 if ($array[$i+1]['fMeasurementTypeName']=='Resume' && !$suspend) 134 $html2 .= " <td>|".$array[$i+2]["fStart"]."|</td>\n"; 135 else 136 $html2 .= " <td>|".$array[$i+1]["fStart"]."|</td>\n"; 125 137 $html2 .= " </tr>\n"; 138 $doubleresume=false; 126 139 } 127 140
Note:
See TracChangeset
for help on using the changeset viewer.