Changeset 59 for branches/mvc/Application/View/Main.php
- Timestamp:
- Mar 1, 2015, 12:43:56 PM (10 years ago)
- Location:
- branches/mvc
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/mvc/Application/View/Main.php
r47 r59 113 113 } 114 114 115 $Output = '<div class="Title">Statistiky</div>'; 115 $Output = '<div class="Main">'; 116 $Output .= '<div class="Title">Statistiky</div>'; 116 117 117 118 if(!array_key_exists('Operation', $_GET)) $_GET['Operation'] = ''; … … 160 161 161 162 $Output .= '<br/>'.$this->MeasureTable(); 163 $Output .= '</div>'; 162 164 return($Output); 163 165 } … … 178 180 function MeasureTable() 179 181 { 180 $Output = '<table border="1" cellspacing="0" cellpadding="2" style="font-size: small;">';182 $Output = '<table class="WideTable">'; 181 183 $Output .= '<tr><th>Měřená veličina</th><th>Poslední hodnota</th><th>Čas posledního měření</th><th>Interpolace</th><th>Poznámky</th>'; 182 184 if(array_key_exists('Debug', $_GET)) $Output .= '<th>Počet položek</th><th>Čas vykonání</th>'; 183 185 $Output .= '</tr>'; 186 $PrefixMultiplier = new PrefixMultiplier(); 184 187 $Result = $this->Database->select('Measure', '*', 'Enabled=1 ORDER BY Description'); 185 188 while($Measure = $Result->fetch_array()) … … 199 202 $Row = $Result2->fetch_array(); 200 203 $LastMeasureTime = date('j.n.Y G:i:s', $this->Database->MysqlDateTimeToTime($Row['Time'])); 201 $LastMeasureValue = $ this->System->AddPrefixMultipliers($Row['Avg'], $MeasureMethod['Unit']);204 $LastMeasureValue = $PrefixMultiplier->Add($Row['Avg'], $MeasureMethod['Unit']); 202 205 } else 203 206 { … … 219 222 220 223 //ShowPage($Output); 221 //echo(AddPrefixMultipliers('-0.000000071112345', 'B'));222 224 return($Output); 223 225 }
Note:
See TracChangeset
for help on using the changeset viewer.