Changeset 43 for trunk/Application/View/Main.php
- Timestamp:
- Nov 24, 2009, 2:03:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/View/Main.php
r42 r43 100 100 $Debug = 0; 101 101 102 foreach($this->Config[' DefaultVariables'] as $Index => $Variable)102 foreach($this->Config['Application']['DefaultVariables'] as $Index => $Variable) 103 103 { 104 104 if(!array_key_exists($Index, $_SESSION)) $_SESSION[$Index] = $Variable; … … 147 147 { 148 148 $Output .= 'Délka úseku: '; 149 foreach($ GrafTimeRanges as $Index => $Item)149 foreach($this->GraphTimeRanges as $Index => $Item) 150 150 $Output .= '<a href="?Period='.$Index.'">'.$Item['caption'].'</a> '; 151 151 $Output .= '<br/>'; … … 167 167 { 168 168 $Output = '<strong>Graf:</strong><br/>'; 169 $Output .= '<img alt="Graf" src="?M odule=Graph&Measure='.$_SESSION['Measure'].'&From='.$_SESSION['TimeStart'].'&To='.$_SESSION['TimeEnd'].'&Width=750&Height=200&Differential='.$_SESSION['Differential'].'" width="750" height="200"><br>';169 $Output .= '<img alt="Graf" src="?M=Graph&Measure='.$_SESSION['Measure'].'&From='.$_SESSION['TimeStart'].'&To='.$_SESSION['TimeEnd'].'&Width='.$this->Config['Application']['GraphSize']['Width'].'&Height='.$this->Config['Application']['GraphSize']['Height'].'&Differential='.$_SESSION['Differential'].'" width="'.$this->Config['Application']['GraphSize']['Width'].'" height="'.$this->Config['Application']['GraphSize']['Height'].'"><br>'; 170 170 $Output .= '<a href="?Measure='.$_SESSION['Measure'].'&TimeStart='.$_SESSION['TimeStart'].'&TimeEnd='.$_SESSION['TimeEnd'].'&TimeSpecify=1&Differential='.$_SESSION['Differential'].'">Odkaz na vybraný graf</a><br>'; 171 171 //print_r(GetValues($Measure, $TimeStart, $TimeEnd)); … … 191 191 $RowCount = $RowCount[0]; 192 192 } 193 $Result2 = $this->Database->select($Measure['DataTable'], 'Time, Av erage', 'Measure='.$Measure['Id'].' AND Level=0 ORDER BY Time DESC LIMIT 1');193 $Result2 = $this->Database->select($Measure['DataTable'], 'Time, Avg', 'Measure='.$Measure['Id'].' AND Level=0 ORDER BY Time DESC LIMIT 1'); 194 194 if($Result2->num_rows > 0) 195 195 { 196 196 $Row = $Result2->fetch_array(); 197 $LastMeasureTime = date('j.n.Y G:i:s', MysqlDateTimeToTime($Row['Time']));198 $LastMeasureValue = AddPrefixMultipliers($Row['Average'], $Measure['Unit']);197 $LastMeasureTime = date('j.n.Y G:i:s', $this->Database->MysqlDateTimeToTime($Row['Time'])); 198 $LastMeasureValue = $this->System->AddPrefixMultipliers($Row['Avg'], $Measure['Unit']); 199 199 } else 200 200 { … … 202 202 $LastMeasureValue = ' '; 203 203 } 204 if($Measure['Continuity'] == 1) $Interpolate = 'Ano'; else $Interpolate = 'Ne'; 204 if($Measure['Continuity'] == 1) $Interpolate = 'Ano'; 205 else $Interpolate = 'Ne'; 205 206 if($Measure['Info'] == '') $Measure['Info'] = ' '; 206 207 $GenerationTime = floor(($this->System->GetMicrotime() - $StopWatchStart) * 1000 ) / 1000;
Note:
See TracChangeset
for help on using the changeset viewer.