本文整理汇总了PHP中learnpath::get_progress_bar方法的典型用法代码示例。如果您正苦于以下问题:PHP learnpath::get_progress_bar方法的具体用法?PHP learnpath::get_progress_bar怎么用?PHP learnpath::get_progress_bar使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类learnpath
的用法示例。
在下文中一共展示了learnpath::get_progress_bar方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: api_get_user_id
$dsp_default_view = '';
$dsp_debug = '';
$dsp_order = '';
// Select course theme
if (!empty($platform_theme)) {
$mystyle = $platform_theme;
}
if (!empty($user_theme)) {
$mystyle = $user_theme;
}
if (!empty($mycoursetheme)) {
$mystyle = $mycoursetheme;
}
$lp_theme_css = $mystyle;
if ($display_progress_bar) {
$dsp_progress = '<td>' . learnpath::get_progress_bar('%', learnpath::get_db_progress($id, api_get_user_id()), '') . '</td>';
} else {
$dsp_progress = '<td style="padding-top:1em;">' . learnpath::get_db_progress($id, api_get_user_id(), 'both') . '</td>';
}
if ($is_allowed_to_edit) {
$dsp_desc = '<td valign="middle" style="color: grey; padding-top:1em;"><em>' . $details['lp_maker'] . '</em> ' . $details['lp_proximity'] . ' ' . $details['lp_encoding'] . '<a href="lp_controller.php?' . api_get_cidreq() . '&action=edit&lp_id=' . $id . '"> <img src="../img/edit.gif" border="0" title="' . get_lang('_edit_learnpath') . '"></a></td>' . "\n";
/* export */
//Export is inside "Edit"
//export not available for normal lps yet
/*if($details['lp_type']==1){
$dsp_export = '<td align="center">' .
"<a href='".api_get_self()."?".api_get_cidreq()."&action=export&lp_id=$id'>" .
"<img src=\"../img/cd.gif\" border=\"0\" title=\"".get_lang('Export')."\">" .
"</a>" .
"";
}elseif($details['lp_type']==2){
示例2: api_get_user_id
<a href="' . $url_start_lp . '">' . $my_title . '</a>' . $session_img . $extra . "</td>";
$dsp_desc = '';
$dsp_export = '';
$dsp_edit = '';
$dsp_build = '';
$dsp_edit_close = '';
$dsp_delete = '';
$dsp_visible = '';
$dsp_default_view = '';
$dsp_debug = '';
$dsp_order = '';
$progress = learnpath::get_db_progress($id, api_get_user_id(), '%', '', false, api_get_session_id());
if ($is_allowed_to_edit) {
$dsp_progress = '<td>' . $progress . '</td>';
} else {
$dsp_progress = '<td>' . learnpath::get_progress_bar('%', learnpath::get_db_progress($id, api_get_user_id(), '%', '', false, api_get_session_id())) . '</td>';
}
$dsp_edit = '<td class="td_actions">';
$dsp_edit_close = '</td>';
if ($is_allowed_to_edit) {
/*
if ($current_session == $details['lp_session']) {
$dsp_desc = '<td valign="middle" style="color: grey; padding-top:1em;"><em>'.$details['lp_maker'].'</em> '.$details['lp_proximity'].' '.$details['lp_encoding'].'<a href="lp_controller.php?'.api_get_cidreq().'&action=edit&lp_id='.$id.'"> <img src="../img/edit.gif" border="0" title="'.get_lang('LearnpathEditLearnpath').'"></a></td>'."\n";
} else {
$dsp_desc = '<td valign="middle" style="color: grey; padding-top:1em;"><em>'.$details['lp_maker'].'</em> '.$details['lp_proximity'].' '.$details['lp_encoding'].'<img src="../img/edit_na.gif" border="0" title="'.get_lang('LearnpathEditLearnpath').'"></td>'." ";
}
*/
/* // Deprecated code, Chamilo 1.8.8.
$dsp_desc = '<td valign="middle" style="color: grey; padding-top:1em;"><em>'.$details['lp_maker'].'</em> '.$details['lp_proximity'].' '.$details['lp_encoding'].'</td>'."\n";
*/
//$dsp_desc = '<td valign="middle" style="color: grey; padding-top:1em;"><em>'.$details['lp_maker'].'</em> '.$details['lp_proximity'].'<br />'.(learnpath::is_lp_visible_for_student($id,api_get_user_id())?'':'('.get_lang('LPNotVisibleToStudent').')').'</td>'."\n";
示例3: api_get_course_int_id
$dsp_visible = '';
$dsp_default_view = '';
$dsp_debug = '';
$dsp_order = '';
$progress = learnpath::getProgress(
$id,
$userId,
api_get_course_int_id(),
api_get_session_id()
);
if ($is_allowed_to_edit) {
$dsp_progress = '<td><center>'.$progress.'</center></td>';
} else {
$dsp_progress = '<td>'.learnpath::get_progress_bar($progress, '%').'</td>';
}
$dsp_edit = '<td class="td_actions">';
$dsp_edit_close = '</td>';
$token_parameter = "&sec_token=$token";
$dsp_edit_lp = null;
$dsp_publish = null;
$dsp_reinit = null;
$dsp_disk = null;
$copy = null;
$lp_auto_lunch_icon = null;
if ($is_allowed_to_edit) {
示例4: api_get_course_int_id
$dsp_build = '';
$dsp_delete = '';
$dsp_visible = '';
$dsp_default_view = '';
$dsp_debug = '';
$dsp_order = '';
$progress = 0;
if (!api_is_invitee()) {
$progress = learnpath::getProgress($id, $userId, api_get_course_int_id(), api_get_session_id());
}
if ($is_allowed_to_edit) {
$dsp_progress = '<center>' . $progress . '</center>';
} else {
$dsp_progress = "";
if (!api_is_invitee()) {
$dsp_progress = learnpath::get_progress_bar($progress, '%');
}
}
$token_parameter = "&sec_token={$token}";
$dsp_edit_lp = null;
$dsp_publish = null;
$dsp_reinit = null;
$subscribeUsers = null;
$dsp_disk = null;
$copy = null;
$lp_auto_launch_icon = null;
$actionSeriousGame = null;
if ($is_allowed_to_edit) {
// EDIT LP
if ($current_session == $details['lp_session']) {
$dsp_edit_lp = Display::url(Display::return_icon('settings.png', get_lang('CourseSettings'), '', ICON_SIZE_SMALL), "lp_controller.php?" . api_get_cidreq() . "&action=edit&lp_id={$id}");