Changeset 479 for trunk/Modules/Portal


Ignore:
Timestamp:
Feb 5, 2013, 9:45:44 PM (12 years ago)
Author:
chronos
Message:
  • Přidáno: Tabulka pro přiřazení více služeb jednomu zákazníkovi. Původní data jsou převedena do nové struktury. Tabulka Service je společná pro všechny typy služeb a pro každou službu se zobrazí nebo vyplní pouze určité použitelné sloupce.
  • Opraveno: Korekce názvů modulů na názvy začínající slovem Module.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Portal/Portal.php

    r476 r479  
    4141    $Output = '<img alt="" src="images/favicons/comp.png" width="16" height="16" /> '.$OnlineComputers.' / '.$TotalComputers.' &nbsp;  &nbsp; ';
    4242
    43     $DbResult = $this->Database->select('Member', 'COUNT(*)', 'MemberState=0');
     43    $DbResult = $this->Database->select('Member', 'COUNT(*)', '1');
    4444    $DbRow = $DbResult->fetch_array();
    4545    $TotalUser = $DbRow[0];
     
    246246        {
    247247          $CustomerUserRel = $DbResult->fetch_assoc();
    248           $DbResult = $this->Database->query('SELECT Member.Id, Member.InternetTariffNextMonth, '.
     248          $DbResult = $this->Database->query('SELECT Member.Id, '.
    249249            'Member.FamilyMemberCount, Member.BillingPeriodNext, Subject.Name, Subject.AddressStreet, '.
    250250            'Subject.AddressTown, Subject.AddressPSC, Subject.AddressCountry, Subject.IC, Subject.DIC FROM Member JOIN Subject '.
     
    268268          $UserOptions->Values['BillingPeriodNext'] = 2;
    269269         
    270         $DbResult = $this->Database->update('Member', 'Id='.$this->System->Modules['User']->User['Member'], array('InternetTariffNextMonth' => $UserOptions->Values['InternetTariffNextMonth'], 'FamilyMemberCount' => $UserOptions->Values['FamilyMemberCount'], 'BillingPeriodNext' => $UserOptions->Values['BillingPeriodNext']));
     270        $DbResult = $this->Database->update('Member', 'Id='.$this->System->Modules['User']->User['Member'],
     271           array('FamilyMemberCount' => $UserOptions->Values['FamilyMemberCount'],
     272           'BillingPeriodNext' => $UserOptions->Values['BillingPeriodNext']));
    271273        $DbResult = $this->Database->query('SELECT Subject FROM Member WHERE Id='.$this->System->Modules['User']->User['Member']);
    272274        $Member = $DbResult->fetch_assoc();
     
    278280        $Output .= $this->SystemMessage('Nastavení', 'Nastavení domácnosti uloženo.');
    279281        $this->System->Modules['Log']->NewRecord('Member+Subject', 'Nastavení člena/subjektu změněno', $UserOptions->Values['Name']);
    280         $DbResult = $this->Database->query('SELECT Member.Id, Member.InternetTariffNextMonth, Member.FamilyMemberCount, Member.BillingPeriodNext, Subject.Name, Subject.AddressStreet, Subject.AddressTown, Subject.AddressPSC, Subject.AddressCountry, Subject.IC, Subject.DIC FROM Member JOIN Subject ON Subject.Id = Member.Subject WHERE Member.Id='.$this->System->Modules['User']->User['Member']);
     282        $DbResult = $this->Database->query('SELECT Member.Id, Member.FamilyMemberCount, Member.BillingPeriodNext, Subject.Name, Subject.AddressStreet, Subject.AddressTown, Subject.AddressPSC, Subject.AddressCountry, Subject.IC, Subject.DIC FROM Member JOIN Subject ON Subject.Id = Member.Subject WHERE Member.Id='.$this->System->Modules['User']->User['Member']);
    281283        $DbRow = $DbResult->fetch_array();
    282284        foreach($UserOptions->Definition['Items'] as $Index => $Item)
     
    324326}
    325327
    326 class Portal extends AppModule
     328class ModulePortal extends AppModule
    327329{
    328330  function __construct($System)
Note: See TracChangeset for help on using the changeset viewer.