本文整理匯總了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 .= " <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'> 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'> 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;
}