예제 #1
0
파일: projets.php 프로젝트: japila/budget
        break;
    case "detruire":
        $projet = new PJ("pjs");
        $projet->Get_pj($bd, $pj_id);
        print Html3("haut", "Destruction projet", $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 projet ?", "ffA fs20 bcRouge cBlanc");
        $f = new Formulaire("post", "projets.php", FALSE, "Form");
        $f->debutTable(HORIZONTAL);
        $f->champTexte("projet", "projet_nom", $projet->pj_nom, 40, 40);
        $f->champCache(pj_id, $pj_id);
        $f->finTable();
        $f->debutTable(HORIZONTAL);
        $f->champValider("OUI-destruction-projet", "action");
        $f->fin();
        print Imprime_titreListe("<b>S I N O N</b> &nbsp;=&gt;&nbsp; <a href=\"projets.php?action=xxx\" style=\"color:blue;\">retour à la gestion des projets</a>", "ffA fs12 fwN");
        print "</td></tr></table>\n";
        print "<br />";
        print Html3("bas");
        break;
    case "OUI-destruction-projet":
        $projet = new PJ("pjs");
        $projet->Get_pj($bd, $pj_id);
        $projet->Detruire($bd);
        $operation = $projet->Get_operation();
        $url = "Location: projets.php?action=xxx&operation={$operation}";
        header($url);
        exit;
        break;
}