';
echo ShowItem(array(
array($root."&sc=dc",_('Fiche'),_('Détail de la fiche'),1),
array($root.'&sc=sv',_('Suivi'),_('Suivi client, devis, bon de commande, courrier'),2),
array($root.'&sc=cn',_('Contact'),_('Liste de contacts de ce client'),3),
array($root.'&sc=op',_('Opérations'),_('Toutes les opérations'),4),
array($root.'&sc=let',_('Lettrage'),_('Opérations & Lettrages'),6),
array('?p_action=client&'.dossier::get(),_('Retour liste'),_('Retour à la liste des clients'),5)
),
'H',"mtitle","mtitle",$def,'');
echo '';
echo '
';
echo '
';
echo '
'.$f->get_quick_code()." ".$f->strAttribut(ATTR_DEF_NAME).'
';
echo '';
echo '
';
//---------------------------------------------------------------------------
// Show Detail of a card and category
//---------------------------------------------------------------------------
if ( $ss_action == 'dc' )
{
require_once('detail_client.inc.php');
}
//---------------------------------------------------------------------------
// Follow up : mail, bons de commande, livraison, rendez-vous...
//---------------------------------------------------------------------------
if ( $ss_action == 'sv' )
{
require_once('suivi_client.inc.php');
}
/*----------------------------------------------------------------------
* Operation all the operation of this customer
*
* ----------------------------------------------------------------------*/
if ( $ss_action == 'op')
{
require_once('operation_client.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 '';
echo _("Vous devez aller dans fiche et créer une catégorie pour les contacts");
echo '';
exit();
}
/* Add button */
$f_add_button=new IButton('add_card');
$f_add_button->label=_('Créer une nouvelle fiche');
$f_add_button->set_attribute('ipopup','ipopcard');
$f_add_button->set_attribute('filter',$filter);
$f_add_button->javascript=" select_card_type(this);";
echo $f_add_button->input();
echo '
';
}
/*----------------------------------------------------------------------------
* Lettering
*----------------------------------------------------------------------------*/
if ( $def==6 )
{
require_once('lettering.gestion.inc.php');
}