本文整理汇总了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;
}