Ignore:
Timestamp:
Aug 23, 2009, 6:37:45 PM (15 years ago)
Author:
george
Message:
  • Přidáno: Doplněny další Controllery.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/Application/View/Emulator.php

    r69 r72  
    4343    foreach($Table->Values as $Index => $Item)
    4444    {
    45       $Table->Values[$Index]['Actions'] = '<a href="?Action=EmulatorShow&amp;Id='.$Item['Id'].'">Podrobnosti</a>';
     45      $Table->Values[$Index]['Actions'] = '<a href="?Module=Emulator&amp;Action=Show&amp;Id='.$Item['Id'].'">Podrobnosti</a>';
    4646      unset($Table->Values[$Index]['Id']);
    4747    }
     
    4949    if($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR)
    5050    {
    51       $Output .= '<br /><div style="text-align: center;"><a href="?Action=EmulatorAdd">Přidat emulátor</a></dev>';     
     51      $Output .= '<br /><div style="text-align: center;"><a href="?Module=Emulator&amp;Action=Add">Přidat emulátor</a></dev>';     
    5252    }
    5353    return($Output);
     
    5959    //$Server = new Server($this->Database, $Id);
    6060    $Output = '<h4>Podrobnosti emulátoru</h4>';
    61     $Form = new Form($this->ItemFormClass);
     61    $Form = new Form($this->System, $this->ItemFormClass);
    6262    $Form->LoadValuesFromDatabase($Id);
    6363    $Output .= $Form->ShowTable();
     
    6666    if($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR)
    6767    {
    68       if($Emulator->Emulator['Lock'] == 0) $Output .= ' <a href="?Action=EmulatorDownload&amp;Id='.$Id.'">Stáhnout</a>';
    69       if($Emulator->Emulator['Lock'] == 0) $Output .= ' <a href="?Action=EmulatorCompile&amp;Id='.$Id.'">Přeložit</a>';
     68      if($Emulator->Emulator['Lock'] == 0) $Output .= ' <a href="?Module=Emulator&amp;Action=Download&amp;Id='.$Id.'">Stáhnout</a>';
     69      if($Emulator->Emulator['Lock'] == 0) $Output .= ' <a href="?Module=Emulator&amp;Action=Compile&amp;Id='.$Id.'">Přeložit</a>';
    7070    }
    7171    $Output .= '</div>';
     
    7777    if($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR)
    7878    {
    79       $Form = new Form($this->ItemFormClass);
     79      $Form = new Form($this->System, $this->ItemFormClass);
    8080      $Form->LoadValuesFromForm();
    81       $Form->OnSubmit = '?Action=EmulatorAdd2';
     81      $Form->OnSubmit = '?Module=Emulator&amp;Action=AddFinish';
    8282      $Output = $Form->ShowEditForm();
    8383    } else $Output = USER_BAD_ROLE;
     
    8989    if($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR)
    9090    {
    91       $Form = new Form($this->ItemFormClass);
     91      $Form = new Form($this->System, $this->ItemFormClass);
    9292      $Form->LoadValuesFromForm();
    9393      $Form->SaveValuesToDatabase(0);
Note: See TracChangeset for help on using the changeset viewer.