Changeset 18045
- Timestamp:
- 12/29/14 23:14:42 (10 years ago)
- Location:
- trunk/FACT++/www/schedule
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/schedule/load.php
r17707 r18045 54 54 query("SELECT DISTINCT(DATE(ADDTIME(fStart, '-12:00'))) AS 'd' FROM Schedule"); 55 55 query("SELECT fSourceKEY AS 'key', fSourceName AS 'val' FROM Source WHERE fSourceTypeKEY=1"); 56 query("SELECT fMeasurement KEY AS 'key', fMeasurement AS 'val' FROM Measurement");56 query("SELECT fMeasurementTypeKEY AS 'key', fMeasurementTypeName AS 'val' FROM MeasurementType"); 57 57 query("SELECT * FROM Schedule WHERE DATE(ADDTIME(fStart, '-12:00:00')) = '".$_POST['n']."'".$cut."ORDER BY fScheduleID ASC, fMeasurementID ASC"); 58 58 -
trunk/FACT++/www/schedule/save.php
r18044 r18045 141 141 die(mysql_error()); 142 142 143 $query = "SELECT * FROM Measurement ";143 $query = "SELECT * FROM MeasurementType"; 144 144 145 145 $sql = mysql_query($query); … … 149 149 $measurements = array(); 150 150 while($row = mysql_fetch_assoc($sql)) 151 $measurements[$row['fMeasurement Key']] = $row;151 $measurements[$row['fMeasurementTypeKey']] = $row; 152 152 153 153 // ---------------------------------------------------------------- … … 192 192 { 193 193 if ($measurements[$m]['fIsUnlimited']==true) 194 die("Unlimited task '".$measurements[$m]['fMeasurement ']."' detected before end of observation\n[".$last."|".($id-1)."]");194 die("Unlimited task '".$measurements[$m]['fMeasurementTypeName']."' detected before end of observation\n[".$last."|".($id-1)."]"); 195 195 } 196 196 … … 206 206 // Check if task need source or must not have a source 207 207 if ($measurements[$m]['fNeedsSource']==true && $s==0) 208 die("Task '".$measurements[$m]['fMeasurement ']."' needs source.\n[".$t."|".$id."]");208 die("Task '".$measurements[$m]['fMeasurementTypeName']."' needs source.\n[".$t."|".$id."]"); 209 209 if ($measurements[$m]['fNeedsSource']!=true && $s>0) 210 die("Task '".$measurements[$m]['fMeasurement ']."' must not have source.\n[".$t."|".$id."]");210 die("Task '".$measurements[$m]['fMeasurementTypeName']."' must not have source.\n[".$t."|".$id."]"); 211 211 212 212 // Compile query
Note:
See TracChangeset
for help on using the changeset viewer.