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


PHP Dashboard::get_course_categories方法代码示例

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


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

示例1: Dashboard

 function get_add_partial_payment_page()
 {
     $list = "";
     $ds = new Dashboard();
     $cats = $ds->get_course_categories();
     $courses = $ds->get_courses_by_category();
     $register_state = $ds->get_register_course_states_list();
     $cities = $ds->get_register_course_cities_list();
     $list .= "<div class='container-fluid' style='text-align:left;'>";
     $list .= "<span class='span3'>{$cats}</span>";
     $list .= "<span class='span3' id='cat_course'>{$courses}</span>";
     $list .= "<span class='span3' id='register_states_container'>{$register_state}</span>";
     $list .= "<span class='span3' id='register_cities_container'>{$cities}</span>";
     $list .= "</div>";
     $list .= "<div class='container-fluid' style='text-align:left;'>";
     $list .= "<span class='span3'></span>";
     $list .= "</div>";
     $list .= "<div class='container-fluid' style='text-align:center;'>";
     $list .= "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class='span8' id='enrolled_users'></span>";
     $list .= "</div>";
     $list .= "<div class='container-fluid' style='text-align:left;display:block;' id='payment_options'>";
     $list .= "<span class='span3'><input type='radio' name='payment_type' class='ptype' value='cc' checked>Card payment</span>";
     $period = $this->get_renew_period_dropbox();
     $enabled = $this->check_module_permission('cash');
     if ($this->user->id == 2) {
         // It is admin
         $list .= "<span class='span3'><input type='radio' name='payment_type' class='ptype' value='cash' >Cash payment</span>";
         $list .= "<span class='span3'><input type='radio' name='payment_type' class='ptype' value='cheque' >Cheque payment</span>";
     } else {
         if ($enabled == 1) {
             $list .= "<span class='span3'><input type='radio' name='payment_type' class='ptype' value='cash' >Cash payment</span>";
             $list .= "<span class='span3'><input type='radio' name='payment_type' class='ptype' value='cheque' >Cheque payment</span>";
         }
         // end if $enabled == 1
     }
     // end else
     $list .= "<span class='span3'><input type='text' id='sum' style='width:120px;' /></span>";
     $list .= "<span class='span6'><input type='checkbox' id='renew'> &nbsp; This is certificate renew payment</span>";
     $list .= "<span class='span3'>{$period}</span>";
     $list .= "<span class='span3'><button class='btn btn-primary' id='get_partial_payment_section'>Add</button></span>";
     $list .= "</div>";
     /*
      $list.="<div class='container-fluid' style='text-align:left;'>";
      $list.="<span class='span6'><input type='checkbox' id='renew'> &nbsp; This is certificate renew payment</span>";
      $list.="<span class='span3'>$period</span>";
      $list.="<span class='span3'><button class='btn btn-primary' id='get_partial_payment_section'>Add</button></span>";
      $list.="</div>";
     */
     $list .= "<div class='container-fluid' style='text-align:left;'>";
     $list .= "<span class='span12' id='payment_section'></span>";
     $list .= "</div>";
     $list .= "<div class='container-fluid' style='text-align:left;'>";
     $list .= "<span class='span8' id='partial_err' style='color:red;'></span>";
     $list .= "</div>";
     //$list.="<div class='container-fluid' style='text-align:left;'>";
     //$list.="<span class='span2'></span><span class='span2'><button type='button' id='add_payment' class='btn btn-primary'>Add</button></span>";
     //$list.="</div>";
     return $list;
 }
开发者ID:sirromas,项目名称:medical,代码行数:59,代码来源:Partial.php


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