lab-exercises-detail.html
11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<div class="" ng-controller="LabExercController" id="LabView" style="overflow: scroll;">
<div id="labexmodalbackground" class="labExModalbackground"></div>
<!-- Lab Ex -->
<div class="labExModal labExModalonID" id="labExModalID">
<div class="modal-content">
<div class="modal-header">
<button type="button" id="closeEmailmodel" class="close" data-dismiss="modal" aria-label="Close" ng-click="closeLabExEmailModel($event)"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Email your performance report</h4>
</div>
<div class="modal-body paddTop15">
<div class="modal-body paddTop15">
<form class="form-horizontal" name="LabExForm" id="LabExerciseForm" ng-submit="SendLabEXMailToUser($event)">
<div class="form-group">
<div class="col-sm-5 control-label">
<label>*Email To: (Email address)</label>
</div>
<div class="col-sm-7">
<input type="text" name="usremail" class="form-control" id="emailTo" multiple />
<div class="help-block">*Use ',' to separate multiple email ids. </div>
</div>
</div>
<div class="form-group">
<div class="col-sm-5 control-label">
<label>*Your name:</label>
</div>
<div class="col-sm-7">
<input type="text" name="name" class="form-control" id="userName" onkeypress="return Validate(event);" />
</div>
</div>
<div class="form-group">
<div class="col-sm-5 control-label">
<label for="">*Your Email Address:</label>
</div>
<div class="col-sm-7">
<input type="text" class="form-control" name="receiverEmail" id="userEmailID" />
</div>
</div>
<div class="form-group">
<div class="col-sm-5 control-label">
<label for="">Send me a copy of the report</label>
</div>
<div class="col-sm-7">
<input type="checkbox" style="margin-top: 12px;" id="chkCopy" />
</div>
</div>
<div class="form-group">
<div class="col-sm-5 control-label">
<label for="">Note(optional)</label>
</div>
<div class="col-sm-7">
<textarea name="" id="emailComment" class="form-control" cols="30" rows="5"></textarea>
<!--<div class="help-block">255 character limit </div>-->
</div>
</div>
<div class="form-group">
<div class="col-sm-5 control-label">
</div>
<div class="col-sm-7">
<button type="submit" class="btn btn-primary btn-block">Send Mail</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="labExModal" id="alertPopUp" style="display: none; position: absolute; z-index: 12000001; margin: auto; top: 0; left: 0; right: 0; bottom: 0; width: 400px;height:400px;">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Alert</h4>
</div>
<div class="modal-body ">
<div class="modal-body" id="messageBody" style="padding:10px;font-size:15px;">
</div>
</div>
<div class="modal-footer">
<button type="button" id="labmodalclose" class="btn btn-primary" ng-click="labExModalClose($event)">Close</button>
</div>
</div>
</div>
<div class="labExModal" id="labExEmailSentModalID" style="display: none; position: absolute; z-index: 12000001; margin: auto; top: 0; left: 0; right: 0; bottom: 0; width: 400px;height:400px;">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="myModalLabel">Email Your Performance Report</h4>
</div>
<div class="modal-body ">
<div class="modal-body" style="padding:10px;font-size:15px;">
Your report has been sent.
</div>
</div>
<div class="modal-footer">
<button type="button" id="sendNotification" class="btn btn-primary" ng-click="emailNotification($event)">Close</button>
</div>
</div>
</div>
<div class="col-sm-12">
<div class="container-fluid">
<div class="row">
<div class="panel panel-default" id="questionHtml" style="margin-bottom:0;margin-top:10px">
<div class="col-xs-12 panel-heading">
<div class="col-xs-3" style="padding-left:5px;" id="activityTitle">
</div>
<div class="col-xs-6 text-primary text-center" id="Title"></div>
<div class="text-right col-xs-3" style="padding-right:5px;">
Question <strong id="quizNo"></strong> of <span id="totalquiz"></span>
</div>
</div>
<div id="panelbodyDiv" class="panel-body" style="padding:2px;overflow:scroll">
</div>
<div class="panel-footer">
<div class="pull-left">
</div>
<div class="pull-right">
<div class="btn-group pull-left marginR5">
<button class="btn btn-sm btn-primary" style="display:none;" ng-click="SubmitAttempt($event)" id="quizSubmitBtn">Submit</button>
<button class="btn btn-sm btn-primary" style="display:none;" id="reportBtn" ng-click="ReportGen($event)">Report</button>
<button class="btn btn-sm btn-primary" id="saveBtn" ng-click="SaveAnswer($event)">Save</button>
<button class="btn btn-sm btn-primary" id="reviewBtn" ng-click="ReviewAttempt($event)">Review Your Attempt</button>
<button class="btn btn-sm btn-primary" id="resetBtn" ng-click="OnResetClick($event)">Reset</button>
</div>
<div class="btn-group">
<button id="btnBackward" class="btn btn-sm btn-black" ng-click="prevQuiz($event)"><i id="btnBackwardIcon" class="fa fa-arrow-left"></i></button>
<button id="btnForward" class="btn btn-sm btn-black" ng-click="nextQuiz($event)"><i id="btnForwardIcon" class="fa fa-arrow-right"></i></button>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
<div class="panel panel-default" id="submitResultHtml" style="display:none;">
<div class="panel-heading">
<div class="row">
<div class="col-sm-4 text-left"><strong id="reporttitle"></strong></div>
<div class="col-sm-4 text-center">Performance Report</div>
<div class="col-sm-4 text-right">Score:<span id="scoreResult"></span>% </div>
</div>
</div>
<div class="panel-body no-padding">
<div class="row">
<div class="col-sm-12 table-responsive ">
<table class="table table-hover table-condensed bg-white" id="questionStatus">
<thead>
<tr class="active">
<th class="text-center">Total Question</th>
<th class="text-center">Correct Answers</th>
<th class="text-center">Incorrect Answers</th>
</tr>
</thead>
<tbody>
<tr class="text-center">
<td id="tdTotalQuiz"></td>
<td id="tdCorrectAnswer"></td>
<td id="tdinCorrectAnswer"></td>
</tr>
</tbody>
</table>
</div>
<div class="col-sm-12 table-responsive">
<table class="table table-hover table-condensed bg-white">
<thead>
<tr class="active">
<th>Question</th>
<th>Activity Title</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody id="resultLabData"></tbody>
</table>
</div>
</div>
</div>
<div class="panel-footer">
<div class="text-center">
<button class="btn btn-sm btn-primary" id="btnSendMail" ng-click="sendMail($event)">
Email
</button>
<button class="btn btn-sm btn-primary" id="btnReportClose" ng-click="CloseReport($event)">
Close
</button>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
</div>
<!--</div>-->
</div>
<script type="text/javascript">
function Validate(e) {
var keyCode = e.keyCode || e.which;
//Regex for Valid Characters i.e. Alphabets and Numbers.
var regex = /^[A-Za-z0-9\s]+$/;
//Validate TextBox value against the Regex.
var isValid = regex.test(String.fromCharCode(keyCode));
return isValid;
}
</script>