lp_view.php 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * This file was originally the copy of document.php, but many modifications happened since then ;
  5. * the direct file view is not needed anymore, if the user uploads a scorm zip file, a directory
  6. * will be automatically created for it, and the files will be uncompressed there for example ;
  7. *
  8. * @package chamilo.learnpath
  9. * @author Yannick Warnier <ywarnier@beeznest.org> - redesign
  10. * @author Denes Nagy, principal author
  11. * @author Isthvan Mandak, several new features
  12. * @author Roan Embrechts, code improvements and refactoring
  13. */
  14. /**
  15. * Code
  16. */
  17. use \ChamiloSession as Session;
  18. $_SESSION['whereami'] = 'lp/view';
  19. $this_section = SECTION_COURSES;
  20. if ($lp_controller_touched != 1) {
  21. header('location: lp_controller.php?action=view&item_id='.intval($_REQUEST['item_id']));
  22. exit;
  23. }
  24. /* Libraries */
  25. require_once '../inc/global.inc.php';
  26. require_once 'learnpath.class.php';
  27. require_once 'learnpathItem.class.php';
  28. //To prevent the template class
  29. $show_learnpath = true;
  30. api_protect_course_script();
  31. $lp_id = intval($_GET['lp_id']);
  32. // Check if the learning path is visible for student - (LP requisites)
  33. if (!api_is_allowed_to_edit(null, true, true, false) && !learnpath::is_lp_visible_for_student($lp_id, api_get_user_id())) {
  34. api_not_allowed(true);
  35. }
  36. //Checking visibility (eye icon)
  37. $visibility = api_get_item_visibility(
  38. api_get_course_info(),
  39. TOOL_LEARNPATH,
  40. $lp_id,
  41. $action,
  42. api_get_user_id(),
  43. api_get_session_id()
  44. );
  45. if (!api_is_allowed_to_edit(false, true, false, false) && intval($visibility) == 0) {
  46. api_not_allowed(true);
  47. }
  48. if (empty($_SESSION['oLP'])) {
  49. api_not_allowed(true);
  50. }
  51. $debug = 0;
  52. if ($debug) {
  53. error_log('------ Entering lp_view.php -------');
  54. }
  55. $_SESSION['oLP']->error = '';
  56. $lp_item_id = $_SESSION['oLP']->get_current_item_id();
  57. $lp_type = $_SESSION['oLP']->get_type();
  58. $course_code = api_get_course_id();
  59. $course_id = api_get_course_int_id();
  60. $user_id = api_get_user_id();
  61. $platform_theme = api_get_setting('stylesheets');
  62. $my_style = $platform_theme;
  63. //$htmlHeadXtra[] = '<script src="'.api_get_path(WEB_LIBRARY_PATH).'javascript/lp_minipanel/jquery.lp_minipanel.js" type="text/javascript"></script>';
  64. $htmlHeadXtra[] = $app['template']->fetch('default/javascript/newscorm/minipanel.tpl');
  65. $htmlHeadXtra[] = '<script>
  66. $(document).ready(function(){
  67. $("div#log_content_cleaner").bind("click", function() {
  68. $("div#log_content").empty();
  69. });
  70. });
  71. var chamilo_xajax_handler = window.oxajax;
  72. </script>';
  73. if ($_SESSION['oLP']->mode == 'embedframe' || $_SESSION['oLP']->get_hide_toc_frame() == 1) {
  74. $htmlHeadXtra[] = '<script>
  75. $(document).ready(function(){
  76. toogle_minipanel();
  77. });
  78. </script>';
  79. }
  80. //Impress js
  81. if ($_SESSION['oLP']->mode == 'impress') {
  82. $lp_id = $_SESSION['oLP']->get_id();
  83. $url = api_get_path(WEB_CODE_PATH)."newscorm/lp_impress.php?lp_id=$lp_id&".api_get_cidreq();
  84. header("Location: $url");
  85. exit;
  86. }
  87. // Prepare variables for the test tool (just in case) - honestly, this should disappear later on.
  88. $_SESSION['scorm_view_id'] = $_SESSION['oLP']->get_view_id();
  89. $_SESSION['scorm_item_id'] = $lp_item_id;
  90. // Reinit exercises variables to avoid spacename clashes (see exercise tool)
  91. if (isset($exerciseResult) || isset($_SESSION['exerciseResult'])) {
  92. Session::erase($exerciseResult);
  93. }
  94. unset($_SESSION['objExercise']);
  95. unset($_SESSION['questionList']);
  96. // additional APIs
  97. $htmlHeadXtra[] = '<script>
  98. chamilo_courseCode = "'.$course_code.'";
  99. </script>';
  100. // Document API
  101. $htmlHeadXtra[] = '<script src="'.api_get_path(WEB_CODE_PATH).'newscorm/js/documentapi.js" type="text/javascript"></script>';
  102. // Storage API
  103. $htmlHeadXtra[] = '<script>
  104. var sv_user = \''.api_get_user_id().'\';
  105. var sv_course = chamilo_courseCode;
  106. var sv_sco = \''.intval($_REQUEST['lp_id']).'\';
  107. </script>'; // FIXME fetch sco and userid from a more reliable source directly in sotrageapi.js
  108. $htmlHeadXtra[] = '<script type="text/javascript" src="'.api_get_path(WEB_CODE_PATH).'newscorm/js/storageapi.js"></script>';
  109. if ($debug) {
  110. error_log(" src: $src ");
  111. error_log(" lp_type: $lp_type ");
  112. }
  113. $get_toc_list = $_SESSION['oLP']->get_toc();
  114. $type_quiz = false;
  115. foreach ($get_toc_list as $toc) {
  116. if ($toc['id'] == $lp_item_id && ($toc['type'] == 'quiz')) {
  117. $type_quiz = true;
  118. }
  119. }
  120. if (!isset($src)) {
  121. $src = null;
  122. switch ($lp_type) {
  123. case 1:
  124. $_SESSION['oLP']->stop_previous_item();
  125. $htmlHeadXtra[] = '<script src="'.api_get_path(WEB_CODE_PATH).'newscorm/scorm_api.php" type="text/javascript"></script>';
  126. $prereq_check = $_SESSION['oLP']->prerequisites_match($lp_item_id);
  127. if ($prereq_check === true) {
  128. $src = $_SESSION['oLP']->get_link('http', $lp_item_id, $get_toc_list);
  129. //Prevents FF 3.6 + Adobe Reader 9 bug see BT#794 when calling a pdf file in a LP.
  130. $file_info = parse_url($src);
  131. $file_info = pathinfo($file_info['path']);
  132. if (isset($file_info['extension']) && api_strtolower(substr($file_info['extension'], 0, 3) == 'pdf')) {
  133. $src = api_get_path(WEB_CODE_PATH).'newscorm/lp_view_item.php?lp_item_id='.$lp_item_id;
  134. }
  135. $_SESSION['oLP']->start_current_item(); // starts time counter manually if asset
  136. } else {
  137. $src = 'blank.php?error=prerequisites';
  138. }
  139. break;
  140. case 2:
  141. // save old if asset
  142. $_SESSION['oLP']->stop_previous_item(); // save status manually if asset
  143. $htmlHeadXtra[] = '<script src="'.api_get_path(WEB_CODE_PATH).'newscorm/scorm_api.php" type="text/javascript" language="javascript"></script>';
  144. $prereq_check = $_SESSION['oLP']->prerequisites_match($lp_item_id);
  145. if ($prereq_check === true) {
  146. $src = $_SESSION['oLP']->get_link('http', $lp_item_id, $get_toc_list);
  147. $_SESSION['oLP']->start_current_item(); // starts time counter manually if asset
  148. } else {
  149. $src = 'blank.php?error=prerequisites';
  150. }
  151. break;
  152. case 3:
  153. // aicc
  154. $_SESSION['oLP']->stop_previous_item(); // save status manually if asset
  155. $htmlHeadXtra[] = '<script src="'.$_SESSION['oLP']->get_js_lib(
  156. ).'" type="text/javascript" language="javascript"></script>';
  157. $prereq_check = $_SESSION['oLP']->prerequisites_match($lp_item_id);
  158. if ($prereq_check === true) {
  159. $src = $_SESSION['oLP']->get_link('http', $lp_item_id, $get_toc_list);
  160. $_SESSION['oLP']->start_current_item(); // starts time counter manually if asset
  161. } else {
  162. $src = 'blank.php';
  163. }
  164. break;
  165. case 4:
  166. break;
  167. }
  168. }
  169. $autostart = 'true';
  170. // Update status, total_time from lp_item_view table when you finish the exercises in learning path.
  171. if ($debug) {
  172. error_log('$type_quiz: '.$type_quiz);
  173. error_log('$_REQUEST[exeId]: '.intval($_REQUEST['exeId']));
  174. error_log('$lp_id: '.$lp_id);
  175. error_log('$_GET[lp_item_id]: '.intval($_GET['lp_item_id']));
  176. }
  177. if (!$_SESSION['oLP']->check_attempts()) {
  178. api_not_allowed(true);
  179. }
  180. if ($type_quiz && !empty($_REQUEST['exeId']) && isset($lp_id) && isset($_GET['lp_item_id'])) {
  181. global $src;
  182. $_SESSION['oLP']->items[$_SESSION['oLP']->current]->write_to_db();
  183. $TBL_TRACK_EXERCICES = Database::get_main_table(TABLE_STATISTIC_TRACK_E_EXERCICES);
  184. $TBL_LP_ITEM_VIEW = Database::get_course_table(TABLE_LP_ITEM_VIEW);
  185. $TBL_LP_ITEM = Database::get_course_table(TABLE_LP_ITEM);
  186. $safe_item_id = intval($_GET['lp_item_id']);
  187. $safe_id = $lp_id;
  188. $safe_exe_id = intval($_REQUEST['exeId']);
  189. if ($safe_id == strval(intval($safe_id)) && $safe_item_id == strval(intval($safe_item_id))) {
  190. $sql = 'SELECT start_date, exe_date, exe_result, exe_weighting FROM '.$TBL_TRACK_EXERCICES.' WHERE exe_id = '.$safe_exe_id;
  191. if ($debug) {
  192. error_log($sql);
  193. }
  194. $res = Database::query($sql);
  195. $row_dates = Database::fetch_array($res);
  196. $time_start_date = api_strtotime($row_dates['start_date'], 'UTC');
  197. $time_exe_date = api_strtotime($row_dates['exe_date'], 'UTC');
  198. $mytime = ((int)$time_exe_date - (int)$time_start_date);
  199. $score = (float)$row_dates['exe_result'];
  200. $max_score = (float)$row_dates['exe_weighting'];
  201. $sql_upd_max_score = "UPDATE $TBL_LP_ITEM SET max_score = '$max_score' WHERE c_id = $course_id AND id = '".$safe_item_id."'";
  202. if ($debug) {
  203. error_log($sql_upd_max_score);
  204. }
  205. Database::query($sql_upd_max_score);
  206. $sql_last_attempt = "SELECT id FROM $TBL_LP_ITEM_VIEW WHERE c_id = $course_id AND lp_item_id = '$safe_item_id' AND lp_view_id = '".$_SESSION['oLP']->lp_view_id."' order by id desc limit 1";
  207. $res_last_attempt = Database::query($sql_last_attempt);
  208. if ($debug) {
  209. error_log($sql_last_attempt);
  210. }
  211. if (Database::num_rows($res_last_attempt)) {
  212. $row_last_attempt = Database::fetch_row($res_last_attempt);
  213. $lp_item_view_id = $row_last_attempt[0];
  214. $sql_upd_score = "UPDATE $TBL_LP_ITEM_VIEW SET status = 'completed' , score = $score, total_time = $mytime
  215. WHERE id='".$lp_item_view_id."' AND c_id = $course_id ";
  216. if ($debug) {
  217. error_log($sql_upd_score);
  218. }
  219. Database::query($sql_upd_score);
  220. $update_query = "UPDATE $TBL_TRACK_EXERCICES SET orig_lp_item_view_id = $lp_item_view_id WHERE exe_id = ".$safe_exe_id;
  221. Database::query($update_query);
  222. }
  223. }
  224. if (intval($_GET['fb_type']) > 0) {
  225. $src = 'blank.php?msg=exerciseFinished';
  226. } else {
  227. $src = api_get_path(WEB_CODE_PATH).'exercice/result.php?origin=learnpath&id='.$safe_exe_id;
  228. if ($debug) {
  229. error_log('Calling URL: '.$src);
  230. }
  231. }
  232. $autostart = 'false';
  233. }
  234. $_SESSION['oLP']->set_previous_item($lp_item_id);
  235. $nameTools = Security :: remove_XSS($_SESSION['oLP']->get_name());
  236. $save_setting = api_get_setting('show_navigation_menu');
  237. global $_setting;
  238. $_setting['show_navigation_menu'] = 'false';
  239. $scorm_css_header = true;
  240. $lp_theme_css = $_SESSION['oLP']->get_theme(
  241. ); // Sets the css theme of the LP this call is also use at the frames (toc, nav, message).
  242. if ($_SESSION['oLP']->mode == 'fullscreen') {
  243. $htmlHeadXtra[] = "<script>window.open('$src','content_id','toolbar=0,location=0,status=0,scrollbars=1,resizable=1');</script>";
  244. }
  245. // Not in fullscreen mode.
  246. Display::display_reduced_header($nameTools);
  247. // Check if audio recorder needs to be in studentview.
  248. if (isset($_SESSION['status']) && $_SESSION['status'][$course_code] == 5) {
  249. $audio_recorder_studentview = true;
  250. } else {
  251. $audio_recorder_studentview = false;
  252. }
  253. // Set flag to ensure lp_header.php is loaded by this script (flag is unset in lp_header.php).
  254. $_SESSION['loaded_lp_view'] = true;
  255. $display_none = '';
  256. $margin_left = '305px';
  257. //Media player code
  258. $display_mode = $_SESSION['oLP']->mode;
  259. $scorm_css_header = true;
  260. $lp_theme_css = $_SESSION['oLP']->get_theme();
  261. // Setting up the CSS theme if exists.
  262. if (!empty ($lp_theme_css) && !empty ($mycourselptheme) && $mycourselptheme != -1 && $mycourselptheme == 1) {
  263. global $lp_theme_css;
  264. } else {
  265. $lp_theme_css = $my_style;
  266. }
  267. $progress_bar = $_SESSION['oLP']->get_progress_bar('', -1, '', true);
  268. $navigation_bar = $_SESSION['oLP']->get_navigation_bar();
  269. $mediaplayer = $_SESSION['oLP']->get_mediaplayer($autostart);
  270. $tbl_lp_item = Database::get_course_table(TABLE_LP_ITEM);
  271. $show_audioplayer = false;
  272. // Getting all the information about the item.
  273. $sql = "SELECT audio FROM ".$tbl_lp_item." WHERE c_id = $course_id AND lp_id = '".$_SESSION['oLP']->lp_id."'";
  274. $res_media = Database::query($sql);
  275. if (Database::num_rows($res_media) > 0) {
  276. while ($row_media = Database::fetch_array($res_media)) {
  277. if (!empty($row_media['audio'])) {
  278. $show_audioplayer = true;
  279. break;
  280. }
  281. }
  282. }
  283. echo '<div id="learning_path_main" style="width:100%;height:100%;">';
  284. $is_allowed_to_edit = api_is_allowed_to_edit(null, true, false, false);
  285. if ($is_allowed_to_edit) {
  286. echo '<div id="learning_path_breadcrumb_zone">';
  287. global $interbreadcrumb;
  288. $interbreadcrumb[] = array(
  289. 'url' => 'lp_controller.php?action=list&isStudentView=false',
  290. 'name' => get_lang('LearningPaths')
  291. );
  292. $interbreadcrumb[] = array(
  293. 'url' => api_get_self()."?action=add_item&type=step&lp_id=".$_SESSION['oLP']->lp_id."&isStudentView=false",
  294. 'name' => $_SESSION['oLP']->get_name()
  295. );
  296. $interbreadcrumb[] = array('url' => '#', 'name' => get_lang('Preview'));
  297. //$interbreadcrumb[] = array('type' => 'right', 'url' => api_get_self()."?action=add_item&type=step&lp_id=".$_SESSION['oLP']->lp_id."&isStudentView=false", 'name' => get_lang('Edit'), 'class' => 'btn btn-mini btn-warning');
  298. echo $app['template']->returnBreadcrumb($interbreadcrumb, null, null);
  299. echo '</div>';
  300. }
  301. echo '<div id="learning_path_left_zone" style="'.$display_none.'"> ';
  302. echo '<div id="header">
  303. <table>
  304. <tr>
  305. <td>';
  306. echo '<a href="lp_controller.php?action=return_to_course_homepage&'.api_get_cidreq().'" target="_self" onclick="javascript: window.parent.API.save_asset();">
  307. '.Display::return_icon('lp_arrow.gif').'
  308. </a>
  309. </td>
  310. <td>';
  311. if ($is_allowed_to_edit) {
  312. echo '<a class="link no-border" href="lp_controller.php?isStudentView=false&action=return_to_course_homepage&'.api_get_cidreq(
  313. ).'" target="_self" onclick="javascript: window.parent.API.save_asset();">';
  314. } else {
  315. echo '<a class="link no-border" href="lp_controller.php?action=return_to_course_homepage&'.api_get_cidreq(
  316. ).'" target="_self" onclick="javascript: window.parent.API.save_asset();">';
  317. }
  318. echo get_lang('CourseHomepageLink').'
  319. </a>
  320. </td>
  321. </tr>
  322. </table>
  323. </div>';
  324. ?>
  325. <!-- end header -->
  326. <!-- Author image preview -->
  327. <div id="author_image">
  328. <div id="author_icon">
  329. <?php
  330. if ($_SESSION['oLP']->get_preview_image() != '') {
  331. $picture = getimagesize(
  332. api_get_path(SYS_COURSE_PATH).api_get_course_path(
  333. ).'/upload/learning_path/images/'.$_SESSION['oLP']->get_preview_image()
  334. );
  335. $style = null;
  336. if ($picture['1'] < 96) {
  337. $style = ' style="padding-top:'.((94 - $picture['1']) / 2).'px;" ';
  338. }
  339. $size = ($picture['0'] > 104 && $picture['1'] > 96) ? ' width="104" height="96" ' : $style;
  340. $my_path = $_SESSION['oLP']->get_preview_image_path();
  341. echo '<img src="'.$my_path.'">';
  342. } else {
  343. echo Display :: display_icon('unknown_250_100.jpg');
  344. }
  345. ?>
  346. </div>
  347. <div id="lp_navigation_elem">
  348. <?php echo $navigation_bar; ?>
  349. <div id="progress_bar">
  350. <?php echo $progress_bar; ?>
  351. </div>
  352. </div>
  353. </div>
  354. <!-- end image preview Layout -->
  355. <div id="author_name">
  356. <?php echo $_SESSION['oLP']->get_author(); ?>
  357. </div>
  358. <!-- media player layout -->
  359. <?php
  360. if ($show_audioplayer) {
  361. echo '<div id="lp_media_file">';
  362. echo $mediaplayer;
  363. echo '</div>';
  364. }
  365. ?>
  366. <!-- end media player layout -->
  367. <!-- TOC layout -->
  368. <div id="toc_id" name="toc_name" style="overflow: auto; padding:0;margin-top:0px;width:100%;float:left">
  369. <div id="learning_path_toc">
  370. <?php echo $_SESSION['oLP']->get_html_toc($get_toc_list); ?>
  371. </div>
  372. </div>
  373. <!-- end TOC layout -->
  374. </div>
  375. <!-- end left zone -->
  376. <!-- right zone -->
  377. <div id="learning_path_right_zone" style="margin-left:<?php echo $margin_left;?>;height:100%">
  378. <?php
  379. // hub 26-05-2010 Fullscreen or not fullscreen
  380. $height = '100%';
  381. if ($_SESSION['oLP']->mode == 'fullscreen') {
  382. echo '<iframe id="content_id_blank" name="content_name_blank" src="blank.php" border="0" frameborder="0" style="width:100%;height:'.$height.'" allowFullScreen></iframe>';
  383. } else {
  384. echo '<iframe id="content_id" name="content_name" src="'.$src.'" border="0" frameborder="0" style="display: block; width:100%;height:'.$height.'" allowFullScreen></iframe>';
  385. }
  386. ?>
  387. </div>
  388. <!-- end right Zone -->
  389. </div>
  390. <script>
  391. // Resize right and left pane to full height (HUB 20-05-2010).
  392. function updateContentHeight() {
  393. document.body.style.overflow = 'hidden';
  394. var IE = window.navigator.appName.match(/microsoft/i);
  395. var hauteurHeader = document.getElementById('header').offsetHeight;
  396. var hauteurAuthorImg = document.getElementById('author_image').offsetHeight;
  397. var hauteurAuthorName = document.getElementById('author_name').offsetHeight;
  398. var hauteurMedia = 0;
  399. if ($("#lp_media_file").length != 0) {
  400. hauteurMedia = document.getElementById('lp_media_file').offsetHeight;
  401. }
  402. var hauteurTitre = document.getElementById('scorm_title').offsetHeight;
  403. var hauteurAction = 0;
  404. if (document.getElementById('actions_lp')) hauteurAction = document.getElementById('actions_lp').offsetHeight;
  405. var hauteurHaut = hauteurHeader + hauteurAuthorImg + hauteurAuthorName + hauteurMedia + hauteurTitre + hauteurAction;
  406. var innerHauteur = (IE) ? document.body.clientHeight : window.innerHeight;
  407. var debugsize = 0;
  408. // -40 is a static adjustement for margin, spaces on the page
  409. <?php if (!empty($_SESSION['oLP']->scorm_debug)) {
  410. echo 'debugsize = 150;';
  411. } ?>
  412. document.getElementById('inner_lp_toc').style.height = innerHauteur - hauteurHaut - 40 - debugsize + "px";
  413. if (document.getElementById('content_id')) {
  414. document.getElementById('content_id').style.height = innerHauteur + 'px';
  415. }
  416. // Loads the glossary library.
  417. <?php
  418. if (api_get_setting('show_glossary_in_extra_tools') == 'true') {
  419. if (api_get_setting('show_glossary_in_documents') == 'ismanual') {
  420. ?>
  421. $.frameReady(function () {
  422. // $("<div>I am a div courses</div>").prependTo("body");
  423. }, "top.content_name",
  424. { load:[
  425. {type:"script", id:"_fr1", src:"<?php echo api_get_path(
  426. WEB_LIBRARY_PATH
  427. ); ?>javascript/jquery.min.js"},
  428. {type:"script", id:"_fr4", src:"<?php echo api_get_path(
  429. WEB_LIBRARY_PATH
  430. ); ?>javascript/jquery-ui/smoothness/jquery-ui-1.8.21.custom.min.js"},
  431. {type:"stylesheet", id:"_fr5", src:"<?php echo api_get_path(
  432. WEB_LIBRARY_PATH
  433. ); ?>javascript/jquery-ui/smoothness/jquery-ui-1.8.21.custom.css"},
  434. {type:"script", id:"_fr2", src:"<?php echo api_get_path(
  435. WEB_LIBRARY_PATH
  436. ); ?>javascript/jquery.highlight.js"}
  437. ] }
  438. );
  439. <?php
  440. } elseif (api_get_setting('show_glossary_in_documents') == 'isautomatic') {
  441. ?>
  442. $.frameReady(function () {
  443. // $("<div>I am a div courses</div>").prependTo("body");
  444. }, "top.content_name",
  445. { load:[
  446. {type:"script", id:"_fr1", src:"<?php echo api_get_path(
  447. WEB_LIBRARY_PATH
  448. ); ?>javascript/jquery.min.js"},
  449. {type:"script", id:"_fr4", src:"<?php echo api_get_path(
  450. WEB_LIBRARY_PATH
  451. ); ?>javascript/jquery-ui/smoothness/jquery-ui-1.8.21.custom.min.js"},
  452. {type:"stylesheet", id:"_fr5", src:"<?php echo api_get_path(
  453. WEB_LIBRARY_PATH
  454. ); ?>javascript/jquery-ui/smoothness/jquery-ui-1.8.21.custom.css"},
  455. {type:"script", id:"_fr2", src:"<?php echo api_get_path(
  456. WEB_LIBRARY_PATH
  457. ); ?>javascript/jquery.highlight.js"}
  458. ] }
  459. );
  460. <?php
  461. }
  462. }
  463. ?>
  464. }
  465. window.onload = updateContentHeight;
  466. window.onresize = updateContentHeight;
  467. </script>
  468. <?php
  469. // Restore a global setting.
  470. $_setting['show_navigation_menu'] = $save_setting;
  471. if ($debug) {
  472. error_log(' ------- end lp_view.php ------');
  473. }
  474. Display::display_footer();