Changeset 839 for trunk/Modules/News
- Timestamp:
- Jan 9, 2016, 11:53:58 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/News/News.php
r838 r839 85 85 $PageList = GetPageList($DbRow[0]); 86 86 87 $Output = '<h3>'.T('News').'</h3>' .$PageList['Output'];87 $Output = '<h3>'.T('News').'</h3>'; 88 88 if($this->System->User->Licence(LICENCE_ADMIN)) 89 89 $Output .= ' <a href="?a=add">'.T('Add').'</a>'; 90 $Output .= $PageList['Output']; 90 91 $Output .= '<div class="shoutbox">'; 91 92 $DbResult = $this->System->Database->query('SELECT `News`.`Time`, `News`.`Text`, `News`.`Title`, `News`.`Id`, '. … … 121 122 { 122 123 $Output = '<form action="?" method="POST">'. 124 '<fieldset><legend>'.T('New news').'</legend>'. 123 125 T('User').': '.$this->System->User->Name.'('.$this->System->User->Id.')<br/> '. 124 126 T('Title').': <input type="text" name="title" size="40"/><br/>'. 125 127 T('Content').': <textarea rows="8" cols="40" onkeydown="ResizeTextArea(this)" class="textedit" id="Text" name="text"></textarea><br/>'. 126 128 '<input type="hidden" name="a" value="add2"/>'. 127 '<input type="submit" value="'.T('Save').'"/><br/> '.129 '<input type="submit" value="'.T('Save').'"/><br/></fieldset>'. 128 130 '</form>'; 129 131 } else $Output = ShowMessage(T('Access denied'), MESSAGE_CRITICAL); 132 $Output .= $this->ShowList(); 130 133 return($Output); 131 134 }
Note:
See TracChangeset
for help on using the changeset viewer.