Changeset 479 for trunk/Modules/Portal/Portal.php
- Timestamp:
- Feb 5, 2013, 9:45:44 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Portal/Portal.php
r476 r479 41 41 $Output = '<img alt="" src="images/favicons/comp.png" width="16" height="16" /> '.$OnlineComputers.' / '.$TotalComputers.' '; 42 42 43 $DbResult = $this->Database->select('Member', 'COUNT(*)', ' MemberState=0');43 $DbResult = $this->Database->select('Member', 'COUNT(*)', '1'); 44 44 $DbRow = $DbResult->fetch_array(); 45 45 $TotalUser = $DbRow[0]; … … 246 246 { 247 247 $CustomerUserRel = $DbResult->fetch_assoc(); 248 $DbResult = $this->Database->query('SELECT Member.Id, Member.InternetTariffNextMonth,'.248 $DbResult = $this->Database->query('SELECT Member.Id, '. 249 249 'Member.FamilyMemberCount, Member.BillingPeriodNext, Subject.Name, Subject.AddressStreet, '. 250 250 'Subject.AddressTown, Subject.AddressPSC, Subject.AddressCountry, Subject.IC, Subject.DIC FROM Member JOIN Subject '. … … 268 268 $UserOptions->Values['BillingPeriodNext'] = 2; 269 269 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'])); 271 273 $DbResult = $this->Database->query('SELECT Subject FROM Member WHERE Id='.$this->System->Modules['User']->User['Member']); 272 274 $Member = $DbResult->fetch_assoc(); … … 278 280 $Output .= $this->SystemMessage('Nastavení', 'Nastavení domácnosti uloženo.'); 279 281 $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']); 281 283 $DbRow = $DbResult->fetch_array(); 282 284 foreach($UserOptions->Definition['Items'] as $Index => $Item) … … 324 326 } 325 327 326 class Portal extends AppModule328 class ModulePortal extends AppModule 327 329 { 328 330 function __construct($System)
Note:
See TracChangeset
for help on using the changeset viewer.