Changeset 637 for trunk/Modules/News
- Timestamp:
- Dec 11, 2013, 1:44:54 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/News/News.php
r636 r637 98 98 { 99 99 $Output = '<form action="?" method="POST">'. 100 'Uživatel: '.$this->System->User->Name.'('.$this->System->User->Id.')<br/> '.101 'Nadpis: <input type="text" name="title" size="40"/><br/>'.102 'Obsah: <textarea rows="8" cols="40" onkeydown="ResizeTextArea(this)" class="textedit" id="Text" name="text"></textarea><br/>'.100 T('User').': '.$this->System->User->Name.'('.$this->System->User->Id.')<br/> '. 101 T('Title').': <input type="text" name="title" size="40"/><br/>'. 102 T('Content').': <textarea rows="8" cols="40" onkeydown="ResizeTextArea(this)" class="textedit" id="Text" name="text"></textarea><br/>'. 103 103 '<input type="hidden" name="a" value="add2"/>'. 104 '<input type="submit" value=" Uložit"/><br/>'.104 '<input type="submit" value="'.T('Save').'"/><br/>'. 105 105 '</form>'; 106 106 } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL); … … 117 117 $this->System->User->Id.', "'.$_POST['text'].'")'; 118 118 $this->System->Database->query($querty); 119 $Output = ShowMessage( 'Aktualita uložena.');119 $Output = ShowMessage(T('News added')); 120 120 $this->System->ModuleManager->Modules['Log']->WriteLog('Vložena nová aktualita', LOG_TYPE_ADMINISTRATION); 121 121 $Output .= $this->ShowList(); 122 } else $Output = ShowMessage( 'Nezadány údaje', MESSAGE_CRITICAL);122 } else $Output = ShowMessage(T('Data not specified'), MESSAGE_CRITICAL); 123 123 } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 124 124 return($Output);
Note:
See TracChangeset
for help on using the changeset viewer.