Beispiel #1
0
         exit;
     } else {
         $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 "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 />";