/[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

Annotation of /OMeni.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Fri Apr 20 08:25:32 2001 UTC (23 years ago) by dpavlin
Branch: MAIN
Branch point for: pliva
Initial revision

1 dpavlin 1.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 = 0;
9     if (isparam("wb_o")) $p = 15;
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     DBClose();
18     Header("Location: $pages[$p]".Params($p));
19     exit;
20     }
21     DBOpen();
22     $row = DBQuery("SELECT opis FROM o_meni WHERE (sif_radnika='$sifra')");
23     DBClose();
24     $row = $row[0];
25     include("inc/Smarty.class.php");
26     $tpl = new Smarty;
27     $tpl->template_dir = "./tpl";
28     $tpl->compile_dir = "./tpc";
29     $tpl->assign("action", $PHP_SELF.Params());
30     $tpl->assign("language", $language);
31     $tpl->assign("sifra", $sifra);
32     $tpl->assign("omeni", HTML_Escape(Win_ISO($row[0])));
33     $pg = basename($PHP_SELF);
34     $pg = eregi_replace("\.php$", "", $pg);
35     $tpl->display("$pg-$language.tpl");
36     ?>

  ViewVC Help
Powered by ViewVC 1.1.26