source: iPeer/app/views/evaluations/student_view_mixeval_evaluation_results.ctp @ 6602514

3.1.xdevhotfixpagodaboxticket463
Last change on this file since 6602514 was 6602514, checked in by Compass <pan.luo@…>, 6 years ago

Change the styles for evaluation result pages

  • Property mode set to 100644
File size: 5.5 KB
Line 
1<?php echo $html->script('ricobase')?>
2<?php echo $html->script('ricoeffects')?>
3<?php echo $html->script('ricoanimation')?>
4<?php echo $html->script('ricopanelcontainer')?>
5<?php echo $html->script('ricoaccordion')?>
6
7<?php echo $this->element('evaluations/view_event_info', array('controller'=>'evaluations', 'event'=>$event));?>
8
9<h2><?php __('Summary')?></h2>
10<table class="standardtable">
11<tr>
12    <th><?php __('Rating')?></th>
13</tr>
14<tr>
15    <td>
16    <?php
17    isset($scoreRecords[User::get('id')]['grade_released'])? $gradeReleaseStatus = $scoreRecords[User::get('id')]['grade_released'] : $gradeReleaseStatus = array();
18    if ($gradeReleaseStatus) {
19            $finalAvg = $memberScoreSummary[User::get('id')]['received_ave_score'] - number_format($avePenalty, 2);
20            (number_format($avePenalty, 2) > 0) ? ($stringAddOn = ' - '.'('.'<font color=\'red\'>'.number_format($avePenalty, 2).'</font>'.
21                ')'.'<font color=\'red\'>*</font>'.' = '.number_format($finalAvg, 2)) : $stringAddOn = '';
22
23            echo number_format($memberScoreSummary[User::get('id')]['received_ave_score'], 2).$stringAddOn;
24            number_format($avePenalty, 2) > 0 ? $penaltyNote = '&nbsp &nbsp &nbsp &nbsp &nbsp ( )'.'<font color=\'red\'>*</font>'.' : '.$studentResult['penalty'].
25                '% late penalty.' : $penaltyNote = '';
26            echo $penaltyNote;
27        } else {
28            echo __('Not Released', true);
29        }
30    ?>
31    </td>
32</tr>
33</table>
34
35<?php echo empty($params['data']['Evaluation']['id']) ? null : $html->hidden('Evaluation/id'); ?>
36<!-- Render Event Info table -->
37<?php
38    if (isset($memberScoreSummary[User::get('id')])) {
39        $receviedAvePercent = $memberScoreSummary[User::get('id')]['received_ave_score'] / $mixeval['Mixeval']['total_marks'] * 100;
40        $releaseStatus = $scoreRecords[User::get('id')]['grade_released'];
41    } else {
42        $receviedAvePercent = 0;
43        $releaseStatus = array();
44    }
45?>
46<div id='mixeval_result'>
47
48<?php
49$numerical_index = 1;  //use numbers instead of words; get users to refer to the legend
50$color = array("", "#FF3366","#ff66ff","#66ccff","#66ff66","#ff3333","#00ccff","#ffff33");
51$membersAry = array();  //used to format result
52$groupAve = 0;
53
54//unset($scoreRecords[$rdAuth->id]);
55
56$gradeReleased = !empty($scoreRecords[User::get('id')]['grade_released']) ?
57        $scoreRecords[User::get('id')]['grade_released'] :
58        "No Grades Released";
59$commentReleased = !empty($scoreRecords[User::get('id')]['comment_released']) ?
60        $scoreRecords[User::get('id')]['comment_released'] :
61        "No Comments Released";
62
63?>
64                         <!--br>Total: <?php /*$memberAve = number_format($membersAry[$user['id']]['received_ave_score'], 2);
65                                          echo number_format($membersAry[$user['id']]['received_ave_score'], 2);
66                                          echo '('.number_format($membersAry[$member['User']['id']]['received_ave_score_%']) .'%)';
67                                          if ($memberAve == $groupAve) {
68                                            echo "&nbsp;&nbsp;<< Same Mark as Group Average >>";
69                                          } else if ($memberAve < $groupAve) {
70                                            echo "&nbsp;&nbsp;<font color='#FF6666'><< Below Group Average >></font>";
71                                          } else if ($memberAve > $groupAve) {
72                                            echo "&nbsp;&nbsp;<font color='#000099'><< Above Group Average >></font>";
73                                          }*/
74                                          ?>
75                                <br><br-->
76
77<div id="accordion">
78    <!-- Panel of Evaluations Results -->
79    <div id="panelResults">
80        <div id="panelResultsHeader" class="panelheader">
81            <?php echo __('Evaluation Results From Your Teammates. (Randomly Ordered)', true);
82                if ( !$gradeReleased && !$commentReleased) {
83                echo '<font color="red">'.__('Comments/Grades Not Released Yet.', true).'</font>';
84                } else if ( !$gradeReleased) {
85                    echo '<font color="red">'.__('Grades Not Released Yet.', true).'</font>';
86                } else if ( !$commentReleased) {
87                    echo '<font color="red">'.__('Comments Not Released Yet.', true).'</font>';
88                }
89            ?>
90        </div>
91        <div style="height: 200px;text-align: center;" id="panelResultsContent" class="panelContent">
92            <?php
93            $params = array('controller'=>'evaluations', 'mixeval'=>$mixeval, 'mixevalQuestion'=>$mixevalQuestion, 'membersAry'=>$groupMembers, 'evalResult'=>$evalResult, 'userId'=>User::get('id'), 'scoreRecords'=>$scoreRecords);
94            echo $this->element('evaluations/student_view_mixeval_details', $params);
95            ?>
96        </div>
97    </div>
98    <!-- Panel of Evaluations Reviews -->
99    <div id="panelReviews">
100        <div id="panelReviewsHeader" class="panelheader">
101            <?php echo __('Review Evaluations From You.', true)?>
102        </div>
103        <div style="height: 200px;" id="panelReviewsContent" class="panelContent">
104            <?php
105            $params = array('controller'=>'evaluations', 'mixeval'=>$mixeval, 'mixevalQuestion'=>$mixevalQuestion, 'membersAry'=>$groupMembers, 'evalResult'=>$reviewEvaluations, 'userId'=>User::get('id'), 'scoreRecords'=>null);
106            echo $this->element('evaluations/student_view_mixeval_details', $params);
107            ?>
108        </div>
109    </div>
110</div>
111</div>
112
113<script type="text/javascript"> new Rico.Accordion( 'accordion',
114        {panelHeight:500,
115            hoverClass: 'mdHover',
116            selectedClass: 'mdSelected',
117            clickedClass: 'mdClicked',
118            unselectedClass: 'panelheader'});
119
120</script>
Note: See TracBrowser for help on using the repository browser.