Ignore:
Timestamp:
Nov 24, 2009, 6:01:08 PM (14 years ago)
Author:
george
Message:
  • Přidáno: Kontrolér pro přidávání nových hodnot.
  • Opraveno: Informace o použité jednotce načítat z tabulky MeasureMethod.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/View/Main.php

    r44 r45  
    180180    $Output .= '</tr>';
    181181    $Result = $this->Database->select('Measure', '*', 'Enabled=1 ORDER BY Description');
    182     //echo($Database->error);
    183 
    184182    while($Measure = $Result->fetch_array())
    185183    {
     184      $DbResult2 = $this->Database->select('MeasureMethod', '*', 'Id='.$Measure['Method']);
     185      $MeasureMethod = $DbResult2->fetch_assoc();
    186186      $StopWatchStart = $this->System->GetMicrotime();
    187187      if(array_key_exists('Debug', $_GET))
     
    196196        $Row = $Result2->fetch_array();
    197197        $LastMeasureTime = date('j.n.Y G:i:s', $this->Database->MysqlDateTimeToTime($Row['Time']));
    198         $LastMeasureValue = $this->System->AddPrefixMultipliers($Row['Avg'], $Measure['Unit']);
     198        $LastMeasureValue = $this->System->AddPrefixMultipliers($Row['Avg'], $MeasureMethod['Unit']);
    199199      } else
    200200      {
Note: See TracChangeset for help on using the changeset viewer.