本文整理汇总了PHP中app\helpers\Helper::max_subject_score方法的典型用法代码示例。如果您正苦于以下问题:PHP Helper::max_subject_score方法的具体用法?PHP Helper::max_subject_score怎么用?PHP Helper::max_subject_score使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类app\helpers\Helper
的用法示例。
在下文中一共展示了Helper::max_subject_score方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: rotate
<div style="text-align:center; transform: rotate(-90deg); padding: 30px 0;">CLASS AVG</div>
</td>
<td>
<div style="text-align:center; transform: rotate(-90deg); padding: 30px 0;">REMARKS</div>
</td>
<td>
<div style="text-align:center; transform: rotate(-90deg); padding: 30px 0;">TEACHER</div>
</td>
</tr>
@foreach($offered_subjects as $subject => $subject_id)
<?php
$subject_scores = \App\Helpers\Helper::get_subject_scores($class->id, $student->id, $subject_id);
$suffix = \App\Helpers\Helper::get_suffix($subject_scores->subject_position);
$out_of = \App\Helpers\Helper::get_number_offering_subject($class->id, $subject_id);
$max_subject_total = \App\Helpers\Helper::max_subject_score($class->id, $subject_id);
$class_average = \App\Helpers\Helper::subject_class_average($class->id, $subject_id);
$remark = \App\Helpers\Helper::get_remark($subject_scores->grade);
$subject_teacher = \App\Subject::getSubjectTeacher($class->id, $subject_id);
?>
<tr>
<td style="text-align:left;">{!! $subject !!}</td>
<td style="text-align:center;">{!! $subject_scores->ca1 !!}</td>
<td style="text-align:center;">{!! $subject_scores->ca2 !!}</td>
<td style="text-align:center;">{!! $subject_scores->ca3 !!}</td>
<td style="text-align:center;">{!! $subject_scores->exam !!}</td>
<td style="text-align:center;">{!! $subject_scores->subject_total !!}</td>
<td style="text-align:center;">{!! $subject_scores->grade !!}</td>
<td style="text-align:center;">{!! $subject_scores->subject_position.$suffix !!}</td>
<td style="text-align:center;">{!! $out_of !!}</td>
<td style="text-align:center;">{!! $max_subject_total !!}</td>