',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 ""; echo $contact->Display(true); echo "
"; echo $retour; } //----------------------------------------------------- // Save modification if ( isset ($_POST['mod'])) { // modification is asked $f_id=$_REQUEST['f_id']; $contact=new contact($cn,$f_id); $contact->Save(); $sub_action="list"; } // by default open liste if ( $sub_action == "" ) $sub_action="list"; //----------------------------------------------------- //Display a blank card if ( $sub_action=="blank") { $retour_action=HtmlInput::button_anchor('Retour', "commercial.php?p_action=contact&$str_dossier"); echo '
'; echo $retour_action; $c=new contact($cn); echo '
blank($_GET['fd_id']); echo HtmlInput::submit('Sauve','Sauve'); echo '
'; echo $retour_action; echo '
'; } //----------------------------------------------------- // list if ( $sub_action == "list" ) { ?>
', $a); ?>
name='qcode'; $w->value=$qcode; $w->label='qcode'; $w->table=0; $w->jrn=0; $w->extra='4,8,9,14'; echo $w->input(); $sp=new ISpan(); echo $sp->input("qcode_label",$qcode).""; ?>
> name="fd_id"; $w->value= $cn->make_array("select fd_id,fd_label from fiche_def where ". " frd_id=".FICHE_TYPE_CONTACT); // if array is empty show an warning and stops if ( sizeof ($w->value) == 0 ) { echo '

Aucune fiche de catégories contact

'; echo '

allez dans fiche creation et choississez contact comme sorte

'; exit(); } echo $w->input(); ?>
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 dossier::hidden(); echo $contact->Display(false); $w=new IHidden(); $w->name="p_action"; $w->value="contact"; echo $w->input(); $w->name="f_id"; $w->value=$f_id; echo $w->input(); echo HtmlInput::submit('mod','Sauver les modifications'); echo ''; echo HtmlInput::submit('delete','Effacer cette fiche'); echo '
'; echo $retour; echo '
'; } html_page_stop();