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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations)
Wed Jun 13 09:13:42 2001 UTC (18 years ago) by ravilov
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Dodao novi ekran (Patenti).

1 <?php
2 include("inc/global.php");
3 if (!Auth()) exit;
4 $page = CalcPage($PHP_SELF);
5 $p = $page;
6 if (isparam("wb_p")) $p--;
7 if (isparam("wb_OK")) $p++;
8 if (isparam("wb_h")) $p = $PG_HOME;
9 if (isparam("wb_o")) $p = $PG_OVERVIEW;
10 include("inc/conn.php");
11 if ($p != $page) {
12 DBOpen();
13 $omeni = ISO_Win($omeni);
14 $ret = DBQuery("UPDATE o_meni SET opis='$omeni' WHERE (sif_radnika='$sifra')");
15 if ($ret[0] < 1)
16 DBQuery("INSERT INTO o_meni (sif_radnika,opis) VALUES ('$sifra','$omeni')");
17 $ret = $DBH->errstr;
18 DBClose();
19 if (!$ret) {
20 Header("Location: $pages[$p]".Params($p));
21 exit;
22 }
23 }
24 DBOpen();
25 $row = DBQuery("SELECT opis FROM o_meni WHERE (sif_radnika='$sifra')");
26 DBClose();
27 $row = $row[0];
28 $tpl = new MySmarty;
29 $tpl->assign("omeni", HTML_Escape(Win_ISO($row[0])));
30 $tpl->show();
31 ?>

  ViewVC Help
Powered by ViewVC 1.1.26