group_space.php 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * This script shows the group space for one specific group, possibly displaying
  5. * a list of users in the group, subscribe or unsubscribe option, tutors...
  6. *
  7. * @package chamilo.group
  8. * @todo Display error message if no group ID specified
  9. */
  10. /* INIT SECTION */
  11. // Name of the language file that needs to be included
  12. $language_file = 'group';
  13. require_once '../inc/global.inc.php';
  14. $current_course_tool = TOOL_GROUP;
  15. // Notice for unauthorized people.
  16. api_protect_course_script(true);
  17. /* Libraries & config files */
  18. require_once api_get_path(SYS_CODE_PATH).'forum/forumfunction.inc.php';
  19. require_once api_get_path(SYS_CODE_PATH).'forum/forumconfig.inc.php';
  20. /* MAIN CODE */
  21. $group_id = api_get_group_id();
  22. $user_id = api_get_user_id();
  23. $current_group = GroupManager :: get_group_properties($group_id);
  24. if (empty($current_group)) {
  25. api_not_allowed(true);
  26. }
  27. $this_section = SECTION_COURSES;
  28. $nameTools = get_lang('GroupSpace');
  29. $interbreadcrumb[] = array('url' => 'group.php', 'name' => get_lang('Groups'));
  30. /* Ensure all private groups // Juan Carlos Raña Trabado */
  31. $forums_of_groups = get_forums_of_group($current_group['id']);
  32. $forum_state_public = 0;
  33. if (is_array($forums_of_groups)) {
  34. foreach ($forums_of_groups as $key => $value) {
  35. if ($value['forum_group_public_private'] == 'public') {
  36. $forum_state_public = 1;
  37. }
  38. }
  39. }
  40. if ($current_group['doc_state'] != 1 && $current_group['calendar_state'] != 1 && $current_group['work_state'] != 1 && $current_group['announcements_state'] != 1 && $current_group['wiki_state'] != 1 && $current_group['chat_state'] != 1 && $forum_state_public != 1) {
  41. if (!api_is_allowed_to_edit(null, true) && !GroupManager :: is_user_in_group($_user['user_id'], $current_group['id'])) {
  42. echo api_not_allowed($print_headers);
  43. }
  44. }
  45. /* Header */
  46. Display::display_header($nameTools.' '.Security::remove_XSS($current_group['name']), 'Group');
  47. /* Introduction section (editable by course admin) */
  48. Display::display_introduction_section(TOOL_GROUP);
  49. /* Actions and Action links */
  50. /*
  51. * User wants to register in this group
  52. */
  53. if (!empty($_GET['selfReg']) && GroupManager :: is_self_registration_allowed($user_id, $current_group['id'])) {
  54. GroupManager :: subscribe_users($user_id, $current_group['id']);
  55. Display :: display_normal_message(get_lang('GroupNowMember'));
  56. }
  57. /*
  58. * User wants to unregister from this group
  59. */
  60. if (!empty($_GET['selfUnReg']) && GroupManager :: is_self_unregistration_allowed($user_id, $current_group['id'])) {
  61. GroupManager :: unsubscribe_users($user_id, $current_group['id']);
  62. Display::display_normal_message(get_lang('StudentDeletesHimself'));
  63. }
  64. echo '<div class="actions">';
  65. echo '<a href="group.php">'.Display::return_icon('back.png', get_lang('BackToGroupList'), '', ICON_SIZE_MEDIUM).'</a>';
  66. /*
  67. * Register to group
  68. */
  69. $subscribe_group = '';
  70. if (GroupManager :: is_self_registration_allowed($user_id, $current_group['id'])) {
  71. $subscribe_group = '<a class="btn" href="'.api_get_self().'?selfReg=1&amp;group_id='.$current_group['id'].'" onclick="javascript: if(!confirm('."'".addslashes(api_htmlentities(get_lang("ConfirmYourChoice"), ENT_QUOTES))."'".')) return false;">'.get_lang("RegIntoGroup").'</a>';
  72. }
  73. /*
  74. * Unregister from group
  75. */
  76. $unsubscribe_group = '';
  77. if (GroupManager :: is_self_unregistration_allowed($user_id, $current_group['id'])) {
  78. $unsubscribe_group = '<a class="btn" href="'.api_get_self().'?selfUnReg=1" onclick="javascript: if(!confirm('."'".addslashes(api_htmlentities(get_lang("ConfirmYourChoice"), ENT_QUOTES))."'".')) return false;">'.get_lang("StudentUnsubscribe").'</a>';
  79. }
  80. echo '&nbsp;</div>';
  81. if (isset($_GET['action'])) {
  82. switch ($_GET['action']) {
  83. case 'show_msg':
  84. Display::display_normal_message(Security::remove_XSS($_GET['msg']));
  85. break;
  86. }
  87. }
  88. /* Main Display Area */
  89. $course_code = $_course['sysCode'];
  90. $is_course_member = CourseManager :: is_user_subscribed_in_real_or_linked_course(api_get_user_id(), api_get_course_int_id());
  91. /*
  92. * Edit the group
  93. */
  94. $edit_url = '';
  95. if (api_is_allowed_to_edit(false, true) or GroupManager :: is_tutor_of_group(api_get_user_id(), api_get_group_id())) {
  96. $my_origin = isset($origin) ? $origin : '';
  97. $edit_url = '<a href="group_edit.php?cidReq='.api_get_course_id().'&origin='.$my_origin.'&gidReq='.api_get_group_id().'">'.Display::return_icon('edit.png', get_lang('EditGroup'), '', ICON_SIZE_SMALL).'</a>';
  98. }
  99. echo Display::page_header(Security::remove_XSS($current_group['name']).' '.$edit_url.' '.$subscribe_group.' '.$unsubscribe_group);
  100. if (!empty($current_group['description'])) {
  101. echo '<p>'.Security::remove_XSS($current_group['description']).'</p>';
  102. }
  103. /*
  104. * Group Tools
  105. */
  106. // If the user is subscribed to the group or the user is a tutor of the group then
  107. if (api_is_allowed_to_edit(false, true) OR GroupManager :: is_user_in_group(api_get_user_id(), $current_group['id'])) {
  108. $actions_array = array();
  109. // Link to the forum of this group
  110. $forums_of_groups = get_forums_of_group($current_group['id']);
  111. if (is_array($forums_of_groups)) {
  112. if ($current_group['forum_state'] != GroupManager::TOOL_NOT_AVAILABLE) {
  113. foreach ($forums_of_groups as $key => $value) {
  114. if ($value['forum_group_public_private'] == 'public' || (/* !empty($user_subscribe_to_current_group) && */ $value['forum_group_public_private'] == 'private') || !empty($user_is_tutor) || api_is_allowed_to_edit(false, true)) {
  115. $actions_array[] = array(
  116. 'url' => '../forum/viewforum.php?forum='.$value['forum_id'].'&gidReq='.Security::remove_XSS($current_group['id']).'&amp;origin=group',
  117. 'content' => Display::return_icon('forum.png', get_lang('Forum').': '.$value['forum_title'], array(), 32)
  118. );
  119. }
  120. }
  121. }
  122. }
  123. if ($current_group['doc_state'] != GroupManager::TOOL_NOT_AVAILABLE) {
  124. // Link to the documents area of this group
  125. $actions_array[] = array(
  126. 'url' => '../document/document.php?'.api_get_cidreq(),
  127. 'content' => Display::return_icon('folder.png', get_lang('GroupDocument'), array(), 32)
  128. );
  129. }
  130. if ($current_group['calendar_state'] != GroupManager::TOOL_NOT_AVAILABLE) {
  131. // Link to a group-specific part of agenda
  132. $actions_array[] = array(
  133. 'url' => '../calendar/agenda.php?'.api_get_cidreq(),
  134. 'content' => Display::return_icon('agenda.png', get_lang('GroupCalendar'), array(), 32)
  135. );
  136. }
  137. if ($current_group['work_state'] != GroupManager::TOOL_NOT_AVAILABLE) {
  138. // Link to the works area of this group
  139. $actions_array[] = array(
  140. 'url' => '../work/work.php?'.api_get_cidreq(),
  141. 'content' => Display::return_icon('work.png', get_lang('GroupWork'), array(), 32)
  142. );
  143. }
  144. if ($current_group['announcements_state'] != GroupManager::TOOL_NOT_AVAILABLE) {
  145. // Link to a group-specific part of announcements
  146. $actions_array[] = array(
  147. 'url' => '../announcements/announcements.php?'.api_get_cidreq(),
  148. 'content' => Display::return_icon('announce.png', get_lang('GroupAnnouncements'), array(), 32)
  149. );
  150. }
  151. if ($current_group['wiki_state'] != GroupManager::TOOL_NOT_AVAILABLE) {
  152. // Link to the wiki area of this group
  153. $actions_array[] = array(
  154. 'url' => '../wiki/index.php?'.api_get_cidreq().'&amp;action=show&amp;title=index&amp;session_id='.api_get_session_id().'&amp;group_id='.$current_group['id'],
  155. 'content' => Display::return_icon('wiki.png', get_lang('GroupWiki'), array(), 32)
  156. );
  157. }
  158. if ($current_group['chat_state'] != GroupManager::TOOL_NOT_AVAILABLE) {
  159. // Link to the chat area of this group
  160. if (api_get_course_setting('allow_open_chat_window')) {
  161. $actions_array[] = array(
  162. 'url' => "javascript: void(0);\" onclick=\"window.open('../chat/chat.php?".api_get_cidreq()."&amp;toolgroup=".$current_group['id']."','window_chat_group_".$_SESSION['_cid']."_".$_SESSION['_gid']."','height=380, width=625, left=2, top=2, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no') \"",
  163. 'content' => Display::return_icon('chat.png', get_lang('Chat'), array(), 32)
  164. );
  165. } else {
  166. $actions_array[] = array(
  167. 'url' => "../chat/chat.php?".api_get_cidreq()."&amp;toolgroup=".$current_group['id'],
  168. 'content' => Display::return_icon('chat.png', get_lang('Chat'), array(), 32)
  169. );
  170. }
  171. }
  172. if (!empty($actions_array)) {
  173. echo Display::actions($actions_array);
  174. }
  175. } else {
  176. $actions_array = array();
  177. // Link to the forum of this group
  178. $forums_of_groups = get_forums_of_group($current_group['id']);
  179. if (is_array($forums_of_groups)) {
  180. if ($current_group['forum_state'] == GroupManager::TOOL_PUBLIC) {
  181. foreach ($forums_of_groups as $key => $value) {
  182. if ($value['forum_group_public_private'] == 'public') {
  183. $actions_array[] = array(
  184. 'url' => '../forum/viewforum.php?cidReq='.api_get_course_id().'&forum='.$value['forum_id'].'&gidReq='.Security::remove_XSS($current_group['id']).'&amp;origin=group',
  185. 'content' => Display::return_icon('forum.png', get_lang('GroupForum'), array(), ICON_SIZE_MEDIUM)
  186. );
  187. }
  188. }
  189. }
  190. }
  191. if ($current_group['doc_state'] == GroupManager::TOOL_PUBLIC) {
  192. // Link to the documents area of this group
  193. $actions_array[] = array(
  194. 'url' => '../document/document.php?cidReq='.api_get_course_id().'&amp;origin='.$origin,
  195. 'content' => Display::return_icon('folder.png', get_lang('GroupDocument'), array(), ICON_SIZE_MEDIUM)
  196. );
  197. }
  198. if ($current_group['calendar_state'] == GroupManager::TOOL_PUBLIC) {
  199. // Link to a group-specific part of agenda
  200. $actions_array[] = array(
  201. 'url' => '../calendar/agenda.php?'.api_get_cidreq(),
  202. 'content' => Display::return_icon('agenda.png', get_lang('GroupCalendar'), array(), ICON_SIZE_MEDIUM)
  203. );
  204. }
  205. if ($current_group['work_state'] == GroupManager::TOOL_PUBLIC) {
  206. // Link to the works area of this group
  207. $actions_array[] = array(
  208. 'url' => '../work/work.php?'.api_get_cidreq(),
  209. 'content' => Display::return_icon('work.png', get_lang('GroupWork'), array(), ICON_SIZE_MEDIUM)
  210. );
  211. }
  212. if ($current_group['announcements_state'] == GroupManager::TOOL_PUBLIC) {
  213. // Link to a group-specific part of announcements
  214. $actions_array[] = array(
  215. 'url' => '../announcements/announcements.php?'.api_get_cidreq(),
  216. 'content' => Display::return_icon('announce.png', get_lang('GroupAnnouncements'), array(), ICON_SIZE_MEDIUM)
  217. );
  218. }
  219. if ($current_group['wiki_state'] == GroupManager::TOOL_PUBLIC) {
  220. // Link to the wiki area of this group
  221. $actions_array[] = array(
  222. 'url' => '../wiki/index.php?'.api_get_cidreq().'&amp;action=show&amp;title=index&amp;session_id='.api_get_session_id().'&amp;group_id='.$current_group['id'],
  223. 'content' => Display::return_icon('wiki.png', get_lang('GroupWiki'), array(), 32)
  224. );
  225. }
  226. if ($current_group['chat_state'] == GroupManager::TOOL_PUBLIC) {
  227. // Link to the chat area of this group
  228. if (api_get_course_setting('allow_open_chat_window')) {
  229. $actions_array[] = array(
  230. 'url' => "javascript: void(0);\" onclick=\"window.open('../chat/chat.php?".api_get_cidreq()."&amp;toolgroup=".$current_group['id']."','window_chat_group_".$_SESSION['_cid']."_".$_SESSION['_gid']."','height=380, width=625, left=2, top=2, toolbar=no, menubar=no, scrollbars=yes, resizable=yes, location=no, directories=no, status=no') \"",
  231. 'content' => Display::return_icon('chat.png', get_lang('Chat'), array(), 32)
  232. );
  233. } else {
  234. $actions_array[] = array(
  235. 'url' => "../chat/chat.php?".api_get_cidreq()."&amp;toolgroup=".$current_group['id'],
  236. 'content' => Display::return_icon('chat.png', get_lang('Chat'), array(), 32)
  237. );
  238. }
  239. }
  240. if (!empty($actions_array)) {
  241. echo Display::actions($actions_array);
  242. }
  243. }
  244. /*
  245. * List all the tutors of the current group
  246. */
  247. $tutors = GroupManager::get_subscribed_tutors($current_group['id']);
  248. $tutor_info = '';
  249. if (count($tutors) == 0) {
  250. $tutor_info = get_lang('GroupNoneMasc');
  251. } else {
  252. isset($origin) ? $my_origin = $origin : $my_origin = '';
  253. foreach ($tutors as $index => $tutor) {
  254. $tab_user_info = api_get_user_info($tutor['user_id']);
  255. $username = api_htmlentities(sprintf(get_lang('LoginX'), $tab_user_info['username']), ENT_QUOTES);
  256. $image_path = UserManager::get_user_picture_path_by_id($tutor['user_id'], 'web', false, true);
  257. $image_repository = $image_path['dir'];
  258. $existing_image = $image_path['file'];
  259. $photo = '<img src="'.$image_repository.$existing_image.'" align="absbottom" alt="'.api_get_person_name($tutor['firstname'], $tutor['lastname']).'" width="32" height="32" title="'.api_get_person_name($tutor['firstname'], $tutor['lastname']).'" />';
  260. $tutor_info .= '<a href="../user/userInfo.php?origin='.$my_origin.'&amp;uInfo='.$tutor['user_id'].'">'.$photo.'&nbsp;'.Display::tag('span', api_get_person_name($tutor['firstname'], $tutor['lastname']), array('title' => $username)).'</a>';
  261. }
  262. }
  263. echo Display::page_subheader2(get_lang('GroupTutors'));
  264. if (!empty($tutor_info)) {
  265. echo $tutor_info;
  266. }
  267. echo '<br />';
  268. /*
  269. * List all the members of the current group
  270. */
  271. echo Display::page_subheader2(get_lang('GroupMembers'));
  272. $table = new SortableTable('group_users', 'get_number_of_group_users', 'get_group_user_data', (api_is_western_name_order() xor api_sort_by_first_name()) ? 2 : 1);
  273. $my_cidreq = isset($_GET['cidReq']) ? Security::remove_XSS($_GET['cidReq']) : '';
  274. $my_origin = isset($_GET['origin']) ? Security::remove_XSS($_GET['origin']) : '';
  275. $my_gidreq = isset($_GET['gidReq']) ? Security::remove_XSS($_GET['gidReq']) : '';
  276. $parameters = array('cidReq' => $my_cidreq, 'origin' => $my_origin, 'gidReq' => $my_gidreq);
  277. $table->set_additional_parameters($parameters);
  278. $table->set_header(0, '');
  279. if (api_is_western_name_order()) {
  280. $table->set_header(1, get_lang('FirstName'));
  281. $table->set_header(2, get_lang('LastName'));
  282. } else {
  283. $table->set_header(1, get_lang('LastName'));
  284. $table->set_header(2, get_lang('FirstName'));
  285. }
  286. if (api_get_setting('show_email_addresses') == 'true') {
  287. $table->set_header(3, get_lang('Email'));
  288. $table->set_column_filter(3, 'email_filter');
  289. } else {
  290. if (api_is_allowed_to_edit() == 'true') {
  291. $table->set_header(3, get_lang('Email'));
  292. $table->set_column_filter(3, 'email_filter');
  293. }
  294. }
  295. //the order of these calls is important
  296. $table->set_column_filter(1, 'user_name_filter');
  297. $table->set_column_filter(2, 'user_name_filter');
  298. $table->set_column_filter(0, 'user_icon_filter');
  299. $table->display();
  300. /**
  301. * Get the number of subscribed users to the group
  302. *
  303. * @return integer
  304. *
  305. * @author Patrick Cool <patrick.cool@UGent.be>, Ghent University, Belgium
  306. * @version April 2008
  307. */
  308. function get_number_of_group_users()
  309. {
  310. global $current_group;
  311. $course_id = api_get_course_int_id();
  312. // Database table definition
  313. $table_group_user = Database :: get_course_table(TABLE_GROUP_USER);
  314. // Query
  315. $sql = "SELECT count(id) AS number_of_users FROM ".$table_group_user."
  316. WHERE c_id = $course_id AND group_id='".Database::escape_string($current_group['id'])."'";
  317. $result = Database::query($sql);
  318. $return = Database::fetch_array($result, 'ASSOC');
  319. return $return['number_of_users'];
  320. }
  321. /**
  322. * Get the details of the users in a group
  323. *
  324. * @param integer $from starting row
  325. * @param integer $number_of_items number of items to be displayed
  326. * @param integer $column sorting colum
  327. * @param integer $direction sorting direction
  328. * @return array
  329. *
  330. * @author Patrick Cool <patrick.cool@UGent.be>, Ghent University, Belgium
  331. * @version April 2008
  332. */
  333. function get_group_user_data($from, $number_of_items, $column, $direction)
  334. {
  335. global $current_group;
  336. // Database table definition
  337. $table_group_user = Database :: get_course_table(TABLE_GROUP_USER);
  338. $table_user = Database :: get_main_table(TABLE_MAIN_USER);
  339. $course_id = api_get_course_int_id();
  340. // Query
  341. if (api_get_setting('show_email_addresses') == 'true') {
  342. $sql = "SELECT user.user_id AS col0,
  343. ".(api_is_western_name_order() ?
  344. "user.firstname AS col1,
  345. user.lastname AS col2," :
  346. "user.lastname AS col1,
  347. user.firstname AS col2,"
  348. )."
  349. user.email AS col3
  350. FROM ".$table_user." user, ".$table_group_user." group_rel_user
  351. WHERE group_rel_user.c_id = $course_id AND group_rel_user.user_id = user.user_id
  352. AND group_rel_user.group_id = '".Database::escape_string($current_group['id'])."'";
  353. $sql .= " ORDER BY col$column $direction ";
  354. $sql .= " LIMIT $from,$number_of_items";
  355. } else {
  356. if (api_is_allowed_to_edit()) {
  357. $sql = "SELECT DISTINCT
  358. u.user_id AS col0,
  359. ".(api_is_western_name_order() ?
  360. "u.firstname AS col1,
  361. u.lastname AS col2," :
  362. "u.lastname AS col1,
  363. u.firstname AS col2,"
  364. )."
  365. u.email AS col3
  366. FROM ".$table_user." u INNER JOIN ".$table_group_user." gu ON (gu.user_id = u.user_id) AND gu.c_id = $course_id
  367. WHERE gu.group_id = '".Database::escape_string($current_group['id'])."'";
  368. $sql .= " ORDER BY col$column $direction ";
  369. $sql .= " LIMIT $from,$number_of_items";
  370. } else {
  371. $sql = "SELECT DISTINCT
  372. user.user_id AS col0,
  373. ".(api_is_western_name_order() ?
  374. "user.firstname AS col1,
  375. user.lastname AS col2 " :
  376. "user.lastname AS col1,
  377. user.firstname AS col2 "
  378. )."
  379. FROM ".$table_user." user, ".$table_group_user." group_rel_user
  380. WHERE group_rel_user.c_id = $course_id AND group_rel_user.user_id = user.user_id
  381. AND group_rel_user.group_id = '".Database::escape_string($current_group['id'])."'";
  382. $sql .= " ORDER BY col$column $direction ";
  383. $sql .= " LIMIT $from,$number_of_items";
  384. }
  385. }
  386. $return = array();
  387. $result = Database::query($sql);
  388. while ($row = Database::fetch_row($result)) {
  389. $return[] = $row;
  390. }
  391. return $return;
  392. }
  393. /**
  394. * Returns a mailto-link
  395. * @param string $email An email-address
  396. * @return string HTML-code with a mailto-link
  397. */
  398. function email_filter($email)
  399. {
  400. return Display :: encrypted_mailto_link($email, $email);
  401. }
  402. /**
  403. * Display a user icon that links to the user page
  404. *
  405. * @param integer $user_id the id of the user
  406. * @return html code
  407. *
  408. * @author Patrick Cool <patrick.cool@UGent.be>, Ghent University, Belgium
  409. * @version April 2008
  410. */
  411. function user_icon_filter($user_id)
  412. {
  413. global $origin;
  414. $userinfo = api_get_user_info($user_id);
  415. $image_path = UserManager::get_user_picture_path_by_id($user_id, 'web', false, true);
  416. $image_repository = $image_path['dir'];
  417. $existing_image = $image_path['file'];
  418. $photo = '<center><img src="'.$image_repository.$existing_image.'" alt="'.$userinfo['complete_name'].'" width="22" height="22" title="'.$userinfo['complete_name'].'" /></center>';
  419. return '<a href="../user/userInfo.php?origin='.$origin.'&amp;uInfo='.$user_id.'">'.$photo;
  420. }
  421. /**
  422. * Return user profile link around the given user name.
  423. *
  424. * The parameters use a trick of the sorteable table, where the first param is
  425. * the original value of the column
  426. * @param string User name (value of the column at the time of calling)
  427. * @param string URL parameters
  428. * @param array Row of the "sortable table" as it is at the time of function call - we extract the user ID from there
  429. * @return string HTML link
  430. */
  431. function user_name_filter($name, $url_params, $row)
  432. {
  433. global $origin;
  434. $tab_user_info = api_get_user_info($row[0]);
  435. $username = api_htmlentities(sprintf(get_lang('LoginX'), $tab_user_info['username']), ENT_QUOTES);
  436. return '<a href="../user/userInfo.php?uInfo='.$row[0].'&amp;'.$url_params.'" title="'.$username.'">'.$name.'</a>';
  437. }
  438. // Footer
  439. $orig = isset($origin) ? $origin : '';
  440. if ($orig != 'learnpath') {
  441. Display::display_footer();
  442. }