/*---------------------------------------------------------------------- * SC save card * save the new card (insert) * ----------------------------------------------------------------------*/ /*---------------------------------------------------------------------- * SC save card * save the new card (insert) * ----------------------------------------------------------------------*/ case 'sc': $html = HtmlInput::title_box(_("Choix de la catégorie"), $ctl); if ($g_user->check_action(FICADD) == 1) { $f = new Fiche($cn); $f->insert($fd_id, $_POST); $f->Get(); $html .= '<h2 class="notice">' . _('Fiche sauvée') . '</h2>'; $html .= $f->Display(true); $js = ""; if (isset($_POST['ref'])) { $js = create_script(' window.location.reload()'); } $html .= $js; } else { $html .= alert(_('Action interdite'), true); } break; /*---------------------------------------------------------------------- * Search a card * *----------------------------------------------------------------------*/