當前位置: 首頁>>代碼示例>>PHP>>正文


PHP flexible_table::print_initials_bar方法代碼示例

本文整理匯總了PHP中flexible_table::print_initials_bar方法的典型用法代碼示例。如果您正苦於以下問題:PHP flexible_table::print_initials_bar方法的具體用法?PHP flexible_table::print_initials_bar怎麽用?PHP flexible_table::print_initials_bar使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在flexible_table的用法示例。


在下文中一共展示了flexible_table::print_initials_bar方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

        $progressvalue = 0;
        $progress = '?';
    }
    $rows[] = array('firstname' => $users[$i]->firstname, 'lastname' => strtoupper($users[$i]->lastname), 'select' => $select, 'picture' => $picture, 'fullname' => $name, 'lastonlinetime' => empty($users[$i]->lastseen) ? 0 : $users[$i]->lastseen, 'lastonline' => $lastonline, 'progressbar' => $progressbar, 'progressvalue' => $progressvalue, 'progress' => $progress);
}
// Build the table content and output.
if (!($sort = $table->get_sql_sort())) {
    $sort = 'lastname DESC';
}
if ($numberofusers > 0) {
    usort($rows, 'block_progress_compare_rows');
    foreach ($rows as $row) {
        $table->add_data(array($row['select'], $row['picture'], $row['fullname'], $row['lastonline'], $row['progressbar'], $row['progress']));
    }
}
$table->print_initials_bar();
$table->print_html();
// Output messaging controls.
echo html_writer::start_tag('div', array('class' => 'buttons'));
echo html_writer::empty_tag('input', array('type' => 'button', 'id' => 'checkall', 'value' => get_string('selectall')));
echo html_writer::empty_tag('input', array('type' => 'button', 'id' => 'checknone', 'value' => get_string('deselectall')));
$displaylist = array();
$displaylist['messageselect.php'] = get_string('messageselectadd');
if (!empty($CFG->enablenotes) && has_capability('moodle/notes:manage', $context)) {
    $displaylist['addnote.php'] = get_string('addnewnote', 'notes');
    $displaylist['groupaddnote.php'] = get_string('groupaddnewnote', 'notes');
}
echo html_writer::tag('label', get_string("withselectedusers"), array('for' => 'formactionid'));
echo html_writer::select($displaylist, 'formaction', '', array('' => 'choosedots'), array('id' => 'formactionid'));
echo html_writer::empty_tag('input', array('type' => 'hidden', 'name' => 'id', 'value' => $course->id));
echo html_writer::start_tag('noscript', array('style' => 'display:inline;'));
開發者ID:HarcourtsAcademy,項目名稱:Moodle-block_progress,代碼行數:31,代碼來源:overview.php


注:本文中的flexible_table::print_initials_bar方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。