Example #1
0
function Menu_budget($choix, $action = "")
{
    $gesAcces = array(1, 33);
    // 1=Pierre Lavigne   33= Charles Cormier
    print "<br />" . "\n";
    print '<div class="taC invisible">' . "\n";
    if (in_array($_SESSION['usager_id'], $gesAcces)) {
        print '&nbsp;<a href="projets.php" class="boutonM">&nbsp;projets&nbsp;</a>&nbsp;' . "\n";
        print '&nbsp;<a href="comptes.php" class="boutonM">&nbsp;comptes&nbsp;</a>&nbsp;' . "\n";
    }
    print '&nbsp;<a href="budgets.php" class="boutonM">&nbsp;<b>B U D G E T S&nbsp;</b></a>&nbsp;' . "\n";
    print '&nbsp;<a href="budgets.php?action=sommaire" class="boutonM">&nbsp;<b>S O M M A I R E</b>&nbsp;</a>&nbsp;' . "\n";
    print '&nbsp;<a href="budgets.php?action=detail"  class="boutonM"><b>&nbsp;D &Eacute; T A I L &nbsp;</b></a>&nbsp;' . "\n";
    print '&nbsp;<a href="budgets.php?action=liste-projets-comptes" class="boutonM">&nbsp;listes p/c&nbsp;</a>&nbsp;' . "\n";
    print '&nbsp;<a href="budgets.php?action=deconnexion" class="boutonM">&nbsp;d&eacute;connexion&nbsp;</a>&nbsp;' . "\n";
    print '&nbsp;<a href="http://www.archivistes.qc.ca/cora/sg/pvi_reunions.php"   class="boutonM">&nbsp;G E S P V I&nbsp;</a>&nbsp;' . "\n";
    if (in_array($_SESSION['usager_id'], $gesAcces)) {
        print '&nbsp;<a href="http://www.archivistes.qc.ca/cora/sg/budget/budgets.php?action=cts_analyse"   class="boutonM">&nbsp;analyse comptes&nbsp;</a>&nbsp;' . "\n";
    }
    if (in_array($_SESSION['usager_id'], $gesAcces)) {
        $f = new Formulaire("post", "budgets.php");
        $f->debutTable(HORIZONTAL);
        $dateRapport = trim($_SESSION['dateRapport']) == "" ? date("Y-m-d") : $_SESSION['dateRapport'];
        $f->champTexte("nouvelle date pour les rapports", "dateRapport", $dateRapport, 25, 15);
        $f->champValider("changer-date-du-rapport", "action");
        $f->finTable();
        $f->fin();
    }
    print "</div>" . "\n";
    //print("<br />" . "\n");
}
 function createForm()
 {
     $this->loadReceivedData();
     //Ajout des champs dans la classe formulaire
     foreach ($this->arrayFields as $name => $field) {
         parent::addElement($field);
     }
     $this->m_html = parent::html();
 }
Example #3
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>';
 }
Example #4
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>';
 }
Example #5
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>';
 }
Example #6
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>';
 }
	}
	foreach($tab_demande_supprimer as $key => $key)
	{
		list($item_id,$eleve_id) = explode('x',$key);
		DB_STRUCTURE_PROFESSEUR::DB_supprimer_demande_precise($eleve_id,$item_id);
	}
	exit('<ok>');
}

//	//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//	Imprimer un cartouche d'une évaluation
//	//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

