Ignore:
Timestamp:
Aug 23, 2009, 7:02:12 PM (15 years ago)
Author:
george
Message:
  • Upraveno: Přímé neHTML exporty přepracovány jako funkce Controlleru negenerující HTML, ale jiné datové formáty.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/Application/Controller/HomePage.php

    r72 r73  
    2323    return($Page->GetOutput($View->State()));
    2424  }
    25  
    26 /*
    27 class Index extends Page
    28 {
    29   var $FullTitle = 'Seznam serverů';
    30   var $ShortTitle = 'Seznam serverů'; 
    31    
    32   function Show()
    33   {
    34     global $Config;
    35    
    36     $Output = '';
    37     if(array_key_exists('Action', $_GET))
    38     {
    39       if($_GET['Action'] == 'BackupList')
    40       {
    41         $BackupView = new BackupView($this->Database, $this->System);
    42         $Output .= $BackupView->ItemList();
    43       } else     
    44       if($_GET['Action'] == 'UpdateList')
    45       {
    46         $UpdateView = new UpdateView($this->Database, $this->System);
    47         $Output .= $UpdateView->ItemList();
    48       } else     
    49       if($_GET['Action'] == 'BackupAdd')
    50       {
    51         $BackupView = new BackupView($this->Database, $this->System);
    52         $Output .= $BackupView->Add();
    53       } else     
    54       if($_GET['Action'] == 'BackupRestore')
    55       {
    56         $BackupView = new BackupView($this->Database, $this->System);
    57         $Output .= $BackupView->Restore();
    58       } else     
    59       if($_GET['Action'] == 'BackupDownload')
    60       {
    61         $BackupView = new BackupView($this->Database, $this->System);
    62         $Output .= $BackupView->Download();
    63       } else     
    64       if($_GET['Action'] == 'Update')
    65       {
    66         $UpdateView = new UpdateView($this->Database, $this->System);
    67         $Output .= $UpdateView->Update();
    68       } else     
    69    
    70     $BaseView = new BaseView($this->Database, $this->System);
    71     $Content = $Output;
    72     $Output = '<table class="BasicTable"><tr>';
    73     if($this->System->Modules['User']->User['Id'] != $this->System->Modules['User']->AnonymousUserId)
    74       $Output .= '<td class="UserMenu">'.$BaseView->UserMenu().'</td>';
    75     $Output .= '<td class="Content">'.$Content.'</td>';
    76     if(!array_key_exists('Action', $_GET))
    77     {
    78       $NewsView = new NewsView($this->Database, $this->System);
    79       $Output .= $NewsView->View();
    80     }
    81     $Output .= '</tr></table>';
    82     return($Output);
    83   }
    84 }
    85 
    86 $System->AddModule(new Index($Database, $System));
    87 $System->Modules['Index']->GetOutput();
    88 */
    89  
    9025}
    9126
Note: See TracChangeset for help on using the changeset viewer.