Пример #1
0
 function Imprimer_form($action, $css, $listeUsagers)
 {
     $listeAcces[0] = "non        ";
     $listeAcces[1] = "oui";
     print '<table border="0" bgcolor="#EBEBEB" align="center"><tr><td>';
     print Imprime_titreListe("Gestion d'un projet", "titre");
     print "<br>";
     $f = new Formulaire("post", "projets.php");
     $f->debutTable(HORIZONTAL);
     $f->champTexte("no du projet", "pj_no", $this->pj_no, 15, 15);
     $f->champTexte("nom du projet", "pj_nom", $this->pj_nom, 50, 50);
     $f->champListe("nom du responsable", "usager_id", $this->usager_id, 1, $listeUsagers);
     $f->champListe("peut &eacute;diter ?", "pj_acces", $this->pj_acces, 1, $listeAcces);
     $f->champCache("pj_id", $this->pj_id);
     $f->finTable();
     $f->debutTable(HORIZONTAL);
     $f->champValider("sauver", "action");
     $f->finTable();
     $f->fin();
     print '</td></tr></table>';
 }
Пример #2
0
 function Imprimer_form($action, $css)
 {
     $listeRdr[1] = "oui";
     $listeRdr[0] = "non";
     print '<table border="0" bgcolor="#EBEBEB" align="center"><tr><td>';
     print Imprime_titreListe("Gestion d'un compte", "titre");
     print "<br>";
     $f = new Formulaire("POST", "comptes.php");
     $f->debutTable(HORIZONTAL);
     $f->champTexte("&nbsp;no du compte", "ct_no", $this->ct_no, 15, 15);
     $f->champTexte("&nbsp;nom du compte", "ct_nom", $this->ct_nom, 50, 50);
     $f->champTexte("&nbsp;0 = d&eacute;penses<br />&nbsp;1 = revenus", "ct_genre", $this->ct_genre, 12, 1);
     $f->champTexte("&nbsp;1 = niveau titre<br />&nbsp;2 = niveau compte", "ct_niveau", $this->ct_niveau, 13, 1);
     $f->champListe("&nbsp;rdr", "ct_rdr", $this->ct_rdr, 2, $listeRdr);
     $f->champCache("ct_id", $this->ct_id);
     $f->finTable();
     $f->debutTable(HORIZONTAL);
     $f->champValider("sauver", "action");
     $f->finTable();
     $f->fin();
     print '</td></tr></table>';
 }
Пример #3
0
 function Imprimer_form($css, $mode, $forme, $listePostes)
 {
     print '<table border="0" bgcolor="#EBEBEB" align="center"><tr><td>';
     print Imprime_titreListe("Gestion d'un poste d'une instance", "titre");
     print "<br>";
     $f = new Formulaire("post", "postes.php", "", TRUE, $forme);
     $f->debutTable(HORIZONTAL);
     $f->champListe("{$instance_id}", "instance_id", $this->instance_id, 1, $listePostes);
     $f->champTexte("{$poste_no}", "poste_no", $this->poste_no, 3, 58);
     $f->champTexte("{$poste_nom}", "poste_nom", $this->poste_nom, 3, 58);
     $f->champTexte("{$poste_proc}", "poste_proc", $this->poste_proc, 3, 58);
     $f->finTable();
     $f->debutTable(HORIZONTAL);
     if ($mode == "ajouter") {
         $f->champValider("sauver", "action");
     } else {
         $f->champValider("sauver", "action");
         $f->champValider("sauver", "action");
     }
     $f->finTable();
     $f->champCache("poste_id", $this->poste_id);
     $f->fin();
     print '</td></tr></table>';
 }
