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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Wed Apr 25 13:18:46 2001 UTC (23 years 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) {
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',4,'$language')");
12 $ret = $DBH->errstr;
13 DBClose();
14 }
15 if (!$ret) {
16 Header("Location: $oldpage");
17 exit;
18 }
19 }
20 $tpl = new MySmarty(-1, array("q" => $q));
21 $tpl->assign("oldpage", $HTTP_REFERER);
22 $tpl->assign("naziv", HTML_Escape(Win_ISO($naziv)));
23 $tpl->show();
24 ?>

  ViewVC Help
Powered by ViewVC 1.1.26