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


PHP learnpath::get_progress_bar方法代碼示例

本文整理匯總了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>  &nbsp;&nbsp; ' . $details['lp_proximity'] . ' &nbsp;&nbsp; ' . $details['lp_encoding'] . '<a href="lp_controller.php?' . api_get_cidreq() . '&action=edit&lp_id=' . $id . '">&nbsp;&nbsp;<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){
開發者ID:RusticiSoftware,項目名稱:SCORMCloud_DokeosMod,代碼行數:31,代碼來源:lp_list.php

示例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>  &nbsp;&nbsp; '.$details['lp_proximity'].' &nbsp;&nbsp; '.$details['lp_encoding'].'<a href="lp_controller.php?'.api_get_cidreq().'&action=edit&lp_id='.$id.'">&nbsp;&nbsp;<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>  &nbsp;&nbsp; '.$details['lp_proximity'].' &nbsp;&nbsp; '.$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>  &nbsp;&nbsp; '.$details['lp_proximity'].' &nbsp;&nbsp; '.$details['lp_encoding'].'</td>'."\n";
        */
     //$dsp_desc = '<td valign="middle" style="color: grey; padding-top:1em;"><em>'.$details['lp_maker'].'</em>  &nbsp;&nbsp; '.$details['lp_proximity'].'<br />'.(learnpath::is_lp_visible_for_student($id,api_get_user_id())?'':'('.get_lang('LPNotVisibleToStudent').')').'</td>'."\n";
開發者ID:axomar,項目名稱:ITS,代碼行數:31,代碼來源:lp_list-bak-oax.php

示例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) {
開發者ID:annickvdp,項目名稱:Chamilo1.9.10,代碼行數:30,代碼來源:lp_list.php

示例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}");
開發者ID:KRCM13,項目名稱:chamilo-lms,代碼行數:31,代碼來源:lp_list.php


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