Esempio n. 1
0
    $cde = new actes($id_cde);
    $cde->statut = $cde->statut & ~STA_ACT_REC | STA_ACT_ENC;
    //Statut commande = soldé->en cours
    $cde->update_statut();
    actes::delete($id_liv);
    liens_actes::delete($id_liv);
}
//Traitement des actions
print "<h1>" . htmlentities($msg['acquisition_ach_ges'], ENT_QUOTES, $charset) . "&nbsp;:&nbsp;" . htmlentities($msg['acquisition_ach_liv'], ENT_QUOTES, $charset) . "</h1>";
switch ($action) {
    case 'list':
        entites::setSessionBibliId($id_bibli);
        show_list_liv($id_bibli);
        break;
    case 'from_cde':
        show_from_cde($id_bibli, $id_cde);
        break;
    case 'modif':
        show_form_liv($id_bibli, $id_liv);
        break;
    case 'delete':
        sup_liv($id_liv, $id_cde);
        show_list_liv($id_bibli);
        break;
    default:
        show_list_biblio();
        break;
}
?>

Esempio n. 2
0
//Traitement des actions
print "<h1>" . htmlentities($msg['acquisition_ach_ges'], ENT_QUOTES, $charset) . "&nbsp;:&nbsp;" . htmlentities($msg['acquisition_menu_ach_recept'], ENT_QUOTES, $charset) . "</h1>";
switch ($action) {
    case 'apply_changes':
        apply_changes();
        show_list_recept();
        break;
    case 'do_relances':
        if (count($chk)) {
            do_relances();
        }
        show_list_recept();
        break;
    case 'from_cde':
        if ($id_cde) {
            show_from_cde();
        }
        show_list_recept();
        break;
    case 'catalog':
        catalog();
        break;
    case 'record':
        if (record()) {
            show_list_recept();
        }
        break;
    case 'list':
    default:
        show_list_recept();
        break;