if( ($action=='imprimer_cartouche') && $devoir_id && $groupe_id && $date_fr && $cart_contenu && $cart_detail && $orientation && $marge_min && $couleur )
{
	Formulaire::save_choix('cartouche');
	$with_nom    = (substr($cart_contenu,0,8)=='AVEC_nom')  ? true : false ;
	$with_result = (substr($cart_contenu,9)=='AVEC_result') ? true : false ;
	// liste des items
	$DB_TAB_COMP = DB_STRUCTURE_PROFESSEUR::DB_lister_items_devoir( $devoir_id , FALSE /*with_lien*/ , TRUE /*with_coef*/ );
	// liste des élèves
	$DB_TAB_USER = DB_STRUCTURE_COMMUN::DB_lister_users_actifs_regroupement('eleve',$groupe_type,$groupe_id);
	// Let's go
	if(!count($DB_TAB_COMP))
	{
		exit('Aucun item n\'est associé à cette évaluation !');
	}
	if(!count($DB_TAB_USER))
	{
		exit('Aucun élève n\'est associé à cette évaluation !');
	}
 * sans même la garantie implicite de COMMERCIALISABILITÉ ni d’ADÉQUATION À UN OBJECTIF PARTICULIER.
 * Consultez la Licence Générale Publique GNU pour plus de détails.
 * 
 * Vous devriez avoir reçu une copie de la Licence Générale Publique GNU avec SACoche ;
 * si ce n’est pas le cas, consultez : <http://www.gnu.org/licenses/>.
 * 
 */

if(!defined('SACoche')) {exit('Ce fichier ne peut être appelé directement !');}
$TITRE = "Associer les professeurs à ses groupes de besoin";
?>

<?php
// Fabrication des éléments select du formulaire
$select_professeurs   = Formulaire::afficher_select(DB_STRUCTURE_COMMUN::DB_OPT_professeurs_etabl()                      , $select_nom=false , $option_first='non' , $selection=false , $optgroup='non');
$select_groupe_besoin = Formulaire::afficher_select(DB_STRUCTURE_COMMUN::DB_OPT_besoins_professeur($_SESSION['USER_ID']) , $select_nom=false , $option_first='non' , $selection=false , $optgroup='non');
?>

<ul class="puce">
	<li><span class="manuel"><a class="pop_up" href="<?php echo SERVEUR_DOCUMENTAIRE ?>?fichier=support_professeur__gestion_groupes_besoin">DOC : Gestion des groupes de besoin.</a></span></li>
	<li><span class="astuce">Vous pouvez associer des collègues à vos groupes de besoin, mais pas vous retirer de vos propres groupes de besoin !</span></li>
</ul>

<hr />

<form action="#" method="post">
	<table><tr>
		<td class="nu" style="width:25em">
			<b>Liste des professeurs :</b> <img alt="" src="./_img/bulle_aide.png" title="Utiliser la touche &laquo;&nbsp;Shift&nbsp;&raquo; pour une sélection multiple contiguë.<br />Utiliser la touche &laquo;&nbsp;Ctrl&nbsp;&raquo; pour une sélection multiple non contiguë." /><br />
			<select id="select_professeurs" name="select_professeurs[]" multiple size="10" class="t8"><?php echo $select_professeurs; ?></select>
		</td>
Example #9
0
 function __construct()
 {
     Formulaire::__construct();
     $this->formulaireOK = FALSE;
 }
Example #10
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>';
 }
Example #11
0
//=================================================
$bd = new BD(USAGER, PASSE, BASE, SERVEUR);
$css = <<<EOD
           <style type="text/css">
           <!--
\t           a:link {font-color:blue;}
   \t           a:visited {font-color:blue;}
               TD, TH {font-family:Verdana; font-size:9pt;}
           -->
          </style
EOD;
print Html3("haut", $action, $css);
if (!isset($instances)) {
    $instances = "cad cex add cco cac cet cre cai cve";
}
$f = new Formulaire("POST", "mem_postes.php", FALSE, "Form");
$f->debutTable(HORIZONTAL);
//		   $instances = "cad cex add cco cac cet cre cai cve";
$f->champTexte("entrez une ou plusieurs instances (séparées par un espace)&nbsp; &nbsp;<a href='http://www.polymtl.ca/archives/membres/instances_adr_c.php' style='color:blue;'>retour à mem</a><br><span style='font-size:smaller; font-weight:normal;'>enlever, ci-dessous, les instances qui ne sont pas nécessaires </span>", instances, $instances, 85, 85);
$f->champValider("mem-postes", "action");
$f->finTable();
$f->fin();
$reqSel = "SELECT cp.nom, " . "           cp.prenom, " . "           ins.instance_id, " . "           pos.sgiPoste_no, " . "           pos.sgiPoste_nom, " . "           aff.date_arrivee, " . "           aff.date_depart " . " FROM   sgiAffec as aff, " . "           sgInstances as ins, " . "           sgiPostes as pos, " . "           cPerson as cp " . " WHERE aff.sgiPoste_id = pos.sgiPoste_id " . "     AND aff.instance_id = ins.instance_id " . "     AND aff.cPerson_id = cp.cPerson_id " . "     AND aff.instance_id = ins.instance_id " . "     AND INSTR('{$instances}', aff.instance_id) " . " ORDER by cp.nom ASC, " . "               cp.prenom, " . "               date_arrivee ASC ";
$resSel = $bd->execRequete($reqSel);
print "<table width='950' border='1' cellpadding='2' cellspacing='0'>";
print "   <tr>";
print "      <th>nom</th>";
print "      <th>prénom</th>";
print "      <th>ins</th>";
print "      <th>no</th>";
print "      <th>poste nom</th>";
Example #12
0
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)) {
        $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();
Example #13
0
     header($url);
     exit;
     break;
 case "enlever":
     //======================================================  e n l e v e r
     $pc = new PC("pcs");
     $pc->Get_pc($bd, $pc_id);
     $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
Example #14
0
     $compte->Affectation($_POST, $ct_id);
     $compte->Sauver($bd);
     $operation = $compte->Get_operation();
     $url = "Location: comptes.php?action=xxx&operation={$operation}";
     unset($compte);
     header($url);
     exit;
     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);
