initial commit
[CPE_learningsite] / CPE / CPE.App / CPE.App.Web / Views / Index / sessiondetails.cshtml
1 @model CPE.App.Web.Models.AdobeSessionViewModel
2 @{
3     ViewBag.Title = "Session Details";
4 }
5 <script type="text/javascript" src="/static/js/index/sessiondetails.js"></script>
6 <link href="~/Content/sessiondetails.css" rel="stylesheet" />
7
8 <span class="floatright"><a class="backlink" href="/">Back to Sessions</a></span>
9
10 <span style="display:none;">@Model.ParticipantSessionsDataResult.Count</span>
11
12 <h2>
13    @if(Model.MeetingSession.Recording)
14     {
15         <text>Rebroadcast Details </text>
16     } 
17     else{
18         <text>Session Details</text>
19     }
20      - <span class="italic">@Model.MeetingSession.Name</span>
21 </h2>
22 <hr/>
23 <div>
24     <table id="sessionDetailsTable" class="display">
25         <thead>
26             <tr>
27                 <th>Participant</th>
28                 <th>Date</th>
29                 <th>Start</th>
30                 <th>End</th>
31                 <th>Total</th>
32                 <th>Pause</th>
33                 <th>Actual</th>       
34                 <th>Polls</th>
35                 <th>Responses</th>
36                 <th>% Complete</th>
37                 <th>Credits</th>
38                 <th>Mark Passed</th>
39             </tr>
40         </thead>
41         <tbody>
42             @foreach(var participantSessionData in Model.ParticipantSessionsDataResult)
43             {
44                 <tr>
45                     <td class="cell namecell">@participantSessionData.Name</td>
46                     <td class="cell datecell">@CPE.App.Web.Code.Extensions.GetLocalDateTime(participantSessionData.StartDate.Value).ToString("MM/dd/yyyy")</td>
47                     <td class="cell datecell">@CPE.App.Web.Code.Extensions.GetLocalDateTime(participantSessionData.StartDate.Value).ToString("hh:mm tt")</td>
48                     <td class="cell datecell">@CPE.App.Web.Code.Extensions.GetLocalDateTime(participantSessionData.EndDate.Value).ToString("hh:mm tt")</td>
49                     <td class="cell numbercell">@participantSessionData.TotalSessionTime.GetValueOrDefault()</td>
50                     <td class="cell numbercell">@participantSessionData.TotalSessionPauseTime.GetValueOrDefault()</td>
51                     <td class="cell numbercell">@participantSessionData.ActualSessionTime.GetValueOrDefault()</td>
52                     <td class="cell numbercell">@participantSessionData.SessionHeartbeatCount</td>
53                     <td class="cell numbercell">@participantSessionData.SessionEngagementCount</td>
54                     <td class="cell centercell">@CPE.App.Web.Code.Extensions.GetPercentComplete(participantSessionData.SessionHeartbeatCount.Value, participantSessionData.SessionEngagementCount.Value)</td>
55                     <td class="cell numbercell">@participantSessionData.SessionCredit</td>
56                     <td>@if (CPE.App.Web.Code.Extensions.GetPollPercentComplete(participantSessionData.SessionHeartbeatCount.Value, participantSessionData.SessionEngagementCount.Value) < .75)
57                         {
58                             <a class="overrideCert-icon glyphicon glyphicon-check emailclicky" data-mpsk=@participantSessionData.MeetingParticipantSessionKey data-msk="@participantSessionData.MeetingSessionKey" data-creds="@participantSessionData.LoggedCredit" style="color: black; font-size: 18px;"></a>
59                         }
60                     </td>
61                 </tr>
62             }
63         </tbody>
64     </table>
65 </div>
66 <div class="clear"></div>
67 <br />
68 <br />
69 @if (Model.MeetingSession.Recording)
70 {
71     <div>
72         <input type="button" id="btnCloseUserSessions"  value="Close Active User Sessions" meetingSessionKey="@Model.MeetingSession.MeetingSessionKey"/>
73     </div>
74 }
75 else
76 {
77     <div>
78         <a class="backlink" href="/rebroadcastschedule/@Model.MeetingSession.MeetingSessionKey">Rebroadcast Schedule</a>
79     </div>
80 }
81 <br/>
82 <br/>
83 <hr/>
84 <div>
85     <h2>Ticketed Participant Certificate Log</h2>
86     <table id="certificateReportTable" class="display">
87         <thead>
88         <tr>
89             <th>Participant</th>
90             <th>Credits</th>
91             <th>Certificate</th>
92             <th>Overridden?</th>
93             <th>Send Cert</th>
94         </tr>
95         </thead>
96         <tbody>
97         @foreach (var certResult in Model.WebcastPurchaseDataResult)
98         {
99             <tr>
100                 <td class="cell namecell">@certResult.Name</td>
101                 <td class="cell numbercell">@certResult.Credits</td>
102                 <td>@if ((bool) certResult.EarnedCert)
103                     {<text>Yes</text>}
104                 </td>
105                 <td>@if ((bool) certResult.isForced)
106                     {<text>&#42;&#42;&#42;</text>}
107                 </td>
108                 <td>
109                     <div style="display: none;" class="emailBody">
110                         @certResult.EmailBody.ToString();
111                     </div>
112                     @if ((bool) certResult.EarnedCert)
113                     {
114                         <a class="sendCert-icon glyphicon glyphicon-envelope emailclicky" data-email=@certResult.Email data-msco=@certResult.Sco data-pdate='@certResult.pDate.ToString("yyyyMMdd")' data-ticket=@certResult.Ticket style="color: grey; font-size: 18px;"></a>
115                     }</td>
116             </tr>
117         }
118         </tbody>
119     </table>
120 </div>
121 <br />
122 <br />
123 <br />
124 <hr />
125 <div>
126     <table id="sessionReportTable" class="display">
127         <thead>
128         <tr>
129             <th>Participant</th>
130             <th>Date</th>
131             <th>Start</th>
132             <th>End</th>
133         </tr>
134         </thead>
135         <tbody>
136         @foreach (var sessionReport in Model.GetSessionReportResult)
137         {
138             <tr>
139                 <td class="cell namecell">@sessionReport.Name</td>
140                 <td class="cell datecell">@CPE.App.Web.Code.Extensions.GetLocalDateTime(@sessionReport.StartDate.Value).ToString("MM/dd/yyyy")</td>
141                 <td class="cell datecell">@CPE.App.Web.Code.Extensions.GetLocalDateTime(@sessionReport.StartDate.Value).ToString("hh:mm tt")</td>
142                 <td class="cell datecell">@CPE.App.Web.Code.Extensions.GetLocalDateTime(@sessionReport.EndDate.Value).ToString("hh:mm tt")</td>
143             </tr>
144         }
145         </tbody>
146     </table>
147 </div>
148
149
150
151