/[hr-web]/NovaUstanova.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

Contents of /NovaUstanova.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (vendor branch)
Fri Apr 20 08:25:32 2001 UTC (23 years ago) by dpavlin
Branch: pliva
CVS Tags: r0
Changes since 1.1: +0 -0 lines
initial import

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 && $grad) {
6 include("inc/conn.php");
7 DBOpen();
8 $id = DBQuery("SELECT MAX(sifra) FROM ustanove");
9 $id = $id[0][0] + 1;
10 $naziv = ISO_Win($naziv);
11 $grad = ISO_Win($grad);
12 DBQuery("INSERT INTO ustanove (sifra,naziv,grad,language) VALUES ($id,'$naziv','$grad','$language')");
13 DBClose();
14 }
15 Header("Location: $oldpage");
16 exit;
17 }
18 include("inc/Smarty.class.php");
19 $tpl = new Smarty;
20 $tpl->template_dir = "./tpl";
21 $tpl->compile_dir = "./tpc";
22 $tpl->assign("action", $PHP_SELF.Params());
23 $tpl->assign("language", $language);
24 $tpl->assign("sifra", $sifra);
25 $tpl->assign("oldpage", $HTTP_REFERER);
26 $tpl->assign("naziv", HTML_Escape(Win_ISO($naziv)));
27 $tpl->assign("grad", HTML_Escape(Win_ISO($grad)));
28 $pg = basename($PHP_SELF);
29 $pg = eregi_replace("\.php$", "", $pg);
30 $tpl->display("$pg-$language.tpl");
31 ?>

  ViewVC Help
Powered by ViewVC 1.1.26