当前位置: 首页>>代码示例>>PHP>>正文


PHP student::get_waitlist_in_curriculum方法代码示例

本文整理汇总了PHP中student::get_waitlist_in_curriculum方法的典型用法代码示例。如果您正苦于以下问题:PHP student::get_waitlist_in_curriculum方法的具体用法?PHP student::get_waitlist_in_curriculum怎么用?PHP student::get_waitlist_in_curriculum使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在student的用法示例。


在下文中一共展示了student::get_waitlist_in_curriculum方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: display_waitlist

 public function display_waitlist()
 {
     // action_waitlist
     global $OUTPUT, $PAGE, $USER;
     $cuserid = cm_get_crlmuserid($USER->id);
     $usercurs = curriculumstudent::get_curricula($cuserid);
     if (count($usercurs) > elis::$config->local_elisprogram->catalog_collapse_count) {
         $buttonLabel = get_string('show');
         $extraclass = ' hide';
     } else {
         $buttonLabel = get_string('hide');
         $extraclass = '';
     }
     // Needed for the hide buttons
     $this->include_js();
     if (!empty($usercurs)) {
         foreach ($usercurs as $usercur) {
             echo $OUTPUT->heading('<div class="clearfix"></div><div class="headermenu"><script id="curriculum' . $usercur->curid . 'script" type="text/javascript">toggleVisibleInit("curriculum' . $usercur->curid . 'script", "curriculum' . $usercur->curid . 'button", "' . $buttonLabel . '", "Hide", "Show", "curriculum' . $usercur->curid . '");</script></div>' . $usercur->name . ' (' . $usercur->idnumber . ')');
             echo '<div id="curriculum' . $usercur->curid . "\" {$this->div_attrs} class=\"yui-skin-sam\">";
             $courses = student::get_waitlist_in_curriculum($cuserid, $usercur->curid);
             if ($courses->valid() === true) {
                 echo "<div id=\"{$usercur->curid}\"></div>";
                 $table = new waitlisttable($courses);
                 $table->print_yui_table('curriculum' . $usercur->curid);
             } else {
                 echo '<p>' . get_string('nocoursesinthiscurriculum', 'local_elisprogram') . '</p>';
             }
             unset($courses);
             echo '</div>';
         }
     } else {
         echo $OUTPUT->heading(get_string('nocoursesinthiscurriculum', 'local_elisprogram'));
     }
     echo '<br/>';
     echo $OUTPUT->box(get_string('lp_waitlist_instructions', 'local_elisprogram'), 'generalbox lp_instructions');
 }
开发者ID:jamesmcq,项目名称:elis,代码行数:36,代码来源:coursecatalogpage.class.php

示例2: action_waitlist

 public function action_waitlist()
 {
     global $CFG, $CURMAN, $USER;
     $cuserid = cm_get_crlmuserid($USER->id);
     $usercurs = curriculumstudent::get_curricula($cuserid);
     if (count($usercurs) > $CURMAN->config->catalog_collapse_count) {
         $buttonLabel = get_string('show', 'block_curr_admin');
         $extraclass = ' hide';
     } else {
         $buttonLabel = get_string('hide', 'block_curr_admin');
         $extraclass = '';
     }
     require_js($CFG->wwwroot . '/curriculum/js/util.js');
     $this->include_yui();
     if (!empty($usercurs)) {
         foreach ($usercurs as $usercur) {
             print_heading('<div class="clearfix"></div><div class="headermenu"><script id="curriculum' . $usercur->curid . 'script" type="text/javascript">toggleVisibleInit("curriculum' . $usercur->curid . 'script", "curriculum' . $usercur->curid . 'button", "' . $buttonLabel . '", "Hide", "Show", "curriculum' . $usercur->curid . '");</script></div>' . $usercur->name . ' (' . $usercur->idnumber . ')');
             echo '<div id="curriculum' . $usercur->curid . '" class="yui-skin-sam">';
             if ($courses = student::get_waitlist_in_curriculum($cuserid, $usercur->curid)) {
                 echo "<div id=\"{$usercur->curid}\"></div>";
                 $table = new waitlisttable($courses);
                 $table->print_yui_table($usercur->curid);
             } else {
                 echo '<p>' . get_string('nocoursesinthiscurriculum', 'block_curr_admin') . '</p>';
             }
             echo '</div>';
         }
     } else {
         print_heading(get_string('nocoursesinthiscurriculum', 'block_curr_admin'));
     }
     echo '<br/>';
     print_box(get_string('lp_waitlist_instructions', 'block_curr_admin'), 'generalbox lp_instructions');
 }
开发者ID:remotelearner,项目名称:elis.cm,代码行数:33,代码来源:coursecatalogpage.class.php


注:本文中的student::get_waitlist_in_curriculum方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。