/[informatika.old]/html/obavijest.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 /html/obavijest.php

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

revision 1.20 by dpavlin, Wed Oct 3 15:18:06 2001 UTC revision 1.21 by dpavlin, Fri Jan 25 14:47:46 2002 UTC
# Line 6  include("inc/print_bool2.inc"); Line 6  include("inc/print_bool2.inc");
6  include("inc/bgcolor.inc");  include("inc/bgcolor.inc");
7  include("inc/show_bool.inc");  include("inc/show_bool.inc");
8  include("inc/auth_pop3.inc");  include("inc/auth_pop3.inc");
9    include("inc/sap_org_jed.inc");
10    
11  if (isset($kontakt_osoba_id) && $what!="relogin") {  if (isset($kontakt_osoba_id) && $what!="relogin") {
12          $result = pg_Exec ($conn, "select ime,prezime,passwd,prava from kontakt_osobe where aktivna=true and id=$kontakt_osoba_id");          $result = pg_Exec ($conn, "select ime,prezime,passwd,prava from kontakt_osobe where aktivna=true and id=$kontakt_osoba_id");
# Line 40  if (! isset($kontakt_osoba_id)) { Line 41  if (! isset($kontakt_osoba_id)) {
41    
42  $result = pg_Exec ($conn, "  $result = pg_Exec ($conn, "
43          select osobe.id as id,ime,prezime,tel,lokacije.naziv as lok,sifra,          select osobe.id as id,ime,prezime,tel,lokacije.naziv as lok,sifra,
                 org_jed.naziv as orgjed,org_pod_jed.pod_naziv as orgpodjed,  
44                  lok_racunala as lokrac,objekt,kat,soba,z_rac,podesavanje,                  lok_racunala as lokrac,objekt,kat,soba,z_rac,podesavanje,
45                  umrezavanje,shell                  umrezavanje,shell
46          from osobe          from osobe
47          where osobe.id=$id          where osobe.id=$id
48                  and lokacija_id=lokacije.id and org_jed_id=org_jed.id                  and lokacija_id=lokacije.id
49                  and org_pod_jed_id=org_pod_jed.pod_id          order by lokacije.naziv
         order by lokacije.naziv,org_jed.naziv  
50          ");          ");
51    
52  if (pg_numrows($result) > 0) {  if (pg_numrows($result) > 0) {
# Line 61  if (pg_numrows($result) > 0) { Line 60  if (pg_numrows($result) > 0) {
60          <td>$row[ime] $row[prezime]</td>          <td>$row[ime] $row[prezime]</td>
61          <td><small>Tel:</small> $row[tel]</td></tr>          <td><small>Tel:</small> $row[tel]</td></tr>
62  <tr><td><small>Org. jedinica:</small></td>  <tr><td><small>Org. jedinica:</small></td>
63          <td>$row[orgjed]</td>          <td rowspan=2>".sap_org_jed($row[sifra])." </td>
64          <td><small>Šifra radnika:</small> $row[sifra]</td></tr>          <td><small>Šifra radnika:</small> $row[sifra]</td></tr>
65  <tr><td><small>Podjedinica:</small></td>  <tr><td></td>
         <td>$row[orgpodjed]</td>  
66          <td><small>Lokacija računala:</small></td></tr>          <td><small>Lokacija računala:</small></td></tr>
67  <tr><td><small>Lokacija:</small></td>  <tr><td><small>Lokacija:</small></td>
68          <td>$row[lok]</td>          <td>$row[lok]</td>
# Line 129  if ($nr > 0) { Line 127  if ($nr > 0) {
127          $statusi.="<p><big>Nema podataka o korisničkom računu</big>";          $statusi.="<p><big>Nema podataka o korisničkom računu</big>";
128  }  }
129    
130    $server=3;
131  $result = pg_Exec ($conn, "select racuni.login as login,  $result = pg_Exec ($conn, "select racuni.login as login,
132          racuni.passwd as passwd,e_mail.alias as email,          racuni.passwd as passwd,e_mail.alias as email,
133          racuni.id as racuni_id          racuni.id as racuni_id
134          where racuni.osoba_id=$id and e_mail.osoba_id=$id");          where racuni.osoba_id=$id and e_mail.osoba_id=$id
135            and racuni.server_id=$server");
136    
137  if (pg_numrows($result) > 0) {  if (pg_numrows($result) > 0) {
138          $row=pg_fetch_array($result,0);          $row=pg_fetch_array($result,0);
# Line 147  if (pg_numrows($result) > 0) { Line 146  if (pg_numrows($result) > 0) {
146  <tr><td>Korisnička oznaka:</td><td><tt>$row[login]</tt></td></tr>  <tr><td>Korisnička oznaka:</td><td><tt>$row[login]</tt></td></tr>
147  ";  ";
148  if ($prava & $pr_instalacija || $prava & $pr_lozinke) {  if ($prava & $pr_instalacija || $prava & $pr_lozinke) {
149          print "<tr><td>Lozinka:</td><td><tt>$row[passwd]</tt>";          print "<tr><td>Lozinka:</td><td><tt>".htmlspecialchars($row[passwd])."</tt>";
150          $passwd_ok="?";          $passwd_ok="?";
151          if ($check_pop) {          if ($check_pop) {
152                  $pop3 = new POP3();                  $pop3 = new POP3();

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.26