Example #15
0
 $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);
     } 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);
Example #16
0
     $msgDebut .= "Les instances ayant été mises à jour <br />\n";
     $msgDebut .= "dans les derniers --> 10 jours <-- sont<br />\n";
     $msgDebut .= "présentées en gras de couleur rouge<br />\n";
     $msgDebut .= "sur le lien suivant : <br /><br />\n\n";
     $msgMilieu = "";
     $msgMilieu .= "  http://www.polymtl.ca/archives/membres/instances.php?action=affichage-sg<br /><br />\n\n";
     $msgMilieu .= "Pierre Lavigne, webmestre du site du Secrétariat général";
     $msgFinal = $msgDebut . $msgMilieu;
     $titreFinal = "Maj des listes des membres actifs des instances";
     $msgFinal_br = $msgFinal;
     $msgFinal_br = ereg_replace("\n", "<br>", $msgFinal);
     print Html3("haut", "Maj des listes des membres actifs des instances", "../css/gesdep.css");
     include "../mnuar.php";
     print $msgFinal_br;
     print "</table><br><table width='680' border='1' align='center' bgcolor='EBEBEB' cellspacing='0'><tr><td>\n";
     $f = new Formulaire("POST", "instances.php");
     $f->debutTable(HORIZONTAL);
     $f->champValider("envoyer les courriels", "action");
     $f->champCache(msgFinal, $msgFinal);
     $f->champCache(titreFinal, $titreFinal);
     $f->champCache(instance, $instance);
     $f->finTable();
     $f->fin();
     print "</td></tr></table>\n";
     print Html3("bas");
     break;
 case "envoyer les courriels":
     //----------------------------------------------------
     $organisme = "Archives Polytechnique";
     $emetteur = "*****@*****.**";
     $header = "MIME-Version : 1.0\r\r\n";
Example #17
0
<script type="text/javascript">
	var input_autoeval="<?php echo $date_autoeval ?>";
</script>

<ul class="puce">
	<li><span class="manuel"><a class="pop_up" href="<?php echo SERVEUR_DOCUMENTAIRE ?>?fichier=environnement_generalites__demandes_evaluations">DOC : Demandes d'évaluations.</a></span></li>
	<li><span class="astuce">Tenez-vous au courant des demandes grace à <a class="lien_ext" href="<?php echo adresse_RSS($_SESSION['USER_ID']); ?>"><span class="rss">un flux RSS dédié</span></a> !</span></li>
	<li><span class="astuce"><a title="<?php echo $infobulle ?>" href="#">Nombre de demandes autorisées par matière.</a></span></li>
</ul>

<hr />

<?php
// Fabrication des éléments select du formulaire
$select_matiere = Formulaire::afficher_select(DB_STRUCTURE_COMMUN::DB_OPT_matieres_professeur($_SESSION['USER_ID']) , $select_nom='f_matiere' , $option_first='non' , $selection=false , $optgroup='non');
$select_groupe  = Formulaire::afficher_select(DB_STRUCTURE_COMMUN::DB_OPT_groupes_professeur($_SESSION['USER_ID'])  , $select_nom='f_groupe'  , $option_first='oui' , $selection=false , $optgroup='oui');
?>

<form action="#" method="post" id="form0"><fieldset>
	<label class="tab" for="f_matiere">Matière :</label><?php echo $select_matiere ?><input type="hidden" id="f_matiere_nom" name="f_matiere_nom" value="" /><br />
	<label class="tab" for="f_groupe">Classe / groupe :</label><?php echo $select_groupe ?><input type="hidden" id="f_groupe_id" name="f_groupe_id" value="" /><input type="hidden" id="f_groupe_type" name="f_groupe_type" value="" /><input type="hidden" id="f_groupe_nom" name="f_groupe_nom" value="" /><br />
	<span class="tab"></span><input type="hidden" name="f_action" value="Afficher_demandes" /><button id="actualiser" type="submit" class="actualiser">Actualiser l'affichage.</button><label id="ajax_msg0">&nbsp;</label>
