Kyberia v1.0
[mirrors/Kyberia-bloodline.git] / boxiky / update.php
CommitLineData
bc13d5d6
H
1<?php
2include("./inc/redakce.inc");
3$redakce=new CLASS_REDAKCE();
4include("./inc/form.inc");
5
6$LocalImageDir="/testwebs/kyberia/images/";
7$LocalTitleImageDir="/testwebs/kyberia/title_images/";
8if($submit=="update") {
9
10 Copy($title_image,$LocalTitleImageDir.$title_image_name);
11 Copy($image,$LocaImageDir.$image_name);
12 $redakce->updateArticle($HTTP_POST_VARS,$title_image_name,$image_name);
13}
14
15$set=$redakce->getArticle($id);
16$set->next();
17echo "<html><head><link rel=stylesheet type=\"text/css\" href=\"./kyberia.css\"></head>";
18$form=new HTML_Form($PHP_SELF,"POST","","multipart/form-data");
19 echo "<html><head><title>Pridanie clanku</title></head><body>\n";
20 $redakce->listArticles();
21 echo "<body><table><tr>\n";
22 $form->addText("nazov","Nazov:",$set->getString('nazov'));
23 $form->addText("autor","Autor:",$set->getString('nazov'));
24 $form->addSelect("id_rubrika","Rubrika",$redakce->listRubrikyArray());
25 $form->addSelect("id_rubrika_secondary","Sekundarna rubrika",$redakce->listRubrikyArray());
26 $form->addText("id_forum","ID forum:",$set->getString('id_forum'));
27 $form->addText("id_forum_secondary","ID forum sekundarne:",$set->getString('id_forum_secondary'));
28 $form->addTextarea("short_desc","Kratky popis",$set->getString('short_desc'),40,6);
29 $form->addTextarea("text","Text:",$set->getString('text'),40,6);
30 $form->addSubmit("submit","update","");
31 $form->display();
32 echo "</body></html>";
33
34
35?>
This page took 0.141129 seconds and 4 git commands to generate.