本文整理汇总了PHP中app\helpers\Helper::get_suffix方法的典型用法代码示例。如果您正苦于以下问题:PHP Helper::get_suffix方法的具体用法?PHP Helper::get_suffix怎么用?PHP Helper::get_suffix使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类app\helpers\Helper
的用法示例。
在下文中一共展示了Helper::get_suffix方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: rotate
</td>
<td>
<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>
示例2: session
<td style="text-align:center">{!! Form::select('term_id', $terms, session()->get('current_term'), array('class' => 'form-control', 'id' => 'code')) !!}</td>
<td style="text-align:center">{!! Form::submit('Go', array('class' => 'form-control btn btn-secondary')) !!}</td>
</tr>
</tbody>
</table>
{!! Form::close() !!}
</div>
</center>
</div>
</div>
</div>
</div>
<?php
if (isset($invoices)) {
$suffix = \App\Helpers\Helper::get_suffix($term);
?>
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Invoices for {!! $class.', '.$session.', '.$term.$suffix.' term' !!}</h3>
<div class="panel-options">
<a href="#" data-toggle="panel">
<span class="collapse-icon">–</span>
<span class="expand-icon">+</span>
</a>
<a href="#" data-toggle="remove">
×
</a>
</div>
示例3: route
</tr>
</thead>
<tbody>
@foreach($students as $student)
<?php
$exempted_subjects = \App\Helpers\Helper::get_exempted_subjects($class->id, $student->id);
// dd($exempted_subjects);
?>
<tr>
<td><a href="{!! route('admin.students.show', array($student->id)) !!}">{!! $student->fname.' '.$student->lname !!}</td></a></td>
@foreach($class->subjects as $subject)
<?php
$subject_scores = \App\Helpers\Helper::get_subject_scores($class->id, $student->id, $subject->id);
$student_position = \App\Helpers\Helper::get_student_position($class->id, $student->id, $subject->id);
$suffix = \App\Helpers\Helper::get_suffix($student_position->position);
?>
<td style="text-align:center">
<?php
if (in_array($subject->id, $exempted_subjects)) {
echo "-";
} else {
echo $subject_scores->subject_total;
}
?>
</td>
@endforeach
<td style="text-align:center">{!! $student_position->total !!}</td>
<td style="text-align:center">{!! number_format($student_position->average, 2) !!}</td>
<td style="text-align:center">{!! $student_position->position.$suffix !!}</td>