</fieldset></form>

<form action="#" method="post" id="form1" class="hide">
	<hr />
	<table class="bilan_synthese" style="float:right;margin-left:1em;margin-right:1ex">
		<thead><tr><th>élève(s) sans demande</th></tr></thead>
		<tbody><tr id="tr_sans"><td class="nu"></td></tr></tbody>
	</table>
	<table id="table_demandes" class="form hsort">
 * Consultez la Licence Générale Publique GNU pour plus de détails.
 * 
 * Vous devriez avoir reçu une copie de la Licence Générale Publique GNU avec SACoche ;
 * si ce n’est pas le cas, consultez : <http://www.gnu.org/licenses/>.
 * 
 */

if(!defined('SACoche')) {exit('Ce fichier ne peut être appelé directement !');}
$TITRE = "Désactiver des comptes utilisateurs";
?>

<?php
// Fabrication des éléments select du formulaire
$select_f_groupes              = Formulaire::afficher_select(DB_STRUCTURE_COMMUN::DB_OPT_regroupements_etabl()                   , $select_nom=false , $option_first='oui' , $selection=false , $optgroup='oui');
$select_parents                = Formulaire::afficher_select(DB_STRUCTURE_COMMUN::DB_OPT_parents_etabl($statut=1)                , $select_nom=false , $option_first='non' , $selection=false , $optgroup='non');
$select_professeurs_directeurs = Formulaire::afficher_select(DB_STRUCTURE_COMMUN::DB_OPT_professeurs_directeurs_etabl($statut=1) , $select_nom=false , $option_first='non' , $selection=false , $optgroup='oui');
?>

<ul class="puce">
	<li><span class="manuel"><a class="pop_up" href="<?php echo SERVEUR_DOCUMENTAIRE ?>?fichier=support_administrateur__gestion_statuts">DOC : Statuts : désactiver / réintégrer / supprimer</a></span></li>
	<li><span class="astuce">Pour un traitement individuel on peut utiliser les pages [<a href="./index.php?page=administrateur_eleve&amp;section=gestion">Gérer les élèves</a>] [<a href="./index.php?page=administrateur_parent&amp;section=gestion">Gérer les parents</a>] [<a href="./index.php?page=administrateur_professeur&amp;section=gestion">Gérer les professeurs</a>] [<a href="./index.php?page=administrateur_directeur">Gérer les directeurs</a>].</span></li>
</ul>

<hr />

<form action="#" method="post">
	<table>
		<tr>
			<td style="width:55em" colspan="2">
				<p class="hc">
					<input id="f_profil_eleves" name="f_profil" type="radio" value="eleves" /><label for="f_profil_eleves"> Élèves</label>
Example #19
0
 function formulaire($action, $ligne)
 {
     // print_r ($ligne); echo "<p>";
     // Cr�ation de l'objet formulaire
     $form = new Formulaire("post", $this->nomScript, false);
     $form->setTitle($this->title);
     foreach ($this->hidden_fields as $nom => $value) {
         $form->champCache($nom, $value);
     }
     $form->champCache("ihm_action", $action);
     $form->debutTable(VERTICAL, array(), $nbLignes = 1, $this->title);
     // Pour chaque attribut, cr�ation d'un champ de saisie
     foreach ($this->schemaTable as $nom => $options) {
         // D'abord v�rifier que la valeur par d�faut existe
         if (!isset($ligne[$nom])) {
             $ligne[$nom] = "";
         }
         $this->addFormField($form, $action, $nom, $ligne[$nom], $options);
     }
     // OK. Now add lines for the slave table, if any
     if (!empty($this->slave_table)) {
         $form->debutTable(HORIZONTAL, array(), $this->size_slave_table);
         // Pour chaque attribut, cr�ation d'un champ de saisie
         foreach ($this->schema_slave as $nom => $options) {
             // D'abord v�rifier que la valeur par d�faut existe
             if (!isset($ligne[$this->slave_table][$nom])) {
                 $valeur = "";
             } else {
                 $valeur = $ligne[$this->slave_table][$nom];
             }
             // Attention � g�rer les cl�s �trang�res
             if (isset($this->foreign_keys[$nom])) {
                 $options['cle_etrangere'] = 1;
                 if ($action == MAJ_BD) {
                     $valeur = $ligne[$this->foreign_keys[$nom]];
                 }
             }
             $html_field_name = "{$this->slave_table}[{$nom}][]";
             $this->addFormField($form, $action, $nom, $valeur, $options, $html_field_name);
         }
         $form->finTable();
     }
     $form->finTable();
     if ($action == MAJ_BD) {
         $form->champValider("Modify", "submit");
     } else {
         $form->champValider("Insert", "submit");
     }
     return $form->formulaireHTML();
 }
