Changeset 463 for trunk


Ignore:
Timestamp:
Nov 28, 2012, 9:18:35 PM (12 years ago)
Author:
chronos
Message:
  • Přidáno: Nástřel definice třídy aplikačních modulů.
  • Upraveno: K ikonám akcí ve správě dat přidány textové názvy.
Location:
trunk
Files:
4 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Common/Global.php

    r461 r463  
    66  else die('Nenalezen konfigurační soubor '.$ConfigFileName.'!');
    77include_once(dirname(__FILE__).'/Module.php');
     8include_once(dirname(__FILE__).'/AppModule.php');
    89include_once(dirname(__FILE__).'/Database.php');
    910include_once(dirname(__FILE__).'/Error.php');
     
    2122include_once(dirname(__FILE__).'/../finance/finance.php');
    2223 
     24include_once(dirname(__FILE__).'/../Modules/Meteostation/Meteostation.php');
     25
    2326$PrefixMultipliers = array
    2427(
  • trunk/form_classes.php

    r462 r463  
    121121      'Group' => array('Type' => 'TTaskGroup', 'Caption' => 'Kategorie', 'Default' => '', 'Null' => true),
    122122      'AssignedTo' => array('Type' => 'TUser', 'Caption' => 'Přiřazeno', 'Default' => '', 'Null' => true),
     123      'Work' => array('Type' => 'TWorkListTask', 'Caption' => 'Práce', 'Default' => ''),
    123124    ),
    124125  ),
     
    849850    'Filter' => '1',
    850851  ),
    851    
     852  'TWorkListTask' => array(
     853    'Type' => 'ManyToOne',
     854    'Table' => 'Work',
     855    'Id' => 'Id',
     856    'Ref' => 'Task',
     857    'Filter' => '1',
     858  ),
    852859);
    853860
  • trunk/is/index.php

    r457 r463  
    6464      $Form->OnSubmit = '?a=edit&o=save';
    6565      $Output .= $Form->ShowEditForm();
    66       $Output .= '<br/><div style="text-align: center;">';
    67       $Output .= '<a href="?a=view"><img alt="Prohlížet" title="Prohlížet" src="'.
    68       $this->System->Link('/images/view.png').'"/></a>';
    69       $Output .= '<a href="?a=list"><img alt="Seznam" title="Seznam" src="'.
    70         $this->System->Link('/images/list.png').'"/></a>';
    71       $Output .= '<a href="?a=delete" ><img alt="Odstranit" title="Odstranit" src="'.
    72         $this->System->Link('/images/delete.png').'" onclick="return confirmAction(\'Opravdu smazat položku?\');"/></a>';
    73       $Output .= '</div>';
     66      $Output .= '<ul class="ActionMenu">';
     67      $Output .= '<li><a href="?a=view"><img alt="Prohlížet" title="Prohlížet" src="'.
     68      $this->System->Link('/images/view.png').'"/>Prohlížet</a></li>';
     69      $Output .= '<li><a href="?a=list"><img alt="Seznam" title="Seznam" src="'.
     70        $this->System->Link('/images/list.png').'"/>Seznam</a></li>';
     71      $Output .= '<li><a href="?a=delete" onclick="return confirmAction(\'Opravdu smazat položku?\');"><img alt="Odstranit" title="Odstranit" src="'.
     72        $this->System->Link('/images/delete.png').'"/>Odstranit</a></li>';
     73      $Output .= '</ul>';
    7474    }
    7575    return($Output);
     
    110110      $Form->OnSubmit = '?a=add&amp;o=save';
    111111      $Output .= $Form->ShowEditForm();
    112       $Output .= '<br/><div style="text-align: center;">';
    113       $Output .= '<a href="?a=list"><img alt="Seznam" title="Seznam" src="'.
    114         $this->System->Link('/images/list.png').'"/></a>';
    115       $Output .= '</div>';
     112      $Output .= '<ul class="ActionMenu">';
     113      $Output .= '<li><a href="?a=list"><img alt="Seznam" title="Seznam" src="'.
     114        $this->System->Link('/images/list.png').'"/>Seznam</a></li>';
     115      $Output .= '</ul>';
    116116    }
    117117    return($Output);
     
    126126    $Form->OnSubmit = '?a=view';
    127127    $Output = $Form->ShowViewForm();
    128     $Output .= '<br/><div style="text-align: center;">';
    129     $Output .= '<a href="?a=edit"><img alt="Upravit" title="Upravit" src="'.
    130       $this->System->Link('/images/edit.png').'"/></a>';
    131     $Output .= '<a href="?a=list"><img alt="Seznam" title="Seznam" src="'.
    132       $this->System->Link('/images/list.png').'"/></a>';
    133     $Output .= '<a href="?a=delete"><img alt="Odstranit" title="Odstranit" src="'.
    134       $this->System->Link('/images/delete.png').'" onclick="return confirmAction(\'Opravdu smazat položku?\');"/></a>';
    135     $Output .= '</div><br/>';
     128    $Output .= '<ul class="ActionMenu">';
     129    $Output .= '<li><a href="?a=edit"><img alt="Upravit" title="Upravit" src="'.
     130      $this->System->Link('/images/edit.png').'"/>Upravit</a></li>';
     131    $Output .= '<li><a href="?a=list"><img alt="Seznam" title="Seznam" src="'.
     132      $this->System->Link('/images/list.png').'"/>Seznam</a></li>';
     133    $Output .= '<li><a href="?a=delete" onclick="return confirmAction(\'Opravdu smazat položku?\');"><img alt="Odstranit" title="Odstranit" src="'.
     134      $this->System->Link('/images/delete.png').'" />Odstranit</a></li>';
     135    $Output .= '<li><a href="?a=add"><img alt="Přidat" title="Přidat" src="'.
     136      $this->System->Link('/images/add.png').'"/>Přidat</a></li>';
     137    $Output .= '</ul><br/>';
    136138   
    137139    // Show ManyToOne relations
     
    211213    $Output .= '</table>';
    212214    $Output .= $PageList['Output'];
    213     $Output .= '<br/><div style="text-align: center;">';
    214     $Output .= '<a href="?a=add"><img alt="Přidat" title="Přidat" src="'.
    215         $this->System->Link('/images/add.png').'"/></a>';
    216     $Output .= '</div>';
     215    $Output .= '<ul class="ActionMenu">';
     216    $Output .= '<li><a href="?a=add&amp;t='.$Table.'"><img alt="Přidat" title="Přidat" src="'.
     217        $this->System->Link('/images/add.png').'"/>Přidat</a></li>';
     218    $Output .= '<li><a href="?a=list&amp;t='.$Table.'"><img alt="Seznam" title="Seznam" src="'.
     219        $this->System->Link('/images/list.png').'"/>Seznam</a></li>';
     220    $Output .= '</ul></div>';
    217221    return($Output);
    218222  }
  • trunk/sql/updates/462.sql

    r462 r463  
    3030
    3131INSERT INTO `ISMenuItem` (`Id` , `Name` , `Parent` , `Table` , `IconName`) VALUES (NULL , 'Práce', '12', 'Work', '');
     32
     33ALTER TABLE `News` CHANGE `User` `User` INT( 11 ) NULL DEFAULT NULL ;
  • trunk/style/new/style.css

    r270 r463  
    33  height: 100%;
    44  font-family: sans-serif;
     5}
     6
     7.ActionMenu
     8{
     9  text-align: center;
     10  list-style: none;
     11}
     12
     13.ActionMenu li
     14{   
     15  display: inline;   
     16  padding-left: 10px;
    517}
    618
Note: See TracChangeset for help on using the changeset viewer.