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);
$zprava=logging("adresy.php");
echo '
';
if(!@$show) $show="all";
if(!@$order) $order="prijmeni";
if($show!="all")
{
echo 'Seznam uživatelů (pouze aktivní):zobrazit vše';
$where="WHERE active IN (1) ";
}
else
{
echo 'Seznam 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 (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 '