/[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.10 by dpavlin, Tue Jun 27 13:51:27 2000 UTC revision 1.12 by dpavlin, Wed Jun 28 11:57:55 2000 UTC
# Line 80  if (pg_numrows($result) > 0) { Line 80  if (pg_numrows($result) > 0) {
80    
81  $instaliran=0;  $instaliran=0;
82    
83  $result = pg_Exec ($conn, "select datum,opis,ime,prezime,status_tip_id as st  $result = pg_Exec ($conn, "select status.id as status_id,datum,opis,ime,prezime,status_tip_id as st
84          from status,kontakt_osobe,status_tip          from status,kontakt_osobe,status_tip
85          where kontakt_osoba_id=kontakt_osobe.id and status_tip_id=status_tip.id          where kontakt_osoba_id=kontakt_osobe.id and status_tip_id=status_tip.id
86          and osoba_id=$id order by datum");          and osoba_id=$id order by datum");
# Line 91  $nr = pg_numrows($result); Line 91  $nr = pg_numrows($result);
91  if ($nr > 0) {  if ($nr > 0) {
92          for ($i=0; $i<$nr; $i++) {          for ($i=0; $i<$nr; $i++) {
93                  $row=pg_fetch_array($result,$i);                  $row=pg_fetch_array($result,$i);
94                  $statusi.="<tr ".bgcolor()."><td><small>$row[datum]</small></td><td>$row[opis]</td><td>$row[ime] $row[prezime]</td></tr>";                  if ($row[st] != 2) {
95                            $statusi.="<tr ".bgcolor()."><td><small>$row[datum]</small></td><td>$row[opis]</td><td>$row[ime] $row[prezime]</td></tr>";
96                    } else {
97                            $statusi.="<tr ".bgcolor()."><td><small>$row[datum]</small></td><td><a href=\"promjene.php?osoba_id=$id&status_id=$row[status_id]\">$row[opis]</a></td><td>$row[ime] $row[prezime]</td></tr>";
98                    }
99                  if ($row[st] == 6) { $instaliran = 1; };                  if ($row[st] == 6) { $instaliran = 1; };
100          }          }
101  } else {  } else {
# Line 195  include("inc/obavjest-forma.inc"); Line 199  include("inc/obavjest-forma.inc");
199    
200  } // isset($id)  } // isset($id)
201    
202  print '<p>Povratak na <a href="lista.php">listu zahtjeva</a> ili  print "<p>Povratak na ";
203          <a href="/">početnu stranicu</a>.';  if (isset($HTTP_REFERER)) {
204            print "<a href=\"$HTTP_REFERER\">stranicu sa koje ste došli</a> ili ";
205    }
206    print "<a href=\"/\">početnu stranicu</a>.";
207    
208    
209  include("inc/footer.inc");  include("inc/footer.inc");
210    

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.26