當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。