コード例 #1
0
ファイル: instances.php プロジェクト: japila/nomi
         }
     }
     foreach ($liste as $key => $value) {
         if (trim(substr($value, 10)) != "") {
             $noLigne++;
             $couleur = $noLigne % 2 == 0 ? $couleur = "EBEBEB" : ($couleur = "f9f9f9");
             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":
コード例 #2
0
ファイル: instances_adr_c.php プロジェクト: japila/nomi
    $msg .= "  <title>Polytechnique - Membres d'une instance</title>\n";
    $msg .= "  <meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />\n";
    $msg .= "  <link rel=\"stylesheet\" href=\"http://www.polymtl.ca/sg/css/instance.css\" type=\"text/css\" />\n";
    $msg .= "  <style type=\"text/css\">";
    $msg .= "  <!-- ";
    $msg .= "    SELECT {font-family:Arial; font-size:13px;}";
    $msg .= "    TD {font-family:Arial; font-size:11px;}";
    $msg .= "  --> ";
    $msg .= "  </style>";
    $msg .= "</head>\n";
    $msg .= "<body>\n";
    return $msg;
}
// -----------------------------------------------------
if (!Verif_usager_unite($PHP_AUTH_USER, "memad", $bd)) {
    print Html_non_acces($choix = "non-modif");
    $bd->quitter();
    exit;
}
if (!isset($instance_id)) {
    $listeInstances = ComboInstances_membre2();
    $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)) {