Ignore:
Timestamp:
Feb 22, 2015, 11:20:50 PM (9 years ago)
Author:
chronos
Message:
  • Modified: Tabs converted to spaces.
  • Modified: Remove spaces from end of lines.
  • Added: Code format script.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Import/Manage.php

    r636 r816  
    2626{
    2727  global $System;
    28  
    29   if(array_key_exists('id', $_GET)) 
     28
     29  if(array_key_exists('id', $_GET))
    3030  {
    3131    $Output = '<div style="font-size: xx-small;">';
    32    
     32
    3333    $GroupId = (int)$_GET['id'];
    3434    $Import = new Import($System);
    3535    $Import->SetVersion($System->Config['Web']['GameVersion']);
    3636    $Output .= $Import->ImportGroup($GroupId);
    37  
     37
    3838    $this->System->ModuleManager->Modules['Log']->WriteLog('Plnění databáze', LOG_TYPE_MODERATOR);
    3939    $Output .= '</div>';
     
    4545{
    4646  global $TranslationTree, $System;
    47  
    48   $Output = '</div><div><strong>Import zdrojů:</strong></div>'. 
     47
     48  $Output = '</div><div><strong>Import zdrojů:</strong></div>'.
    4949    '<div><a href="?action=instructions">Instrukce pro přípravu zdrojových souborů</a></div>'.
    5050    '<div><a href="?action=update_translated">Zaktualizovat verze přeložených</a></div><br/>'.
     
    5252  $DbResult = $System->Database->query('SELECT COUNT(*) FROM `Group`');
    5353  $DbRow = $DbResult->fetch_row();
    54   $PageList = GetPageList($DbRow[0]); 
     54  $PageList = GetPageList($DbRow[0]);
    5555  $Output .= '<h3>Seznam překladových skupin</h3>';
    5656  $Output .= $PageList['Output'];
    57  
     57
    5858  $Output .= '<table class="BaseTable">';
    5959  $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'),
    6464    array('Name' => 'LastVersion', 'Title' => 'Verze'),
    65     array('Name' => '', 'Title' => 'Akce'), 
     65    array('Name' => '', 'Title' => 'Akce'),
    6666  );
    6767
     
    7070
    7171  $DbResult = $System->Database->query('SELECT * FROM `Group`'.$Order['SQL'].$PageList['SQLLimit']);
    72   while($Group = $DbResult->fetch_assoc()) 
     72  while($Group = $DbResult->fetch_assoc())
    7373  {
    7474    $Output .= '<tr><td>'.$Group['Name'].'</td><td>'.$Group['SourceType'].'</td><td>';
     
    8585{
    8686  global $System;
    87  
     87
    8888  $Output = '<div style="font-size: xx-small;">';
    8989  $Import = new Import($System);
     
    9393}
    9494
    95         function Show()
    96         {
    97                 $this->Title = T('Import');
     95  function Show()
     96  {
     97    $this->Title = T('Import');
    9898    $Output = '';
    9999    if($this->System->User->Licence(LICENCE_ADMIN))
     
    104104      else if($_GET['action'] == 'importgroup') $Output .= $this->ShowImportGroup();
    105105      else if($_GET['action'] == 'update_translated') $Output .= $this->UpdateTranslated();
    106       else $Output .= $this->ShowMenu();                                           
     106      else $Output .= $this->ShowMenu();
    107107    } else $Output .= $this->ShowMenu();
    108     } else $Output .= ShowMessage(T('Access denied'), MESSAGE_CRITICAL);   
     108    } else $Output .= ShowMessage(T('Access denied'), MESSAGE_CRITICAL);
    109109    return($Output);
    110         }
     110  }
    111111}
Note: See TracChangeset for help on using the changeset viewer.