title=_('Ajout d\'une catégorie'); $ip_cat->value=''; echo $ip_cat->input(); echo IPoste::ipopup('ipop_account'); $search_card=new IPopup('ipop_card'); $search_card->title=_('Recherche de fiche'); $search_card->value=''; echo $search_card->input(); echo ICard::ipopup('ipopcard'); $low_action=(isset($_REQUEST['sb']))?$_REQUEST['sb']:"list"; /*! \file * \brief Called from the module "Gestion" to manage the customer */ $User->can_request(GECUST); $href=basename($_SERVER['PHP_SELF']); // by default open liste if ( $low_action == "" ) $low_action="list"; //----------------------------------------------------- // Remove a card //----------------------------------------------------- if ( isset($_POST['delete'] ) ) { if ( $User->check_action(FICADD) == 0 ) { alert('Vous ne pouvez pas enlever de fiche'); return; } $f_id=$_REQUEST['f_id']; $fiche=new Customer($cn,$f_id); $fiche->remove(); $low_action="list"; } //----------------------------------------------------- // list of customer //----------------------------------------------------- if ( $low_action == "list" ) { ?>