lp_view.php 21 KB

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