10 |
|
|
11 |
$result = pg_Exec ($conn, " |
$result = pg_Exec ($conn, " |
12 |
select datum,count(*) as nr from izvjestaji group by datum |
select datum,count(*) as nr from izvjestaji group by datum |
13 |
order by datum |
order by datum desc |
14 |
"); |
"); |
15 |
|
|
16 |
print ' |
print ' |
54 |
|
|
55 |
<table border=1> |
<table border=1> |
56 |
<tr bgcolor="#e0e0f0"><th>rbr</th><th>id</th><th>ime i prezime</th><th>tel</th><th>lokacija</th><th>org.jed</th></tr> |
<tr bgcolor="#e0e0f0"><th>rbr</th><th>id</th><th>ime i prezime</th><th>tel</th><th>lokacija</th><th>org.jed</th></tr> |
57 |
<tr bgcolor="#e0e0f0"><th></th><th></th><th>lokacija računala, mreža</th><th>ž</th><th colspan=2>objekat / kat / soba</th></tr> |
<tr bgcolor="#e0e0f0"><th colspan=2>podešeno</th><th>lokacija računala, mreža</th><th>ž</th><th colspan=2>objekat / kat / soba</th></tr> |
58 |
'; |
'; |
59 |
|
|
60 |
$lokacija=""; |
$lokacija=""; |
61 |
$mreza=""; |
$mreza=""; |
62 |
$rbr=1; |
$rbr=1; |
63 |
|
$podeseno=" "; |
64 |
|
|
65 |
for ($k=0; $k < pg_numrows($result); $k++) { |
for ($k=0; $k < pg_numrows($result); $k++) { |
66 |
$arr=pg_fetch_row($result,$k); |
$arr=pg_fetch_row($result,$k); |
69 |
$lokacija=$arr[4]; |
$lokacija=$arr[4]; |
70 |
print "<tr bgcolor=#000000><td colspan=6><font size=+1 color=#ffffff>$lokacija</font></td></tr>"; |
print "<tr bgcolor=#000000><td colspan=6><font size=+1 color=#ffffff>$lokacija</font></td></tr>"; |
71 |
} |
} |
72 |
|
|
73 |
print "<tr".bgcolor()."><td>$rbr</td><td><a href=\"http://support.pliva.hr/obavijest.php?id=$arr[0]\">$arr[0]</a></td><td>$arr[1] $arr[2]</td><td>tel: $arr[3]</td><td><small>$arr[4]</small></td><td>$arr[5]<br>$arr[6]</td></tr>\n"; |
print "<tr".bgcolor()."><td>$rbr</td><td><a href=\"http://support.pliva.hr/obavijest.php?id=$arr[0]\">$arr[0]</a></td><td>$arr[1] $arr[2]</td><td>tel: $arr[3]</td><td><small>$arr[4]</small></td><td>$arr[5]<br>$arr[6]</td></tr>\n"; |
74 |
if ($arr[12] == 0) { |
|
75 |
|
|
76 |
|
if ($arr[12] == "f") { |
77 |
$mreza='umreženo'; |
$mreza='umreženo'; |
78 |
} else { |
} else { |
79 |
$result2 = pg_Exec ($conn, " |
$result2 = pg_Exec ($conn, " |
80 |
select count(status_tip_id) as nr_of_status8 from status |
select count(status_tip_id) as nr_of_status8 from status |
81 |
where osoba_id = $arr[0] and status_tip_id=8"); |
where osoba_id = $arr[0] and status_tip_id=8"); |
82 |
$row2=pg_fetch_row($result2,0); |
$row2=pg_fetch_array($result2,0); |
83 |
if ($row2["nr_of_status8"] > 0) { |
if ($row2["nr_of_status8"] > 0) { |
84 |
$mreza='<i>umrežavanje obavljeno</i>'; |
$mreza='<i>umrežavanje obavljeno</i>'; |
85 |
} else { |
} else { |
86 |
$mreza='<b>potrebno umrežavanje</b>'; |
$mreza='<b>potrebno umrežavanje</b>'; |
87 |
} |
} |
88 |
} |
} |
89 |
print "<tr".bgcolor()."><td colspan=2> </td><td><small>$arr[7] $mreza</small></a><td><small>ž-$arr[11]</small></td><td colspan=2><small>$arr[8] / $arr[9] / $arr[10]</small></td></tr>\n"; |
|
90 |
|
$result3 = pg_Exec ($conn, " |
91 |
|
select count(status_tip_id) as nr_of_status6 from status |
92 |
|
where osoba_id = $arr[0] and status_tip_id=6"); |
93 |
|
$row3=pg_fetch_array($result3,0); |
94 |
|
if ($row3["nr_of_status6"] > 0) { |
95 |
|
$podeseno=show_bool("t"); |
96 |
|
} else { |
97 |
|
$podeseno="<a href=\"http://support.pliva.hr/obavijest.php?id=$arr[0]\">".show_bool("f")."</a>"; |
98 |
|
} |
99 |
|
|
100 |
|
# print "<tr><td colspan=6>$arr[12] | ".$row2["nr_of_status8"]." | ".$row3["nr_of_status6"]."</td></tr>\n"; |
101 |
|
|
102 |
|
print "<tr".bgcolor()."><td colspan=2>$podeseno</td><td><small>$arr[7] $mreza</small></a><td><small>ž-$arr[11]</small></td><td colspan=2><small>$arr[8] / $arr[9] / $arr[10]</small></td></tr>\n"; |
103 |
$rbr++; |
$rbr++; |
104 |
|
|
105 |
} |
} |
108 |
} // isset(datum) |
} // isset(datum) |
109 |
|
|
110 |
|
|
111 |
print "<p>Povratak na <a href=\"index.php\">početnu stranicu</a>."; |
print "<p>Povratak na "; |
112 |
|
if (isset($HTTP_REFERER)) { |
113 |
|
print "<a href=\"$HTTP_REFERER\">stranicu sa koje ste došli</a> ili "; |
114 |
|
} |
115 |
|
print "<a href=\"/\">početnu stranicu</a>."; |
116 |
|
|
117 |
include("inc/footer.inc"); |
include("inc/footer.inc"); |
118 |
|
|