Example #20
0
 * 
 * Vous devriez avoir reçu une copie de la Licence Générale Publique GNU avec SACoche ;
 * si ce n’est pas le cas, consultez : <http://www.gnu.org/licenses/>.
 * 
 */

if(!defined('SACoche')) {exit('Ce fichier ne peut être appelé directement !');}
$TITRE = "Liste des évaluations";
?>

<?php
// Fabrication des éléments select du formulaire
if( ($_SESSION['USER_PROFIL']=='parent') && ($_SESSION['NB_ENFANTS']!=1) )
{
	$class_form_eleve = 'show';
	$select_eleves = Formulaire::afficher_select($_SESSION['OPT_PARENT_ENFANTS'] , $select_nom=false , $option_first='oui' , $selection=false , $optgroup='non');
}
if( ($_SESSION['USER_PROFIL']=='parent') && ($_SESSION['NB_ENFANTS']==1) )
{
	$class_form_eleve = 'hide';
	$select_eleves = '<option value="'.$_SESSION['OPT_PARENT_ENFANTS'][0]['valeur'].'" selected>'.html($_SESSION['OPT_PARENT_ENFANTS'][0]['texte']).'</option>';
}
if($_SESSION['USER_PROFIL']=='eleve')
{
	$class_form_eleve = 'hide';
	$select_eleves = '<option value="'.$_SESSION['USER_ID'].'" selected>'.html($_SESSION['USER_NOM'].' '.$_SESSION['USER_PRENOM']).'</option>';
}
// Dates par défaut de début et de fin
$date_debut = date("d/m/Y",mktime(0,0,0,date("m")-2,date("d"),date("Y"))); // 2 mois avant
$date_fin   = date("d/m/Y",mktime(0,0,0,date("m")+1,date("d"),date("Y"))); // 1 mois après
Example #21
0
     $projet->Affectation($_POST, $pj_id);
     $projet->Sauver($bd);
     $operation = $projet->Get_operation();
     $url = "Location: projets.php?action=xxx&operation={$operation}";
     unset($projet);
     header($url);
     exit;
     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);
Example #22
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>';
 }
