Changeset 732
- Timestamp:
- Jan 30, 2015, 10:25:36 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/IS/IS.php
r731 r732 172 172 function ShowEdit($Table, $Id) 173 173 { 174 $this->ShortTitle .= ' - Úprava '.$Table;175 174 $Output = ''; 176 175 if(defined('NEW_PERMISSION') and !$this->System->User->CheckPermission($this->TableToModule($Table), 'Write')) … … 185 184 $Form->SetClass($Table); 186 185 $Form->LoadValuesFromForm(); 187 $this->ShortTitle .= ' - úprava '.$Form->Definition['Title'];186 $this->ShortTitle .= ' - '.$Form->Definition['Title'].' úprava'; 188 187 try { 189 188 $Form->Validate(); … … 212 211 $Form->SetClass($Table); 213 212 $Form->LoadValuesFromDatabase($Id); 214 $this->ShortTitle .= ' - úprava '.$Form->Definition['Title'];213 $this->ShortTitle .= ' - '.$Form->Definition['Title'].' úprava'; 215 214 $Form->OnSubmit = '?a=edit&t='.$Table.'&i='.$_GET['i'].'&o=save'; 216 215 $Output .= $Form->ShowEditForm(); … … 231 230 $Output = ''; 232 231 if(defined('NEW_PERMISSION') and !$this->System->User->CheckPermission($this->TableToModule($Table), 'Write')) 233 return('Nemáte oprávnění'); 234 $this->ShortTitle .= ' - odstranění '.$Table; 232 return('Nemáte oprávnění'); 235 233 $DbResult = $this->Database->select($Table, '*', '`Id`='.$Id); 236 234 if($DbResult->num_rows > 0) … … 239 237 try { 240 238 $Form = new Form($this->System->FormManager); 239 $this->ShortTitle .= ' - '.$Form->Definition['Title'].' odstranění'; 241 240 $Form->SetClass($Table); 242 241 $this->LogChange($Form, 'Delete', 0, $Id); … … 264 263 $Form->SetClass($Table); 265 264 $Form->LoadValuesFromForm(); 266 $this->ShortTitle .= ' - přidání '.$Form->Definition['Title'];265 $this->ShortTitle .= ' - '.$Form->Definition['Title'].' přidání'; 267 266 try { 268 267 $Form->Validate(); … … 313 312 $Form = new Form($this->System->FormManager); 314 313 $Form->SetClass($Table); 315 $this->ShortTitle .= ' - přidání '.$Form->Definition['Title'];314 $this->ShortTitle .= ' - '.$Form->Definition['Title'].' přidání'; 316 315 // Load presets from URL 317 316 foreach($_GET as $Key => $Value) … … 357 356 $Form = new Form($this->System->FormManager); 358 357 $Form->SetClass($Table); 359 $this->ShortTitle .= ' - položka '.$Form->Definition['Title'];358 $this->ShortTitle .= ' - '.$Form->Definition['Title'].' položka'; 360 359 $Form->LoadValuesFromDatabase($Id); 361 360 $Form->OnSubmit = '?a=view'; … … 635 634 $FormClass = $this->System->FormManager->Classes[$Table]; 636 635 else return($this->SystemMessage('Chyba', 'Tabulka '.$Table.' nenalezena')); 636 $this->ShortTitle .= ' - '.$FormClass['Title']; 637 637 if(array_key_exists('ItemActions', $FormClass)) 638 638 {
Note:
See TracChangeset
for help on using the changeset viewer.