index.tpl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. <div class="search-student">
  2. {{ form }}
  3. </div>
  4. <div class="page-header">
  5. <h4>
  6. {{ 'Overview' | get_lang }}
  7. </h4>
  8. </div>
  9. <div class="view-global-followed">
  10. <div class="row">
  11. <div class="col-lg-3 col-sm-3">
  12. <div class="card">
  13. <div class="content">
  14. <div class="card-title"><a href="{{ _p.web_main }}mySpace/student.php">{{ 'FollowedStudents' | get_lang }}</a></div>
  15. <div class="row">
  16. <div class="col-xs-5">
  17. <div class="icon-big icon-student text-center">
  18. <i class="fa fa-graduation-cap" aria-hidden="true"></i>
  19. </div>
  20. </div>
  21. <div class="col-xs-7">
  22. <div class="numbers">
  23. <h2>{{ students }}</h2>
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. </div>
  30. <div class="col-lg-3 col-sm-3">
  31. <div class="card">
  32. <div class="content">
  33. <div class="card-title"><a href="{{ _p.web_main }}mySpace/users.php?status={{ studentboss }}">{{ 'FollowedStudentBosses' | get_lang }}</a></div>
  34. <div class="row">
  35. <div class="col-xs-5">
  36. <div class="icon-big icon-studentboss text-center">
  37. <i class="fa fa-address-book" aria-hidden="true"></i>
  38. </div>
  39. </div>
  40. <div class="col-xs-7">
  41. <div class="numbers">
  42. <h2>{{ studentbosses }}</h2>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. <div class="col-lg-3 col-sm-3">
  50. <div class="card">
  51. <div class="content">
  52. <div class="card-title"><a href="{{ _p.web_main }}mySpace/teachers.php">{{ 'FollowedTeachers' | get_lang }}</a></div>
  53. <div class="row">
  54. <div class="col-xs-5">
  55. <div class="icon-big icon-teachers text-center">
  56. <i class="fa fa-book" aria-hidden="true"></i>
  57. </div>
  58. </div>
  59. <div class="col-xs-7">
  60. <div class="numbers">
  61. <h2>{{ numberTeachers }}</h2>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. </div>
  68. <div class="col-lg-3 col-sm-3">
  69. <div class="card">
  70. <div class="content">
  71. <div class="card-title"><a href="{{ _p.web_main }}mySpace/users.php?status={{ drh }}">{{ 'FollowedHumanResources' | get_lang }}</a></div>
  72. <div class="row">
  73. <div class="col-xs-5">
  74. <div class="icon-big icon-humanresources text-center">
  75. <i class="fa fa-user" aria-hidden="true"></i>
  76. </div>
  77. </div>
  78. <div class="col-xs-7">
  79. <div class="numbers">
  80. <h2>{{ humanresources }}</h2>
  81. </div>
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. <div class="view-global">
  90. <div class="panel panel-default panel-view">
  91. <div class="panel-body">
  92. <div class="row">
  93. <div class="col-lg-3 col-sm-3">
  94. <div class="easy-donut">
  95. <div id="easypiechart-blue" class="easypiechart" data-percent="{{ total_user }}">
  96. <span class="percent">{{ total_user }}</span>
  97. </div>
  98. <div class="easypiechart-link">
  99. <a class="btn btn-default" href="{{ _p.web_main }}mySpace/users.php">
  100. {{ 'FollowedUsers' | get_lang }}
  101. </a>
  102. </div>
  103. </div>
  104. {% if _u.status == 1 %}
  105. <a href="{{ _p.web_main }}admin/dashboard_add_users_to_user.php?user={{ _u.id }}" class="btn btn-default btn-sm">
  106. <i class="fa fa-plus" aria-hidden="true"></i>
  107. </a>
  108. {% endif %}
  109. </div>
  110. <div class="col-lg-3 col-sm-3">
  111. <div class="easy-donut">
  112. <div id="easypiechart-orange" class="easypiechart" data-percent="{{ stats.courses }}">
  113. <span class="percent">{{ stats.courses }}</span>
  114. </div>
  115. <div class="easypiechart-link">
  116. <a class="btn btn-default" href="{{ _p.web_main }}mySpace/course.php">
  117. {{ 'AssignedCourses' | get_lang }}
  118. </a>
  119. </div>
  120. </div>
  121. {% if _u.status == 1 %}
  122. <a href="{{ _p.web_main }}mySpace/course.php" class="btn btn-default btn-sm">
  123. <i class="fa fa-plus" aria-hidden="true"></i>
  124. </a>
  125. {% endif %}
  126. </div>
  127. <div class="col-lg-3 col-sm-3">
  128. <div class="easy-donut">
  129. <div id="easypiechart-teal" class="easypiechart" data-percent="{{ stats.assigned_courses }}">
  130. <span class="percent">{{ stats.assigned_courses }}</span>
  131. </div>
  132. <div class="easypiechart-link">
  133. <a class="btn btn-default" href="{{ _p.web_main }}mySpace/course.php?follow">{{ 'FollowedCourses' | get_lang }}</a>
  134. </div>
  135. </div>
  136. {% if _u.status == 1 %}
  137. <a href="{{ _p.web_main }}mySpace/course.php?follow" class="btn btn-default btn-sm">
  138. <i class="fa fa-plus" aria-hidden="true"></i>
  139. </a>
  140. {% endif %}
  141. </div>
  142. <div class="col-lg-3 col-sm-3">
  143. <div class="easy-donut">
  144. <div id="easypiechart-red" class="easypiechart" data-percent="{{ stats.session_list |length }}">
  145. <span class="percent">{{ stats.session_list |length }}</span>
  146. </div>
  147. <div class="easypiechart-link">
  148. <a class="btn btn-default" href="{{ _p.web_main }}mySpace/session.php">{{ 'FollowedSessions' | get_lang }}</a>
  149. </div>
  150. </div>
  151. {% if _u.status == 1 %}
  152. <a href="{{ _p.web_main }}admin/dashboard_add_sessions_to_user.php?user={{ _u.id }}" class="btn btn-default btn-sm">
  153. <i class="fa fa-plus" aria-hidden="true"></i>
  154. </a>
  155. {% endif %}
  156. </div>
  157. </div>
  158. </div>
  159. </div>
  160. </div>
  161. <div class="page-header">
  162. <h4>
  163. {{ title }}
  164. </h4>
  165. </div>
  166. <div class="report-section">
  167. <div class="row">
  168. <div class="col-lg-3 col-sm-3">
  169. <div class="item-report">
  170. <div class="panel panel-default">
  171. <div class="panel-body">
  172. <div class="item-report-number">
  173. {{ report.AverageCoursePerStudent }}
  174. </div>
  175. </div>
  176. </div>
  177. <p>{{ 'AverageCoursePerStudent' | get_lang }}</p>
  178. </div>
  179. </div>
  180. <div class="col-lg-3 col-sm-3">
  181. <div class="item-report">
  182. <div class="panel panel-default">
  183. <div class="panel-body">
  184. <div class="item-report-number">
  185. {{ report.InactivesStudents }}
  186. </div>
  187. </div>
  188. </div>
  189. <p>{{ 'InactivesStudents' | get_lang }}</p>
  190. </div>
  191. </div>
  192. <div class="col-lg-3 col-sm-3">
  193. <div class="item-report">
  194. <div class="panel panel-default">
  195. <div class="panel-body">
  196. <div class="item-report-number">
  197. {{ report.AverageTimeSpentOnThePlatform }}
  198. </div>
  199. </div>
  200. </div>
  201. <p>{{ 'AverageTimeSpentOnThePlatform' | get_lang }}</p>
  202. </div>
  203. </div>
  204. <div class="col-lg-3 col-sm-3">
  205. <div class="item-report">
  206. <div class="panel panel-default">
  207. <div class="panel-body">
  208. <div class="item-report-number">
  209. {{ report.AverageProgressInLearnpath }}
  210. </div>
  211. </div>
  212. </div>
  213. <p>{{ 'AverageProgressInLearnpath' | get_lang }}</p>
  214. </div>
  215. </div>
  216. <div class="col-lg-3 col-sm-3">
  217. <div class="item-report">
  218. <div class="panel panel-default">
  219. <div class="panel-body">
  220. <div class="item-report-number">
  221. {{ report.AvgCourseScore }}
  222. </div>
  223. </div>
  224. </div>
  225. <p>{{ 'AvgCourseScore' | get_lang }}</p>
  226. </div>
  227. </div>
  228. <div class="col-lg-3 col-sm-3">
  229. <div class="item-report">
  230. <div class="panel panel-default">
  231. <div class="panel-body">
  232. <div class="item-report-number">
  233. {{ report.AveragePostsInForum }}
  234. </div>
  235. </div>
  236. </div>
  237. <p> {{ 'AveragePostsInForum' | get_lang }}</p>
  238. </div>
  239. </div>
  240. <div class="col-lg-3 col-sm-3">
  241. <div class="item-report">
  242. <div class="panel panel-default">
  243. <div class="panel-body">
  244. <div class="item-report-number">
  245. {{ report.AverageAssignments }}
  246. </div>
  247. </div>
  248. </div>
  249. <p> {{ 'AverageAssignments' | get_lang }}</p>
  250. </div>
  251. </div>
  252. </div>
  253. </div>
  254. <script type="text/javascript">
  255. $(function() {
  256. $('#easypiechart-teal').easyPieChart({
  257. scaleColor: false,
  258. barColor: '#1ebfae',
  259. lineWidth:8,
  260. trackColor: '#f2f2f2'
  261. });
  262. });
  263. $(function() {
  264. $('#easypiechart-orange').easyPieChart({
  265. scaleColor: false,
  266. barColor: '#ffb53e',
  267. lineWidth:8,
  268. trackColor: '#f2f2f2'
  269. });
  270. });
  271. $(function() {
  272. $('#easypiechart-red').easyPieChart({
  273. scaleColor: false,
  274. barColor: '#f9243f',
  275. lineWidth:8,
  276. trackColor: '#f2f2f2'
  277. });
  278. });
  279. $(function() {
  280. $('#easypiechart-blue').easyPieChart({
  281. scaleColor: false,
  282. barColor: '#30a5ff',
  283. lineWidth:8,
  284. trackColor: '#f2f2f2'
  285. });
  286. });
  287. </script>