Rectification droits 'admin' pour saisie notes
This commit is contained in:
parent
4117da26a0
commit
d2824c28d6
|
@ -208,7 +208,7 @@ require_once __ROOT__.'/manager/database.php';
|
|||
/****************************************************/
|
||||
/* saisie d'une note pour un étudiant à un contrôle */
|
||||
/****************************************************/
|
||||
case 'saisieNote': if( permission('teacher') ){
|
||||
case 'saisieNote': if( permission('teacher') || permission('admin') ){
|
||||
|
||||
$areSetParam = isset($request->etudiant) && isset($request->controle) && isset($request->note); // les arguments existent
|
||||
$typeOkParam = $areSetParam && is_string($request->etudiant); // si c'est des strings
|
||||
|
@ -225,20 +225,10 @@ require_once __ROOT__.'/manager/database.php';
|
|||
break;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* _ ____ ___ _____ _____ _ _ ____ _____ ____
|
||||
/* / \ | _ \_ _| ___| ___| | | / ___|| ____| _ \
|
||||
/* / _ \ | | | | || |_ | |_ | | | \___ \| _| | |_) |
|
||||
/* / ___ \ | |_| | || _| | _| | |_| |___) | |___| _ <
|
||||
/* /_/ \_\ |____/___|_| |_| \___/|____/|_____|_| \_\
|
||||
/*
|
||||
|
||||
/****************************************************/
|
||||
/* saisie d'une note pour un groupe à un contrôle */
|
||||
/****************************************************/
|
||||
case 'saisieNoteMultiple': if( permission('teacher') ){
|
||||
case 'saisieNoteMultiple': if( permission('teacher') || permission('admin') ){
|
||||
|
||||
$areSetParam = isset($request->notes) && isset($request->controle); // les arguments existent
|
||||
$typeOkParam = $areSetParam && is_array($request->notes) && is_numeric($request->controle); // si c'est des strings
|
||||
|
|
|
@ -369,7 +369,7 @@ elseif( permission('teacher') ){ // si enseignant et qu'un contrôle est spécif
|
|||
====================================================================================*/
|
||||
}else{
|
||||
|
||||
if( count($answer->controle['userlist']) == 0 ) // si il y a au moins une note pour ce contrôle
|
||||
if( !isset($answer->controle['userlist']) || !is_array($answer->controle['userlist']) || count($answer->controle['userlist']) == 0 ) // si il y a au moins une note pour ce contrôle
|
||||
echo '<th><span class=unstressed>Pas noté</span></th>';
|
||||
else
|
||||
echo '<th><span class=unstressed>Moyenne de</span> '.number_format($answer->controle['moyenne'], 2).' <span class=unstressed>/</span> '.$answer->controle['base'].'</th>';
|
||||
|
@ -414,8 +414,8 @@ elseif( permission('teacher') ){ // si enseignant et qu'un contrôle est spécif
|
|||
|
||||
/* [2] Affichage par élèves
|
||||
====================================================================================*/
|
||||
}else{
|
||||
|
||||
}elseif( isset($answer->controle['userlist']) && is_array($answer->controle['userlist']) && count($answer->controle['userlist']) > 0 ){
|
||||
// var_dump($answer->controle['userlist']);
|
||||
foreach($answer->controle['userlist'] as $user){ // on affiche la liste des élèves avec leurs notes
|
||||
echo "<tr>";
|
||||
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
DELETE FROM appartenance WHERE id_etudiant LIKE 'Etud%';
|
||||
DELETE FROM utilisateur WHERE identifiant LIKE 'Etud%';
|
||||
|
||||
DELETE FROM note;
|
||||
DELETE FROM enseignement;
|
||||
DELETE FROM controle;
|
||||
DELETE FROM mcc_module;
|
||||
DELETE FROM mcc_ue;
|
||||
DELETE FROM ue;
|
||||
DELETE FROM module;
|
||||
DELETE FROM semestre WHERE id_semestre > 4;
|
||||
DELETE FROM ue;
|
|
@ -0,0 +1,135 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
version="1.1"
|
||||
width="199.99998"
|
||||
height="54.478554"
|
||||
id="svg2">
|
||||
<defs
|
||||
id="defs4" />
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
stransform="translate(-101.83599,-413.69978)"
|
||||
id="layer1">
|
||||
<rect
|
||||
width="177.1049"
|
||||
height="5.5744505"
|
||||
x="112.6554"
|
||||
y="454.54483"
|
||||
id="rect2993"
|
||||
style="fill:#4d4d4d;fill-opacity:1;stroke:none" />
|
||||
<g
|
||||
transform="matrix(0.98169544,0,0,0.98169544,1.8640596,8.5697978)"
|
||||
id="g2989">
|
||||
<path
|
||||
d="m 120.20814,457.12979 a 7.323606,7.323606 0 1 1 -14.64721,0 7.323606,7.323606 0 1 1 14.64721,0 z"
|
||||
transform="matrix(1.5086207,0,0,1.5086207,-57.415411,-232.50567)"
|
||||
id="path2985"
|
||||
style="fill:#4d4d4d;fill-opacity:1;stroke:none" />
|
||||
<path
|
||||
d="m 120.20814,457.12979 a 7.323606,7.323606 0 1 1 -14.64721,0 7.323606,7.323606 0 1 1 14.64721,0 z"
|
||||
transform="matrix(0.7527479,0,0,0.7527479,27.910935,113.02629)"
|
||||
id="path2987"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none" />
|
||||
</g>
|
||||
<g
|
||||
transform="matrix(0.98169544,0,0,0.98169544,60.765779,8.5697978)"
|
||||
id="g3014">
|
||||
<path
|
||||
d="m 120.20814,457.12979 a 7.323606,7.323606 0 1 1 -14.64721,0 7.323606,7.323606 0 1 1 14.64721,0 z"
|
||||
transform="matrix(1.5086207,0,0,1.5086207,-57.415411,-232.50567)"
|
||||
id="path3016"
|
||||
style="fill:#4d4d4d;fill-opacity:1;stroke:none" />
|
||||
<path
|
||||
d="m 120.20814,457.12979 a 7.323606,7.323606 0 1 1 -14.64721,0 7.323606,7.323606 0 1 1 14.64721,0 z"
|
||||
transform="matrix(0.7527479,0,0,0.7527479,27.910935,113.02629)"
|
||||
id="path3018"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none" />
|
||||
</g>
|
||||
<g
|
||||
transform="matrix(0.98169544,0,0,0.98169544,119.66751,8.5697978)"
|
||||
id="g3020">
|
||||
<path
|
||||
d="m 120.20814,457.12979 a 7.323606,7.323606 0 1 1 -14.64721,0 7.323606,7.323606 0 1 1 14.64721,0 z"
|
||||
transform="matrix(1.5086207,0,0,1.5086207,-57.415411,-232.50567)"
|
||||
id="path3022"
|
||||
style="fill:#4d4d4d;fill-opacity:1;stroke:none" />
|
||||
<path
|
||||
d="m 120.20814,457.12979 a 7.323606,7.323606 0 1 1 -14.64721,0 7.323606,7.323606 0 1 1 14.64721,0 z"
|
||||
transform="matrix(0.7527479,0,0,0.7527479,27.910935,113.02629)"
|
||||
id="path3024"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none" />
|
||||
</g>
|
||||
<g
|
||||
transform="matrix(0.98169544,0,0,0.98169544,178.56924,8.5697978)"
|
||||
id="g3026">
|
||||
<path
|
||||
d="m 120.20814,457.12979 a 7.323606,7.323606 0 1 1 -14.64721,0 7.323606,7.323606 0 1 1 14.64721,0 z"
|
||||
transform="matrix(1.5086207,0,0,1.5086207,-57.415411,-232.50567)"
|
||||
id="path3028"
|
||||
style="fill:#4d4d4d;fill-opacity:1;stroke:none" />
|
||||
<path
|
||||
d="m 120.20814,457.12979 a 7.323606,7.323606 0 1 1 -14.64721,0 7.323606,7.323606 0 1 1 14.64721,0 z"
|
||||
transform="matrix(0.7527479,0,0,0.7527479,27.910935,113.02629)"
|
||||
id="path3030"
|
||||
style="fill:#ffffff;fill-opacity:1;stroke:none" />
|
||||
</g>
|
||||
<text
|
||||
x="101.29529"
|
||||
y="431.00143"
|
||||
id="text3038"
|
||||
xml:space="preserve"
|
||||
style="font-size:24.40289116px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#4d4d4d;fill-opacity:1;stroke:none;font-family:Sawasdee;-inkscape-font-specification:Sawasdee"><tspan
|
||||
x="101.29529"
|
||||
y="431.00143"
|
||||
id="tspan3040"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;fill:#4d4d4d;fill-opacity:1;font-family:Ubuntu;-inkscape-font-specification:Ubuntu">S1</tspan></text>
|
||||
<text
|
||||
x="158.72063"
|
||||
y="431.00143"
|
||||
id="text3042"
|
||||
xml:space="preserve"
|
||||
style="font-size:24.40289116px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#4d4d4d;fill-opacity:1;stroke:none;font-family:Sawasdee;-inkscape-font-specification:Sawasdee"><tspan
|
||||
x="158.72063"
|
||||
y="431.00143"
|
||||
id="tspan3044"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;fill:#4d4d4d;fill-opacity:1;font-family:Ubuntu;-inkscape-font-specification:Ubuntu">S2</tspan></text>
|
||||
<text
|
||||
x="217.63457"
|
||||
y="431.00143"
|
||||
id="text3046"
|
||||
xml:space="preserve"
|
||||
style="font-size:24.40289116px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#4d4d4d;fill-opacity:1;stroke:none;font-family:Sawasdee;-inkscape-font-specification:Sawasdee"><tspan
|
||||
x="217.63457"
|
||||
y="431.00143"
|
||||
id="tspan3048"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;fill:#4d4d4d;fill-opacity:1;font-family:Ubuntu;-inkscape-font-specification:Ubuntu">S3</tspan></text>
|
||||
<text
|
||||
x="276.13364"
|
||||
y="431.00143"
|
||||
id="text3050"
|
||||
xml:space="preserve"
|
||||
style="font-size:24.40289116px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#4d4d4d;fill-opacity:1;stroke:none;font-family:Sawasdee;-inkscape-font-specification:Sawasdee"><tspan
|
||||
x="276.13364"
|
||||
y="431.00143"
|
||||
id="tspan3052"
|
||||
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;fill:#4d4d4d;fill-opacity:1;font-family:Ubuntu;-inkscape-font-specification:Ubuntu">S4</tspan></text>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 6.1 KiB |
Loading…
Reference in New Issue