Example #1
0
/**
 * @param $eleve
 * @param $trimestre
 */
function afficheEvaluation(Eleve $eleve, Trimestre $trimestre, $idMatiere)
{
    $evaluations = Evaluation::getByMatiereTrimestre($idMatiere, $trimestre->getIdTrimestre());
    if (count($evaluations) > 0) {
        foreach ($evaluations as $uneEvaluation) {
            $laNote = Note::getById($eleve->getIdEleve(), $uneEvaluation->getIdEvaluation());
            if (!empty($laNote->getNote())) {
                echo '<tr>
						<td colspan="3"></td>
						<td class="Evaluation">' . $uneEvaluation->getLibelleEvaluation() . '</td>';
                afficheNote($uneEvaluation->getMaxEvaluation(), $laNote->getNote());
                echo '</tr>';
            }
        }
    }
}
Example #2
0
<?php

include_once '../../includes.sys/ini.php';
include_once INTERNAL_ROOT_PORTAL . '/includes.sys/metodos.php';
include_once INTERNAL_ROOT_PORTAL . '/medicao/DAO/TrimestreDAO.php';
include_once INTERNAL_ROOT_PORTAL . '/medicao/Trimestre.class.php';
checkUserAuth(EXTERNAL_ROOT_PORTAL . '/index.php?error=true');
include_once INTERNAL_ROOT_PORTAL . '/head.php';
$trimestre = new Trimestre();
//Verifica se a opcao de salvar foi iniciada
if (!empty($_POST['cmd']) && $_POST['cmd'] == 'editar') {
    $trimestre->editar($_POST);
} else {
    $trimestre->setId(limpaTexto($_GET['id']));
    $DAO = new TrimestreDAO();
    $resultado = $DAO->listar("SELECT * FROM " . MYSQL_BASE_MEDICAO_TRIMESTRE . "  WHERE status = 'S' AND id=" . $trimestre->getId());
    foreach ($resultado as $item) {
        $trimestre->setMedicao1($item['id_medicao_1']);
        $trimestre->setMedicao2($item['id_medicao_2']);
        $trimestre->setMedicao3($item['id_medicao_3']);
    }
}
?>
<!-- topbar ends -->
<div class="container-fluid">
	<div class="row-fluid">

		<!-- left menu starts -->
		<div class="span2 main-menu-span">
				<?php 
include_once INTERNAL_ROOT_PORTAL . '/medicao/menu.php';
Example #3
0
			$trimestre = Trimestre::getById($_GET['idTrimestre']);
			$matiereNiveau = MatiereNiveau::getByMatiereNiveau($_GET['idMatiere'], $_GET['idNiveau']);
			$eleve = Eleve::getById($_GET['idEleve']);
			$bulletin = Bulletin::getByEleveMatiereNiveauTrimestre($eleve->getIdEleve(), $matiereNiveau->getIdMatiereNiveau(), $trimestre->getIdTrimestre());
			if (!$bulletin->getIdBulletin()){
				$ret = array();
				$ret['contenuBulletin'] = '';
				$ret['idBulletin'] = '';
				echo json_encode($ret);
				break;
			}
			echo json_encode($bulletin->toArray());
			break;
		case 'addCommentaire':
			//idEleve: idEleve, idMatiere: idMatiere, idNiveau: idNiveau, idTrimestre:idTrimestre, idBulletin: idBulletin, commBulletin: commBulletin, action: 'addCommentaire'
			$trimestre = Trimestre::getById($_GET['idTrimestre']);
			$matiereNiveau = MatiereNiveau::getByMatiereNiveau($_GET['idMatiere'], $_GET['idNiveau']);
			$eleve = Eleve::getById($_GET['idEleve']);

			$bulletin = new Bulletin();
			if ($_GET['idBulletin'] == 0){
				$bulletin->setIdEleve($eleve->getIdUtilisateur());
				$bulletin->setIdMatiereNiveau($matiereNiveau->getIdMatiereNiveau());
				$bulletin->setContenuBulletin($_GET['commBulletin']);
				$bulletin->setDateRedacton(date('Y-m-d'));
				$bulletin->insert();
			}
			else {
				$bulletin = Bulletin::getById($_GET['idBulletin']);
				$bulletin->setContenuBulletin($_GET['commBulletin']);
				//$bulletin->setDateRedacton(date('Y-m-d'));
Example #4
0
<?php

/**
 * Created by PhpStorm.
 * User: Jean-Baptiste
 * Date: 29/11/2015
 * Time: 18:17
 */
require_once '../Require/Objects.php';
$trimestre = Trimestre::getById($idTrimestre);
$eleve = Eleve::getById($idEleve);
?>
<style type="text/css">
	.tableau td {
		padding: 2mm;
		border: solid 1px #000000;
	}
</style>

<page backtop="30mm" backbottom="7mm" backleft="10mm" backright="10mm">
	<?php 
include_once './enTetePiedDePage.php';
?>
	<H1 style="text-align: center; color: #871641;">BULLETIN TRIMESTRIEL</H1>
	<br>
	<table cellspacing="0" style="border: solid 2px #000000; width: 100%;" class="tableau">
		<col style="width: 20%">
		<col style="width: 15%">
		<col style="width: 65%">
		<thead>
		<tr>
Example #5
0
		</div>
		<div id="corps">
			<div class="titre_corps">
				<h3 class="centrer">Bulletin</h3>
			</div>
			<fieldset>
				<legend>Choisir un niveau et un &eacute;l&egrave;ve</legend>
				<form method="post" action="<?php echo '../Bulletin/genBulletin.php' ?>">
					<table>
						<tr>
							<td>Trimestre</td>
							<td>
								<select id="selectTrimestre" name="idTrimestre">
									<option value=""></option>
									<?php
									$trimestres = Trimestre::getAll();
									foreach ($trimestres as $trimestre){
										echo "<option value='".$trimestre->getIdTrimestre()."'>".$trimestre->getLibelleTrimestre()."</option>";
									}
									?>
								</select>
							</td>
						</tr>
						<tr>
							<td>Niveau</td>
							<td>
								<select id="selectNiveau" name="idNiveau">
									<option value=""></option>
									<?php
									$niveaux = Niveau::getAll();
									foreach ($niveaux as $niv){
Example #6
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;
}
Example #7
0
 public function getTrimestre(){
     return Trimestre::getById($this->getIdTrimestre());
 }
Example #8
0
<?php

include_once '../../includes.sys/ini.php';
include_once INTERNAL_ROOT_PORTAL . '/includes.sys/metodos.php';
include_once INTERNAL_ROOT_PORTAL . '/medicao/DAO/TrimestreDAO.php';
include_once INTERNAL_ROOT_PORTAL . '/medicao/Trimestre.class.php';
checkUserAuth(EXTERNAL_ROOT_PORTAL . '/index.php?error=true');
include_once INTERNAL_ROOT_PORTAL . '/head.php';
$DAO = new TrimestreDao();
$trimestre = new Trimestre();
$trimestre->gravaTrimestre();
?>

	<!-- topbar ends -->
		<div class="container-fluid">
		<div class="row-fluid">
				
			<!-- left menu starts -->
			<div class="span2 main-menu-span">
				<?php 
include_once INTERNAL_ROOT_PORTAL . '/medicao/menu.php';
?>
			</div><!--/span-->
			<!-- left menu ends -->
			
			<noscript>
				<div class="alert alert-block span10">
					<h4 class="alert-heading">Warning!</h4>
					<p>You need to have <a href="http://en.wikipedia.org/wiki/JavaScript" target="_blank">JavaScript</a> enabled to use this site.</p>
				</div>
			</noscript>