@page
@model Quizzer.Pages.StatisticsModel
@Html.AntiForgeryToken()
@{
ViewData["Title"] = "Quizzer";
Layout = "_Layout-teacher";
}
|
Class |
Quizz |
@foreach (var item in Model.quizzList)
{
|
|
@item.Class |
@item.CategoryText |
|
}
@if (Model.PageStatistics != null)
{
@if (Model.PageStatistics.Questions.Count > 0 && Model.PageStatistics.MCList.Count > 0)
{
Statistics
@for (int Qindex = 0; Qindex < Model.PageStatistics.Questions.Count; Qindex++)
{
| Count |
@Model.PageStatistics.Questions[Qindex].QuestionText |
@for (int Aindex = 0; Aindex < @Model.PageStatistics.Questions[Qindex].AList.Count; Aindex++)
{
| @Model.PageStatistics.MCList[Qindex].Counter[Aindex] |
@if (@Model.PageStatistics.Questions[Qindex].AList[Aindex].Aok)
{
@Model.PageStatistics.Questions[Qindex].AList[Aindex].Atxt |
}
else
{
@Model.PageStatistics.Questions[Qindex].AList[Aindex].Atxt |
}
}
}
}
}