/[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.2 - (show annotations)
Wed Apr 25 13:18:46 2001 UTC (22 years, 11 months ago) by dpavlin
Branch: MAIN
Changes since 1.1: +7 -12 lines
promjene za finalnu verziju

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 $ret = $DBH->errstr;
14 DBClose();
15 }
16 if (!$ret) {
17 Header("Location: $oldpage");
18 exit;
19 }
20 }
21 $tpl = new MySmarty;
22 $tpl->assign("oldpage", $HTTP_REFERER);
23 $tpl->assign("naziv", HTML_Escape(Win_ISO($naziv)));
24 $tpl->assign("grad", HTML_Escape(Win_ISO($grad)));
25 $tpl->show();
26 ?>

  ViewVC Help
Powered by ViewVC 1.1.26