',urldecode($_REQUEST['url']));
}
else
{
$retour="";
$h_url="";
}
// Menu
// Remove a card
if ( isset ($_POST['delete']) )
{
$f_id=$_REQUEST['f_id'];
$fiche=new contact($cn,$f_id);
$fiche->remove();
$sub_action="list";
}
//-----------------------------------------------------
// Add card
if ( $sub_action=="insert" )
{
$contact=new Contact($cn);
$contact->Save($_REQUEST['fd_id']);
echo $retour;
echo "
company=$qcode;
}
echo $retour;
echo '
';
echo $contact->Summary($search);
echo '
';
echo $retour;
}
//-----------------------------------------------------
// Show Detail
if ( $sub_action == 'detail' )
{
$f_id=$_REQUEST['f_id'];
echo '
';
$contact=new contact($cn,$f_id);
echo $retour;
echo '
';
echo $retour;
echo '
';
}
html_page_stop();