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 '
';
$condition="";
if(!$order) $order="prijmeni";
if($show!="all")
{
echo 'Seznam restů aktivních uživatelů:zobrazit vše';
$where="WHERE active IN (1) $condition";
}
else
{
echo 'Seznam restů všech uživatelů:zobrazit pouze aktivní';
$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 uk
ON c.id = uk.clen AND uk.udalost=1
WHERE uk.id IS NULL
ORDER BY $order");
echo '