Commit | Line | Data |
---|---|---|
bc13d5d6 H |
1 | <?php |
2 | ini_set("include_path","/home/hromi1/kyberia/inc:/home/hromi1/kyberia/boxiky/:/home/hromi1/kyberia/config/"); | |
3 | include("redakce.inc"); | |
4 | $redakce=new CLASS_REDAKCE(); | |
5 | include("form.inc"); | |
6 | include("configdb.inc"); | |
7 | if($action=="delete") { | |
8 | $redakce->deleteArticle($id); | |
9 | Header("Location:",$PHP_SELF); | |
10 | } | |
11 | ?> | |
12 | ||
13 | <html><head><title>Zoznam clankov</title> | |
14 | <link rel=stylesheet type="text/css" href="./kyberia.css"> | |
15 | </head> | |
16 | <body> | |
17 | <? | |
18 | $set=$redakce->listArticles(); | |
19 | echo "<table class=box>"; | |
20 | while ($set->next()) { | |
21 | echo "<tr><td><a href=/redakcia/update.php?id=".$set->getString("id_article").">\n"; | |
22 | echo $set->getString('nazov'),"</a>\n"; | |
23 | echo " (",$redakce->getRubrikaById($set->getString("id_rubrika")),",\n"; | |
24 | echo $redakce->getRubrikaById($set->getString("id_rubrika_secondary")),")\n"; | |
25 | echo "</td>\n"; | |
26 | echo "<td><a href=",$PHP_SELF,"?action=delete&id=",$set->getString(id_article),">Delete</a>"; | |
27 | echo "</tr>\n"; | |
28 | ||
29 | } | |
30 | echo "</table>"; | |
31 | echo "<br><a href=\"addarticle.php\">Pridaj novy clanok</a>"; | |
32 | echo "</body></html>"; | |
33 | ?> |