Пример #4
0
 Menu_budget("cp");
 $noProjet = $unPj->pj_no;
 $noProjet = trim($noProjet);
 $nonAjout = FALSE;
 if (substr($noProjet, -1) == "0") {
     $listeComptes = array();
     $listeComptes[] = "pas de comptes pour ce no de projet se terminant par  0";
     $nonAjout = TRUE;
 }
 print Imprime_titreListe("<b>Projet {$unPj->pj_no} - {$unPj->pj_nom}</b>", "titre");
 print '<br /><div align="center"><span class="fyI bcJaune cNoire">&nbsp;Lors des <b>pr&eacute;visions budg&eacute;taires</b>, ne rien entrer dans les champs <b>engag&eacute;</b> et <b>r&eacute;el</b></span></div>';
 print "<br /><table border='0' bgcolor='#EBEBEB' align='center'><tr><td>\n";
 $f = new Formulaire("post", "budgets.php");
 $f->debutTable(HORIZONTAL);
 print Imprime_titreListe("<b>Ajouter un nouveau compte et ses montants</b>", "titre");
 $f->champListe("&nbsp; chosir un compte &agrave; ajouter au projet<br /><span class=\"fwB bcRouge cBlanc\">&nbsp;seulement si le compte n'a pas d&eacute;j&agrave; &eacute;t&eacute; s&eacute;lectionn&eacute;&nbsp;</span>", "ct_id", $ct_id, 1, $listeComptes);
 $f->champTexte("&nbsp; pr&eacute;vu", "pc_prevu", $pc_prevu, 9, 9);
 $f->champTexte("&nbsp;<span class='bcJaune cNoire fyI fs11 fwN''>&nbsp;engag&eacute;&nbsp;</span>", "pc_engage", $pc_engage, 9, 9);
 $f->champTexte("&nbsp; <span class='bcJaune cNoire fyI fs11 fwN'>&nbsp;r&eacute;el&nbsp;</span>", "pc_reel", $pc_reel, 9, 9);
 if ($nonAjout == FALSE) {
     $f->champValider("ajouter-ce-compte", "action");
 }
 $f->champCache("pj_id", $pj_id);
 $f->champCache("pc_id", '0');
 $f->finTable();
 $f->debutTable(HORIZONTAL);
 $f->champTexte("&nbsp; ajouter une note pour ce compte <span class='fwN'>(maximum de 200 caract&egrave;res)</span>", "pc_note", $pc_note, 90, 200);
 $f->finTable();
 $f->fin();
 //print('<div align="center"><a href="budgets.php" style="text-decoration+underline; color:blue;">retour &agrave; la page pr&eacute;c&eacute;dente</a></div>');
 print '</td></tr></table>';
