Changeset 72 for trunk/www/Application/View/Emulator.php
- Timestamp:
- Aug 23, 2009, 6:37:45 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/Application/View/Emulator.php
r69 r72 43 43 foreach($Table->Values as $Index => $Item) 44 44 { 45 $Table->Values[$Index]['Actions'] = '<a href="? Action=EmulatorShow&Id='.$Item['Id'].'">Podrobnosti</a>';45 $Table->Values[$Index]['Actions'] = '<a href="?Module=Emulator&Action=Show&Id='.$Item['Id'].'">Podrobnosti</a>'; 46 46 unset($Table->Values[$Index]['Id']); 47 47 } … … 49 49 if($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR) 50 50 { 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&Action=Add">Přidat emulátor</a></dev>'; 52 52 } 53 53 return($Output); … … 59 59 //$Server = new Server($this->Database, $Id); 60 60 $Output = '<h4>Podrobnosti emulátoru</h4>'; 61 $Form = new Form($this-> ItemFormClass);61 $Form = new Form($this->System, $this->ItemFormClass); 62 62 $Form->LoadValuesFromDatabase($Id); 63 63 $Output .= $Form->ShowTable(); … … 66 66 if($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR) 67 67 { 68 if($Emulator->Emulator['Lock'] == 0) $Output .= ' <a href="? Action=EmulatorDownload&Id='.$Id.'">Stáhnout</a>';69 if($Emulator->Emulator['Lock'] == 0) $Output .= ' <a href="? Action=EmulatorCompile&Id='.$Id.'">Přeložit</a>';68 if($Emulator->Emulator['Lock'] == 0) $Output .= ' <a href="?Module=Emulator&Action=Download&Id='.$Id.'">Stáhnout</a>'; 69 if($Emulator->Emulator['Lock'] == 0) $Output .= ' <a href="?Module=Emulator&Action=Compile&Id='.$Id.'">Přeložit</a>'; 70 70 } 71 71 $Output .= '</div>'; … … 77 77 if($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR) 78 78 { 79 $Form = new Form($this-> ItemFormClass);79 $Form = new Form($this->System, $this->ItemFormClass); 80 80 $Form->LoadValuesFromForm(); 81 $Form->OnSubmit = '? Action=EmulatorAdd2';81 $Form->OnSubmit = '?Module=Emulator&Action=AddFinish'; 82 82 $Output = $Form->ShowEditForm(); 83 83 } else $Output = USER_BAD_ROLE; … … 89 89 if($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR) 90 90 { 91 $Form = new Form($this-> ItemFormClass);91 $Form = new Form($this->System, $this->ItemFormClass); 92 92 $Form->LoadValuesFromForm(); 93 93 $Form->SaveValuesToDatabase(0);
Note:
See TracChangeset
for help on using the changeset viewer.