Julio Montoya před 13 roky
rodič
revize
1d9705d6d4

+ 4 - 4
main/newscorm/learnpath.class.php

@@ -4920,7 +4920,7 @@ class learnpath {
                     }
                 }
             }
-            $return_audio .= Display::span($title.$icon).Display::tag('td', $audio, array('style'=>'text-align:right'));
+            $return_audio .= Display::span($title.$icon).Display::tag('td', $audio, array('style'=>''));
             $return_audio .= '</td>';
 			$move_icon = '';
 			$edit_icon = '';
@@ -5044,7 +5044,7 @@ class learnpath {
         	$return .= print_recursive($elements, $default_data, $default_content);
         	$return .='</ul></div>';
         	
-        	$return .= Display::div(Display::url(get_lang('Save'), '#', array('id'=>'listSubmit', 'class'=>'a_button orange medium')), array('style'=>'float:left; margin-top:15px;width:100%'));
+        	$return .= Display::div(Display::url(get_lang('Save'), '#', array('id'=>'listSubmit', 'class'=>'a_button white medium')), array('style'=>'float:left; margin-top:15px;width:100%'));
         } else {
         
         	$return .= $return_audio.'</table>';
@@ -6237,7 +6237,7 @@ class learnpath {
             $item_description = '';
         }
 
-        $return = '<div style="margin:3px 12px;">';
+        $return = '<div style="">';
 
         if ($id != 0 && is_array($extra_info))
             $parent = $extra_info['parent_item_id'];
@@ -6900,7 +6900,7 @@ class learnpath {
                         $renderer = $form->defaultRenderer();
                         $renderer->setElementTemplate('<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{label}<br />{element}', 'content_lp');
 
-                        $form->addElement('html', '<div style="margin:3px 12px">');
+                        $form->addElement('html', '<div>');
                         $form->addElement('html_editor', 'content_lp', '', null, $editor_config);
                         $form->addElement('html', '</div>');
                         $defaults['content_lp'] = $content;

+ 101 - 100
main/newscorm/lp_add_item.php

@@ -234,108 +234,109 @@ function confirmation(name) {
 /* DISPLAY SECTION */
 
 echo $_SESSION['oLP']->build_action_menu();
-echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
-    echo '<tr>';
-        echo '<td class="tree">';
-            // Show the template list.
-            if (isset($_GET['type']) && $_GET['type'] == 'document' && !isset($_GET['file'])) {
-                $count_items = count($_SESSION['oLP']->ordered_items);
-                $style = ($count_items > 12) ? ' style="height:250px;width:230px;overflow-x : auto; overflow-y : scroll;" ' : ' class="lp_tree" ';
-                echo '<div  '.$style.'>';
-                // Build the tree with the menu items in it.
-                echo $_SESSION['oLP']->build_tree();
-                echo '</div>';
-                // Show the template list.
-                echo '<p style="border-bottom:1px solid #999999; margin:0; padding:2px;"></p>';
-                echo '<br />';
-                echo '<div id="frmModel" style="display:block; height:890px;width:100px; position:relative;"></div>';
-            } else {
-                echo '<div class="lp_tree">';
-                // Build the tree with the menu items in it.
-                echo $_SESSION['oLP']->build_tree();
-                echo '</div>';
-            }
 
-        echo '</td>';
-        echo '<td class="workspace">';
-
-        if (isset($new_item_id) && is_numeric($new_item_id)) {
-            switch($_GET['type']) {
-                case 'chapter':
-                    echo $_SESSION['oLP']->display_manipulate($new_item_id, $_POST['type']);
-                    Display::display_confirmation_message(get_lang('NewChapterCreated'));
-                    break;
-                case TOOL_LINK:
-                    echo $_SESSION['oLP']->display_manipulate($new_item_id, $_GET['type']);
-                    Display::display_confirmation_message(get_lang('NewLinksCreated'));
-                    break;
-                case TOOL_STUDENTPUBLICATION:
-                    echo $_SESSION['oLP']->display_manipulate($new_item_id, $_GET['type']);
-                    Display::display_confirmation_message(get_lang('NewStudentPublicationCreated'));
-                    break;
-                case 'module':
-                    echo $_SESSION['oLP']->display_manipulate($new_item_id, $_GET['type']);
-                    Display::display_confirmation_message(get_lang('NewModuleCreated'));
-                    break;
-                case TOOL_QUIZ:
-                    echo $_SESSION['oLP']->display_manipulate($new_item_id, $_GET['type']);
-                    Display::display_confirmation_message(get_lang('NewExerciseCreated'));
-                    break;
-                case TOOL_DOCUMENT:
-                    Display::display_confirmation_message(get_lang('NewDocumentCreated'));
-                    echo $_SESSION['oLP']->display_item($new_item_id, true);
-                    break;
-                case TOOL_FORUM:
-                    echo $_SESSION['oLP']->display_manipulate($new_item_id, $_GET['type']);
-                    Display::display_confirmation_message(get_lang('NewForumCreated'));
-                    break;
-                case 'thread':
-                    echo $_SESSION['oLP']->display_manipulate($new_item_id, $_GET['type']);
-                    Display::display_confirmation_message(get_lang('NewThreadCreated'));
-                    break;
-            }
-        } else {
-            switch($_GET['type']) {
-                case 'chapter':
-                    echo $_SESSION['oLP']->display_item_form($_GET['type'], get_lang('EnterDataNewChapter'));
-                    break;
-                case 'module':
-                    echo $_SESSION['oLP']->display_item_form($_GET['type'], get_lang('EnterDataNewModule'));
-                    break;
-                case 'document':
-                    if (isset($_GET['file']) && is_numeric($_GET['file'])) {
-                        echo $_SESSION['oLP']->display_document_form('add', 0, $_GET['file']);
-                    } else {
-                        echo $_SESSION['oLP']->display_document_form('add', 0);
-                    }
-                    break;
-                case 'hotpotatoes':
-                    echo $_SESSION['oLP']->display_hotpotatoes_form('add', 0, $_GET['file']);
-                    break;
-                case 'quiz':
-                    echo Display::display_warning_message(get_lang('ExerciseCantBeEditedAfterAddingToTheLP'));
-                    echo $_SESSION['oLP']->display_quiz_form('add', 0, $_GET['file']);
-                    break;
-                case 'forum':
-                    echo $_SESSION['oLP']->display_forum_form('add', 0, $_GET['forum_id']);
-                    break;
-                case 'thread':
-                    echo $_SESSION['oLP']->display_thread_form('add', 0, $_GET['thread_id']);
-                    break;
-                case 'link':
-                    echo $_SESSION['oLP']->display_link_form('add', 0, $_GET['file']);
-                    break;
-                case 'student_publication':
-                    echo $_SESSION['oLP']->display_student_publication_form('add', 0, $_GET['file']);
-                    break;
-                case 'step':
-                    $_SESSION['oLP']->display_resources();
-                    break;
-            }
+echo '<div class="row-fluid">';
+echo '<div class="span3">';
+
+// Show the template list.
+if (isset($_GET['type']) && $_GET['type'] == 'document' && !isset($_GET['file'])) {
+    $count_items = count($_SESSION['oLP']->ordered_items);
+    $style = ($count_items > 12) ? ' style="height:250px;width:230px;overflow-x : auto; overflow-y : scroll;" ' : ' class="lp_tree" ';
+    echo '<div  '.$style.'>';
+    // Build the tree with the menu items in it.
+    echo $_SESSION['oLP']->build_tree();
+    echo '</div>';
+    // Show the template list.
+    echo '<p style="border-bottom:1px solid #999999; margin:0; padding:2px;"></p>';
+    echo '<br />';
+    echo '<div id="frmModel" style="display:block; height:890px;width:100px; position:relative;"></div>';
+} else {
+    echo '<div class="lp_tree">';
+    // Build the tree with the menu items in it.
+    echo $_SESSION['oLP']->build_tree();
+    echo '</div>';
+}
+
+echo '</div>';
+
+echo '<div class="span9">';
+
+    if (isset($new_item_id) && is_numeric($new_item_id)) {
+        switch($_GET['type']) {
+            case 'chapter':
+                echo $_SESSION['oLP']->display_manipulate($new_item_id, $_POST['type']);
+                Display::display_confirmation_message(get_lang('NewChapterCreated'));
+                break;
+            case TOOL_LINK:
+                echo $_SESSION['oLP']->display_manipulate($new_item_id, $_GET['type']);
+                Display::display_confirmation_message(get_lang('NewLinksCreated'));
+                break;
+            case TOOL_STUDENTPUBLICATION:
+                echo $_SESSION['oLP']->display_manipulate($new_item_id, $_GET['type']);
+                Display::display_confirmation_message(get_lang('NewStudentPublicationCreated'));
+                break;
+            case 'module':
+                echo $_SESSION['oLP']->display_manipulate($new_item_id, $_GET['type']);
+                Display::display_confirmation_message(get_lang('NewModuleCreated'));
+                break;
+            case TOOL_QUIZ:
+                echo $_SESSION['oLP']->display_manipulate($new_item_id, $_GET['type']);
+                Display::display_confirmation_message(get_lang('NewExerciseCreated'));
+                break;
+            case TOOL_DOCUMENT:
+                Display::display_confirmation_message(get_lang('NewDocumentCreated'));
+                echo $_SESSION['oLP']->display_item($new_item_id, true);
+                break;
+            case TOOL_FORUM:
+                echo $_SESSION['oLP']->display_manipulate($new_item_id, $_GET['type']);
+                Display::display_confirmation_message(get_lang('NewForumCreated'));
+                break;
+            case 'thread':
+                echo $_SESSION['oLP']->display_manipulate($new_item_id, $_GET['type']);
+                Display::display_confirmation_message(get_lang('NewThreadCreated'));
+                break;
         }
-        echo '</td>';
-    echo '</tr>';
-echo '</table>';
+    } else {
+        switch($_GET['type']) {
+            case 'chapter':
+                echo $_SESSION['oLP']->display_item_form($_GET['type'], get_lang('EnterDataNewChapter'));
+                break;
+            case 'module':
+                echo $_SESSION['oLP']->display_item_form($_GET['type'], get_lang('EnterDataNewModule'));
+                break;
+            case 'document':
+                if (isset($_GET['file']) && is_numeric($_GET['file'])) {
+                    echo $_SESSION['oLP']->display_document_form('add', 0, $_GET['file']);
+                } else {
+                    echo $_SESSION['oLP']->display_document_form('add', 0);
+                }
+                break;
+            case 'hotpotatoes':
+                echo $_SESSION['oLP']->display_hotpotatoes_form('add', 0, $_GET['file']);
+                break;
+            case 'quiz':
+                echo Display::display_warning_message(get_lang('ExerciseCantBeEditedAfterAddingToTheLP'));
+                echo $_SESSION['oLP']->display_quiz_form('add', 0, $_GET['file']);
+                break;
+            case 'forum':
+                echo $_SESSION['oLP']->display_forum_form('add', 0, $_GET['forum_id']);
+                break;
+            case 'thread':
+                echo $_SESSION['oLP']->display_thread_form('add', 0, $_GET['thread_id']);
+                break;
+            case 'link':
+                echo $_SESSION['oLP']->display_link_form('add', 0, $_GET['file']);
+                break;
+            case 'student_publication':
+                echo $_SESSION['oLP']->display_student_publication_form('add', 0, $_GET['file']);
+                break;
+            case 'step':
+                $_SESSION['oLP']->display_resources();
+                break;
+        }
+    }
+echo '</div>';
+echo '</div>';
 
 /* FOOTER */
 Display::display_footer();

+ 28 - 30
main/newscorm/lp_build.php

@@ -123,36 +123,34 @@ function confirmation(name) {
 /* DISPLAY SECTION */
 
 echo $_SESSION['oLP']->build_action_menu();
-echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
-    echo '<tr>';
-        echo '<td class="tree">';
-            echo '<div class="lp_tree">';
-                // Build the tree with the menu items in it.
-                echo $_SESSION['oLP']->build_tree();
-            echo '</div>';
-        echo '</td>';
-        echo '<td class="workspace">';
-            if (isset($is_success) && $is_success === true) {
-                Display::display_confirmation_message(get_lang('ItemRemoved'));
-            } else {
-                if ($is_new) {
-                    Display::display_normal_message(get_lang('LearnpathAdded'), false);
-                }
-                // Display::display_normal_message(get_lang('LPCreatedAddChapterStep'), false);
-                $gradebook = isset($_GET['gradebook']) ? Security::remove_XSS($_GET['gradebook']) : null;
-
-                $learnpathadded  = '<p><h2>'.get_lang('LearnPathAddedTitle').'</h2><br />';
-                $learnpathadded .= '<a href="lp_controller.php?'.api_get_cidreq().'&amp;gradebook='.$gradebook.'&amp;action=add_item&amp;type=step&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="'.get_lang('NewStep').'">'.Display::return_icon('new_learnigpath_object.png', get_lang('NewStep'), array('style' => 'vertical-align: middle;'),ICON_SIZE_SMALL).' '.get_lang('NewStep').'</a>: '.get_lang('NewStepComment').'<br />';
-                //$learnpathadded .= '<a href="lp_controller.php?'.api_get_cidreq().'&amp;gradebook='.$gradebook.'&amp;action=add_item&amp;type=chapter&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="'.get_lang('NewChapter').'">'.Display::return_icon('add_learnpath_section.png', get_lang('NewChapter'), array('style' => 'vertical-align: middle;'),ICON_SIZE_SMALL).' '.get_lang('NewChapter').'</a>: '.get_lang('NewChapterComment').'<br />';
-                $learnpathadded .= '<a href="lp_controller.php?'.api_get_cidreq().'&amp;action=build&amp;lp_id='.Security::remove_XSS($_GET['lp_id']).'" target="_parent">'.Display::return_icon('build_learnpath.png', get_lang('Build'), array('style' => 'vertical-align: middle;'),ICON_SIZE_SMALL).' '.get_lang('Build')."</a>: ".get_lang('BuildComment').'<br />';
-                $learnpathadded .= '<a href="lp_controller.php?'.api_get_cidreq().'&amp;gradebook='.$gradebook.'&amp;action=admin_view&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="'.get_lang("BasicOverview").'">'.Display::return_icon('move_learnpath.png', get_lang('BasicOverview'), array('style' => 'vertical-align: middle;'),ICON_SIZE_SMALL).' '.get_lang('BasicOverview').'</a>: '.get_lang('BasicOverviewComment').'<br />';
-                $learnpathadded .= '<a href="lp_controller.php?'.api_get_cidreq().'&amp;gradebook='.$gradebook.'&action=view&lp_id='.$_SESSION['oLP']->lp_id.'">'.Display::return_icon('view_left_right.png', get_lang('Display'),array('style' => 'vertical-align: middle;'),ICON_SIZE_SMALL).' '.get_lang('Display').'</a>: '.get_lang('DisplayComment').'<br />';
-                $learnpathadded .= '<br /></p>';
-                echo $learnpathadded;
-            }
-        echo '</td>';
-    echo '</tr>';
-echo '</table>';
+echo '<div class="row-fluid">';
+echo '<div class="span3">';
+    echo '<div class="lp_tree">';
+        // Build the tree with the menu items in it.
+        echo $_SESSION['oLP']->build_tree();
+    echo '</div>';
+echo '</div>';        
+echo '<div class="span9">';        
+if (isset($is_success) && $is_success === true) {
+    Display::display_confirmation_message(get_lang('ItemRemoved'));
+} else {
+    if ($is_new) {
+        Display::display_normal_message(get_lang('LearnpathAdded'), false);
+    }
+    // Display::display_normal_message(get_lang('LPCreatedAddChapterStep'), false);
+    $gradebook = isset($_GET['gradebook']) ? Security::remove_XSS($_GET['gradebook']) : null;
+
+    $learnpathadded  = '<p><h2>'.get_lang('LearnPathAddedTitle').'</h2><br />';
+    $learnpathadded .= '<a href="lp_controller.php?'.api_get_cidreq().'&amp;gradebook='.$gradebook.'&amp;action=add_item&amp;type=step&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="'.get_lang('NewStep').'">'.Display::return_icon('new_learnigpath_object.png', get_lang('NewStep'), array('style' => 'vertical-align: middle;'),ICON_SIZE_SMALL).' '.get_lang('NewStep').'</a>: '.get_lang('NewStepComment').'<br />';
+    //$learnpathadded .= '<a href="lp_controller.php?'.api_get_cidreq().'&amp;gradebook='.$gradebook.'&amp;action=add_item&amp;type=chapter&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="'.get_lang('NewChapter').'">'.Display::return_icon('add_learnpath_section.png', get_lang('NewChapter'), array('style' => 'vertical-align: middle;'),ICON_SIZE_SMALL).' '.get_lang('NewChapter').'</a>: '.get_lang('NewChapterComment').'<br />';
+    $learnpathadded .= '<a href="lp_controller.php?'.api_get_cidreq().'&amp;action=build&amp;lp_id='.Security::remove_XSS($_GET['lp_id']).'" target="_parent">'.Display::return_icon('build_learnpath.png', get_lang('Build'), array('style' => 'vertical-align: middle;'),ICON_SIZE_SMALL).' '.get_lang('Build')."</a>: ".get_lang('BuildComment').'<br />';
+    $learnpathadded .= '<a href="lp_controller.php?'.api_get_cidreq().'&amp;gradebook='.$gradebook.'&amp;action=admin_view&amp;lp_id=' . $_SESSION['oLP']->lp_id . '" title="'.get_lang("BasicOverview").'">'.Display::return_icon('move_learnpath.png', get_lang('BasicOverview'), array('style' => 'vertical-align: middle;'),ICON_SIZE_SMALL).' '.get_lang('BasicOverview').'</a>: '.get_lang('BasicOverviewComment').'<br />';
+    $learnpathadded .= '<a href="lp_controller.php?'.api_get_cidreq().'&amp;gradebook='.$gradebook.'&action=view&lp_id='.$_SESSION['oLP']->lp_id.'">'.Display::return_icon('view_left_right.png', get_lang('Display'),array('style' => 'vertical-align: middle;'),ICON_SIZE_SMALL).' '.get_lang('Display').'</a>: '.get_lang('DisplayComment').'<br />';
+    $learnpathadded .= '<br /></p>';
+    echo $learnpathadded;
+}
+echo '</div>';
+echo '</div>';
 
 /* FOOTER */
 

+ 45 - 43
main/newscorm/lp_edit_item.php

@@ -132,49 +132,51 @@ function confirmation(name) {
 /* DISPLAY SECTION */
 
 echo $_SESSION['oLP']->build_action_menu();
-echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
-        echo '<tr>';
-        echo '<td class="tree">';
-
-        $path_item = isset($_GET['path_item']) ? $_GET['path_item'] : 0;
-        $path_item = Database::escape_string($path_item);
-        $tbl_doc = Database :: get_course_table(TABLE_DOCUMENT);
-        $sql_doc = "SELECT path FROM " . $tbl_doc . " WHERE c_id = $course_id AND id = '". $path_item."' ";
-        $res_doc = Database::query($sql_doc);
-        $path_file = Database::result($res_doc, 0, 0);
-        $path_parts = pathinfo($path_file);
-
-        if (Database::num_rows($res_doc) > 0 && $path_parts['extension'] == 'html') {
-            $count_items = count($_SESSION['oLP']->ordered_items);
-            $style = ($count_items > 12) ? ' style="height:250px;width:230px;overflow-x : auto; overflow : scroll;" ' : ' class="lp_tree" ';
-            echo '<div '.$style.'>';
-            // Build the tree with the menu items in it.
-            echo $_SESSION['oLP']->build_tree();
-            echo '</div>';
-            // Show the template list
-            echo '<p style="border-bottom:1px solid #999999; margin:0; padding:2px;"></p>';
-            echo '<br />';
-            echo '<div id="frmModel" style="display:block; height:890px;width:100px; position:relative;"></div>';
-        } else {
-            echo '<div class="lp_tree" style="height:90%" >';
-            // Build the tree with the menu items in it.
-            echo $_SESSION['oLP']->build_tree();
-            echo '</div>';
-        }
-
-        echo '</td>';
-        echo '<td class="workspace">';
-            if (isset($is_success) && $is_success === true) {
-                $msg = '<div class="lp_message" style="margin-bottom:10px;">';
-                $msg .= 'The item has been edited.';
-                $msg .= '</div>';
-                echo $_SESSION['oLP']->display_item($_GET['id'], $msg);
-            } else {
-                echo $_SESSION['oLP']->display_edit_item($_GET['id']);
-            }
-        echo '</td>';
-    echo '</tr>';
-echo '</table>';
+
+
+echo '<div class="row-fluid">';
+echo '<div class="span3">';
+
+$path_item = isset($_GET['path_item']) ? $_GET['path_item'] : 0;
+$path_item = Database::escape_string($path_item);
+$tbl_doc = Database :: get_course_table(TABLE_DOCUMENT);
+$sql_doc = "SELECT path FROM " . $tbl_doc . " WHERE c_id = $course_id AND id = '". $path_item."' ";
+$res_doc = Database::query($sql_doc);
+$path_file = Database::result($res_doc, 0, 0);
+$path_parts = pathinfo($path_file);
+
+if (Database::num_rows($res_doc) > 0 && $path_parts['extension'] == 'html') {
+    $count_items = count($_SESSION['oLP']->ordered_items);
+    $style = ($count_items > 12) ? ' style="height:250px;width:230px;overflow-x : auto; overflow : scroll;" ' : ' class="lp_tree" ';
+    echo '<div '.$style.'>';
+    // Build the tree with the menu items in it.
+    echo $_SESSION['oLP']->build_tree();
+    echo '</div>';
+    // Show the template list
+    echo '<p style="border-bottom:1px solid #999999; margin:0; padding:2px;"></p>';
+    echo '<br />';
+    echo '<div id="frmModel" style="display:block; height:890px;width:100px; position:relative;"></div>';
+} else {
+    echo '<div class="lp_tree" style="height:90%" >';
+    // Build the tree with the menu items in it.
+    echo $_SESSION['oLP']->build_tree();
+    echo '</div>';
+}
+        
+echo '</div>';
+echo '<div class="span9">';
+
+if (isset($is_success) && $is_success === true) {
+    $msg = '<div class="lp_message" style="margin-bottom:10px;">';
+    $msg .= 'The item has been edited.';
+    $msg .= '</div>';
+    echo $_SESSION['oLP']->display_item($_GET['id'], $msg);
+} else {
+    echo $_SESSION['oLP']->display_edit_item($_GET['id']);
+}
+
+echo '</div>';
+echo '</div>';
 
 /* FOOTER */
 

+ 22 - 23
main/newscorm/lp_edit_item_prereq.php

@@ -107,29 +107,28 @@ function confirmation(name)
 /* DISPLAY SECTION */
 
 echo $_SESSION['oLP']->build_action_menu();
-echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
-    echo '<tr>';
-
-        echo '<td class="tree">';
-            echo '<div class="lp_tree">';
-                // Build the tree with the menu items in it.
-                echo $_SESSION['oLP']->build_tree();
-
-            echo '</div>';
-        echo '</td>';
-        echo '<td class="workspace">';
-
-            if (isset($is_success) && $is_success === true) {
-                echo '<div class="lp_message" style="margin:3px 10px;">';
-                echo get_lang("PrerequisitesAdded");
-                echo '</div>';
-            } else {
-                echo $_SESSION['oLP']->display_manipulate($_GET['id'], null);
-                echo $_SESSION['oLP']->display_item_prerequisites_form($_GET['id']);
-            }
-        echo '</td>';
-    echo '</tr>';
-echo '</table>';
+
+echo '<div class="row-fluid">';
+echo '<div class="span3">';
+
+
+echo '<div class="lp_tree">';
+    // Build the tree with the menu items in it.
+    echo $_SESSION['oLP']->build_tree();
+echo '</div>';
+
+echo '</div>';
+echo '<div class="span9">';
+
+if (isset($is_success) && $is_success === true) {
+    echo '<div class="lp_message" style="margin:3px 10px;">';
+    echo get_lang("PrerequisitesAdded");
+    echo '</div>';
+} else {
+    echo $_SESSION['oLP']->display_manipulate($_GET['id'], null);
+    echo $_SESSION['oLP']->display_item_prerequisites_form($_GET['id']);
+}
+echo '</div>';
 
 /* FOOTER */
 Display::display_footer();

+ 22 - 20
main/newscorm/lp_move_item.php

@@ -157,26 +157,28 @@ function confirmation(name)
 /* DISPLAY SECTION */
 
 echo $_SESSION['oLP']->build_action_menu();
-echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
-    echo '<tr>';
-        echo '<td class="tree">';
-            echo '<div class="lp_tree">';
-                // Build the tree with the menu items in it.
-                echo $_SESSION['oLP']->build_tree();
-            echo '</div>';
-        echo '</td>';
-        echo '<td class="workspace">';
-            if (isset($is_success) && $is_success === true) {
-                $msg = '<div class="lp_message" style="margin-bottom:10px;">';
-                    $msg .= 'The item has been moved.';
-                $msg .= '</div>';
-                echo $_SESSION['oLP']->display_item($_GET['id'], $msg);
-            } else {
-                echo $_SESSION['oLP']->display_move_item($_GET['id']);
-            }
-        echo '</td>';
-    echo '</tr>';
-echo '</table>';
+
+echo '<div class="row-fluid">';
+echo '<div class="span3">';
+
+    echo '<div class="lp_tree">';
+        // Build the tree with the menu items in it.
+        echo $_SESSION['oLP']->build_tree();
+    echo '</div>';
+echo '</div>';
+
+echo '<div class="span9">';
+
+if (isset($is_success) && $is_success === true) {
+    $msg = '<div class="lp_message" style="margin-bottom:10px;">';
+        $msg .= 'The item has been moved.';
+    $msg .= '</div>';
+    echo $_SESSION['oLP']->display_item($_GET['id'], $msg);
+} else {
+    echo $_SESSION['oLP']->display_move_item($_GET['id']);
+}
+echo '</div>';
+echo '</div>';
 
 /* FOOTER */
 

+ 11 - 15
main/newscorm/lp_view_item.php

@@ -15,8 +15,6 @@
  */
 // Prevents FF 3.6 + Adobe Reader 9 bug see BT#794 when calling a pdf file in a LP
 
-
-
 // The main_api.lib.php, database.lib.php and display.lib.php
 // libraries are included by default.
 
@@ -150,18 +148,16 @@ function confirmation(name) {
 <?php
 if (is_object($_SESSION['oLP'])) {
 	echo $_SESSION['oLP']->build_action_menu();
-	echo '<table cellpadding="0" cellspacing="0" class="lp_build">';
-	    echo '<tr>';
-	        echo '<td class="tree">';
-	            echo '<div class="lp_tree">';
-	                // Build the tree with the menu items in it.
-	                echo $_SESSION['oLP']->build_tree();
-	            echo '</div>';
-	        echo '</td>';
-	        echo '<td class="workspace">';
-	            echo $_SESSION['oLP']->display_item((isset($new_item_id)) ? $new_item_id : $_GET['id']);
-	        echo '</td>';
-	    echo '</tr>';
-	echo '</table>';
+    echo '<div class="row-fluid">';
+    echo '<div class="span3">';
+        echo '<div class="lp_tree">';
+        // Build the tree with the menu items in it.
+        echo $_SESSION['oLP']->build_tree();
+        echo '</div>';
+    echo '</div>';
+    echo '<div class="span9">';
+        echo $_SESSION['oLP']->display_item((isset($new_item_id)) ? $new_item_id : $_GET['id']);
+    echo '</div>';
+    echo '</div>';
 }
 Display::display_footer();