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

Contents of /html/obavijest.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Wed Apr 26 12:21:59 2000 UTC (23 years, 11 months ago) by dpavlin
Branch: MAIN
Changes since 1.1: +9 -1 lines
upis ID-ja zahtjeva

1 <?
2
3 include("inc/head.inc");
4
5 if (! isset($id)) {
6 include("inc/obavjest-forma.inc");
7 } else {
8
9
10 $result = pg_Exec ($conn, "
11 select osobe.id as id,ime,prezime,tel,lokacije.naziv as lok,sifra,
12 org_jed.naziv as orgjed,org_pod_jed.pod_naziv as orgpodjed,
13 lok_racunala as lokrac,objekt,kat,soba,z_rac
14 from osobe
15 where osobe.id=$id
16 and lokacija_id=lokacije.id and org_jed_id=org_jed.id
17 and org_pod_jed_id=org_pod_jed.pod_id
18 order by lokacije.naziv,org_jed.naziv
19 ");
20
21 if (pg_numrows($result) > 0) {
22 $row=pg_fetch_array($result,0);
23
24 print "
25 <h1>Podaci o osobi</h1>
26
27 <table>
28 <tr><td><small>Ime i prezime:</small></td>
29 <td>$row[ime] $row[prezime]</td>
30 <td><small>Tel:</small> $row[tel]</td></tr>
31 <tr><td><small>Org. jedinica:</small></td>
32 <td>$row[orgjed]</td>
33 <td><small>©ifra radnika:</small> $row[sifra]</td></tr>
34 <tr><td><small>Podjedinica:</small></td>
35 <td>$row[orgpodjed]</td>
36 <td><small>Lokacija raèunala:</small></td></tr>
37 <tr><td><small>Lokacija:</small></td>
38 <td>$row[lok]</td>
39 <td>$row[lokrac]</td></tr>
40 <tr><td><small>Objekt/soba/kat:</small></td>
41 <td>$row[objekt] / $row[soba] / $row[kat]</td>
42 <td><small>® raèunala:</small> $row[z_rac]</td></tr>
43 </table>
44 ";
45 } else {
46 print "<p><big>Nema podataka o osobi sa id-jem $id</big>";
47 }
48
49 $result = pg_Exec ($conn, "select racuni.login as login,
50 racuni.passwd as passwd,e_mail.alias as email
51 where racuni.osoba_id=$id and e_mail.osoba_id=$id");
52
53 if (pg_numrows($result) > 0) {
54 $row=pg_fetch_array($result,0);
55
56 print "
57 <h1>Podaci o korisnièkom raèunu</h1>
58
59 <table>
60 <tr><td>Korisnièka oznaka:</td><td><tt>$row[login]</tt></td></tr>
61 <tr><td>Lozinka:</td><td><tt>$row[passwd]</tt></td></tr>
62 <tr><td>E-mail adresa:</td><td><tt>$row[email]@pliva.hr</tt></td></tr>
63 </table>
64 ";
65
66 } else {
67 print "<p><big>Nema podataka o korisnièkom raèunu</big>";
68 }
69
70
71 } // isset($id)
72
73 ?>
74

  ViewVC Help
Powered by ViewVC 1.1.26