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

Diff of /NovaAplikacija.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by dpavlin, Fri Apr 20 08:25:32 2001 UTC revision 1.3 by ravilov, Wed Jun 19 18:32:42 2002 UTC
# Line 5  Line 5 
5                  if (isparam("wb_OK") && $naziv) {                  if (isparam("wb_OK") && $naziv) {
6                          include("inc/conn.php");                          include("inc/conn.php");
7                          DBOpen();                          DBOpen();
                         $id = DBQuery("SELECT MAX(sifra) FROM tecajevi");  
                         $id = $id[0][0] + 1;  
8                          $naziv = ISO_Win($naziv);                          $naziv = ISO_Win($naziv);
9                          DBQuery("INSERT INTO tecajevi (sifra,naziv,sif_qualification,language) VALUES ($id,'$naziv',4,'$language')");                          DBQuery("INSERT INTO tecajevi (naziv,sif_qualification,language) VALUES ('$naziv',4,'$language')");
10                            $ret = $DBH->errstr;
11                          DBClose();                          DBClose();
12                  }                  }
13                  Header("Location: $oldpage");                  if (!$ret) {
14                  exit;                          Header("Location: $oldpage");
15                            exit;
16                    }
17          }          }
18          include("inc/Smarty.class.php");          $tpl = new MySmarty(-1, array("q" => $q));
         $tpl = new Smarty;  
         $tpl->template_dir = "./tpl";  
         $tpl->compile_dir = "./tpc";  
         $tpl->assign("action", $PHP_SELF.Params(-1, array("q" => $q)));  
         $tpl->assign("language", $language);  
         $tpl->assign("sifra", $sifra);  
19          $tpl->assign("oldpage", $HTTP_REFERER);          $tpl->assign("oldpage", $HTTP_REFERER);
20          $tpl->assign("naziv", HTML_Escape(Win_ISO($naziv)));          $tpl->assign("naziv", HTML_Escape(Win_ISO($naziv)));
21          $pg = basename($PHP_SELF);          $tpl->show();
         $pg = eregi_replace("\.php$", "", $pg);  
         $tpl->display("$pg-$language.tpl");  
22  ?>  ?>

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.26