/[hr-web]/NovaUstanova.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 /NovaUstanova.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 10  Line 10 
10                          $naziv = ISO_Win($naziv);                          $naziv = ISO_Win($naziv);
11                          $grad = ISO_Win($grad);                          $grad = ISO_Win($grad);
12                          DBQuery("INSERT INTO ustanove (sifra,naziv,grad,language) VALUES ($id,'$naziv','$grad','$language')");                          DBQuery("INSERT INTO ustanove (sifra,naziv,grad,language) VALUES ($id,'$naziv','$grad','$language')");
13                            $ret = $DBH->errstr;
14                          DBClose();                          DBClose();
15                  }                  }
16                  Header("Location: $oldpage");                  if (!$ret) {
17                  exit;                          Header("Location: $oldpage");
18                            exit;
19                    }
20          }          }
21          include("inc/Smarty.class.php");          $tpl = new MySmarty;
         $tpl = new Smarty;  
         $tpl->template_dir = "./tpl";  
         $tpl->compile_dir = "./tpc";  
         $tpl->assign("action", $PHP_SELF.Params());  
         $tpl->assign("language", $language);  
         $tpl->assign("sifra", $sifra);  
22          $tpl->assign("oldpage", $HTTP_REFERER);          $tpl->assign("oldpage", $HTTP_REFERER);
23          $tpl->assign("naziv", HTML_Escape(Win_ISO($naziv)));          $tpl->assign("naziv", HTML_Escape(Win_ISO($naziv)));
24          $tpl->assign("grad", HTML_Escape(Win_ISO($grad)));          $tpl->assign("grad", HTML_Escape(Win_ISO($grad)));
25          $pg = basename($PHP_SELF);          $tpl->show();
         $pg = eregi_replace("\.php$", "", $pg);  
         $tpl->display("$pg-$language.tpl");  
26  ?>  ?>

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

  ViewVC Help
Powered by ViewVC 1.1.26