Exemplo n.º 1
0
			  } else { $couleur='#FFFFFF'; $couleur2='#4DFF2F'; $drapeau=''; } ?>
                    <p class="info_eleve" style="background: <?php echo $couleur; ?>;"><b><?php echo date_frl($data_komenti['date_suivi_eleve_cpe']).' - '.$data_komenti['heure_suivi_eleve_cpe']; ?></b><br /><?php echo $data_komenti['komenti_suivi_eleve_cpe']; ?><br /><br /><span class="dimi_texte">Ecrit par : <?php echo qui($data_komenti['parqui_suivi_eleve_cpe']); ?><br />Concerne : <strong><a href="gestion_absences.php?select_fiche_eleve=<?php echo $data_komenti['eleve_suivi_eleve_cpe']; ?>" title="consulter le suivi élève"><?php echo qui_eleve($data_komenti['eleve_suivi_eleve_cpe']); ?></a></strong> de <?php echo classe_de($data_komenti['eleve_suivi_eleve_cpe']) ?><br />[ <a href="gestion_absences.php?select_fiche_eleve=<?php echo $data_komenti['eleve_suivi_eleve_cpe']; ?>">lire</a> ]</span></p>
           <?php } ?>
	   </td>
           <td class="norme_absence_min" valign="top">
           <?php
             $requete_komenti = "SELECT * FROM ".$prefix_base."suivi_eleve_cpe WHERE ".$prefix_base."suivi_eleve_cpe.date_suivi_eleve_cpe = '".$date_ce_jour."'  AND niveau_message_suivi_eleve_cpe!='3' ORDER BY date_suivi_eleve_cpe DESC, heure_suivi_eleve_cpe DESC";
             $execution_komenti = mysqli_query($GLOBALS["mysqli"], $requete_komenti) or die('Erreur SQL !'.$requete_komenti.'<br />'.mysqli_error($GLOBALS["mysqli"]));
              while ( $data_komenti = mysqli_fetch_array($execution_komenti))
                {
		   if(!empty($data_komenti['niveau_message_suivi_eleve_cpe'])) {
				if( $data_komenti['niveau_message_suivi_eleve_cpe']==='1') { $couleur='#FFFFFF'; $couleur2='#280FFF'; $drapeau='[information]'; }
				if( $data_komenti['niveau_message_suivi_eleve_cpe']==='2') { $couleur='#FFF3DF'; $couleur2='#FF782F'; $drapeau='[important]'; }
				if( $data_komenti['niveau_message_suivi_eleve_cpe']==='3') { $couleur='#FFDFDF'; $couleur2='#FF0000'; $drapeau='[prioritaire]'; }
			  } else { $couleur='#FFFFFF'; $couleur2='#4DFF2F'; $drapeau=''; } ?>
                    <p class="info_eleve" style="background: <?php echo $couleur; ?>;"><b><?php echo date_frl($data_komenti['date_suivi_eleve_cpe']).' - '.$data_komenti['heure_suivi_eleve_cpe'].' <span style="font-weight: bold; color: '.$couleur2.';">'.$drapeau.'</span>'; ?></b><br /><?php echo $data_komenti['komenti_suivi_eleve_cpe']; ?><br /><br /><span class="dimi_texte">Ecrit par: <?php echo qui($data_komenti['parqui_suivi_eleve_cpe']); ?><br />Concerne : <strong><a href="gestion_absences.php?select_fiche_eleve=<?php echo $data_komenti['eleve_suivi_eleve_cpe']; ?>" title="consulter le suivi élève"><?php echo qui_eleve($data_komenti['eleve_suivi_eleve_cpe']); ?></a></strong> de <?php echo classe_de($data_komenti['eleve_suivi_eleve_cpe']) ?><br />[ <a href="gestion_absences.php?select_fiche_eleve=<?php echo $data_komenti['eleve_suivi_eleve_cpe']; ?>">lire</a> ]</span></p>
           <?php } ?>
	   </td>
       </tr>
    </table>
<?php /* fin du div de centrage du tableau pour ie5 */ ?>
</div>
<?php } ?>


