| @@ 67-90 (lines=24) @@ | ||
| 64 | * it's important to use the name 'get_block' for being used from dashboard controller |
|
| 65 | * @return array column and content html |
|
| 66 | */ |
|
| 67 | public function get_block() |
|
| 68 | { |
|
| 69 | global $charset; |
|
| 70 | $column = 1; |
|
| 71 | $data = array(); |
|
| 72 | $students_attendance_graph = $this->get_students_attendance_graph(); |
|
| 73 | ||
| 74 | $html = '<div class="panel panel-default" id="intro"> |
|
| 75 | <div class="panel-heading"> |
|
| 76 | '.get_lang('StudentsInformationsGraph').' |
|
| 77 | <div class="pull-right"><a class="btn btn-danger btn-xs" onclick="javascript:if(!confirm(\''.addslashes(api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES, $charset)).'\')) return false;" href="index.php?action=disable_block&path='.$this->path.'"> |
|
| 78 | <em class="fa fa-times"></em> |
|
| 79 | </a></div> |
|
| 80 | </div> |
|
| 81 | <div class="panel-body" align="center"> |
|
| 82 | <div style="padding:10px;"><strong>'.get_lang('AttendancesFaults').'</strong></div> |
|
| 83 | '.$students_attendance_graph.' |
|
| 84 | </div> |
|
| 85 | </div>'; |
|
| 86 | $data['column'] = $column; |
|
| 87 | $data['content_html'] = $html; |
|
| 88 | return $data; |
|
| 89 | } |
|
| 90 | ||
| 91 | /** |
|
| 92 | * This method return a graph containing information about students evaluation, |
|
| 93 | * it's used inside get_block method for showing it inside dashboard interface |
|
| @@ 62-87 (lines=26) @@ | ||
| 59 | * it's important to use the name 'get_block' for beeing used from dashboard controller |
|
| 60 | * @return array column and content html |
|
| 61 | */ |
|
| 62 | public function get_block() |
|
| 63 | { |
|
| 64 | global $charset; |
|
| 65 | $column = 1; |
|
| 66 | $data = array(); |
|
| 67 | $teacher_information_graph = $this->get_teachers_information_graph(); |
|
| 68 | $html = ' |
|
| 69 | <div class="panel panel-default" id="intro"> |
|
| 70 | <div class="panel-heading">'.get_lang('TeachersInformationsGraph').' |
|
| 71 | <div class="pull-right"><a class="btn btn-danger btn-xs" onclick="javascript:if(!confirm(\''.addslashes(api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES, $charset)).'\')) return false;" href="index.php?action=disable_block&path='.$this->path.'"> |
|
| 72 | <em class="fa fa-times"></em> |
|
| 73 | </a></div> |
|
| 74 | </div> |
|
| 75 | <div class="panel-body" align="center"> |
|
| 76 | <div style="padding:10px;"><strong>'.get_lang('TimeSpentOnThePlatformLastWeekByDay').'</strong></div> |
|
| 77 | '.$teacher_information_graph.' |
|
| 78 | </div> |
|
| 79 | </div> |
|
| 80 | '; |
|
| 81 | ||
| 82 | $data['column'] = $column; |
|
| 83 | $data['content_html'] = $html; |
|
| 84 | ||
| 85 | return $data; |
|
| 86 | } |
|
| 87 | ||
| 88 | /** |
|
| 89 | * This method return a content html, it's used inside get_block method for showing it inside dashboard interface |
|
| 90 | * @return string content html |
|