first commit
This commit is contained in:
25
model_controller/fiche.resultat.evaluation.list.php
Normal file
25
model_controller/fiche.resultat.evaluation.list.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
include ('../inc/includes.php');
|
||||
|
||||
|
||||
function getFicheEvaluations($flag){
|
||||
|
||||
global $DB;
|
||||
|
||||
if($flag == 'All')
|
||||
$query = "SELECT * from fiche_evaluation WHERE actif = 1";
|
||||
else
|
||||
$query = "SELECT * from fiche_evaluation WHERE actif = 1 and annuel = 1";
|
||||
$result = $DB->query($query);
|
||||
|
||||
if ($result->num_rows > 0) {
|
||||
$rows = array();
|
||||
while($row = $result->fetch_assoc()) {
|
||||
$rows[] = $row;
|
||||
}
|
||||
return $rows;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
Reference in New Issue
Block a user