/[hr-web]/NoviTecaj.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /NoviTecaj.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Fri Apr 20 08:25:32 2001 UTC (22 years, 11 months ago) by dpavlin
Branch: MAIN
Branch point for: pliva
Initial revision

1 dpavlin 1.1 <?php
2     include("inc/global.php");
3     if (!Auth()) exit;
4     if (isparam("wb_OK") || isparam("wb_Cancel")) {
5     if (isparam("wb_OK") && $naziv) {
6     include("inc/conn.php");
7     DBOpen();
8     $id = DBQuery("SELECT MAX(sifra) FROM tecajevi");
9     $id = $id[0][0] + 1;
10     $naziv = ISO_Win($naziv);
11     DBQuery("INSERT INTO tecajevi (sifra,naziv,sif_qualification,language) VALUES ($id,'$naziv',$q,'$language')");
12     DBClose();
13     }
14     Header("Location: $oldpage");
15     exit;
16     }
17     include("inc/Smarty.class.php");
18     $tpl = new Smarty;
19     $tpl->template_dir = "./tpl";
20     $tpl->compile_dir = "./tpc";
21     $tpl->assign("action", $PHP_SELF.Params(-1, array("q" => $q)));
22     $tpl->assign("language", $language);
23     $tpl->assign("sifra", $sifra);
24     $tpl->assign("oldpage", $HTTP_REFERER);
25     $tpl->assign("naziv", HTML_Escape(Win_ISO($naziv)));
26     $pg = basename($PHP_SELF);
27     $pg = eregi_replace("\.php$", "", $pg);
28     $tpl->display("$pg-$language.tpl");
29     ?>

  ViewVC Help
Powered by ViewVC 1.1.26