Changeset 92
- Timestamp:
- Aug 15, 2013, 12:11:32 AM (11 years ago)
- Location:
- trunk/www
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www
- Property svn:ignore
-
old new 1 1 config.php 2 .buildpath 3 .project 4 .settings
-
- Property svn:ignore
-
trunk/www/Application/View/Backup.php
r78 r92 31 31 { 32 32 $Output = '<h4>Dostupné zálohy</h4>'; 33 $Table = new Table($this->ItemListFormClass );33 $Table = new Table($this->ItemListFormClass, $this->System); 34 34 $Table->OnRow = array($this, 'ShowListOnRow'); 35 35 $Table->Definition['Table'] = '(SELECT * FROM `Backup` WHERE `Server` = '.$Server->Id.')'; -
trunk/www/Application/View/Client.php
r78 r92 29 29 30 30 $Output = '<h4>Verze herního klienta</h4>'; 31 $Table = new Table($this->ItemListFormClass );31 $Table = new Table($this->ItemListFormClass, $this->System); 32 32 $Table->OnRow = array($this, 'ShowListOnRow'); 33 33 $Table->LoadValuesFromDatabase($this->Database); -
trunk/www/Application/View/Debug.php
r78 r92 45 45 { 46 46 $Output = '<h4>Ladící záznamy restartů</h4>'; 47 $Table = new Table($this->ItemListFormClass );47 $Table = new Table($this->ItemListFormClass, $this->System); 48 48 $Table->OnRow = array($this, 'ShowListOnRow'); 49 49 $Table->Definition['Table'] = '(SELECT * FROM Debug WHERE Realm='.$_GET['Id'].')'; -
trunk/www/Application/View/Emulator.php
r78 r92 39 39 40 40 $Output = '<h4>Seznam verzí emulátoru</h4>'; 41 $Table = new Table($this->ItemListFormClass );41 $Table = new Table($this->ItemListFormClass, $this->System); 42 42 $Table->Definition['Items']['Id'] = array('Type' => 'Hidden', 'Caption' => '', 'Default' => ''); 43 43 $Table->LoadValuesFromDatabase($this->Database); -
trunk/www/Application/View/Realm.php
r78 r92 112 112 //$Realm->UpdateServerList(); 113 113 $Output = '<h4>Seznam světů</h4>'; 114 $Table = new Table($this->ItemListFormClass );114 $Table = new Table($this->ItemListFormClass, $this->System); 115 115 //$Table->OnRow = array($this, 'ShowRealmListOnRow'); 116 116 $Table->Definition['Table'] = substr($Table->Definition['Table'], 0, -1).' WHERE `Realm`.`Server`='.$ServerId.')'; -
trunk/www/Application/View/Task.php
r78 r92 29 29 30 30 $Output = '<h4>Fronta úloh</h4>'; 31 $Table = new Table($this->ItemListFormClass );31 $Table = new Table($this->ItemListFormClass, $this->System); 32 32 $Table->OnRow = array($this, 'ShowListOnRow'); 33 33 $Table->Definition['Table'] = '(SELECT Id, (COALESCE(UNIX_TIMESTAMP(TimeEnd), UNIX_TIMESTAMP(NOW())) - UNIX_TIMESTAMP(TimeStart)) AS Duration, TimeCreate, Title, State FROM Task WHERE User='.$this->System->Modules['User']->User['Id'].' ORDER BY Id DESC)'; -
trunk/www/Application/View/Update.php
r78 r92 18 18 $Output = '<h4>Seznam dostupných aktulizací</h4>'; 19 19 $Output .= 'Před provedením aktualizace bude server zastaven a provedena záloha databáze.'; 20 $Table = new Table('EmulatorList' );20 $Table = new Table('EmulatorList', $this->System); 21 21 $Table->Definition['Table'] = substr($Table->Definition['Table'], 0, -1).' AND `Emulator`.`Revision` > '.$Server->Server['Database']['Emulator']['Revision'].' ORDER BY `Revision`)'; 22 22 $Table->Definition['Items']['Id'] = array('Type' => 'Hidden', 'Caption' => '', 'Default' => ''); -
trunk/www/Base/Database.php
r69 r92 13 13 { 14 14 global $Config; 15 15 16 16 if($Config['Web']['ShowSQLQuery'] == true) 17 17 { -
trunk/www/Base/System.php
r78 r92 89 89 function __construct() 90 90 { 91 global $Config; 92 91 93 // Change current directory to script location 92 94 $BaseDir = substr($_SERVER['SCRIPT_FILENAME'], 0, strrpos($_SERVER['SCRIPT_FILENAME'], '/')); -
trunk/www/Base/Table.php
r81 r92 67 67 68 68 function LoadValuesFromDatabase($Database) 69 { 69 { 70 70 $this->CheckOrder(); 71 71 $OrderType = array('ASC', 'DESC'); … … 83 83 $this->TotalRowCount = $DbRow[0]; 84 84 if(array_key_exists('Page', $_GET)) $this->Page = $_GET['Page']; else $this->Page = 0; 85 if($this->Page > ($this->TotalRowCount / $ Config['Web']['TableRowPerPage'])) $this->Page = 0;85 if($this->Page > ($this->TotalRowCount / $this->System->Config['Web']['TableRowPerPage'])) $this->Page = 0; 86 86 $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']); 87 //print_r(debug_backtrace()); 87 88 while($DbRow = $DbResult->fetch_assoc()) 88 89 { -
trunk/www/SQL/Updates/75.sql
r76 r92 12 12 `SubGroup` int(11) default NULL, 13 13 KEY `Group` (`Group`), 14 KEY `Operation` (` Action`),14 KEY `Operation` (`Operation`), 15 15 KEY `SubGroup` (`SubGroup`), 16 16 KEY `User` (`User`)
Note:
See TracChangeset
for help on using the changeset viewer.