Ignore:
Timestamp:
Feb 18, 2009, 11:19:12 AM (16 years ago)
Author:
george
Message:
  • Upraveno: Soubor include.php ve financích přepracován na třídy ve finance.php.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • www/finance/user_state_ip.php

    r156 r157  
    22
    33include_once('../global.php');
    4 include_once('include.php');
    5 RecalculateTariffs(1);
    64
    75class FinanceUserState extends Page
     
    1412    global $Tarify, $Sprava;
    1513
    16         $UserId = GetMemberByIP(GetRemoteAddress());
     14        $this->System->Modules['Finance']->RecalculateTariffs(1);
     15
     16    $UserId = GetMemberByIP(GetRemoteAddress());
    1717
    1818    if(!array_key_exists('show', $_GET)) $_GET['show'] = '';
     
    5555    $DbResult = $this->Database->query('SELECT SUM(consumption) AS Total FROM network_devices WHERE user='.$UserId.' AND used=1');
    5656        $ConsumptionBonus = $DbResult->fetch_assoc();
    57         $ConsumptionBonus = W2Kc($ConsumptionBonus['Total']);
     57        $ConsumptionBonus = $this->System->Modules['Finance']->W2Kc($ConsumptionBonus['Total']);
    5858
    5959        $Total = 0;
     
    7878      while($Row = $DbResult->fetch_assoc())
    7979      {
    80         $Output .= '<tr><td>'.$Row['name'].'</td><td>'.$Row['consumption'].'</td><td>'.W2Kc($Row['consumption']).'</td></tr>';
     80        $Output .= '<tr><td>'.$Row['name'].'</td><td>'.$Row['consumption'].'</td><td>'.$this->System->Modules['Finance']->W2Kc($Row['consumption']).'</td></tr>';
    8181        $TotalW += $Row['consumption'];
    82         $TotalPrice += W2Kc($Row['consumption']);
     82        $TotalPrice += $this->System->Modules['Finance']->W2Kc($Row['consumption']);
    8383      }
    8484      $Output .= '<tr><td><strong>Celkem</strong></td><td><strong>'.$TotalW.'</strong></td><td><strong>'.$TotalPrice.'</strong></td></tr>';
Note: See TracChangeset for help on using the changeset viewer.