9 |
$id = $id[0][0] + 1; |
$id = $id[0][0] + 1; |
10 |
$naziv = ISO_Win($naziv); |
$naziv = ISO_Win($naziv); |
11 |
DBQuery("INSERT INTO tecajevi (sifra,naziv,sif_qualification,language) VALUES ($id,'$naziv',4,'$language')"); |
DBQuery("INSERT INTO tecajevi (sifra,naziv,sif_qualification,language) VALUES ($id,'$naziv',4,'$language')"); |
12 |
|
$ret = $DBH->errstr; |
13 |
DBClose(); |
DBClose(); |
14 |
} |
} |
15 |
Header("Location: $oldpage"); |
if (!$ret) { |
16 |
exit; |
Header("Location: $oldpage"); |
17 |
|
exit; |
18 |
|
} |
19 |
} |
} |
20 |
include("inc/Smarty.class.php"); |
$tpl = new MySmarty(-1, array("q" => $q)); |
|
$tpl = new Smarty; |
|
|
$tpl->template_dir = "./tpl"; |
|
|
$tpl->compile_dir = "./tpc"; |
|
|
$tpl->assign("action", $PHP_SELF.Params(-1, array("q" => $q))); |
|
|
$tpl->assign("language", $language); |
|
|
$tpl->assign("sifra", $sifra); |
|
21 |
$tpl->assign("oldpage", $HTTP_REFERER); |
$tpl->assign("oldpage", $HTTP_REFERER); |
22 |
$tpl->assign("naziv", HTML_Escape(Win_ISO($naziv))); |
$tpl->assign("naziv", HTML_Escape(Win_ISO($naziv))); |
23 |
$pg = basename($PHP_SELF); |
$tpl->show(); |
|
$pg = eregi_replace("\.php$", "", $pg); |
|
|
$tpl->display("$pg-$language.tpl"); |
|
24 |
?> |
?> |