request('f_id','number'); if ( isset ($_POST['mod'])) { // modification is asked $supplier=new Customer($cn,$f_id); $supplier->Save(); } echo '
'; echo '
'; if ( isset($_POST['mod'])) echo hb(_('Information sauvée')); $supplier=new Fiche($cn,$f_id); $p_readonly=($g_user->check_action(FICADD)==0)?true:false; if ( ! $p_readonly) echo '
'; echo dossier::hidden(); echo HtmlInput::hidden('sb','detail'); echo HtmlInput::hidden('dc','cc'); echo $supplier->Display($p_readonly); $w=new IHidden(); $w->name="p_action"; $w->value="supplier"; echo $w->input(); $w->name="f_id"; $w->value=$f_id; echo $w->input(); echo HtmlInput::hidden('action_fiche',''); if ( ! $p_readonly) { echo HtmlInput::submit('mod',_('Sauver les modifications'),' onclick="$(\'action_fiche\').value=\'mod\';"'); echo HtmlInput::reset(_("Annuler")); echo HtmlInput::submit('delete_card', _('Effacer cette fiche'), 'onclick="$(\'action_fiche\').value=\'delete_card\';return confirm_box(\'catergory_detail_frm\',\''.('Confirmer effacement ?').'\');"'); echo '
'; } echo '
';