Exemplo n.º 1
0
	if (!($utilisateur->estAdministrateur() || $utilisateur->estProfesseur())) {
		header('location: ../Intranet/mesInformations.php');
	}
}
else {
	header('location: ../Intranet/connexion.php');
}

if (!isset($_GET['idEval'])) {
	header('location: ../Intranet/addEvaluation.php');
}
$evaluation = Evaluation::getById($_GET['idEval']);

// préparation du select du niveau de cpt
$selectNiveauCpt = "<option></option>";
$niveauCpt       = NiveauCpt::getAll();
foreach ($niveauCpt as $nv) {
	$selectNiveauCpt .= "<option value=" . $nv->getIdNiveauCpt() . ">" . $nv->getLibelleNiveauCpt() . "</option>";
}

?>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>EDEIP : Evaluation</title>
	<link rel="stylesheet" href="../Intranet/styleIntranet.css" type="text/css" media="screen"/>
	<link rel="stylesheet" href="../Require/jquery-ui.css" type="text/css" media="screen"/>
	<link rel="stylesheet" href="../font-awesome-4.4.0/css/font-awesome.min.css" type="text/css" media="screen"/>
	<link rel="shortcut icon" href="../Images/Logo32.ico"/>
	<link rel="icon" href="../Images/logo32.png" type="image/png"/>
Exemplo n.º 2
0

switch ($_GET['action']) {
	case 'CarnetLiaison' :
		echo json_encode(CarnetLiaison::getById($_GET['idCarnetLiaison'])->toArray());
		break;
	case 'Evaluation':
		echo json_encode(Evaluation::getById($_GET['idEvaluation'])->toArray());
		break;
    case 'Matiere' :
        echo json_encode(Matiere::getById($_GET['idMatiere'])->toArray());
        break;
    case 'Module' :
        echo json_encode(Module::getById($_GET['idModule'])->toArray());
        break;
    case 'Niveau' :
        echo json_encode(Niveau::getById($_GET['idNiveau'])->toArray());
        break;
    case 'NiveauCpt' :
        echo json_encode(NiveauCpt::getById($_GET['idNiveauCpt'])->toArray());
        break;
	case 'Periode':
		echo json_encode(Periode::getById($_GET['idPeriode'])->toArray());
		break;
	case 'Trimestre':
		echo json_encode(Trimestre::getById($_GET['idTrimestre'])->toArray());
		break;
    case 'Utilisateur' :
        echo json_encode(Utilisateur::getById($_GET['idUtilisateur'])->toArray());
        break;
}
Exemplo n.º 3
0
			<td>A : <?php 
echo NiveauCpt::getById(1)->getLibelleNiveauCpt();
?>
</td>
			<td>B : <?php 
echo NiveauCpt::getById(2)->getLibelleNiveauCpt();
?>
</td>
		</tr>
		<tr>
			<td>C : <?php 
echo NiveauCpt::getById(3)->getLibelleNiveauCpt();
?>
</td>
			<td>D : <?php 
echo NiveauCpt::getById(4)->getLibelleNiveauCpt();
?>
</td>
		</tr>
	</table>
	<br>
	<br>
	<table cellspacing="0" style="width: 100%; margin: 0; padding: 0;" class="tableau">
		<col style="width: 10mm"> <!-- Culture -->
		<col style="width: 5mm"> <!-- SousCulture -->
		<col style="width: 5mm"> <!-- Matiere -->
		<col style="width: 5mm"> <!-- Domaine -->
		<col style="width: 90mm"> <!-- Point Cpt -->
		<col style="width: 15mm"> <!-- A -->
		<col style="width: 15mm"> <!-- B -->
		<col style="width: 15mm"> <!-- C -->
Exemplo n.º 4
0
					$oldNote->setIdEvaluation($evaluation->getIdEvaluation());
					$oldNote->insert();
				}
			}
			echo json_encode($oldNote->toArray());
			break;
		case 'modifCpt':
			//idEval: idEval, idEleve: idEleve, idPointCpt: idPointCpt, nivCpt: nivCpt, action: 'modifCpt'
			$evaluation = Evaluation::getById($_GET['idEval']);
			$eleve = Eleve::getById($_GET['idEleve']);
			$laCpt = EleveEvaluationPointCpt::getById($eleve->getIdEleve(), EvaluationPointCpt::getByEvalPoint($evaluation->getIdEvaluation(), $_GET['idPointCpt'])->getIdEvaluationPointCpt());
			if ($_GET['nivCpt'] == ''){
				$laCpt->delete();
			}
			else{
				$nivCpt = NiveauCpt::getById($_GET['nivCpt']);
				$laCpt->setIdNiveauCpt($nivCpt->getIdNiveauCpt());
				if ($laCpt->getIdEvaluationPointCpt() != ''){
					$laCpt->update();
				}
				else {
					$laCpt->setIdEleve($eleve->getIdEleve());
					$laCpt->setIdEvaluationPointCpt(EvaluationPointCpt::getByEvalPoint($evaluation->getIdEvaluation(), $_GET['idPointCpt'])->getIdEvaluationPointCpt());
					$laCpt->insert();
				}
			}
			echo json_encode($laCpt->toArray());
			break;

		case 'getListeEleveNoteByEval':
			//idEval: idEval, action: 'getListeEleveNoteByEval'
Exemplo n.º 5
0
	public function getNiveauCpt()
	{
		return NiveauCpt::getByid($this->getIdNiveauCpt());
	}