Changeset 816 for trunk/Modules/Import/Manage.php
- Timestamp:
- Feb 22, 2015, 11:20:50 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Import/Manage.php
r636 r816 26 26 { 27 27 global $System; 28 29 if(array_key_exists('id', $_GET)) 28 29 if(array_key_exists('id', $_GET)) 30 30 { 31 31 $Output = '<div style="font-size: xx-small;">'; 32 32 33 33 $GroupId = (int)$_GET['id']; 34 34 $Import = new Import($System); 35 35 $Import->SetVersion($System->Config['Web']['GameVersion']); 36 36 $Output .= $Import->ImportGroup($GroupId); 37 37 38 38 $this->System->ModuleManager->Modules['Log']->WriteLog('Plnění databáze', LOG_TYPE_MODERATOR); 39 39 $Output .= '</div>'; … … 45 45 { 46 46 global $TranslationTree, $System; 47 48 $Output = '</div><div><strong>Import zdrojů:</strong></div>'. 47 48 $Output = '</div><div><strong>Import zdrojů:</strong></div>'. 49 49 '<div><a href="?action=instructions">Instrukce pro přípravu zdrojových souborů</a></div>'. 50 50 '<div><a href="?action=update_translated">Zaktualizovat verze přeložených</a></div><br/>'. … … 52 52 $DbResult = $System->Database->query('SELECT COUNT(*) FROM `Group`'); 53 53 $DbRow = $DbResult->fetch_row(); 54 $PageList = GetPageList($DbRow[0]); 54 $PageList = GetPageList($DbRow[0]); 55 55 $Output .= '<h3>Seznam překladových skupin</h3>'; 56 56 $Output .= $PageList['Output']; 57 57 58 58 $Output .= '<table class="BaseTable">'; 59 59 $TableColumns = array( 60 array('Name' => 'Name', 'Title' => 'Jméno'), 61 array('Name' => 'SourceType', 'Title' => 'Typ zdroje'), 62 array('Name' => 'SourceName', 'Title' => 'Jméno zdroje'), 63 array('Name' => 'LastImport', 'Title' => 'Datum'), 60 array('Name' => 'Name', 'Title' => 'Jméno'), 61 array('Name' => 'SourceType', 'Title' => 'Typ zdroje'), 62 array('Name' => 'SourceName', 'Title' => 'Jméno zdroje'), 63 array('Name' => 'LastImport', 'Title' => 'Datum'), 64 64 array('Name' => 'LastVersion', 'Title' => 'Verze'), 65 array('Name' => '', 'Title' => 'Akce'), 65 array('Name' => '', 'Title' => 'Akce'), 66 66 ); 67 67 … … 70 70 71 71 $DbResult = $System->Database->query('SELECT * FROM `Group`'.$Order['SQL'].$PageList['SQLLimit']); 72 while($Group = $DbResult->fetch_assoc()) 72 while($Group = $DbResult->fetch_assoc()) 73 73 { 74 74 $Output .= '<tr><td>'.$Group['Name'].'</td><td>'.$Group['SourceType'].'</td><td>'; … … 85 85 { 86 86 global $System; 87 87 88 88 $Output = '<div style="font-size: xx-small;">'; 89 89 $Import = new Import($System); … … 93 93 } 94 94 95 96 97 95 function Show() 96 { 97 $this->Title = T('Import'); 98 98 $Output = ''; 99 99 if($this->System->User->Licence(LICENCE_ADMIN)) … … 104 104 else if($_GET['action'] == 'importgroup') $Output .= $this->ShowImportGroup(); 105 105 else if($_GET['action'] == 'update_translated') $Output .= $this->UpdateTranslated(); 106 else $Output .= $this->ShowMenu(); 106 else $Output .= $this->ShowMenu(); 107 107 } else $Output .= $this->ShowMenu(); 108 } else $Output .= ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 108 } else $Output .= ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 109 109 return($Output); 110 110 } 111 111 }
Note:
See TracChangeset
for help on using the changeset viewer.