/[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 by dpavlin, Fri Apr 20 08:25:32 2001 UTC revision 1.2 by dpavlin, Wed Apr 25 13:18:46 2001 UTC
# Line 9  Line 9 
9                          $id = $id[0][0] + 1;                          $id = $id[0][0] + 1;
10                          $naziv = ISO_Win($naziv);                          $naziv = ISO_Win($naziv);
11                          DBQuery("INSERT INTO tecajevi (sifra,naziv,sif_qualification,language) VALUES ($id,'$naziv',4,'$language')");                          DBQuery("INSERT INTO tecajevi (sifra,naziv,sif_qualification,language) VALUES ($id,'$naziv',4,'$language')");
12                            $ret = $DBH->errstr;
13                          DBClose();                          DBClose();
14                  }                  }
15                  Header("Location: $oldpage");                  if (!$ret) {
16                  exit;                          Header("Location: $oldpage");
17                            exit;
18                    }
19          }          }
20          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);  
21          $tpl->assign("oldpage", $HTTP_REFERER);          $tpl->assign("oldpage", $HTTP_REFERER);
22          $tpl->assign("naziv", HTML_Escape(Win_ISO($naziv)));          $tpl->assign("naziv", HTML_Escape(Win_ISO($naziv)));
23          $pg = basename($PHP_SELF);          $tpl->show();
         $pg = eregi_replace("\.php$", "", $pg);  
         $tpl->display("$pg-$language.tpl");  
24  ?>  ?>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.26