Changeset 78 for trunk/www/Application/View/User.php
- Timestamp:
- Sep 11, 2009, 8:18:38 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/Application/View/User.php
r77 r78 1 1 <?php 2 2 3 class UserView extends Module 3 include_once(dirname(__FILE__).'/../../Base/View.php'); 4 5 class UserView extends View 4 6 { 5 7 var $OptionsFormClass = array( … … 142 144 { 143 145 $UserOptions = new Form($this->System, $this->OptionsFormClass); 144 $UserOptions->LoadValuesFromDatabase($this->System->Modules['User']-> User['Id']);146 $UserOptions->LoadValuesFromDatabase($this->System->Modules['User']->Data['Id']); 145 147 $UserOptions->OnSubmit = '?Module=User&Action=UserOptionsSave'; 146 148 $Output = $UserOptions->ShowEditForm(); … … 152 154 $UserOptions = new Form($this->System, $this->OptionsFormClass, array()); 153 155 $UserOptions->LoadValuesFromForm(); 154 $UserOptions->SaveValuesToDatabase($this->System->Modules['User']-> User['Id']);156 $UserOptions->SaveValuesToDatabase($this->System->Modules['User']->Data['Id']); 155 157 $Page = new PageView($this->System); 156 158 $Output = $Page->SystemMessage('Nastavení', 'Nastavení uloženo.'); 157 159 $this->System->Modules['Log']->NewRecord('User', 'Nastavení uživatele změněno', $UserOptions->Values['Name']); 158 $UserOptions->LoadValuesFromDatabase($this->System->Modules['User']-> User['Id']);160 $UserOptions->LoadValuesFromDatabase($this->System->Modules['User']->Data['Id']); 159 161 $UserOptions->OnSubmit = '?Module=User&Action=UserOptionsSave'; 160 162 $Output .= $UserOptions->ShowEditForm();
Note:
See TracChangeset
for help on using the changeset viewer.