lp_view.php 21 KB

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