本文整理汇总了PHP中Classes::get_list_teacher_log方法的典型用法代码示例。如果您正苦于以下问题:PHP Classes::get_list_teacher_log方法的具体用法?PHP Classes::get_list_teacher_log怎么用?PHP Classes::get_list_teacher_log使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Classes
的用法示例。
在下文中一共展示了Classes::get_list_teacher_log方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: show_more_history_student
function show_more_history_student()
{
header('Content-Type: text/html; charset=utf-8');
global $display;
$id_view = intval(Url::get('id_view', 0));
$anchor_index = intval(Url::get('anchor_index_h', 0));
if ($id_view) {
$history_student = Classes::get_list_teacher_log(' LIMIT ' . $anchor_index * 6 . ', 7', ' WHERE uid = ' . $id_view, 'ORDER BY id DESC');
} else {
$history_student = Classes::get_list_teacher_log(' LIMIT ' . $anchor_index * 6 . ', 7', ' WHERE uid = ' . $_SESSION['user_id'], 'ORDER BY id DESC');
}
$list_teacher = Teachers::get_collection(null);
$list_lesson = Lessons::get_collection_with_join(null);
if (count($history_student) == 7) {
$is_next_h = 1;
array_pop($history_student);
} else {
$is_next_h = 0;
}
if (empty($history_student)) {
exit;
}
$display->add('history_student', $history_student);
$display->add('list_teacher', $list_teacher);
$display->add('list_lesson', $list_lesson);
$display->add('anchor_index', $anchor_index);
$display->add('is_next_h', $is_next_h);
$display->output('Personal/ajax/ShowMoreHistory');
exit;
}