![]() ![]() |
is |
Subversion Repositories: |
Compare with Previous - Blame - Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"><style type="text/css" media="screen"> @import "style.css"; </style><title>db.jablonka.cz - Resty</title></head><link rel="stylesheet" type="text/css" href="style.css"></head><body topmargin=0 leftmargin=10><?include ("header.htm");require('grab_globals.lib.php');include ("fce.php");$spojeni = MySQL_Connect($db_host, $db_user, $db_pass);MySQL_Select_DB($db_name);if(!@$show) $show="all";echo '<center>';$condition="";if(!$order) $order="prijmeni";if($show!="all"){echo '<b>Seznam restů aktivních uživatelů:</b> <a href="resty.php?show=all&order='.$order.'" class=odkaz>zobrazit vše</a>';$where="WHERE active IN (1) $condition";}else{echo '<b>Seznam restů všech uživatelů:</b> <a href="resty.php?show=active&order='.$order.'" class=odkaz>zobrazit pouze aktivní</a>';$where="WHERE active IN (0,1) $condition";}#finalni dotaz$string=MySQL_Query("SELECT c.id as cid, c.*, uk.id as ukid, uk.*FROM cleni c left outer join ukony ukON c.id = uk.clen AND uk.udalost=1WHERE uk.id IS NULLORDER BY $order");echo '<form name="emaily" action="mail_multi.php" method="POST"><input class=field type="submit" name="OK" value=" pošli mail "><a href="#" onclick="i=0;while ((document.forms[0][i] != null )) {document.forms[0][i].checked = true;i+=1;};">Vybrat vše</a><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><table width=100% cellspacing=1><tr><td bgcolor=#C00000><table cellspacing=0 cellpadding=0 width=100%><tr><td bgcolor=#FFFFFF> </td><td bgcolor=#FFFFFF class=text><a title="seřadit podle ID" class=odkaz href="resty.php?show='.$show.'&order=cid">ID</a> </td><td bgcolor=#FFFFFF class=text><a title="seřadit podle jména" class=odkaz href="resty.php?show='.$show.'&order=jmeno">Jméno</a> </td><td bgcolor=#FFFFFF class=text><a title="seřadit podle příjmení" class=odkaz href="resty.php?show='.$show.'&order=prijmeni">Příjmení:</a></td><td bgcolor=#FFFFFF class=text width=80><a title="seřadit podle přezdívky" class=odkaz href="resty.php?show='.$show.'&order=prezdivka,prijmeni">Přezdívka:</a></td><td bgcolor=#FFFFFF class=text width=80><a title="seřadit podle Emailu" class=odkaz href="resty.php?show='.$show.'&order=email">Email:</a></td><td bgcolor=#FFFFFF class=text width=80><a title="seřadit podle aktivity" class=odkaz href="resty.php?show='.$show.'&order=active">A</a><a title="seřadit podle financí" class=odkaz href="resty.php?show='.$show.'&order=finance">F</a><a title="seřadit podle internetu" class=odkaz href="resty.php?show='.$show.'&order=internet">I</a><a title="seřadit podle elektřiny" class=odkaz href="resty.php?show='.$show.'&order=energy">E</a></td><td bgcolor=#FFFFFF class=text><a title="seřadit podle typu připojení" class=odkaz href="resty.php?show='.$show.'&order=domu">Domů</a></td><td bgcolor=#FFFFFF class=text><a title="seřadit podle přezdívky" class=odkaz href="resty.php?show='.$show.'&order=mobil">Mobil</a></td><td bgcolor=#FFFFFF class=text><a title="seřadit podle ICQ" class=odkaz href="resty.php?show='.$show.'&order=icq">ICQ</a></td><td bgcolor=#FFFFFF class=text><a class=text>Úkon</a></td><td bgcolor=#FFFFFF class=text>IP</td><td bgcolor=#FFFFFF class=text>Ulice</td><td bgcolor=#FFFFFF class=text><a title="Přenosy dat Casablanca" class=odkaz href="http://81.0.245.33/hotsanic/">data Casa týden</a></td><td bgcolor=#FFFFFF class=text><a title="Přenosy dat UPC" class=odkaz href="http://62.24.71.157/hotsanic/">data UPC týden</a></td></tr>';$color=1;$celkem=0;while($vysledek=MySQL_Fetch_Array($string)){$celkem++;if($color==0){$color=1;$barva="#E6E4E4";}else{$color=0;$barva="#FFFFFF";}$dot="lan.bmp";$alt="LAN Jablonka";$icons="";if($show=="all" && $vysledek["active"]==2) $icons=$icons.'<img title="Čekatel" src="images/actv.gif"> ';if($show=="all" && $vysledek["active"]==1) $icons=$icons.'<img title="Člen" src="images/actv.gif"> ';if($show=="all" && $vysledek["active"]==0) $icons=$icons.'<img title="Pasivní" src="images/passv.gif"> ';if($vysledek["finance"]==1) $icons=$icons.'<img title="Finance" src="images/dolar.gif"> ';if($vysledek["internet"]==1) $icons=$icons.'<img title="Internet" src="images/net.gif"> ';if($vysledek["energy"]==1) $icons=$icons.'<img title="Elektřina sleva" src="images/energysleva.gif"> ';if($vysledek["energy"]==2) $icons=$icons.'<img title="Elektřina" src="images/energy.gif"> ';echo '<tr><td bgcolor='.$barva.' class=text> <a class="odkaz"target="_self" href="clen.php?clen='.$vysledek["cid"].'"><img src="images/'.$dot.'" title="'.$alt.'" border=0></a></td><td bgcolor='.$barva.' class="text"><a class="odkaz" target="_self" href="edit_user.php?id='.$vysledek["cid"].'">'.$vysledek["cid"].'</a></td><td bgcolor='.$barva.' class="text">'.$vysledek["jmeno"].'</td><td bgcolor='.$barva.' class="text">'.$vysledek["prijmeni"].'</td><td bgcolor='.$barva.' class="text">'.$vysledek["prezdivka"].'</td><td bgcolor='.$barva.' class="text">';$from="info@jablonka.cz";$subject = "Členství v o.s. jablonka.cz";$text = "Zdravím,nesepíšem přihlášku do sdružení? Jsem doma celý víkend.Kdyžtak mi zavolej/te na 777991569 a domluvíme se.díkSíma\n";$text = str_replace(" ","%20",$text);$text = str_replace("\n","%0d",$text);if ( $vysledek["email"] ) {echo '<INPUT type="checkbox" name="to'.$vysledek["cid"].'" value="'.$vysledek["email"].'"><a href="mail.php?to='.$vysledek["email"].'&subj='.$subject.'&from='.$from.'&text='.$text.'">int</a><a href="mailto:'.$vysledek["email"].'?subject='.$subject.'&body='.$text.'">ext</a> '.$vysledek["email"].'';}$clen=$vysledek["cid"];$adresa=clen_to_adresa($clen);$ipecko=clen_to_ipecko($clen);$icq=$vysledek["icq"];echo '</td><td bgcolor='.$barva.' class="text">'.$icons.'</td><td bgcolor='.$barva.' class="text">'.$vysledek["domu"].'</td><td bgcolor='.$barva.' class="text">'.$vysledek["mobil"].'</td><td bgcolor='.$barva.' class="text">';if($icq) {echo '<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><a href="sim:'.$icq.'"><img src="http://web.icq.com/whitepages/online?icq='.$icq.'&img=5" width="18" height="12" border="0" /></a>';}$adresa_pro_mapu=iconv("ISO-8859-2", "UTF-8", id_to_ulice($adresa));$adresa_pro_mapu=urlencode( $adresa_pro_mapu);echo '</td><td bgcolor='.$barva.' class="text"><a class="odkaz" target="_self" href="add_ukon.php?clen='.$vysledek["cid"].'">+</a></td><td bgcolor='.$barva.' class="text"><a class="odkaz" target="_self" href="add_ip.php?clen='.$vysledek["cid"].'&adresa='.$adresa.'">+</a><a class="odkaz" target="_self" href="edit_ip.php?id='.$ipecko.'">'.id_to_ipecko($ipecko).'</a></td></td><td bgcolor='.$barva.' class="text"><a class="odkaz" target="_self" href="add_adres.php?clen='.$vysledek["cid"].'">+</a> <a class="odkaz" target="_top" href="http://www.mapy.cz/?query='.$adresa_pro_mapu.'%20'.id_to_cp($adresa).',%20Praha">M</a> <a class="odkaz" target="_self" href="edit_adres.php?id='.$adresa.'">'.id_to_adresa($adresa).'</a></td><td bgcolor='.$barva.' class="text"><a href="http://81.0.245.33/hotsanic/networks/int'.id_to_ipecko($ipecko).'.html">';$gwctrn=getweb('http://10.33.0.25/cgi-bin/rrdfetch.pl?'.id_to_ipecko($ipecko).'&week&0');$gwctrn=preg_replace('/\s+/', ' ', $gwctrn);$gwctrn=preg_replace('/^\s+/', '', $gwctrn);list($gwcin,$gwcout)=explode(' ',$gwctrn);$gwcin = round($gwcin / 104857.6)/10 ;$gwcout = round($gwcout / 104857.6)/10 ;echo $gwcin."MiB ".$gwcout."MiB";echo '</a></td><td bgcolor='.$barva.' class="text"><a href="http://62.24.71.157/hotsanic/networks/int'.id_to_ipecko($ipecko).'.html">';$gwutrn=getweb('http://10.33.0.30/cgi-bin/rrdfetch.pl?'.id_to_ipecko($ipecko).'&week&0');$gwutrn=preg_replace('/\s+/', ' ', $gwutrn);$gwutrn=preg_replace('/^\s+/', '', $gwutrn);list($gwuin,$gwuout)=explode(' ',$gwutrn);$gwuin = round($gwuin / 104857.6)/10 ;$gwuout = round($gwuout / 104857.6)/10 ;echo $gwuin."MiB ".$gwuout."MiB";echo '</a></td></tr>';Next($vysledek);}echo '</table></tr></td></table></center></center></form><br><center>Celkem zobrazeno '.$celkem.' záznamů.</center>';?></body></html>