Example #23
0
/**
 * Enregistrer les choix mémorisées d'un formulaire.
 * 
 * @param string $page
 * @return void
 */

 public static function save_choix($page)
{
	switch($page)
	{
		case 'cartouche' :
			global $orientation,$couleur,$legende,$marge_min,$cart_contenu,$cart_detail;
			$tab_choix_new = compact('orientation','couleur','legende','marge_min','cart_contenu','cart_detail');
			break;
		case 'grille_referentiel' :
			global $matiere_id,$niveau_id,$type_generique,$type_individuel,$type_synthese,$tableau_tri_objet,$tableau_tri_mode,$only_socle,$aff_coef,$aff_socle,$aff_lien,$cases_nb,$cases_largeur,$remplissage,$colonne_bilan,$colonne_vide,$orientation,$couleur,$legende,$marge_min;
			$tab_choix_new = compact('matiere_id','niveau_id','type_generique','type_individuel','type_synthese','only_socle','aff_coef','aff_socle','aff_lien','cases_nb','cases_largeur','remplissage','colonne_bilan','colonne_vide','orientation','couleur','legende','marge_min');
			break;
		case 'items_matiere' :
			global $matiere_id,$type_individuel,$type_synthese,$type_bulletin,$aff_bilan_MS,$aff_bilan_PA,$aff_conv_sur20,$tableau_tri_objet,$tableau_tri_mode,$retroactif,$only_socle,$aff_coef,$aff_socle,$aff_lien,$aff_domaine,$aff_theme,$cases_nb,$cases_largeur,$orientation,$couleur,$legende,$marge_min,$pages_nb;
			$tab_choix_new = compact('matiere_id','type_individuel','type_synthese','type_bulletin','aff_bilan_MS','aff_bilan_PA','aff_conv_sur20','tableau_tri_objet','tableau_tri_mode','retroactif','only_socle','aff_coef','aff_socle','aff_lien','aff_domaine','aff_theme','cases_nb','cases_largeur','orientation','couleur','legende','marge_min','pages_nb');
			break;
		case 'items_selection' :
			global $type_individuel,$type_synthese,$type_bulletin,$aff_bilan_MS,$aff_bilan_PA,$aff_conv_sur20,$tableau_tri_objet,$tableau_tri_mode,$with_coef,$retroactif,$aff_coef,$aff_socle,$aff_lien,$aff_domaine,$aff_theme,$cases_nb,$cases_largeur,$orientation,$couleur,$legende,$marge_min,$pages_nb;
			$tab_choix_new = compact('type_individuel','type_synthese','type_bulletin','aff_bilan_MS','aff_bilan_PA','aff_conv_sur20','tableau_tri_objet','tableau_tri_mode','with_coef','retroactif','aff_coef','aff_socle','aff_lien','aff_domaine','aff_theme','cases_nb','cases_largeur','orientation','couleur','legende','marge_min','pages_nb');
			break;
		case 'items_multimatiere' :
			global $aff_bilan_MS,$aff_bilan_PA,$aff_conv_sur20,$retroactif,$only_socle,$aff_coef,$aff_socle,$aff_lien,$aff_domaine,$aff_theme,$cases_nb,$cases_largeur,$orientation,$couleur,$legende,$marge_min,$pages_nb;
			$tab_choix_new = compact('aff_bilan_MS','aff_bilan_PA','aff_conv_sur20','retroactif','only_socle','aff_coef','aff_socle','aff_lien','aff_domaine','aff_theme','cases_nb','cases_largeur','orientation','couleur','legende','marge_min','pages_nb');
			break;
		case 'synthese_matiere' :
			global $matiere_id,$mode_synthese,$retroactif,$only_socle,$only_niveau,$aff_coef,$aff_socle,$aff_lien,$aff_start,$couleur,$legende,$marge_min;
			$tab_choix_new = compact('matiere_id','mode_synthese','retroactif','only_socle','only_niveau','aff_coef','aff_socle','aff_lien','aff_start','couleur','legende','marge_min');
			break;
		case 'synthese_multimatiere' :
			global $retroactif,$only_socle,$only_niveau,$aff_coef,$aff_socle,$aff_lien,$aff_start,$couleur,$legende,$marge_min;
			$tab_choix_new = compact('retroactif','only_socle','only_niveau','aff_coef','aff_socle','aff_lien','aff_start','couleur','legende','marge_min');
			break;
		case 'releve_socle' :
			global $palier_id,$only_presence,$aff_coef,$aff_socle,$aff_lien,$aff_start,$aff_socle_PA,$aff_socle_EV,$mode,$couleur,$legende,$marge_min;
			$tab_choix_new = compact('palier_id','only_presence','aff_coef','aff_socle','aff_lien','aff_start','aff_socle_PA','aff_socle_EV','mode','couleur','legende','marge_min');
		case 'synthese_socle' :
			global $palier_id,$type,$mode,$couleur,$legende,$marge_min;
			$tab_choix_new = compact('palier_id','type','mode','couleur','legende','marge_min');
			break;
		case 'matiere' :
			global $matiere_id;
			$tab_choix_new = compact('matiere_id');
			break;
		case 'palier' :
			global $palier_id;
			$tab_choix_new = compact('palier_id');
			break;
		case 'validation_socle_item' :
			global $palier_id,$mode;
			$tab_choix_new = compact('palier_id','mode');
			break;
		default :
			$tab_choix_new = array();
	}
	// Récupération du contenu du "cookie", surchargé avec les choix effectués
	Formulaire::load_choix_memo();
	Formulaire::$tab_choix = array_merge( Formulaire::$tab_choix , $tab_choix_new );
	/*
		Remarque : il y a un problème de serialize avec les type float : voir http://fr2.php.net/manual/fr/function.serialize.php#85988
		Dans ce cas il faut remplacer
		serialize(Formulaire::$tab_choix)
		par
		preg_replace( '/d:([0-9]+(\.[0-9]+)?([Ee][+-]?[0-9]+)?);/e', "'d:'.(round($1,9)).';'", serialize(Formulaire::$tab_choix) );
	*/
	Ecrire_Fichier(Formulaire::$fichier_cookie,serialize(Formulaire::$tab_choix));
}
Example #24
0
	</p>
	<p>
	<ul class="puce">
		<li><a id="export_file7" class="lien_ext" href=""><span class="file file_pdf">Archiver / Imprimer le tableau avec la répartition nominative des scores (format <em>pdf</em>).</span></a></li>
	</ul>
	</p>
