source: iPeer/app/views/evaluations/student_view_rubric_evaluation_results.ctp @ aee5515

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

Updated the result pages for missing indexes, also close #406

For #406, it seems all the result pages have grade shown.

  • Property mode set to 100644
File size: 5.6 KB
RevLine 
[03f9355]1<h2><?php __('Evaluation Result Detail')?></h2>
2<!-- Event Details Table -->
3<table class="standardtable">
4<tr>
5    <th><?php __('Event Name')?></th>
6    <th><?php __('Evaluated By')?></th>
7    <th><?php __('Due Date')?></th>
8    <th><?php __('Self-Evaluation')?></th>
9</tr>
10<tr>
11    <td><?php echo $event['Event']['title'] ?></td>
[aee5515]12    <td><?php echo $event['Group']['group_name'] ?></td>
[03f9355]13    <td><?php echo Toolkit::formatDate(date("Y-m-d H:i:s", strtotime($event['Event']['due_date']))) ?></td>
14    <td><?php echo ($event['Event']['self_eval']) ? 'Yes' : 'No' ?></td>
15</tr>
16</table>
17
18<table class="standardtable">
19<tr>
20    <th><?php __('Description')?></th>
21</tr>
22<tr>
23    <td><?php echo $event['Event']['description'] ?></td>
24</tr>
25</table>
26
27<h2><?php __('Summary')?></h2>
28<table class="standardtable">
29<tr>
30    <th><?php __('Rating')?></th>
31</tr>
32<tr>
33    <td>
[aee5515]34    <?php
35    isset($scoreRecords[User::get('id')]['grade_released'])? $gradeReleaseStatus = $scoreRecords[User::get('id')]['grade_released'] : $gradeReleaseStatus = array();
[03f9355]36    if ($gradeReleaseStatus) {
[aee5515]37            $finalAvg = $memberScoreSummary[User::get('id')]['received_ave_score'] - $ratingPenalty;
[03f9355]38            ($ratingPenalty > 0) ? ($stringAddOn = ' - '.'('.'<font color=\'red\'>'.$ratingPenalty.'</font>'.
39                ')'.'<font color=\'red\'>*</font>'.' = '.number_format($finalAvg, 2)) : $stringAddOn = '';
[aee5515]40
41            echo number_format($memberScoreSummary[User::get('id')]['received_ave_score'], 2).$stringAddOn;
[03f9355]42            $ratingPenalty > 0 ? $penaltyNote = '&nbsp &nbsp &nbsp &nbsp &nbsp ( )'.'<font color=\'red\'>*</font>'.' : '.$studentResult['penalty'].
43                '% late penalty.' : $penaltyNote = '';
44            echo $penaltyNote;
45        } else {
46            echo __('Not Released', true);
47        }
48    ?>
49    </td>
50</tr>
51</table>
52
[6dec1d9]53<table width="100%"  border="0" cellpadding="8" cellspacing="0" bgcolor="#FFFFFF">
54  <tr>
55    <td>
56<?php echo $html->script('ricobase')?>
57<?php echo $html->script('ricoeffects')?>
58<?php echo $html->script('ricoanimation')?>
59<?php echo $html->script('ricopanelcontainer')?>
60<?php echo $html->script('ricoaccordion')?>
61<?php echo empty($params['data']['Evaluation']['id']) ? null : $html->hidden('Evaluation/id'); ?>
62<div id='rubric_result'>
63
64<?php
65$numerical_index = 1;  //use numbers instead of words; get users to refer to the legend
66$color = array("", "#FF3366","#ff66ff","#66ccff","#66ff66","#ff3333","#00ccff","#ffff33");
67$membersAry = array();  //used to format result
[aee5515]68$groupAve = 0;
69if (isset($scoreRecords[User::get('id')])) {
70    $gradeReleased = $scoreRecords[User::get('id')]['grade_released'];
71    $commentReleased = $scoreRecords[User::get('id')]['comment_released'];
[6dec1d9]72} else {
73    $gradeReleased = 0;
74    $commentReleased = 0;
75}
76?>
77                         <!--br>Total: <?php /*$memberAve = number_format($membersAry[$user['id']]['received_ave_score'], 2);
78                                          echo number_format($membersAry[$user['id']]['received_ave_score'], 2);
79                                          echo '('.number_format($membersAry[$member['User']['id']]['received_ave_score_%']) .'%)';
80                                          if ($memberAve == $groupAve) {
81                                            echo "&nbsp;&nbsp;<< Same Mark as Group Average >>";
82                                          } else if ($memberAve < $groupAve) {
83                                            echo "&nbsp;&nbsp;<font color='#FF6666'><< Below Group Average >></font>";
84                                          } else if ($memberAve > $groupAve) {
85                                            echo "&nbsp;&nbsp;<font color='#000099'><< Above Group Average >></font>";
86                                          }*/
87                                          ?>
88                                <br><br-->
89
[4d72134]90<table width="100%" border="0" align="center" cellpadding="4" cellspacing="2">
[6dec1d9]91        <tr>
92                <td>
93<div id="accordion">
94    <!-- Panel of Evaluations Results -->
95                <div id="panelResults">
96                  <div id="panelResultsHeader" class="panelheader">
97                        <?php echo __('Evaluation Results From Your Teammates. (Randomly Ordered)       ', true);
98                        if ( !$gradeReleased && !$commentReleased) {
[03f9355]99                echo '<font color="red">'.__('Comments/Grades Not Released Yet.', true).'</font>';
100                        } else if ( !$gradeReleased) {
101                            echo '<font color="red">'.__('Grades Not Released Yet.', true).'</font>';
102            } else if ( !$commentReleased) {
103                            echo '<font color="red">'.__('Comments Not Released Yet.', true).'</font>';
104            }
105            ?>
[6dec1d9]106                  </div>
107                  <div style="height: 200px;" id="panelResultsContent" class="panelContent">
108          <?php
[aee5515]109    $params = array('controller'=>'evaluations', 'rubric'=>$rubric, 'rubricCriteria'=>$rubricCriteria, 'membersAry'=>$groupMembers, 'evalResult'=>$evalResult, 'userId'=>User::get('id'), 'scoreRecords'=>$scoreRecords);
[6dec1d9]110    echo $this->element('evaluations/student_view_rubric_details', $params);
111    ?>
112
113                  </div>
114                </div>
115    <!-- Panel of Evaluations Reviews -->
116                <div id="panelReviews">
117                  <div id="panelReviewsHeader" class="panelheader">
118                        <?php echo 'Review Evaluations From You.'?>
119                  </div>
120                  <div style="height: 200px;" id="panelReviewsContent" class="panelContent">
121
122          <?php
[aee5515]123    $params = array('controller'=>'evaluations', 'rubric'=>$rubric, 'rubricCriteria'=>$rubricCriteria, 'membersAry'=>$groupMembers, 'evalResult'=>$reviewEvaluations, 'userId'=>User::get('id'), 'scoreRecords'=>$scoreRecords);
[6dec1d9]124    echo $this->element('evaluations/student_view_rubric_details', $params);
125    ?>
126                  </div>
127                </div>
128</div>
129                </td>
130        </tr>
131
132</table>
133        <script type="text/javascript"> new Rico.Accordion( 'accordion',
134                                                                {panelHeight:500,
135                                                                 hoverClass: 'mdHover',
136                                                                 selectedClass: 'mdSelected',
137                                                                 clickedClass: 'mdClicked',
138                                                                 unselectedClass: 'panelheader'});
139
140        </script>
[8bdfc54]141
[6dec1d9]142
143        </td>
144  </tr>
145</table>
[aee5515]146</div>
Note: See TracBrowser for help on using the repository browser.