Changeset 96 for trunk/Modules/Measure/Page.php
- Timestamp:
- Jan 5, 2026, 6:38:18 PM (3 days ago)
- File:
-
- 1 edited
-
trunk/Modules/Measure/Page.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Measure/Page.php
r95 r96 3 3 class PageMain extends Page 4 4 { 5 var $Months; 6 var $GraphTimeRanges; 5 var int $Time; 6 var array $Months; 7 var array $GraphTimeRanges; 7 8 8 9 function __construct(System $System) … … 61 62 } 62 63 63 function EditTime( $Time): string64 function EditTime(int $Time): string 64 65 { 65 66 $Output = '<form style="display: inline;" action="?Operation=SetTime&Time='.$Time.'" method="post">'; … … 120 121 } 121 122 122 function GetFirstMeasure( $Measure): array123 function GetFirstMeasure(array $Measure): array 123 124 { 124 125 $Result2 = $this->Database->select($Measure['DataTable'], '`Time`, `Avg`', '(`Measure`='.$Measure['Id'].') AND (`Level`=0) ORDER BY `Time` ASC LIMIT 1'); … … 135 136 } 136 137 137 function GetLastMeasure( $Measure): array138 function GetLastMeasure(array $Measure): array 138 139 { 139 140 $Result2 = $this->Database->select($Measure['DataTable'], '`Time`, `Avg`', '(`Measure`='.$Measure['Id'].') AND (`Level`=0) ORDER BY `Time` DESC LIMIT 1'); … … 150 151 } 151 152 152 function LoadMeasure( $Id): array153 function LoadMeasure(int $Id): array 153 154 { 154 155 $DbResult = $this->Database->select('Measure', '*', '( `Enabled`=1) AND (`Id`='.$Id.') AND ((`PermissionView`="all") OR (`PermissionView`="'. … … 267 268 $Output .= '<br/>'; 268 269 return $Output; 269 270 270 } 271 271 … … 360 360 global $Config; 361 361 362 $Debug = 0;363 362 $this->HandleURL(); 364 363
Note:
See TracChangeset
for help on using the changeset viewer.