</div>

<?php
// Fabrication des éléments select du formulaire
Formulaire::load_choix_memo();
$select_cart_contenu = Formulaire::afficher_select(Formulaire::$tab_select_cart_contenu , $select_nom='f_contenu'     , $option_first='non' , $selection=Formulaire::$tab_choix['cart_contenu'] , $optgroup='non');
$select_cart_detail  = Formulaire::afficher_select(Formulaire::$tab_select_cart_detail  , $select_nom='f_detail'      , $option_first='non' , $selection=Formulaire::$tab_choix['cart_detail']  , $optgroup='non');
$select_orientation  = Formulaire::afficher_select(Formulaire::$tab_select_orientation  , $select_nom='f_orientation' , $option_first='non' , $selection=Formulaire::$tab_choix['orientation']  , $optgroup='non');
$select_couleur      = Formulaire::afficher_select(Formulaire::$tab_select_couleur      , $select_nom='f_couleur'     , $option_first='non' , $selection=Formulaire::$tab_choix['couleur']      , $optgroup='non');
$select_marge_min    = Formulaire::afficher_select(Formulaire::$tab_select_marge_min    , $select_nom='f_marge_min'   , $option_first='non' , $selection=Formulaire::$tab_choix['marge_min']    , $optgroup='non');
?>

<form action="#" method="post" id="zone_imprimer" class="hide"><fieldset>
	<p class="hc"><b id="titre_imprimer"></b><br /><button id="fermer_zone_imprimer" type="button" class="retourner">Retour</button></p>
	<label class="tab" for="f_contenu">Remplissage :</label><?php echo $select_cart_contenu ?><br />
	<label class="tab" for="f_detail">Détail :</label><?php echo $select_cart_detail ?><br />
	<div class="toggle">
		<span class="tab"></span><a href="#" class="puce_plus toggle">Afficher plus d'options</a>
	</div>
	<div class="toggle hide">
		<span class="tab"></span><a href="#" class="puce_moins toggle">Afficher moins d'options</a><br />
		<label class="tab">Orientation :</label><?php echo $select_orientation ?> <?php echo $select_couleur ?> <?php echo $select_marge_min ?><br />
		<label class="tab">Restriction :</label><input type="checkbox" id="f_restriction_req" name="f_restriction_req" value="1" /> <label for="f_restriction_req">Uniquement les items ayant fait l'objet d'une demande d'évaluation (ou dont une note est saisie).</label>
	</div>
	<span class="tab"></span><button id="f_submit_imprimer" type="button" value="'.$ref.'" class="valider">Générer le cartouche</button><label id="msg_imprimer">&nbsp;</label>
Example #25
0
<?php

include '../init.php';
$pr = Site::instance()->getNewRender();
/*
$f = new Formulaire('nouveau_compte',true);
	$e1 = new FormulaireElement('MyFieldset','desc','fieldset','Value ...');
		$sub1 = new FormulaireElement('el2','Sous element 1','text','123');
			$sub1->addValidator(new NumberValidator);
		$sub2 = new FormulaireElement('el3','Sous element 2','text','Valeur2');

	$e1->addElement($sub1);
	$e1->addElement($sub2);*/
$f = new Formulaire('nouveau_compte', true);
$e1 = new FormInput('number', 'Un nombre ...');
$e1->addValidator(new NumberValidator());
$e2 = new FormInput('name', 'Non null');
$e2->addValidator(new NotNullValidator());
$e3 = new FormInput('pseudo', 'Caracteres autorisés');
$e3->addValidator(new StringValidator());
$f->addElement($e1);
$f->addElement($e2);
$f->addElement($e3);
$f->fillReceived();
$out = '<h1>Formulaire Test</h1>';
if ($f->sent()) {
    $out .= '<ul><li>Envoyé</li>';
    if ($f->verify()) {
        $out .= '<li>Formulaire validé</li>';
    }
    $out .= '</ul>';