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>db.jablonka.cz - Resty</title> |
7 | | | </head> |
8 | | | <link rel="stylesheet" type="text/css" href="style.css"> |
9 | | | </head> |
10 | | | <body topmargin=0 leftmargin=10> |
11 | | | <? |
12 | | | include ("header.htm"); |
13 | | | require('grab_globals.lib.php'); |
14 | | | include ("fce.php"); |
15 | | | $spojeni = MySQL_Connect($db_host, $db_user, $db_pass); |
16 | | | MySQL_Select_DB($db_name); |
17 | | | |
18 | | | if(!@$show) $show="all"; |
19 | | | |
20 | | | echo ' |
21 | | | <center>'; |
22 | | | |
23 | | | $condition=""; |
24 | | | if(!$order) $order="prijmeni"; |
25 | | | if($show!="all") |
26 | | | { |
27 | | | echo '<b>Seznam restů aktivních uživatelů:</b> <a href="resty.php?show=all&order='.$order.'" class=odkaz>zobrazit vše</a>'; |
28 | | | $where="WHERE active IN (1) $condition"; |
29 | | | } |
30 | | | else |
31 | | | { |
32 | | | echo '<b>Seznam restů všech uživatelů:</b> <a href="resty.php?show=active&order='.$order.'" class=odkaz>zobrazit pouze aktivní</a>'; |
33 | | | $where="WHERE active IN (0,1) $condition"; |
34 | | | } |
35 | | | |
36 | | | #finalni dotaz |
37 | | | $string=MySQL_Query("SELECT c.id as cid, c.*, uk.id as ukid, uk.* |
38 | | | FROM cleni c left outer join ukony uk |
39 | | | ON c.id = uk.clen AND uk.udalost=1 |
40 | | | WHERE uk.id IS NULL |
41 | | | ORDER BY $order"); |
42 | | | |
43 | | | echo ' |
44 | | | |
45 | | | <form name="emaily" action="mail_multi.php" method="POST"> |
46 | | | <input class=field type="submit" name="OK" value=" pošli mail "> |
47 | | | <a href="#" onclick="i=0;while ((document.forms[0][i] != null )) {document.forms[0][i].checked = true;i+=1;};">Vybrat vše</a> |
48 | | | <a href="#" onclick="i=0;while ((document.forms[0][i] != null )) {document.forms[0][i].checked = !document.forms[0][i].checked;i+=1;};">Invertovat</a> |
49 | | | |
50 | | | <table width=100% cellspacing=1> |
51 | | | <tr> |
52 | | | <td bgcolor=#C00000> |
53 | | | <table cellspacing=0 cellpadding=0 width=100%> |
54 | | | <tr> |
55 | | | <td bgcolor=#FFFFFF> </td> |
56 | | | <td bgcolor=#FFFFFF class=text> |
57 | | | <a title="seřadit podle ID" class=odkaz href="resty.php?show='.$show.'&order=cid">ID</a> |
58 | | | </td> |
59 | | | <td bgcolor=#FFFFFF class=text> |
60 | | | <a title="seřadit podle jména" class=odkaz href="resty.php?show='.$show.'&order=jmeno">Jméno</a> |
61 | | | </td> |
62 | | | <td bgcolor=#FFFFFF class=text> |
63 | | | <a title="seřadit podle příjmení" class=odkaz href="resty.php?show='.$show.'&order=prijmeni">Příjmení:</a> |
64 | | | </td> |
65 | | | <td bgcolor=#FFFFFF class=text width=80> |
66 | | | <a title="seřadit podle přezdívky" class=odkaz href="resty.php?show='.$show.'&order=prezdivka,prijmeni">Přezdívka:</a> |
67 | | | </td> |
68 | | | <td bgcolor=#FFFFFF class=text width=80> |
69 | | | <a title="seřadit podle Emailu" class=odkaz href="resty.php?show='.$show.'&order=email">Email:</a> |
70 | | | </td> |
71 | | | <td bgcolor=#FFFFFF class=text width=80> |
72 | | | <a title="seřadit podle aktivity" class=odkaz href="resty.php?show='.$show.'&order=active">A</a> |
73 | | | <a title="seřadit podle financí" class=odkaz href="resty.php?show='.$show.'&order=finance">F</a> |
74 | | | <a title="seřadit podle internetu" class=odkaz href="resty.php?show='.$show.'&order=internet">I</a> |
75 | | | <a title="seřadit podle elektřiny" class=odkaz href="resty.php?show='.$show.'&order=energy">E</a> |
76 | | | </td> |
77 | | | <td bgcolor=#FFFFFF class=text> |
78 | | | <a title="seřadit podle typu připojení" class=odkaz href="resty.php?show='.$show.'&order=domu">Domů</a> |
79 | | | </td> |
80 | | | <td bgcolor=#FFFFFF class=text> |
81 | | | <a title="seřadit podle přezdívky" class=odkaz href="resty.php?show='.$show.'&order=mobil">Mobil</a> |
82 | | | </td> |
83 | | | <td bgcolor=#FFFFFF class=text> |
84 | | | <a title="seřadit podle ICQ" class=odkaz href="resty.php?show='.$show.'&order=icq">ICQ</a> |
85 | | | </td> |
86 | | | <td bgcolor=#FFFFFF class=text> |
87 | | | <a class=text>Úkon</a> |
88 | | | </td> |
89 | | | <td bgcolor=#FFFFFF class=text>IP |
90 | | | </td> |
91 | | | <td bgcolor=#FFFFFF class=text>Ulice |
92 | | | </td> |
93 | | | <td bgcolor=#FFFFFF class=text> |
94 | | | <a title="Přenosy dat Casablanca" class=odkaz href="http://81.0.245.33/hotsanic/">data Casa týden</a> |
95 | | | </td> |
96 | | | <td bgcolor=#FFFFFF class=text> |
97 | | | <a title="Přenosy dat UPC" class=odkaz href="http://62.24.71.157/hotsanic/">data UPC týden</a> |
98 | | | </td> |
99 | | | |
100 | | | </tr> |
101 | | | '; |
102 | | | |
103 | | | $color=1; |
104 | | | $celkem=0; |
105 | | | while($vysledek=MySQL_Fetch_Array($string)) |
106 | | | { |
107 | | | $celkem++; |
108 | | | if($color==0) |
109 | | | { |
110 | | | $color=1; |
111 | | | $barva="#E6E4E4"; |
112 | | | } |
113 | | | else |
114 | | | { |
115 | | | $color=0; |
116 | | | $barva="#FFFFFF"; |
117 | | | } |
118 | | | $dot="lan.bmp"; |
119 | | | $alt="LAN Jablonka"; |
120 | | | |
121 | | | |
122 | | | $icons=""; |
123 | | | if($show=="all" && $vysledek["active"]==2) $icons=$icons.'<img title="Čekatel" src="images/actv.gif"> '; |
124 | | | if($show=="all" && $vysledek["active"]==1) $icons=$icons.'<img title="Člen" src="images/actv.gif"> '; |
125 | | | if($show=="all" && $vysledek["active"]==0) $icons=$icons.'<img title="Pasivní" src="images/passv.gif"> '; |
126 | | | if($vysledek["finance"]==1) $icons=$icons.'<img title="Finance" src="images/dolar.gif"> '; |
127 | | | if($vysledek["internet"]==1) $icons=$icons.'<img title="Internet" src="images/net.gif"> '; |
128 | | | if($vysledek["energy"]==1) $icons=$icons.'<img title="Elektřina sleva" src="images/energysleva.gif"> '; |
129 | | | if($vysledek["energy"]==2) $icons=$icons.'<img title="Elektřina" src="images/energy.gif"> '; |
130 | | | echo ' |
131 | | | <tr> |
132 | | | <td bgcolor='.$barva.' class=text> <a class="odkaz" |
133 | | | target="_self" href="clen.php?clen='.$vysledek["cid"].'"><img src="images/'.$dot.'" title="'.$alt.'" border=0></a> |
134 | | | </td> |
135 | | | <td bgcolor='.$barva.' class="text"><a class="odkaz" target="_self" href="edit_user.php?id='.$vysledek["cid"].'">'.$vysledek["cid"].'</a></td> |
136 | | | <td bgcolor='.$barva.' class="text">'.$vysledek["jmeno"].'</td> |
137 | | | <td bgcolor='.$barva.' class="text">'.$vysledek["prijmeni"].'</td> |
138 | | | <td bgcolor='.$barva.' class="text">'.$vysledek["prezdivka"].'</td> |
139 | | | <td bgcolor='.$barva.' class="text"> |
140 | | | '; |
141 | | | $from="info@jablonka.cz"; |
142 | | | $subject = "Členství v o.s. jablonka.cz"; |
143 | | | $text = "Zdravím, |
144 | | | nesepíšem přihlášku do sdružení? Jsem doma celý víkend. |
145 | | | Kdyžtak mi zavolej/te na 777991569 a domluvíme se. |
146 | | | dík |
147 | | | Síma |
148 | | | \n"; |
149 | | | |
150 | | | $text = str_replace(" ","%20",$text); |
151 | | | $text = str_replace("\n","%0d",$text); |
152 | | | if ( $vysledek["email"] ) { |
153 | | | echo ' |
154 | | | <INPUT type="checkbox" name="to'.$vysledek["cid"].'" value="'.$vysledek["email"].'"> |
155 | | | <a href="mail.php?to='.$vysledek["email"].'&subj='.$subject.'&from='.$from.'&text='.$text.'">int</a> |
156 | | | <a href="mailto:'.$vysledek["email"].'?subject='.$subject.'&body='.$text.'">ext</a> '.$vysledek["email"].' |
157 | | | '; |
158 | | | } |
159 | | | $clen=$vysledek["cid"]; |
160 | | | $adresa=clen_to_adresa($clen); |
161 | | | $ipecko=clen_to_ipecko($clen); |
162 | | | $icq=$vysledek["icq"]; |
163 | | | echo ' |
164 | | | </td> |
165 | | | <td bgcolor='.$barva.' class="text">'.$icons.'</td> |
166 | | | <td bgcolor='.$barva.' class="text">'.$vysledek["domu"].'</td> |
167 | | | <td bgcolor='.$barva.' class="text">'.$vysledek["mobil"].'</td> |
168 | | | <td bgcolor='.$barva.' class="text"> |
169 | | | '; |
170 | | | if($icq) { |
171 | | | echo ' |
172 | | | <a href="http://wwp.icq.com/'.$icq.'#pager"><img src="http://web.icq.com/whitepages/online?icq='.$icq.'&img=5" width="18" height="12" border="0" /></a> |
173 | | | <a href="sim:'.$icq.'"><img src="http://web.icq.com/whitepages/online?icq='.$icq.'&img=5" width="18" height="12" border="0" /></a> |
174 | | | '; |
175 | | | } |
176 | | | $adresa_pro_mapu=iconv("ISO-8859-2", "UTF-8", id_to_ulice($adresa)); |
177 | | | $adresa_pro_mapu=urlencode( $adresa_pro_mapu); |
178 | | | echo ' |
179 | | | </td> |
180 | | | <td bgcolor='.$barva.' class="text"> |
181 | | | <a class="odkaz" target="_self" href="add_ukon.php?clen='.$vysledek["cid"].'">+</a> |
182 | | | </td> |
183 | | | <td bgcolor='.$barva.' class="text"> |
184 | | | <a class="odkaz" target="_self" href="add_ip.php?clen='.$vysledek["cid"].'&adresa='.$adresa.'">+</a> |
185 | | | <a class="odkaz" target="_self" href="edit_ip.php?id='.$ipecko.'">'.id_to_ipecko($ipecko).'</a></td> |
186 | | | </td> |
187 | | | <td bgcolor='.$barva.' class="text"> |
188 | | | <a class="odkaz" target="_self" href="add_adres.php?clen='.$vysledek["cid"].'">+</a> |
189 | | | <a class="odkaz" target="_top" href="http://www.mapy.cz/?query='.$adresa_pro_mapu.'%20'.id_to_cp($adresa).',%20Praha">M</a> |
190 | | | <a class="odkaz" target="_self" href="edit_adres.php?id='.$adresa.'">'.id_to_adresa($adresa).'</a></td> |
191 | | | <td bgcolor='.$barva.' class="text"> |
192 | | | <a href="http://81.0.245.33/hotsanic/networks/int'.id_to_ipecko($ipecko).'.html"> |
193 | | | '; |
194 | | | $gwctrn=getweb('http://10.33.0.25/cgi-bin/rrdfetch.pl?'.id_to_ipecko($ipecko).'&week&0'); |
195 | | | $gwctrn=preg_replace('/\s+/', ' ', $gwctrn); |
196 | | | $gwctrn=preg_replace('/^\s+/', '', $gwctrn); |
197 | | | list($gwcin,$gwcout)=explode(' ',$gwctrn); |
198 | | | $gwcin = round($gwcin / 104857.6)/10 ; |
199 | | | $gwcout = round($gwcout / 104857.6)/10 ; |
200 | | | echo $gwcin."MiB ".$gwcout."MiB"; |
201 | | | echo ' |
202 | | | </a> |
203 | | | </td> |
204 | | | <td bgcolor='.$barva.' class="text"> |
205 | | | <a href="http://62.24.71.157/hotsanic/networks/int'.id_to_ipecko($ipecko).'.html"> |
206 | | | '; |
207 | | | $gwutrn=getweb('http://10.33.0.30/cgi-bin/rrdfetch.pl?'.id_to_ipecko($ipecko).'&week&0'); |
208 | | | $gwutrn=preg_replace('/\s+/', ' ', $gwutrn); |
209 | | | $gwutrn=preg_replace('/^\s+/', '', $gwutrn); |
210 | | | list($gwuin,$gwuout)=explode(' ',$gwutrn); |
211 | | | $gwuin = round($gwuin / 104857.6)/10 ; |
212 | | | $gwuout = round($gwuout / 104857.6)/10 ; |
213 | | | echo $gwuin."MiB ".$gwuout."MiB"; |
214 | | | |
215 | | | echo ' |
216 | | | </a> |
217 | | | </td> |
218 | | | |
219 | | | </tr> |
220 | | | '; |
221 | | | Next($vysledek); |
222 | | | } |
223 | | | |
224 | | | echo ' |
225 | | | </table></tr></td></table></center> |
226 | | | </center> |
227 | | | </form> |
228 | | | <br> |
229 | | | |
230 | | | <center> |
231 | | | Celkem zobrazeno '.$celkem.' záznamů. |
232 | | | </center> |
233 | | | |
234 | | | '; |
235 | | | ?> |
236 | | | </body> |
237 | | | </html> |