Changeset 80
- Timestamp:
- Oct 21, 2009, 10:24:50 AM (15 years ago)
- Location:
- trunk/www
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/Application/Controller/Backup.php
r78 r80 2 2 3 3 include_once(dirname(__FILE__).'/../../Base/Controller.php'); 4 include_once(dirname(__FILE__).'/../View/Page.php'); 5 include_once(dirname(__FILE__).'/../View/Backup.php'); 4 6 5 7 class BackupController extends Controller -
trunk/www/Application/Controller/Client.php
r78 r80 2 2 3 3 include_once(dirname(__FILE__).'/../../Base/Controller.php'); 4 include_once(dirname(__FILE__).'/../View/Page.php'); 5 include_once(dirname(__FILE__).'/../View/Client.php'); 4 6 5 7 class ClientController extends Controller -
trunk/www/Application/Controller/Cluster.php
r78 r80 2 2 3 3 include_once(dirname(__FILE__).'/../../Base/Controller.php'); 4 include_once(dirname(__FILE__).'/../View/Page.php'); 5 include_once(dirname(__FILE__).'/../View/Cluster.php'); 4 6 5 7 class ClusterController extends Controller -
trunk/www/Application/Controller/Debug.php
r78 r80 2 2 3 3 include_once(dirname(__FILE__).'/../../Base/Controller.php'); 4 include_once(dirname(__FILE__).'/../View/Page.php'); 5 include_once(dirname(__FILE__).'/../View/Debug.php'); 4 6 5 7 class DebugController extends Controller -
trunk/www/Application/Controller/Emulator.php
r78 r80 2 2 3 3 include_once(dirname(__FILE__).'/../../Base/Controller.php'); 4 include_once(dirname(__FILE__).'/../View/Page.php'); 5 include_once(dirname(__FILE__).'/../View/Emulator.php'); 4 6 5 7 class EmulatorController extends Controller -
trunk/www/Application/Controller/News.php
r78 r80 2 2 3 3 include_once(dirname(__FILE__).'/../../Base/Controller.php'); 4 include_once(dirname(__FILE__).'/../View/Page.php'); 5 include_once(dirname(__FILE__).'/../View/News.php'); 4 6 5 7 class NewsController extends Controller -
trunk/www/Application/Controller/Realm.php
r78 r80 2 2 3 3 include_once(dirname(__FILE__).'/../../Base/Controller.php'); 4 include_once(dirname(__FILE__).'/../View/Page.php'); 5 include_once(dirname(__FILE__).'/../View/Realm.php'); 4 6 5 7 class RealmController extends Controller -
trunk/www/Application/Controller/Server.php
r78 r80 2 2 3 3 include_once(dirname(__FILE__).'/../../Base/Controller.php'); 4 include_once(dirname(__FILE__).'/../View/Page.php'); 5 include_once(dirname(__FILE__).'/../View/Server.php'); 4 6 5 7 class ServerController extends Controller -
trunk/www/Application/Controller/Task.php
r78 r80 2 2 3 3 include_once(dirname(__FILE__).'/../../Base/Controller.php'); 4 include_once(dirname(__FILE__).'/../View/Page.php'); 5 include_once(dirname(__FILE__).'/../View/Task.php'); 4 6 5 7 class TaskController extends Controller -
trunk/www/Application/Controller/Update.php
r78 r80 2 2 3 3 include_once(dirname(__FILE__).'/../../Base/Controller.php'); 4 include_once(dirname(__FILE__).'/../View/Page.php'); 5 include_once(dirname(__FILE__).'/../View/Update.php'); 4 6 5 7 class UpdateController extends Controller -
trunk/www/Application/Model/Backup.php
r78 r80 6 6 { 7 7 var $Id; 8 var $Tas h;8 var $Task; 9 9 10 10 function __construct($Database, $Id) -
trunk/www/Application/Model/User.php
r78 r80 124 124 else 125 125 { 126 $this->Database->update('User', 'Id='.$Row['Id'], array('LastLoginTime' => 'NOW()', 'LastIpAddress' => GetRemoteAddress()));126 $this->Database->update('User', 'Id='.$Row['Id'], array('LastLoginTime' => 'NOW()', 'LastIpAddress' => $this->System->GetRemoteAddress())); 127 127 $this->Database->update('UserOnline', 'SessionId="'.$SID.'"', array('User' => $Row['Id'])); 128 128 // načtení stavu stromu 129 129 $Result = $this->System->Translate('UserLoggedIn'); 130 $this->System->Modules['Log']->NewRecord('User', 'Login', 'Login='.$Login.',Host='.gethostbyaddr( GetRemoteAddress()));130 $this->System->Modules['Log']->NewRecord('User', 'Login', 'Login='.$Login.',Host='.gethostbyaddr($this->System->GetRemoteAddress())); 131 131 } 132 132 } else $Result = $this->System->Translate('UserNotRegistred'); -
trunk/www/Application/View/User.php
r78 r80 145 145 $UserOptions = new Form($this->System, $this->OptionsFormClass); 146 146 $UserOptions->LoadValuesFromDatabase($this->System->Modules['User']->Data['Id']); 147 $UserOptions->OnSubmit = '?Module=User&Action= UserOptionsSave';147 $UserOptions->OnSubmit = '?Module=User&Action=OptionsSave'; 148 148 $Output = $UserOptions->ShowEditForm(); 149 149 return($Output); -
trunk/www/Base/Table.php
r78 r80 2 2 3 3 include_once(dirname(__FILE__).'/Types/Type.php'); 4 include_once(dirname(__FILE__).'/Types/Module.php'); 4 5 5 class Table 6 class Table extends Module 6 7 { 7 8 var $Id; … … 13 14 var $TotalRowCount; 14 15 15 function __construct($FormClass )16 function __construct($FormClass, $System) 16 17 { 18 parent::__construct($System); 17 19 $this->Definition = $FormClass; 18 20 $this->QueryParameters = array(); … … 39 41 function Show() 40 42 { 41 global $Config;42 43 43 $this->CheckOrder(); 44 44 $Header = array(); … … 61 61 $Html = new Html(); 62 62 $Output = $Html->Table($Table, 'WideTable'); 63 $Output .= '<div class="Pager">'.$Html->PageList('Page', $this->Page, $this->TotalRowCount, $ Config['Web']['TableRowPerPage']).'</div>';63 $Output .= '<div class="Pager">'.$Html->PageList('Page', $this->Page, $this->TotalRowCount, $this->Config['Web']['TableRowPerPage']).'</div>'; 64 64 return($Output); 65 65 } … … 67 67 function LoadValuesFromDatabase($Database) 68 68 { 69 global $Config;70 71 69 $this->CheckOrder(); 72 70 $OrderType = array('ASC', 'DESC'); … … 85 83 if(array_key_exists('Page', $_GET)) $this->Page = $_GET['Page']; else $this->Page = 0; 86 84 if($this->Page > ($this->TotalRowCount / $Config['Web']['TableRowPerPage'])) $this->Page = 0; 87 $DbResult = $Database->query('SELECT * FROM '.$Table.' AS T ORDER BY T.'.$_GET['Column'].' '.$OrderType[$_GET['Order']].' LIMIT '.($this->Page * $ Config['Web']['TableRowPerPage']).', '.$Config['Web']['TableRowPerPage']);85 $DbResult = $Database->query('SELECT * FROM '.$Table.' AS T ORDER BY T.'.$_GET['Column'].' '.$OrderType[$_GET['Order']].' LIMIT '.($this->Page * $this->Config['Web']['TableRowPerPage']).', '.$this->Config['Web']['TableRowPerPage']); 88 86 while($DbRow = $DbResult->fetch_assoc()) 89 87 {
Note:
See TracChangeset
for help on using the changeset viewer.