Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
e-epal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Χάρης Παπαδόπουλος
e-epal
Commits
f83fda44
Commit
f83fda44
authored
Jun 18, 2017
by
Νίκος Κατσαούνος
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixed in Completenesss Report
parent
7ebbce79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
drupal/modules/epal/src/Controller/ReportsCreator.php
drupal/modules/epal/src/Controller/ReportsCreator.php
+4
-2
No files found.
drupal/modules/epal/src/Controller/ReportsCreator.php
View file @
f83fda44
...
@@ -207,6 +207,8 @@ class ReportsCreator extends ControllerBase {
...
@@ -207,6 +207,8 @@ class ReportsCreator extends ControllerBase {
->condition('eStudent.id', $studentIds, 'NOT IN');
->condition('eStudent.id', $studentIds, 'NOT IN');
$numNoAllocated = $sCon->countQuery()->execute()->fetchField();
$numNoAllocated = $sCon->countQuery()->execute()->fetchField();
*/
*/
$sCon
=
$this
->
connection
->
select
(
'epal_student'
,
'epalStudent'
);
$sCon
=
$this
->
connection
->
select
(
'epal_student'
,
'epalStudent'
);
$sCon
->
leftJoin
(
'epal_student_class'
,
'eStudent'
,
'eStudent.student_id = epalStudent.id'
);
$sCon
->
leftJoin
(
'epal_student_class'
,
'eStudent'
,
'eStudent.student_id = epalStudent.id'
);
$sCon
->
fields
(
'eStudent'
,
array
(
'student_id'
))
$sCon
->
fields
(
'eStudent'
,
array
(
'student_id'
))
...
@@ -363,8 +365,8 @@ class ReportsCreator extends ControllerBase {
...
@@ -363,8 +365,8 @@ class ReportsCreator extends ControllerBase {
$sCon
=
$this
->
connection
->
select
(
'epal_student_class'
,
'eStudent'
)
$sCon
=
$this
->
connection
->
select
(
'epal_student_class'
,
'eStudent'
)
->
fields
(
'eStudent'
,
array
(
'id'
,
'epal_id'
,
'currentclass'
))
->
fields
(
'eStudent'
,
array
(
'id'
,
'epal_id'
,
'currentclass'
))
->
condition
(
'eStudent.epal_id'
,
$epalSchool
->
id
,
'='
)
->
condition
(
'eStudent.epal_id'
,
$epalSchool
->
id
,
'='
)
->
condition
(
'eStudent.currentclass'
,
$classId
,
'='
)
->
condition
(
'eStudent.currentclass'
,
$classId
,
'='
)
;
->
condition
(
'eStudent.finalized'
,
1
,
'='
);
//
->condition('eStudent.finalized', 1 , '=');
array_push
(
$num
,
$sCon
->
countQuery
()
->
execute
()
->
fetchField
()
);
array_push
(
$num
,
$sCon
->
countQuery
()
->
execute
()
->
fetchField
()
);
//βρες ποσοστά συμπλήρωσης
//βρες ποσοστά συμπλήρωσης
array_push
(
$perc
,
number_format
(
$num
[
$classId
-
1
]
/
$capacity
[
$classId
-
1
]
*
100
,
2
));
array_push
(
$perc
,
number_format
(
$num
[
$classId
-
1
]
/
$capacity
[
$classId
-
1
]
*
100
,
2
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment