Beispiel #1
0
 function Imprimer_form($css)
 {
     print '<table border="0" bgcolor="#EBEBEB" align="center"><tr><td>';
     print Imprime_titreListe("titre de la liste", "titre");
     print "<br>";
     $f = new Formulaire("POST", "pcs.php");
     $f->debutTable(VERTICAL);
     $f->champCache("pc_id", $this->pc_id);
     $f->finTable();
     $f->debutTable(HORIZONTAL);
     $f->champValider("sauver", "action");
     $f->finTable();
     $f->fin();
     print '</td></tr></table>';
 }
Beispiel #2
0
 function Imprimer_form($parametres, $action)
 {
     print '<table border="0" bgcolor="#EBEBEB" align="center"><tr><td>';
     print Imprime_titreListe("Acc&egrave;s aux projets", "titre");
     print "<br>";
     $f = new Formulaire("POST", "pus.php");
     $f->debutTable(VERTICAL);
     //$f->champTexte("$this->{$value}", "$this->{$value}", $this->{$value}, 3, 58);
     //$f->champListe("chosir un élément de la liste", $this->{variable}, $this->{variable}, 1, $uneListe);
     //$f->champFenetre("fenêtre", $this->{$value}, $this->{$value}, 1, 79);
     $f->champCache("pu_id", $this->pu_id);
     $f->finTable();
     $f->debutTable(HORIZONTAL);
     $f->champValider("sauver", "action");
     $f->finTable();
     $f->fin();
     print '</td></tr></table>';
 }
Beispiel #3
0
 function Imprimer_form($action, $css, $listeUsagers)
 {
     $listeAcces[0] = "non&nbsp; &nbsp; &nbsp; &nbsp; ";
     $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>';
 }
Beispiel #4
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>';
 }
Beispiel #5
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>';
 }
Beispiel #6
0
     $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");
     print "</td></tr></table>\n";
     print "<br />";
     unset($pc);
     unset($ct);
     print Html3("bas");
     break;
 case "OUI-destruction-de-ce-compte":
     // ====================================== d e t ru i r e
     $pc = new PC("pcs");
     $pc->Get_pc($bd, $pc_id);
     $pc->Detruire($bd);
     $operation = "!destruction complétée";
     $url = "Location: budgets.php?action=gestion-du-projet-choisi&operation={$operation}&pj_id={$pc->pj_id}";
     header($url);
     exit;
Beispiel #7
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;
}
Beispiel #8
0
 function Imprimer_form($css, $mode, $forme)
 {
     print '<table border="0" bgcolor="#EBEBEB" align="center"><tr><td>';
     print Imprime_titreListe("titre de la liste", "titre");
     print "<br>";
     $f = new Formulaire("post", "paffecs.php", "", TRUE, $forme);
     $f->debutTable(HORIZONTAL);
     $f->champTexte("{$poste_id}", "poste_id", $this->poste_id, 3, 58);
     $f->champTexte("{$usager_id}", "usager_id", $this->usager_id, 3, 58);
     $f->champTexte("{$paffec_mandatNo}", "paffec_mandatNo", $this->paffec_mandatNo, 3, 58);
     $f->champTexte("{$paffec_actif}", "paffec_actif", $this->paffec_actif, 3, 58);
     $f->champTexte("{$paffec_vacant}", "paffec_vacant", $this->paffec_vacant, 3, 58);
     $f->champTexte("{$paffec_debut}", "paffec_debut", $this->paffec_debut, 3, 58);
     $f->champTexte("{$paffec_arrivee}", "paffec_arrivee", $this->paffec_arrivee, 3, 58);
     $f->champTexte("{$paffec_fin}", "paffec_fin", $this->paffec_fin, 3, 58);
     $f->champTexte("{$paffec_depart}", "paffec_depart", $this->paffec_depart, 3, 58);
     $f->champTexte("{$sgaffec_raisonFin}", "sgaffec_raisonFin", $this->sgaffec_raisonFin, 3, 58);
     $f->champTexte("{$paffec_relance}", "paffec_relance", $this->paffec_relance, 3, 58);
     $f->champTexte("{$paffec_decret}", "paffec_decret", $this->paffec_decret, 3, 58);
     $f->champTexte("{$paffec_notes}", "paffec_notes", $this->paffec_notes, 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("paffec_id", $this->paffec_id);
     $f->fin();
     print '</td></tr></table>';
 }
Beispiel #9
0
        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;
}
Beispiel #10
0
 print "<br />";
 print "<br /><table border='0' bgcolor='#EBEBEB' align='center'><tr><td>\n";
 $f = new Formulaire("post", "pus.php");
 $f->debutTable(HORIZONTAL);
 print Imprime_titreListe("<b>Ajouter un nouvel acc&egrave;s</b>", "titre");
 $f->champListe("&nbsp; chosir un projet ", pj_id, $pj_id, 1, $listeProjets);
 $f->champTexte("&nbsp; r&ocirc;le ", role, $role, 30, 30);
 $f->champValider("ajouter-acces-pour-ce-projet", "action");
 $f->champCache("usager_id", $usager_id);
 $f->champCache("aujour", $aujour);
 $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>';
 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);
Beispiel #11
0
             print "\n\n" . '<tr bgcolor="#' . $couleur . '"><td><a href="instances_adr_c.php?instance_id=' . $key . '&formeDe=liste">' . $value . '</a></td></tr>';
         }
     }
     print "</table>\n";
     print Html3("bas");
     break;
 case "notification":
     //-----------------------------------------
     if ($pArch == FALSE) {
         Html_non_acces();
         exit;
     }
     print Html3("haut", "maj membres des instances", "../css/gesdep.css");
     include "../mnuar.php";
     print "</table><br><table width='680' border='1' align='center' bgcolor='EBEBEB' cellspacing='0'><tr><td>\n";
     print Imprime_titreListe("Envoi de courriels notifiant maj des membres des instances", "titre");
     $f = new Formulaire("POST", "instances.php");
     $f->debutTable(HORIZONTAL);
     $f->champValider("maj-memad", "action");
     $f->finTable();
     $f->fin();
     print "</td></tr></table>\n";
     print Html3("bas");
     break;
 case "maj-memad":
     //-------------------------------------------------------------
     $msgDebut = "";
     $msgDebut .= "Bonjour<br />\n\n";
     $msgDebut .= "Certaines listes des membres actifs des instances<br />\n";
     $msgDebut .= "ont été mises à jour sur le site web.<br /><br />\n\n ";
     $msgDebut .= "Les instances ayant été mises à jour <br />\n";
Beispiel #12
0
    $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";
    $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);