1 | 2 | simandl | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
2 | | | <html> |
3 | | | <head> |
4 | | | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> |
5 | | | <style type="text/css" media="screen"> @import "style.css"; </style> |
6 | | | <title>main frame - content holder</title> |
7 | | | </head> |
8 | | | <link rel="stylesheet" type="text/css" href="style.css"> |
9 | | | </head> |
10 | | | <body leftmargin=10 topmargin=0> |
11 | | | |
12 | | | <? |
13 | | | include("header.htm"); |
14 | | | ?> |
15 | | | <center> |
16 | | | <table width=100%> |
17 | | | <tr> |
18 | | | <td align=center> |
19 | | | |
20 | | | |
21 | | | <table border=0 bgcolor=#000000 cellpadding=0 cellspacing=1> |
22 | | | <tr> |
23 | | | <? |
24 | | | $vchod=420; |
25 | | | while ($vchod>408) |
26 | | | { |
27 | | | echo '<td align=center class=text bgcolor=#FFFFFF>'.$vchod.'</td>'; |
28 | | | $vchod--; |
29 | | | } |
30 | | | echo '<td align=center class=text bgcolor=#FFFFFF>713</td> |
31 | | | <td align=center class=text bgcolor=#FFFFFF>714</td>'; |
32 | | | |
33 | | | echo '</tr><tr><td>'; |
34 | | | |
35 | | | |
36 | | | require('grab_globals.lib.php'); |
37 | | | include ("fce.php"); |
38 | | | $spojeni = MySQL_Connect($db_host, $db_user, $db_pass); |
39 | | | MySQL_Select_DB($db_name); |
40 | | | $patro=10; |
41 | | | $byt=0; |
42 | | | |
43 | | | echo '<table bgcolor=#FFFFFF cellpadding=1 cellspacing=1><tr> |
44 | | | '; |
45 | | | $dotaz=MySQL_Query("SELECT * FROM flats"); |
46 | | | |
47 | | | |
48 | | | for ($i=1; $i<=462; $i++) |
49 | | | { |
50 | | | $byt++; |
51 | | | |
52 | | | $cbytu++; |
53 | | | $string=MySQL_Fetch_Array($dotaz); |
54 | | | $cbytu=(3*$patro+$byt-1); |
55 | | | if ($cbytu==0 || $cbytu==1) |
56 | | | { |
57 | | | if ($cbytu==0) |
58 | | | { |
59 | | | $cbytu=1; |
60 | | | } |
61 | | | else |
62 | | | { |
63 | | | $cbytu=0; |
64 | | | } |
65 | | | } |
66 | | | |
67 | | | |
68 | | | if ($string["status"]==0) echo '<td><a target="_self" href="add_resident.php?flat='.$i.'"><img border=0 alt="č. bytu '.$cbytu.', '.$patro.'. patro, id '.$i.' " src="images/none.gif"></a></td>'; |
69 | | | |
70 | | | if ($string["status"]==1) |
71 | | | { |
72 | | | echo '<td><a target="_self" href="detail_user.php?flat='.$i.'"><img border=0 alt="'.$string["resident"].' - č. bytu '.$cbytu.', '.$patro.'. patro, id '.$i.' " src="images/construction.bmp"></a></td>'; |
73 | | | $vystavba++; |
74 | | | } |
75 | | | if ($string["status"]==2 && $string["inet"]==0) |
76 | | | { |
77 | | | echo '<td><a target="_self" href="detail_user.php?flat='.$i.'"><img border=0 alt="'.$string["resident"].' - č. bytu '.$cbytu.', '.$patro.'. patro, id '.$i.' " src="images/active.bmp"></a></td>'; |
78 | | | $pripojeno++; |
79 | | | } |
80 | | | if ($string["status"]==2 && $string["inet"]==1) |
81 | | | { |
82 | | | echo '<td><a target="_self" href="detail_user.php?flat='.$i.'"><img border=0 alt="'.$string["resident"].' - č. bytu '.$cbytu.', '.$patro.'. patro, id '.$i.' " src="images/inet.bmp"></a></td>'; |
83 | | | $pripojeno++; |
84 | | | } |
85 | | | Next($string); |
86 | | | |
87 | | | if ($byt==3) |
88 | | | { |
89 | | | $patro--; |
90 | | | $byt=0; |
91 | | | echo '</tr>'; |
92 | | | |
93 | | | if($i<462) |
94 | | | { |
95 | | | if ($patro<0) |
96 | | | { |
97 | | | $patro=10; |
98 | | | |
99 | | | echo '</table></td><td bgcolor=#000000 ><table bgcolor=#FFFFFF cellpadding=1 cellspacing=1>'; |
100 | | | } |
101 | | | else |
102 | | | { |
103 | | | echo '<tr>'; |
104 | | | } |
105 | | | }} |
106 | | | |
107 | | | } |
108 | | | |
109 | | | echo '</table> |
110 | | | </td></tr> |
111 | | | </table> |
112 | | | |
113 | | | |
114 | | | |
115 | | | </td> |
116 | | | <td class=text> |
117 | | | <a target="_self" href="detail_user.php?flat=1000"><img border=0 alt="AP Yenik" src="images/ap.bmp"></a> - AP Yenik |
118 | | | <br><a target="_self" href="detail_user.php?flat=1001"><img border=0 alt="AP Jablonecká" src="images/ap.bmp"></a> - AP Jablonecká |
119 | | | </td> |
120 | | | </tr> |
121 | | | <tr> |
122 | | | <td colspan=2 align=left class=text> |
123 | | | <b>Statistika LAN Jablonka:</b> '.$pripojeno.' bytů připojeno, '.$vystavba.' plánovaných přípojek |
124 | | | <b>Legenda:</b> |
125 | | | <img src="images/none.gif"> - bez přípojky |
126 | | | <img src="images/construction.bmp"> - v plánu |
127 | | | <img src="images/active.bmp"> - aktivní |
128 | | | <img src="images/inet.bmp"> - aktivní a internet |
129 | | | </td> |
130 | | | </tr> |
131 | | | </table> |
132 | | | |
133 | | | </center> |
134 | | | <br> |
135 | | | '; |
136 | | | |
137 | | | ?> |
138 | | | </body> |
139 | | | </html> |