Commit f1600e0e authored by GROSS-AMBLARD David's avatar GROSS-AMBLARD David
Browse files

Computes the available humanpower on the platform, and display it on Monitor

parent 0ee4f6de
......@@ -745,6 +745,8 @@ function showCurrentKnowledge($conn)
$VIEW['MAIN'] .= HTMLh1("Monitor Board");
showQueryAnswer($conn, "Users", "select id,name,count(*)-1 as '#contribution' from Users left outer join Answer on Answer.user=Users.id group by id,name");
showQueryAnswer($conn, "User Profile", "select * from UserProfile");
showQueryAnswer($conn,"Human Power","select sum(availability)/365 as 'Human power' from UserProfile");
showQueryAnswer($conn, "User skills", "select * from Skills");
showQueryAnswer($conn, "Activities (ArtifactClass)", "select * from ArtifactClass");
showQueryAnswer($conn, "Running activities (Artifacts)", "select concat('<a href=\"index.php?mode=showArtifact&artifactid=',id,'\">View</a>') as detail, id, classid, ownerid, node, state, awaited, attributes from Artifact");
......
Supports Markdown
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