Example #1
0
 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>';
 if ($nonAjout == FALSE) {
     //print('<br /><div align="center"><span class="fyI bcOrange cNoire fwN">&nbsp;certains comptes ont été entrés par défaut par le <b>trésorier</b> : enlever ceux qui ne sont pas nécessaires&nbsp;</span></div>');
     if (trim($operation) != "" and substr($operation, 0, 1) == "!") {
         print Imprime_operation3($operation);
     }
     print "<br /><table border='0' bgcolor='#EBEBEB' align='center'><tr><td>\n";
     print Imprime_titreListe("<b>Comptes et montants d&eacute;j&agrave; entr&eacute;s</b>", "titre");
     $reqPcs = "SELECT * FROM pcs, pjs, cts " . "WHERE pjs.pj_id = '{$pj_id}' " . "          AND pjs.pj_id = pcs.pj_id " . "          AND cts.ct_id = pcs.ct_id " . " ORDER BY cts.ct_no";
     $resPcs = $bd->execRequete($reqPcs);
     $totreel = 0;
     $totprevu = 0;
     $totengage = 0;
     while ($unPc = $bd->objetSuivant($resPcs)) {
         $f = new Formulaire("post", "budgets.php");
         $f->debutTable(HORIZONTAL);
         $no_cte = $unPc->ct_id;
         $nom_cte = $listeComptes[$no_cte];
         $no_cte_str = $unPc->ct_no;
         $no_cte_str = (string) $no_cte_str;
Example #2
0
        $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";
    $xhtml .= Imprime_titreListe("Liste des membres actifs d'une instance", "titreNavy");
    $xhtml .= $f->Get_formulaire();
    $xhtml .= "</td></tr></table>\n";
    $xhtml .= "</body>\n";
    $xhtml .= "</html>";
    print $xhtml;
    if (strstr(" p486735 p301454 ", $PHP_AUTH_USER)) {
        print Imprime_operation3("<a href='http://www.polymtl.ca/archives/u111/person/majCEPA.php'>regénérer Cocep tous les membres</a><br><br><a href='http://www.polymtl.ca/rensgen/repertoires/instance.php'>pour imprimer les listes mais <b>SANS</b> les adresses compl&egrave;tes et les nos de t&eacute;l&eacute;phone</a>");
    }
} else {
    $connexion = Connexion(USAGER, PASSE, BASE, SERVEUR);
    $requete = "SELECT instance_nom, instance_pweb_mem, instance_notes " . " FROM sgInstances " . " WHERE instance_id = '{$instance_id}' ";
    $resultat2 = ExecRequete($requete, $connexion);
    $ligne = LigneSuivante($resultat2);
    $instance = $ligne->instance_nom;
    $dateMaj = DateNormale($ligne->instance_pweb_mem);
    $instance_notes = $ligne->instance_notes;
    switch ($formeDe) {
        case "membres-postes":
            $url = "Location: http://www.polymtl.ca/archives/membres/mem_postes.php";
            header($url);
            exit;
            break;