lab-exercises-detail.html 10.4 KB
<div class="" ng-controller="LabExercController" id="LabView" style="">

    <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="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>

    <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" id="resultbodyDiv" style="overflow-x: hidden;">
            <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>

<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>