Changeset 18720 for trunk/FACT++/www


Ignore:
Timestamp:
01/07/17 11:17:59 (8 years ago)
Author:
tbretz
Message:
Order by time instead of ID. This allows an easy implementation of a suspend/resume button just adding it to the end of the schedule.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/www/schedule/load.php

    r18045 r18720  
    5555query("SELECT fSourceKEY AS 'key', fSourceName AS 'val' FROM Source WHERE fSourceTypeKEY=1");
    5656query("SELECT fMeasurementTypeKEY AS 'key', fMeasurementTypeName AS 'val' FROM MeasurementType");
    57 query("SELECT * FROM Schedule WHERE DATE(ADDTIME(fStart, '-12:00:00')) = '".$_POST['n']."'".$cut."ORDER BY fScheduleID ASC, fMeasurementID ASC");
     57query("SELECT * FROM Schedule WHERE DATE(ADDTIME(fStart, '-12:00:00')) = '".$_POST['n']."'".$cut."ORDER BY fStart ASC, fMeasurementID ASC");
    5858
    5959//sleep(3);
Note: See TracChangeset for help on using the changeset viewer.