<?php
if ($choix === 'alert' and $fiche_eleve === '' and $select_fiche_eleve === '') {
/* div de centrage du tableau pour ie5 */ ?>
<div style="text-align:center">
<br />
    <table style="margin: auto; width: 700px;" border="0" cellspacing="1" cellpadding="0">
Exemplo n.º 2
0

/*
L'alerte que vous venez de sélectionner correspond à une limite de <?php echo $nb_compt_limit; ?> <?php echo $specification_alert; ?> depuis le <?php echo date_fr($date_debut_comptage); ?>.<br />
				<strong><?php echo $prenom_eleve; ?></strong> à franchit ce niveau le : <strong><?php echo date_fr($date_debut_alert); ?></strong> avec un total de <strong><?php echo $nb_compte; ?></strong>.
*/ ?>
				</div>



				<div style="font-size: 150%; background: #555555; color: #FFFFFF;">Etat de l'alerte</div>
				<div style="margin-left: 10px; padding-left: 10px;">
					<div class="information_etat_ae">
						<?php if ( $etat_alert_eleve === '0' ) { ?>Cette alerte n'a pas d'action sélectionnée pour l'instant <?php } ?>
						<?php if ( $etat_alert_eleve === '1' ) { ?>L'élève a été convoqué par <?php echo qui($etatpar_alert_eleve); ?> pour cette alerte<?php } ?>
						<?php if ( $etat_alert_eleve === '2' ) { echo qui($etatpar_alert_eleve); ?> ne tient pas compte de cette alerte<?php } ?>
					</div>

					<?php
					// seul la personne qui avait saisi peut modifier
					if ( strtoupper($etatpar_alert_eleve) === strtoupper($_SESSION['login']) or $etatpar_alert_eleve === '' ) { ?>
					<form name="form3" method="post" action="alert_suivi.php#ea">
				               	<input type="radio" name="etat_alert_eleve" id="eae1" value="1" onClick="javascript:document.form3.submit()" <?php  if ( $etat_alert_eleve === '1' ) { ?>checked="checked"<?php } ?> /><label for="eae1" style="cursor: pointer;">Convocation de l'élève.</label><br />
				               	<input type="radio" name="etat_alert_eleve" id="eae2" value="2" onClick="javascript:document.form3.submit()" <?php  if ( $etat_alert_eleve === '2' ) { ?>checked="checked"<?php } ?> /><label for="eae2" style="cursor: pointer;">Ne pas tenir compte de cette alerte.</label><br />
				               	<input type="radio" name="etat_alert_eleve" id="eae0" value="0" onClick="javascript:document.form3.submit()" <?php  if ( $etat_alert_eleve === '0' ) { ?>checked="checked"<?php } ?> /><label for="eae0" style="cursor: pointer;">Pas de sélection pour le moment.</label><br />
						<input type="hidden" name="id_alert_groupe" value="<?php echo $id_alert_groupe; ?>" />
						<input type="hidden" name="id_alert_eleve" value="<?php echo $id_alert_eleve; ?>" />
						<input type="hidden" name="action_sql" value="modif_etat_ae" />
						<input type="hidden" name="uid_post" value="<?php echo my_ereg_replace(' ','%20',$uid); ?>" />
						<input type="submit" name="submit3" value="<?php if ( $etat_alert_eleve === '0' ) { ?>Valider<?php } else { ?>Modifier<?php } ?>" />
					</form>
Exemplo n.º 3
0
          <table border="0" cellpadding="2" cellspacing="2" class="tableau_calque_information">
             <tr>
                <td class="texte_fondjaune_calque_information"><?php echo "<b>".strtoupper($data_sans_motif['nom'])."</b> ".ucfirst($data_sans_motif['prenom']); ?> élève de <?php echo "<b>".classe_de($data_sans_motif['login'])."</b>";  $id_classe_eleve = classe_de($data_sans_motif['login']); ?><br /><?php if ($data_sans_motif['type_absence_eleve']=="A") { ?> a été absent<?php if ($data_sans_motif['sexe'] == "F") { ?>e<?php } } if  ($data_sans_motif['type_absence_eleve']=="R") { ?> est arrivé<?php if ($data_sans_motif['sexe'] == "F") { ?>e<?php } ?> en retard<?php } ?><?php if ($data_sans_motif['type_absence_eleve']=="I") { ?>est allé à l'infirmerie<?php } ?><br /> le <?php echo date_frl($data_sans_motif['d_date_absence_eleve']); ?><?php if (($data_sans_motif['a_date_absence_eleve'] != $data_sans_motif['d_date_absence_eleve'] and $data_sans_motif['a_date_absence_eleve'] != "") or $data_sans_motif['a_date_absence_eleve'] == "0000-00-00") { ?> au <?php echo date_frl($data_sans_motif['a_date_absence_eleve']); ?><?php } ?><br /><?php if ($data_sans_motif['a_heure_absence_eleve'] == "00:00:00" or $data_sans_motif['a_heure_absence_eleve'] == "") { ?>à <?php } else { ?>de <?php } ?><?php echo heure($data_sans_motif['d_heure_absence_eleve']); ?> <?php if ($data_sans_motif['a_heure_absence_eleve'] == "00:00:00" or $data_sans_motif['a_heure_absence_eleve'] == "") { } else { echo 'à '.heure($data_sans_motif['a_heure_absence_eleve']); } ?></td>
                 <?php if (getSettingValue("active_module_trombinoscopes")=='y') {
                 echo "<td style=\"width: 60px; vertical-align: top\" rowspan=\"4\">";
                 $nom_photo = '';
                 $nom_photo = nom_photo($data_sans_motif['elenoet'],"eleves",2);
                 $photos = $nom_photo;
                 //if ( $nom_photo === '' or !file_exists($photo) ) { $photos = "../../mod_trombinoscopes/images/trombivide.jpg"; }
                 if ( $nom_photo === NULL or !file_exists($photos) ) { $photos = "../../mod_trombinoscopes/images/trombivide.jpg"; }
				$valeur=redimensionne_image($photos);
                 ?><img src="<?php echo $photos; ?>" style="width: <?php echo $valeur[0]; ?>px; height: <?php echo $valeur[1]; ?>px; border: 0px" alt="" title="" /></td><?php
                 } ?>
             </tr>
             <tr>
                <td class="norme_absence"><?php if($data_sans_motif['saisie_absence_eleve']!="") { ?>Enregistré par : <?php echo qui($data_sans_motif['saisie_absence_eleve']); } ?><br />pour le motif : <?php echo motif_de($data_sans_motif['motif_absence_eleve']); ?></td>
             </tr>
             <tr>
                <td class="norme_absence"><?php if ($data_sans_motif['justify_absence_eleve'] == "O") {?><span class="norme_absence_vert"><b>a donn&eacute; pour justification : </b>
									<?php } elseif ($data_sans_motif['justify_absence_eleve'] == "T") { ?><span class="norme_absence_vert" style="color: orange;"><b>a justifi&eacute; par t&eacute;l&eacute;phone : </b>
																						<?php } else { ?><span class="norme_absence_rouge"><b>n'a pas donn&eacute; de justification</b>
																						<?php } ?></span></td>
             </tr>
             <tr>
                <td class="norme_absence"><?php if(!empty($data_sans_motif['info_justify_absence_eleve'])) { ?><blockquote><?php echo $data_sans_motif['info_justify_absence_eleve']; ?></blockquote><?php } ?></td>
             </tr>
             <tr class="texte_fondjaune_calque_information">
                <td colspan="2">
                <?php

				// gestion de l'affichage des numéro de téléphone
Exemplo n.º 4
0
       <tr>
           <td class="td_tableau_fiche" style="width: 400px; vertical-align: top">
           <?php
	     $cpt_komenti = old_mysql_result(mysqli_query($GLOBALS["mysqli"], "SELECT count(*) FROM ".$prefix_base."suivi_eleve_cpe WHERE ".$prefix_base."suivi_eleve_cpe.eleve_suivi_eleve_cpe = '".$login_eleve."'"),0);
             $requete_komenti = "SELECT * FROM ".$prefix_base."suivi_eleve_cpe WHERE ".$prefix_base."suivi_eleve_cpe.eleve_suivi_eleve_cpe = '".$login_eleve."' ORDER BY date_suivi_eleve_cpe DESC, heure_suivi_eleve_cpe DESC LIMIT ".$debut_selection_suivi.", 2";
             $execution_komenti = mysqli_query($GLOBALS["mysqli"], $requete_komenti) or die('Erreur SQL !'.$requete_komenti.'<br />'.mysqli_error($GLOBALS["mysqli"]));
              while ( $data_komenti = mysqli_fetch_array($execution_komenti))
                {
			$action_pour_eleve = '';
			if(!empty($data_komenti['action_suivi_eleve_cpe']) and $data_komenti['action_suivi_eleve_cpe'] != 'A') { $action_pour_eleve = ', '.action_de($data_komenti['action_suivi_eleve_cpe']); }
		   if(!empty($data_komenti['niveau_message_suivi_eleve_cpe'])) {
				if( $data_komenti['niveau_message_suivi_eleve_cpe']==='1') { $couleur='#FFFFFF'; $couleur2='#280FFF'; $drapeau='[information]'; }
				if( $data_komenti['niveau_message_suivi_eleve_cpe']==='2') { $couleur='#FFF3DF'; $couleur2='#FF782F'; $drapeau='[important]'; }
				if( $data_komenti['niveau_message_suivi_eleve_cpe']==='3') { $couleur='#FFDFDF'; $couleur2='#FF0000'; $drapeau='[prioritaire]'; }
			  } else { $couleur='#FFFFFF'; $couleur2='#4DFF2F'; $drapeau=''; } ?>
                    <p class="info_eleve" style="background: <?php echo $couleur; ?>;"><b><?php echo date_frl($data_komenti['date_suivi_eleve_cpe']).' - '.$data_komenti['heure_suivi_eleve_cpe'].' <span style="font-weight: bold; color: '.$couleur2.';">'.$drapeau.'</span>'; ?></b><br /><?php echo $data_komenti['komenti_suivi_eleve_cpe'].$action_pour_eleve; ?><br /><br /><span class="dimi_texte">écrit par: <?php echo qui($data_komenti['parqui_suivi_eleve_cpe']); ?><br />[ <a href="fiche_eleve.php?select_fiche_eleve=<?php echo $select_fiche_eleve; ?>&amp;id_suivi_eleve_cpe=<?php echo $data_komenti['id_suivi_eleve_cpe']; ?>&amp;debut_selection_suivi=<?php echo $debut_selection_suivi; ?>&amp;action=modifier#formulaire">modifier</a> | <a href="fiche_eleve.php?select_fiche_eleve=<?php echo $select_fiche_eleve; ?>&amp;id_suivi_eleve_cpe=<?php echo $data_komenti['id_suivi_eleve_cpe']; ?>&amp;debut_selection_suivi=<?php echo $debut_selection_suivi; ?>&amp;action_sql=supprimer&amp;uid_post=<?php echo my_ereg_replace(' ','%20',$uid); ?>">supprimer</a> ]</span></p>
           <?php } ?>

	<div style="text-align: center;">
	  <?php if($debut_selection_suivi!='0') { ?><a href="fiche_eleve.php?select_fiche_eleve=<?php echo $select_fiche_eleve; ?>&amp;debut_selection_suivi=<?php echo $debut_selection_suivi-'2'; ?>">Page précédente</a><?php } ?>
	  <?php $debut_selection_suivi_suivant = $debut_selection_suivi+'2'; if($debut_selection_suivi!='0' and $debut_selection_suivi_suivant<=$cpt_komenti) { ?> | <?php } ?>
	  <?php if($debut_selection_suivi_suivant<=$cpt_komenti) { ?><a href="fiche_eleve.php?select_fiche_eleve=<?php echo $select_fiche_eleve; ?>&amp;debut_selection_suivi=<?php echo $debut_selection_suivi+'2'; ?>">Page suivant</a><?php } ?>
	</div>

            <a name="formulaire"></a>
            <form method="post" action="fiche_eleve.php?select_fiche_eleve=<?php echo $select_fiche_eleve; ?>">
               <fieldset>
                 <legend>Ajouter un suivi</legend>
                 <select id="info_suivi" onchange="data_info_suivi.value += info_suivi.options[info_suivi.selectedIndex].text + '\n'" style="width: 210px;">
                   <option>Sélectionné un texte rapide</option>
		   <option>[Exclusion du cours] A été exclus du cours de:   à:</option>
Exemplo n.º 5
0
				$adresse_responsable[0][$i] = ''; // adresse du responsable
				$adressecomp_responsable[0][$i] = ''; // adresse du responsable suite
				$adressecomp2_responsable[0][$i] = ''; // adresse du responsable suite
				$adressecomp3_responsable[0][$i] = ''; // adresse du responsable suite
				$commune_responsable[0][$i] = ''; // ville du responsable
				$cp_responsable[0][$i] = ''; // code postal du responsable
			}


		// information sur la personne qui expédie la lettre
		$signature_status[$i] = $donne_persone['quienvoi_lettre_suivi'];
		$t1 = ''; $t1 = $signature_status[$i];
			if(!isset($signature_qui_status[$t1])) { $signature_status[$i] = strtoupper(qui_fonction($donne_persone['quienvoi_lettre_suivi'])); }
		$signature[$i] = $donne_persone['quienvoi_lettre_suivi'];
		$t2 = ''; $t2 = $signature[$i];
			if(!isset($signature_qui[$t2])) { $signature[$i] = qui($donne_persone['quienvoi_lettre_suivi']); }

		// information sur le/la cpe qui suit l'élève
		$cpe_de_l_eleve[$i] = cpe_eleve($id_eleve[$i]);

		//information complémentaire pour la lettre
			$remarque[$i] = ''; $date_debut[$i] = ''; $heure_debut[$i] = ''; $date_fin[$i] = ''; $heure_fin[$i] = '';
			$ouestce = $donne_persone['partde_lettre_suivi'];
			$idouestce =  $donne_persone['partdenum_lettre_suivi'];
			//if suivi_eleve_cpe on connait les remarques
			if ( $ouestce === 'suivi_eleve_cpe') {
			        $requete_plusdinfo ="SELECT * FROM ".$prefix_base."suivi_eleve_cpe WHERE id_suivi_eleve_cpe = '".$idouestce."'";
					//echo "\$requete_plusdinfo=$requete_plusdinfo<br />";
			        $execution_plusdinfo = mysqli_query($GLOBALS["mysqli"], $requete_plusdinfo) or die('Erreur SQL !'.$requete_plusdinfo.'<br />'.mysqli_error($GLOBALS["mysqli"]));
			        while ( $donne_plusdinfo = mysqli_fetch_array($execution_plusdinfo))
				 {