'; echo $f->get_gestion_title(); $menu = array( array('href'=>$root."&sc=dc",'label'=>_('Fiche'),'alt'=>_('Détail de la fiche')), array('href'=>$root.'&sc=sv','label'=>_('Suivi'),'alt'=>_('Suivi Fournisseur, client, banque, devis, bon de commande, courrier')), array('href'=>$root.'&sc=cn','label'=>_('Contact'),'alt'=>_('Liste de contacts')), array('href'=>$root.'&sc=op','label'=>_('Opérations'),'alt'=>_('Toutes les opérations')), array('href'=>$root.'&sc=bal','label'=>_('Balance'),'alt'=>_('Balance du tiers')), array('href'=>$root.'&sc=balag','label'=>_('Balance âgée'),'alt'=>_('Balance âgée du tiers')), array('href'=>$root.'&sc=let','label'=>_('Lettrage'),'alt'=>_('Opérations & Lettrages')) ); echo ''; echo ''; echo '
'; echo '
'; //--------------------------------------------------------------------------- // Show Detail of a card and category //--------------------------------------------------------------------------- if ( $ss_action == 'dc' ) { require_once NOALYSS_INCLUDE.'/category_detail.inc.php'; } //--------------------------------------------------------------------------- // Follow up : mail, bons de commande, livraison, rendez-vous... //--------------------------------------------------------------------------- if ( $ss_action == 'sv' ) { require_once NOALYSS_INCLUDE.'/category_followup.inc.php'; } /*---------------------------------------------------------------------- * Operation all the operation of this customer * * ----------------------------------------------------------------------*/ if ( $ss_action == 'op') { require_once NOALYSS_INCLUDE.'/category_operation.inc.php'; } /*------------------------------------------------------------------------- * Balance of the card *-------------------------------------------------------------------------*/ if ( $ss_action=='bal') { require_once NOALYSS_INCLUDE.'/balance_card.inc.php'; } /*------------------------------------------------------------------------- * Ageing Balance of the card *-------------------------------------------------------------------------*/ if ( $ss_action=='balag') { require_once NOALYSS_INCLUDE.'/balance_card_ageing.inc.php'; } /*---------------------------------------------------------------------- * All the contact * *----------------------------------------------------------------------*/ if ( $ss_action == 'cn') { echo '
'; echo dossier::hidden(); $f = new Fiche($cn, $_REQUEST['f_id']); $contact=new Contact($cn); $contact->company=$f->get_quick_code(); echo $contact->summary(""); $sql=' select fd_id from fiche_def where frd_id='.FICHE_TYPE_CONTACT; $filter=$cn->make_list($sql); if ( empty ($filter)) { echo ''; $url="do.php?".http_build_query(array('gDossier'=>Dossier::id(),'ac'=>'CFGCARD')); echo ''; echo _("Vous devez aller dans fiche et créer une catégorie pour les contacts"); echo ''; echo ''; return; } /* Add button */ $f_add_button=new IButton('add_card'); $f_add_button->label=_('Créer une nouvelle fiche'); $f_add_button->set_attribute('filter',$filter); $f_add_button->javascript=" select_card_type(this);"; echo $f_add_button->input(); echo '
'; } /*---------------------------------------------------------------------------- * Lettering *----------------------------------------------------------------------------*/ if ( $def==7 ) { require_once NOALYSS_INCLUDE.'/lettering.gestion.inc.php'; } echo '
';