Changeset 373 for trunk/Modules/News/News.php
- Timestamp:
- Jan 19, 2012, 9:43:36 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/News/News.php
r370 r373 70 70 } 71 71 72 class NewsView extends View 73 { 74 function __construct() 75 { 72 class NewsView extends ViewForm 73 { 74 function __construct($Database) 75 { 76 parent::__construct($Database); 76 77 $this->Name = 'News'; 77 78 $this->Title = 'Nová aktualita'; 78 79 $this->SubmitText = 'Vložit'; 79 AddItemOneToMany('Category', 'Kategorie', 'NewsGroup', '0');80 AddItemString('Title', 'Nadpis', '');81 AddItemText('Content', 'Obsah', '');82 AddItemFileName('Enclosure1', 'Přílohy (Max. velikost souboru 1 MB)', '');83 AddItemFileName('Enclosure2', '', '');84 AddItemFileName('Enclosure3', '', '');80 $this->AddItemOneToMany('Category', 'Kategorie', 'NewsGroup', '0'); 81 $this->AddItemString('Title', 'Nadpis', ''); 82 $this->AddItemText('Content', 'Obsah', ''); 83 $this->AddItemFileName('Enclosure1', 'Přílohy (Max. velikost souboru 1 MB)', ''); 84 $this->AddItemFileName('Enclosure2', '', ''); 85 $this->AddItemFileName('Enclosure3', '', ''); 85 86 } 86 87 }
Note:
See TracChangeset
for help on using the changeset viewer.