Changeset 56 for trunk/www/view/news.php
- Timestamp:
- Aug 4, 2009, 9:53:52 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/view/news.php
r55 r56 3 3 class NewsView extends Module 4 4 { 5 var $ItemFormClass = array( 6 'Title' => 'Aktualita', 7 'Table' => 'News', 8 'Items' => array( 9 'Title' => array('Type' => 'String', 'Caption' => 'Titulek', 'Default' => ''), 10 'Content' => array('Type' => 'Text', 'Caption' => 'Obsah', 'Default' => ''), 11 ), 12 ); 13 5 14 function AddFinish() 6 15 { 7 16 if($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR) 8 17 { 9 $Form = new Form( 'News');18 $Form = new Form($this->ItemFormClass); 10 19 $Form->LoadValuesFromForm(); 11 20 $Form->Values['Time'] = 'NOW()'; … … 21 30 if($this->System->Modules['User']->User['Role'] >= USER_ROLE_ADMINISTRATOR) 22 31 { 23 $Form = new Form( 'News');32 $Form = new Form($this->ItemFormClass); 24 33 $Form->OnSubmit = '?Action=NewsAdd2'; 25 34 $Output = $Form->ShowEditForm();
Note:
See TracChangeset
for help on using the changeset viewer.