Ignore:
Timestamp:
2012-12-16T02:01:22-08:00 (6 years ago)
Author:
Compass <pan.luo@…>
Branches:
3.1.x, dev, hotfix, master, pagodabox, ticket463
Children:
a0781ef
Parents:
4b4b150
git-author:
Compass <pan.luo@…> (12/16/2012 02:00:28 AM)
git-committer:
Compass <pan.luo@…> (12/16/2012 02:01:22 AM)
Message:

Change the styles for evaluation result pages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/views/evaluations/student_view_rubric_evaluation_results.ctp

    r4b4b150 r6602514  
    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>
    12     <td><?php echo $event['Group']['group_name'] ?></td>
    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>
     1<?php echo $this->element('evaluations/view_event_info', array('controller'=>'evaluations', 'event'=>$event));?>
     2
     3<h2><?php __('Summary')?></h2>
    174
    185<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>
     6<tr><th><?php __('Rating')?></th></tr>
    327<tr>
    338    <td>
     
    4015
    4116            echo number_format($memberScoreSummary[User::get('id')]['received_ave_score'], 2).$stringAddOn;
    42             $ratingPenalty > 0 ? $penaltyNote = '&nbsp &nbsp &nbsp &nbsp &nbsp ( )'.'<font color=\'red\'>*</font>'.' : '.$studentResult['penalty'].
     17            $ratingPenalty > 0 ? $penaltyNote = '&nbsp &nbsp &nbsp &nbsp &nbsp ( )'.'<font color=\'red\'>*</font>'.' : '.$penalty.
    4318                '% late penalty.' : $penaltyNote = '';
    4419            echo $penaltyNote;
     
    5126</table>
    5227
    53 <table width="100%"  border="0" cellpadding="8" cellspacing="0" bgcolor="#FFFFFF">
    54   <tr>
    55     <td>
    5628<?php echo $html->script('ricobase')?>
    5729<?php echo $html->script('ricoeffects')?>
     
    6032<?php echo $html->script('ricoaccordion')?>
    6133<?php echo empty($params['data']['Evaluation']['id']) ? null : $html->hidden('Evaluation/id'); ?>
    62 <div id='rubric_result'>
    6334
    6435<?php
     
    8859                                <br><br-->
    8960
    90 <table width="100%" border="0" align="center" cellpadding="4" cellspacing="2">
    91         <tr>
    92                 <td>
    9361<div id="accordion">
    9462    <!-- 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) {
    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>';
     63    <div id="panelResults">
     64        <div id="panelResultsHeader" class="panelheader">
     65            <?php echo __('Evaluation Results From Your Teammates. (Randomly Ordered)', true);?>
     66            <font color="red">
     67            <?php if ( !$gradeReleased && !$commentReleased) {
     68                echo __('Comments/Grades Not Released Yet.', true);
     69            } else if ( !$gradeReleased) {
     70                echo __('Grades Not Released Yet.', true);
    10271            } else if ( !$commentReleased) {
    103                             echo '<font color="red">'.__('Comments Not Released Yet.', true).'</font>';
     72                echo __('Comments Not Released Yet.', true);
    10473            }
    10574            ?>
    106                   </div>
    107                   <div style="height: 200px;" id="panelResultsContent" class="panelContent">
    108           <?php
    109     $params = array('controller'=>'evaluations', 'rubric'=>$rubric, 'rubricCriteria'=>$rubricCriteria, 'membersAry'=>$groupMembers, 'evalResult'=>$evalResult, 'userId'=>User::get('id'), 'scoreRecords'=>$scoreRecords);
    110     echo $this->element('evaluations/student_view_rubric_details', $params);
    111     ?>
     75            </font>
     76        </div>
     77        <div style="height: 200px;" id="panelResultsContent" class="panelContent">
     78            <?php
     79            $params = array('controller'=>'evaluations', 'rubric'=>$rubric, 'rubricCriteria'=>$rubricCriteria, 'membersAry'=>$groupMembers, 'evalResult'=>$evalResult, 'userId'=>User::get('id'), 'scoreRecords'=>$scoreRecords);
     80            echo $this->element('evaluations/student_view_rubric_details', $params);
     81            ?>
     82        </div>
     83    </div>
     84    <!-- Panel of Evaluations Reviews -->
     85    <div id="panelReviews">
     86        <div id="panelReviewsHeader" class="panelheader">
     87            <?php echo 'Review Evaluations From You.'?>
     88        </div>
     89        <div style="height: 200px;" id="panelReviewsContent" class="panelContent">
     90            <?php
     91            $params = array('controller'=>'evaluations', 'rubric'=>$rubric, 'rubricCriteria'=>$rubricCriteria, 'membersAry'=>$groupMembers, 'evalResult'=>$reviewEvaluations, 'userId'=>User::get('id'), 'scoreRecords'=>$scoreRecords, 'isReview' => true);
     92            echo $this->element('evaluations/student_view_rubric_details', $params);
     93            ?>
     94        </div>
     95    </div>
     96</div>
    11297
    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">
     98<script type="text/javascript">
     99    new Rico.Accordion( 'accordion',
     100            {panelHeight:500,
     101            hoverClass: 'mdHover',
     102            selectedClass: 'mdSelected',
     103            clickedClass: 'mdClicked',
     104            unselectedClass: 'panelheader'});
    121105
    122           <?php
    123     $params = array('controller'=>'evaluations', 'rubric'=>$rubric, 'rubricCriteria'=>$rubricCriteria, 'membersAry'=>$groupMembers, 'evalResult'=>$reviewEvaluations, 'userId'=>User::get('id'), 'scoreRecords'=>$scoreRecords);
    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>
    141 
    142 
    143         </td>
    144   </tr>
    145 </table>
    146 </div>
     106</script>
Note: See TracChangeset for help on using the changeset viewer.