|
|
|
@ -13,7 +13,7 @@ require_once '../inc/global.inc.php'; |
|
|
|
|
|
|
|
|
|
api_protect_admin_script(); |
|
|
|
|
|
|
|
|
|
$interbreadcrumb[] = array ('url' => 'index.php', 'name' => get_lang('MySpace')); |
|
|
|
|
$interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('MySpace')); |
|
|
|
|
|
|
|
|
|
$tool_name = get_lang('Report'); |
|
|
|
|
|
|
|
|
@ -27,32 +27,18 @@ $url = api_get_path(WEB_AJAX_PATH).'model.ajax.php?a=get_user_course_report_resu |
|
|
|
|
$extra_fields = UserManager::get_extra_fields(0, 100, null, null, true, true); |
|
|
|
|
|
|
|
|
|
//The order is important you need to check the the $column variable in the model.ajax.php file |
|
|
|
|
$columns = array(get_lang('Company'), get_lang('TrainingHoursAccumulated'), get_lang('CountOfSubscribedUsers'), get_lang('AverageHoursPerStudent'), get_lang('CountCertificates')); |
|
|
|
|
$columns = array(get_lang('Company'), get_lang('TrainingHoursAccumulated'), get_lang('CountOfSubscriptions'), get_lang('CountOfUsers'), get_lang('AverageHoursPerStudent'), get_lang('CountCertificates')); |
|
|
|
|
|
|
|
|
|
//Column config |
|
|
|
|
$column_model = array( |
|
|
|
|
array('name'=>'extra_ruc', 'index'=>'extra_ruc', 'width'=>'100', 'align'=>'left','sortable'=>'false'), |
|
|
|
|
array('name'=>'training_hours', 'index'=>'training_hours', 'width'=>'100', 'align'=>'left'), |
|
|
|
|
array('name'=>'count_users', 'index'=>'count_users', 'width'=>'100', 'align'=>'left','sortable'=>'false'), |
|
|
|
|
array('name'=>'average_hours_per_user', 'index'=>'average_hours_per_user', 'width'=>'100', 'align'=>'left','sortable'=>'false'), |
|
|
|
|
array('name'=>'count_certificates', 'index'=>'count_certificates', 'width'=>'100', 'align'=>'left','sortable'=>'false'), |
|
|
|
|
array('name' => 'extra_ruc', 'index' => 'extra_ruc', 'width' => '100', 'align' => 'left', 'sortable' => 'false'), |
|
|
|
|
array('name' => 'training_hours', 'index' => 'training_hours', 'width' => '100', 'align' => 'left'), |
|
|
|
|
array('name' => 'count_users', 'index' => 'count_users', 'width' => '100', 'align' => 'left', 'sortable' => 'false'), |
|
|
|
|
array('name' => 'count_users_registered', 'index' => 'count_users_registered', 'width' => '100', 'align' => 'left', 'sortable' => 'false'), |
|
|
|
|
array('name' => 'average_hours_per_user', 'index' => 'average_hours_per_user', 'width' => '100', 'align' => 'left', 'sortable' => 'false'), |
|
|
|
|
array('name' => 'count_certificates', 'index' => 'count_certificates', 'width' => '100', 'align' => 'left', 'sortable' => 'false'), |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
if (!empty($extra_fields)) { |
|
|
|
|
foreach($extra_fields as $extra) { |
|
|
|
|
$col = array( |
|
|
|
|
'name' => $extra['1'], |
|
|
|
|
'index'=> $extra['1'], |
|
|
|
|
'width'=>'120', |
|
|
|
|
'sortable'=>'false' |
|
|
|
|
); |
|
|
|
|
$column_model[] = $col; |
|
|
|
|
|
|
|
|
|
$columns[] = $extra['3']; |
|
|
|
|
} |
|
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
//Autowidth |
|
|
|
|
$extra_params['autowidth'] = 'true'; |
|
|
|
|
//height auto |
|
|
|
@ -60,8 +46,7 @@ $extra_params['height'] = 'auto'; |
|
|
|
|
|
|
|
|
|
$htmlHeadXtra[] = '<script> |
|
|
|
|
$(function() { |
|
|
|
|
'.Display::grid_js('user_course_report', $url,$columns,$column_model,$extra_params, array(), null, true).' |
|
|
|
|
|
|
|
|
|
'.Display::grid_js('user_course_report', $url, $columns, $column_model, $extra_params, array(), null, true).' |
|
|
|
|
jQuery("#user_course_report").jqGrid("navGrid","#user_course_report_pager",{view:false, edit:false, add:false, del:false, search:false, excel:true}); |
|
|
|
|
jQuery("#user_course_report").jqGrid("navButtonAdd","#user_course_report_pager",{ |
|
|
|
|
caption:"", |
|
|
|
|