Changeset 306 for trunk/aktuality/index.php
- Timestamp:
- Jan 30, 2011, 8:56:26 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/aktuality/index.php
r302 r306 47 47 } 48 48 $Output .= '</div><div class="Content">'.$News->ModifyContent($Row['Content']).'<br />'; 49 if($Row['Link'] != '') $Output .= '<br/><a href="'.$Row['Link'].'">Odkaz</a>'; 49 50 if($Row['Enclosure'] != '') 50 51 { … … 77 78 'Nadpis:<br /><input type="text" size="54" name="title"><br /> 78 79 Obsah:<br /><textarea name="content" rows="20" cols="40"></textarea><br /> 80 Odkaz:<br /><input type="text" size="54" name="link"><br /> 79 81 Přílohy (Max. velikost souboru 1 MB):<br /><input type="hidden" name="MAX_FILE_SIZE" value="1000000"> 80 82 <input name="enclosure1" size="38" type="file"><br /> … … 108 110 109 111 $_POST['content'] = str_replace("\n",'<br />',$_POST['content']); 110 $this->Database->insert('News',array('Category' => $Category, 'Title' => $_POST['title'], 'Content' => $_POST['content'], 'Date' => 'NOW()', 'IP' => $RemoteAddr, 'Enclosure' => $Enclosures, 'Author' => $this->System->Modules['User']->User['Name'], 'User' => $this->System->Modules['User']->User['Id'] ));112 $this->Database->insert('News',array('Category' => $Category, 'Title' => $_POST['title'], 'Content' => $_POST['content'], 'Date' => 'NOW()', 'IP' => $RemoteAddr, 'Enclosure' => $Enclosures, 'Author' => $this->System->Modules['User']->User['Name'], 'User' => $this->System->Modules['User']->User['Id'], 'Link' => $_POST['link'])); 111 113 $Output .= 'Aktualita přidána!<br />Pokud budete chtít vaši aktualitu smazat, klikněte na odkaz Smazat v seznamu všech aktualit v kategorii.<br /><br />'; 112 114 $Output .= '<a href="index.php?category='.$_POST['category'].'">Zpět na seznam aktualit</a>'; … … 125 127 'Nadpis:<br /><input type="text" size="54" name="title" value="'.$Row['Title'].'"><br />'. 126 128 'Obsah:<br /><textarea name="content" rows="20" cols="40">'.$Row['Content'].'</textarea><br />'. 129 'Odkaz:<br /><input type="text" size="54" name="link"><br />'. 127 130 '<input type="hidden" name="category" value="'.$Category.'"><br />'. 128 131 '<input type="submit" value="Uložit">'. … … 192 195 } 193 196 $Output .= '</div><div class="Content">'.$News->ModifyContent($Row['Content']).'<br />'; 197 if($Row['Link'] != '') $Output .= '<br/><a href="'.$Row['Link'].'">Odkaz</a>'; 194 198 if($Row['Enclosure'] != '') 195 199 {
Note:
See TracChangeset
for help on using the changeset viewer.