Ejemplo n.º 1
0
        // Force chargement page en mode creation
        $error++;
    }
    if (!$error) {
        $result = $place->update($user);
        if ($result < 0) {
            setEventMessage($place->errorsToString(), "errors");
            $action = 'edit';
            // Force chargement page edition
        }
    }
}
if (GETPOST('action', 'alpha') == 'confirm_delete' && GETPOST('confirm', 'alpha') == "yes" && $user->rights->pos->backend) {
    // Modification
    $place = new place($db);
    $place->delete(GETPOST('id', 'int'));
    header("Location: " . dol_buildpath("/pos/backend/place/place.php", 1));
    exit;
}
/*
 * View
 */
$helpurl = 'EN:Module_DoliPos|FR:Module_DoliPos_FR|ES:M&oacute;dulo_DoliPos';
llxHeader('', '', $helpurl);
$form = new Form($db);
$htmlcompany = new FormCompany($db);
/* ************************************************************************** */
/*                                                                            */
/* Affichage page en mode creation                                            */
/*                                                                            */
/* ************************************************************************** */