当前位置: 首页>>代码示例>>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;未经允许,请勿转载。