Ejemplo n.º 1
0
     }
     break;
 case "maj":
     $pc = new PC("pcs");
     $pc->Affectation($_POST, $pc_id);
     $pc->Sauver($bd);
     $operation = $pc->Get_operation();
     $url = "location:budgets.php?operation={$operation}&action=gestion-du-projet-choisi&pj_id={$pc->pj_id}";
     header($url);
     exit;
     break;
 case "enlever":
     //======================================================  e n l e v e r
     $pc = new PC("pcs");
     $pc->Get_pc($bd, $pc_id);
     $ct = new CT("cts");
     $ct->Get_ct($bd, $pc->ct_id);
     $pj = new PJ("pjs");
     $pj->Get_pj($bd, $pc->pj_id);
     print Html3("haut", "Destruction budget-compte", $css);
     print '<br /><table align="center" bgcolor="#EBEBEB"><tr><td>' . "\n";
     print "<br />";
     print Imprime_titreListe("Projet : {$pj->pj_no} - {$pj->pj_nom}", "ffA fs20 bcRouge cBlanc");
     $f = new Formulaire("post", "budgets.php", FALSE, "Form");
     $f->debutTable(HORIZONTAL);
     $f->champTexte("", "", $ct->ct_no . " - " . $ct->ct_nom, 45, 45);
     $f->champValider("OUI-destruction-de-ce-compte", "action");
     $f->champCache("pc_id", $pc_id);
     $f->fin();
     print "<br /><br />";
     print Imprime_titreListe("<b>S I N O N</b> &nbsp;=&gt;&nbsp; <a href=\"budgets.php?action=gestion-du-projet-choisi&pj_id={$pc->pj_id}\" style=\"color:blue;\">retour au budget du projet</a>", "ffA fs12 fwN");
Ejemplo n.º 2
0
        break;
    case "detruire":
        $compte = new CT("cts");
        $compte->Get_ct($bd, $ct_id);
        print Html3("haut", "Destruction compte", $css);
        print '<br /><table align="center" bgcolor="#EBEBEB"><tr><td>' . "\n";
        print "<br />";
        print Imprime_titreListe("Voulez-vous r&eacute;ellement d&eacute;truire ce compte ?", "ffA fs20 bcRouge cBlanc");
        $f = new Formulaire("post", "comptes.php", FALSE, "Form");
        $f->debutTable(HORIZONTAL);
        $f->champTexte("compte", "compte_nom", $compte->ct_nom, 40, 40);
        $f->champCache(ct_id, $ct_id);
        $f->finTable();
        $f->debutTable(HORIZONTAL);
        $f->champValider("OUI-destruction-compte", "action");
        $f->fin();
        print Imprime_titreListe("<b>S I N O N</b> &nbsp;=&gt;&nbsp; <a href=\"comptes.php?action=xxx\" style=\"color:blue;\">retour à la fiche du compte</a>", "ffA fs12 fwN");
        print "</td></tr></table>\n";
        print "<br />";
        print Html3("bas");
        break;
    case "OUI-destruction-compte":
        $compte = new CT("cts");
        $compte->Get_ct($bd, $ct_id);
        $compte->Detruire($bd);
        $operation = $compte->Get_operation();
        $url = "Location: comptes.php?action=xxx&operation={$operation}";
        header($url);
        exit;
        break;
}