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);
echo '
';
if(!@$show) $show="all";
if(!@$order) $order="prijmeni";
if(!@$platba) $platba="vsechno";
if(!@$pokladna) $pokladna="vsechno";
if(!@$rok) $rok="vsechno";
if($show!="all")
{
echo 'Přenos dat jednotlivých IP adres (pouze aktivní):zobrazit vše';
$where="WHERE active IN (1) ";
}
else
{
echo 'Přenos dat jednotlivých IP adres všech uživatelů:zobrazit pouze aktivní';
$where="WHERE active IN (0,1) ";
}
$string=MySQL_Query("SELECT c.id as cid, c.*, a.id as aid, a.*, i.id as iid, i.*
FROM (ipecka i LEFT JOIN cleni c ON c.id = i.clen)
LEFT JOIN adresy a ON a.clen = i.clen AND a.id = i.adresa $where ORDER BY $order");
# FROM (cleni c LEFT JOIN adresy a ON c.id = a.clen)
# LEFT JOIN ipecka i ON c.id = i.clen AND a.id = i.adresa $where ORDER BY $order");
echo '