UNPKG

unserver-unify

Version:

168 lines 6.87 kB
<div ng-include src="'app/mystudy/myscores.html'"></div> <div ng-controller="MyExamsCtrl as ctrl"> <div class="margin-bottom-20"></div> <div class="panel panel-body tab-v1" style="padding-top: 0px;"> <ul class="nav nav-tabs mobile_tab tab2" ng-init="ctrl.tab = 'exam_list'"> <li ng-class="{'active':ctrl.tab=='exam_list'}" class="active"> <a data-toggle="tab" ng-click="ctrl.tab = 'exam_list'" class="ng-binding"> {{'Exam' | translate}} </a> </li> <li ng-class="{'active':ctrl.tab=='exam_record'}"> <a data-toggle="tab" ng-click="ctrl.tab = 'exam_record'"> {{'Exam Record' | translate}} </a> </li> </ul> <div class="relative" ng-if="ctrl.tab=='exam_list'"> <!-- <div class="msg_info"> <div class="col-lg-6 col-xs-6 col-xs-6 col-xs-12"> <h4> <i class="fa fa-check-square-o"> </i> {{ctrl.completed|| 0}} </h4> <p> {{ 'Completed'|translate}} </p> </div> <div class="col-lg-6 col-xs-6 col-xs-12"> <h4> <i class="fa fa-check-square-o"> </i> {{ examitems.length-ctrl.completed ||0 }} </h4> <p> {{'Outstanding'|translate}} </p> </div> </div> <div class="msg_info"> <div class="col-lg-12 col-xs-12"> <h4> <i class="fa fa-check-square-o"> </i> {{ examitems.length}} </h4> <p> {{ 'Total'|translate}} </p> </div> </div> <div class="clearfix"></div> --> <div class="panel panel-body"> <div class="row row_adjst"> <div class="myspace_hed" style="left: 16px; right: 16px; width: auto; top: 20px;}"> {{'Total'|translate}} <span class="badge badge-green rounded-2x">{{ examitems.length}}</span> </div> </div> <div class="table-responsive" style="overflow:inherit; margin-top: 29px;"> <table class="table table-striped table-hover tbl_aln" st-safe-src="examitems" st-table="myexam"> <tr class="info"> <th> </th> <th st-sort="coursename" translate=""> Course </th> <th st-sort="name"> {{"Name" | translate}} </th> <th st-sort="knowledge" translate=""> Exam Knowledge </th> <th st-sort="start" translate=""> Start Time </th> <th st-sort="stop" translate=""> End Time </th> <th> {{"Result" | translate}} </th> <th st-sort="resultid" translate=""> Status </th> <th> {{"Action" | translate}} </th> </tr> <tr ng-if="examitems.length == 0"> <td colspan="12"> <div class="no_record" translate="">No Record</div> </td> </tr> <tr ng-repeat="exam in myexam" class="font-12"> <td width="2%"> <i class="fa fa-lock" ng-if="!exam.publish"> </i> <i class="fa fa-unlock" ng-if="exam.publish" style="color:#81A6C6;"> </i> </td> <td width="13%"> {{exam.coursename | uppercase}} </td> <td width="13%"> <a examid="{{exam._id}}" ng-if="exam.publish" redirect-to-exam="" type="myspaceexam"> <strong> {{ exam.name | uppercase}} </strong> </a> <strong ng-if="!exam.publish"> {{ exam.name | uppercase}} </strong> </td> <td width="10%"> {{exam.knowledge | uppercase}} </td> <td width="8%"> {{exam.start | date:'mediumDate'}} </td> <td width="8%"> {{exam.stop | date:'mediumDate'}} </td> <td ng-if="subDomain !== 'sgpower'" width="10%"> <a class="btn-xs" ng-if="exam.resultid&&exam.review" ui-sref="index.myspace.exams.result({ paperid:exam.eid,recordid: exam.resultid, type:exam.type})"> {{'View Result' | translate}} </a> <span ng-if="exam.resultid&&!exam.review&&exam.scoresFlag"> {{exam._score}} / {{exam._totalscores}} </span> <span ng-if="exam.resultid&& !exam.review&&!exam.scoresFlag"> {{ {eng:'Result Hidden', chn:'不显示'}| trans}} </span> </td> <td ng-if="subDomain == 'sgpower'" width="10%"> <a class="btn-xs" ng-if="exam.resultid&&exam.review" ui-sref="index.myspace.exams.result({ paperid:exam.eid,recordid: exam.resultid, type:exam.type})"> {{exam._score}} / {{exam._totalscores}} </a> <span ng-if="exam.resultid&&!exam.review&&exam.scoresFlag"> {{exam._score}} / {{exam._totalscores}} </span> <span ng-if="exam.resultid&& !exam.review&&!exam.scoresFlag"> {{ {eng:'Result Hidden', chn:'不显示'}| trans}} </span> </td> <td width="3%"> <button class="btn-u btn-u-blue btn-xs" ng-if="exam.resultid" translate=""> COMPLETED </button> <button class="btn-u btn-u-red btn-xs" ng-if="!exam.resultid" translate=""> OUTSTANDING </button> </td> <td width="5%"> <a class="btn btn-xs btn-u" examid="{{exam._id}}" ng-if="exam.publish" redirect-to-exam="" type="myspaceexam" style="color:white;">{{'Take' | translate}}</a> </td> </tr> <tr> <td class="text-right" colspan="9" st-items-by-page="10" st-pagination="" st-template="components/content/tablePagination.html"> </td> </tr> </table> </div> </div> </div> <div class="" ng-if="ctrl.tab=='exam_record'"> <div ng-include src="'app/mystudy/examrecords.html'" class="row" style="margin-top: 20px;"></div> </div> </div> </div> <!-- <div ng-include="'app/mystudy/tasks.html'"></div> --> <!-- <div ng-include="'app/mystudy/tests.html'" style="margin-top:5%;"></div> -->