Changeset 732


Ignore:
Timestamp:
Jan 30, 2015, 10:25:36 PM (10 years ago)
Author:
chronos
Message:
  • Modified: Page title in IS according current action.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/IS/IS.php

    r731 r732  
    172172  function ShowEdit($Table, $Id)
    173173  {
    174         $this->ShortTitle .= ' - Úprava '.$Table;
    175174    $Output = '';
    176175    if(defined('NEW_PERMISSION') and !$this->System->User->CheckPermission($this->TableToModule($Table), 'Write'))
     
    185184        $Form->SetClass($Table);
    186185        $Form->LoadValuesFromForm();
    187         $this->ShortTitle .= ' - úprava '.$Form->Definition['Title'];
     186        $this->ShortTitle .= ' - '.$Form->Definition['Title'].' úprava';
    188187        try {
    189188          $Form->Validate();
     
    212211      $Form->SetClass($Table);
    213212      $Form->LoadValuesFromDatabase($Id);
    214       $this->ShortTitle .= ' - úprava '.$Form->Definition['Title'];
     213      $this->ShortTitle .= ' - '.$Form->Definition['Title'].' úprava';
    215214      $Form->OnSubmit = '?a=edit&t='.$Table.'&i='.$_GET['i'].'&o=save';
    216215      $Output .= $Form->ShowEditForm();
     
    231230    $Output = '';
    232231    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í');   
    235233    $DbResult = $this->Database->select($Table, '*', '`Id`='.$Id);
    236234    if($DbResult->num_rows > 0)
     
    239237        try {
    240238        $Form = new Form($this->System->FormManager);
     239        $this->ShortTitle .= ' - '.$Form->Definition['Title'].' odstranění';
    241240        $Form->SetClass($Table);
    242241        $this->LogChange($Form, 'Delete', 0, $Id);
     
    264263        $Form->SetClass($Table);
    265264        $Form->LoadValuesFromForm();
    266         $this->ShortTitle .= ' - přidání '.$Form->Definition['Title'];
     265        $this->ShortTitle .= ' - '.$Form->Definition['Title'].' přidání';
    267266        try {
    268267          $Form->Validate();
     
    313312      $Form = new Form($this->System->FormManager);
    314313      $Form->SetClass($Table);
    315       $this->ShortTitle .= ' - přidání '.$Form->Definition['Title'];
     314      $this->ShortTitle .= ' - '.$Form->Definition['Title'].' přidání';
    316315      // Load presets from URL
    317316      foreach($_GET as $Key => $Value)
     
    357356    $Form = new Form($this->System->FormManager);
    358357    $Form->SetClass($Table);
    359     $this->ShortTitle .= ' - položka '.$Form->Definition['Title'];
     358    $this->ShortTitle .= ' - '.$Form->Definition['Title'].' položka';
    360359    $Form->LoadValuesFromDatabase($Id);
    361360    $Form->OnSubmit = '?a=view';
     
    635634      $FormClass = $this->System->FormManager->Classes[$Table];
    636635      else return($this->SystemMessage('Chyba', 'Tabulka '.$Table.' nenalezena'));
     636    $this->ShortTitle .= ' - '.$FormClass['Title'];
    637637    if(array_key_exists('ItemActions', $FormClass))
    638638    {
Note: See TracChangeset for help on using the changeset viewer.