changes

parent 57f5a9d0
......@@ -116,7 +116,7 @@ class DirectorView extends ControllerBase
->condition('eStudent.id', $studentId , '=')
->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2)->condition('myschool_promoted', 6)->condition('myschool_promoted', 7));
->condition(db_or()->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2))->condition(db_or()->condition('myschool_promoted', 6)->condition('myschool_promoted', 7)));
......@@ -506,7 +506,7 @@ class DirectorView extends ControllerBase
->condition('eSchool.specialization_id', -1 , '=')
->condition('eSchool.currentclass', 1 , '=')
->condition('eStudent.delapp', 0 , '=')
->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2)->condition('myschool_promoted', 6)->condition('myschool_promoted', 7));
->condition(db_or()->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2))->condition(db_or()->condition('myschool_promoted', 6)->condition('myschool_promoted', 7)));
$studentPerSchool = $sCon->execute()->fetchAll(\PDO::FETCH_OBJ);
......@@ -554,7 +554,7 @@ class DirectorView extends ControllerBase
->condition('eSchool.specialization_id', $sectorid , '=')
->condition('eSchool.currentclass', 2 , '=')
->condition('eStudent.delapp', 0 , '=')
->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2)->condition('myschool_promoted', 6)->condition('myschool_promoted', 7));
->condition(db_or()->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2))->condition(db_or()->condition('myschool_promoted', 6)->condition('myschool_promoted', 7)));
$studentPerSchool = $sCon->execute()->fetchAll(\PDO::FETCH_OBJ);
......@@ -597,7 +597,7 @@ class DirectorView extends ControllerBase
->condition('eSchool.specialization_id', $specialityid , '=')
->condition('eSchool.currentclass', 3 , '=')
->condition('eStudent.delapp', 0 , '=')
->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2)->condition('myschool_promoted', 6)->condition('myschool_promoted', 7));
->condition(db_or()->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2))->condition(db_or()->condition('myschool_promoted', 6)->condition('myschool_promoted', 7)));
$studentPerSchool = $sCon->execute()->fetchAll(\PDO::FETCH_OBJ);
......@@ -638,8 +638,7 @@ class DirectorView extends ControllerBase
->condition('eSchool.specialization_id', $specialityid , '=')
->condition('eSchool.currentclass', 4 , '=')
->condition('eStudent.delapp', 0 , '=')
->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2)->condition('myschool_promoted', 6)->condition('myschool_promoted', 7));
->condition(db_or()->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2))->condition(db_or()->condition('myschool_promoted', 6)->condition('myschool_promoted', 7)));
$studentPerSchool = $sCon->execute()->fetchAll(\PDO::FETCH_OBJ);
$capacity_class_d = ($object -> capacity_class_specialty_d ->value) *25;
......@@ -718,8 +717,7 @@ class DirectorView extends ControllerBase
->condition('eSchool.specialization_id', -1 , '=')
->condition('eSchool.currentclass', 1 , '=')
->condition('eStudent.delapp', 0 , '=')
->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2))
;
->condition(db_or()->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2))->condition(db_or()->condition('myschool_promoted', 6)->condition('myschool_promoted', 7)));
$studentPerSchool = $sCon->execute()->fetchAll(\PDO::FETCH_OBJ);
......@@ -744,7 +742,7 @@ class DirectorView extends ControllerBase
->condition('eSchool.specialization_id', $sectorid , '=')
->condition('eSchool.currentclass', 2 , '=')
->condition('eStudent.delapp', 0 , '=')
->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2)->condition('myschool_promoted', 6)->condition('myschool_promoted', 7));
->condition(db_or()->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2))->condition(db_or()->condition('myschool_promoted', 6)->condition('myschool_promoted', 7)));
$results = $sCon->execute()->fetchAll(\PDO::FETCH_OBJ);
......@@ -771,7 +769,7 @@ class DirectorView extends ControllerBase
->condition('eSchool.specialization_id', $specialityid , '=')
->condition('eSchool.currentclass', 3 , '=')
->condition('eStudent.delapp', 0 , '=')
->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2)->condition('myschool_promoted', 6)->condition('myschool_promoted', 7));
->condition(db_or()->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2))->condition(db_or()->condition('myschool_promoted', 6)->condition('myschool_promoted', 7)));
$studentPerSchool = $sCon->execute()->fetchAll(\PDO::FETCH_OBJ);
......@@ -797,7 +795,7 @@ class DirectorView extends ControllerBase
->condition('eSchool.specialization_id', $specialityid , '=')
->condition('eSchool.currentclass', 4 , '=')
->condition('eStudent.delapp', 0 , '=')
->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2)->condition('myschool_promoted', 6)->condition('myschool_promoted', 7));
->condition(db_or()->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2))->condition(db_or()->condition('myschool_promoted', 6)->condition('myschool_promoted', 7)));
$studentPerSchool = $sCon->execute()->fetchAll(\PDO::FETCH_OBJ);
......@@ -978,7 +976,7 @@ class DirectorView extends ControllerBase
->condition('eSchool.specialization_id', -1 , '=')
->condition('eSchool.currentclass', 1 , '=')
->condition('eStudent.delapp', 0 , '=')
->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2)->condition('myschool_promoted', 6)->condition('myschool_promoted', 7));
->condition(db_or()->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2))->condition(db_or()->condition('myschool_promoted', 6)->condition('myschool_promoted', 7)));
$studentPerSchool = $sCon->execute()->fetchAll(\PDO::FETCH_OBJ);
......@@ -1017,7 +1015,7 @@ class DirectorView extends ControllerBase
->condition('eSchool.specialization_id', $sectorid , '=')
->condition('eSchool.currentclass', 2 , '=')
->condition('eStudent.delapp', 0 , '=')
->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2)->condition('myschool_promoted', 6)->condition('myschool_promoted', 7));
->condition(db_or()->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2))->condition(db_or()->condition('myschool_promoted', 6)->condition('myschool_promoted', 7)));
$studentPerSchool = $sCon->execute()->fetchAll(\PDO::FETCH_OBJ);
......@@ -1057,7 +1055,7 @@ class DirectorView extends ControllerBase
->condition('eSchool.specialization_id', $specialityid , '=')
->condition('eSchool.currentclass', 3 , '=')
->condition('eStudent.delapp', 0 , '=')
->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2)->condition('myschool_promoted', 6)->condition('myschool_promoted', 7));
->condition(db_or()->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2))->condition(db_or()->condition('myschool_promoted', 6)->condition('myschool_promoted', 7)));
$studentPerSchool = $sCon->execute()->fetchAll(\PDO::FETCH_OBJ);
......@@ -1093,7 +1091,7 @@ class DirectorView extends ControllerBase
->condition('eSchool.specialization_id', $specialityid , '=')
->condition('eSchool.currentclass', 4 , '=')
->condition('eStudent.delapp', 0 , '=')
->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2)->condition('myschool_promoted', 6)->condition('myschool_promoted', 7));
->condition(db_or()->condition(db_or()->condition('myschool_promoted', 1)->condition('myschool_promoted', 2))->condition(db_or()->condition('myschool_promoted', 6)->condition('myschool_promoted', 7)));
$studentPerSchool = $sCon->execute()->fetchAll(\PDO::FETCH_OBJ);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment