Changeset 69 for trunk/Modules/Measure/Measure.php
- Timestamp:
- Feb 28, 2016, 10:54:30 AM (9 years ago)
- Location:
- trunk/Modules
- Files:
-
- 2 added
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Measure/Measure.php
r68 r69 1 1 <?php 2 3 include_once(dirname(__FILE__).'/Page.php'); 4 5 class ModuleMeasure extends AppModule 6 { 7 function __construct($System) 8 { 9 parent::__construct($System); 10 $this->Name = 'Measure'; 11 $this->Version = '1.0'; 12 $this->Creator = 'Chronos'; 13 $this->License = 'GNU/GPL'; 14 $this->Description = 'Measurement processing'; 15 $this->Dependencies = array(); 16 } 17 18 function DoStart() 19 { 20 $this->System->RegisterPage('', 'PageMain'); 21 } 22 } 2 23 3 24 include_once('Point.php'); … … 47 68 function Load($Id) 48 69 { 49 $Result = $this->Database->select(' measure', '*', 'Id='.$Id);70 $Result = $this->Database->select('Measure', '*', '`Id`='.$Id); 50 71 if($Result->num_rows > 0) 51 72 { … … 60 81 $Time = time(); 61 82 62 $Result = $this->Database->select($this->Data['DataTable'], '*', '(` measure`='.$this->Data['Id'].') AND '.83 $Result = $this->Database->select($this->Data['DataTable'], '*', '(`Measure`='.$this->Data['Id'].') AND '. 63 84 '(`level`=0) ORDER BY `time` DESC LIMIT 2'); 64 85 if($Result->num_rows == 0) {
Note:
See TracChangeset
for help on using the changeset viewer.