Пример #5
0
}
switch ($action) {
    case "":
    case "xxx":
        print Html3("haut", "Gestion des comptes", $css);
        Menu_budget("cp");
        if (strstr($operation, "!")) {
            print Imprime_operation3($operation);
        }
        print '<table align="center" bgcolor="#EBEBEB"><tr><td>' . "\n";
        print "<br />";
        print Imprime_titreListe("<b>Gestion des comptes</b>", "titre");
        print "<br />";
        $f = new Formulaire("POST", "comptes.php");
        $f->debutTable(HORIZONTAL);
        $f->champListe("chosir un compte de la liste", ct_id, $ct_id, 1, $listeComptes);
        $f->champValider("modifier", "action");
        $f->champValider("detruire", "action");
        $f->champCache("ct_id", $ct_id);
        $f->finTable();
        $f->fin();
        print "<br />";
        print '</td></tr></table>';
        print "<br />";
        print '<table align="center" bgcolor="#EBEBEB"><tr><td>' . "\n";
        $f = new Formulaire("POST", "comptes.php");
        $f->debutTable(HORIZONTAL);
        $f->champValider("ajouter-un-nouveau-compte", "action");
        $f->finTable();
        $f->fin();
        print "<br />";
Пример #6
0
 print "<br /><table border='0' bgcolor='#EBEBEB' align='center'><tr><td>\n";
 print Imprime_titreListe("<b>Acc&egrave;s d&eacute;j&agrave; actifs</b>", "titre");
 $reqAcces = " SELECT * FROM pus, pjs " . " WHERE pus.usager_id = '{$usager_id}' " . "     AND pus.pj_id = pjs.pj_id " . " ORDER BY pjs.pj_no ";
 $resAcces = $bd->execRequete($reqAcces);
 $nbAcces = 0;
 while ($unAcces = $bd->objetSuivant($resAcces)) {
     $nbAcces++;
     $entete = $nbAcces == 1 ? "oui" : "non";
     $f = new Formulaire("post", "pus.php");
     $f->debutTable(HORIZONTAL);
     // faire une liste d'une seule unité pour éviter que l'utilisateur ne modifie l'unité ******
     //$projet = $unAcces->pj_id;
     //$listeProjet_un = array();
     //$listeProjet_un[$projet] = $listeProjets[$projet];
     if ($entete == "oui") {
         $f->champListe("&nbsp; projets <span class=\"bcRouge cBlanc fwB\">&nbsp;ne pas modifier mais plut&ocirc;t cliquer sur ENLEVER&nbsp;</span>", pj_id, $unAcces->pj_id, 1, $listeProjets);
         $f->champTexte("&nbsp; r&ocirc;les", pu_role, $unAcces->pu_role, 30, 30);
     } else {
         $f->champListe("&nbsp;", pj_id, $unAcces->pj_id, 1, $listeProjets);
         $f->champTexte("&nbsp;", pu_role, $unAcces->pu_role, 30, 30);
     }
     $f->champValider("maj", "action");
     $f->champValider("enlever", "action");
     $f->champCache("usager_id", $usager_id);
     $f->champCache("pu_id", $unAcces->pu_id);
     $f->finTable();
     $f->fin();
 }
 print '</td></tr></table>';
 print Html3("bas");
 break;
Пример #7
0
 $formes['liste'] = "de liste à l'écran";
 $formes['publipostage'] = "publipostage (instance.csv)";
 $formes['étiquettes'] = "d'étiquettes (Avery 05159)";
 $formes['étiquettesSG2'] = "d'étiquettes (Sec.gén. Lj II)";
 $formes['étiquettesSG1200'] = "d'étiquettes (Sec.gén. Lj 1200)";
 $formes['fiches'] = "de fiches individuelles";
 if (strstr(" p486735 p301454 ", $PHP_AUTH_USER)) {
     $formes['courriel'] = "de courriel à définir";
 }
 if (strstr(" p150705 p486735  p900884 p790142 p730063 ", $PHP_AUTH_USER)) {
     $formes['membres-postes'] = "postes des membres";
 }
 $trialpha = "non";
 $f = new Formulaire("POST", $PHP_SELF);
 $f->debutTable(HORIZONTAL);
 $f->champListe("Choisissez une instance", instance_id, $instance_id, 1, $listeInstances);
 $f->champListe("produire sous forme ", formeDe, $formeDe, 1, $formes);
 $f->champValider("go", "action");
 $f->finTable();
 $f->debutTable(HORIZONTAL);
 $f->champTexte("étiquettes :<br>no de ligne (1 &agrave; 7)", ligneimp, "1", 10, 10);
 $f->champTexte("étiquettes :<br>no de colonne (1 ou 2)", colimp, "1", 10, 10);
 if ($PHP_AUTH_USER == "p486735") {
     $f->champTexte("tri alpha(oui-non)<br>liste seulement", trialpha, $trialpha, 5, 5);
 }
 $f->finTable();
 $f->fin();
 $xhtml = Entete();
 $xhtml .= Menu_membre();
 $xhtml .= "<br /><table border=\"0\" bgcolor=\"#EBEBEB\" align=\"center\"><tr><td align='center'>\n";
 $xhtml .= "<a href='instances.php'>Liste des instances et de leur date de mise &agrave; jour</a></td></tr><tr><td>\n";