当前位置: 首页>>代码示例>>PHP>>正文


PHP Helper::get_suffix方法代码示例

本文整理汇总了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>
开发者ID:umahatokula,项目名称:academia,代码行数:31,代码来源:report_sheet.blade.php

示例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">&ndash;</span>
	                          <span class="expand-icon">+</span>
	                        </a>
	                        <a href="#" data-toggle="remove">
	                          &times;
	                        </a>
	                      </div>
开发者ID:umahatokula,项目名称:academia,代码行数:31,代码来源:class_invoices.blade.php

示例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>
开发者ID:umahatokula,项目名称:academia,代码行数:31,代码来源:result_sheet.blade.php


注:本文中的app\helpers\Helper::get_suffix方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。