/[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.3 - (show annotations)
Wed Jun 19 18:32:42 2002 UTC (21 years, 9 months ago) by ravilov
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -3 lines
lotsa changes... :)

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 $naziv = ISO_Win($naziv);
9 $grad = ISO_Win($grad);
10 DBQuery("INSERT INTO ustanove (naziv,grad,language) VALUES ('$naziv','$grad','$language')");
11 $ret = $DBH->errstr;
12 DBClose();
13 }
14 if (!$ret) {
15 Header("Location: $oldpage");
16 exit;
17 }
18 }
19 $tpl = new MySmarty;
20 $tpl->assign("oldpage", $HTTP_REFERER);
21 $tpl->assign("naziv", HTML_Escape(Win_ISO($naziv)));
22 $tpl->assign("grad", HTML_Escape(Win_ISO($grad)));
23 $tpl->show();
24 ?>

  ViewVC Help
Powered by ViewVC 1.1.26