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/clenove.php

    r152 r157  
    11<?php
    22include('../global.php');
    3 include('include.php');
    4 RecalculateTariffs(1);
    53
    64class FinanceUserList extends Page
     
    119  function Show()
    1210  {
    13     global $Tarify;
    14 
    15     if($this->System->Modules['User']->CheckPermission('Finance', 'SubjectList'))
     11    $Finance = $this->System->Modules['Finance'];
     12        $this->System->Modules['Finance']->RecalculateTariffs(1);
     13        if($this->System->Modules['User']->CheckPermission('Finance', 'SubjectList'))
    1614    {
    1715      // Seznam členů
     
    4341        $TotalCash += $Row['Cash'];
    4442        if($Row['Cash'] < 0) $Row['Cash'] = '<span style="color: red;">'.$Row['Cash'].'</span>';
    45         $Tarif = $Tarify[$Row['inet_tarif_now']]['name'];
    46         $PristiTarif = $Tarify[$Row['inet_tarif_next']]['name'];
     43        $Tarif = $Finance->Tarify[$Row['inet_tarif_now']]['name'];
     44        $PristiTarif = $Finance->Tarify[$Row['inet_tarif_next']]['name'];
    4745        $Output .= '<tr><td><a href="user_state.php?id='.$Row['id'].'">'.$Row['Fullname'].'</a></td>';
    4846        //<td align="right">'.$Row['network_device'].'</td>
Note: See TracChangeset for help on using the changeset viewer.