Lot of fixes in order to use the new UI when adding LP items see BT#4297

skala
Julio Montoya 13 years ago
parent 557157d44c
commit 31880dceac
  1. 34
      main/css/base.css
  2. 27
      main/inc/lib/document.lib.php
  3. 44
      main/newscorm/learnpath.class.php
  4. 231
      main/newscorm/lp_add_item.php
  5. 2
      main/newscorm/lp_admin_view.php
  6. 6
      main/newscorm/lp_controller.php

@ -2001,7 +2001,7 @@ input.maininput:focus {
margin: 0;
padding: 0;
float:left;
width:50%;
width:100%;
}
.lp_resource_element, .lp_resource_element_no_link {
@ -2026,16 +2026,9 @@ input.maininput:focus {
margin:6px;
}
div.lp_tree {
height: 100%;
/* overflow: auto;*/
padding: 3px 10px 3px 0;
}
table.lp_build td.tree {
border:none;
}
#resource_tab {
min-height:380px;
}
@ -2244,14 +2237,19 @@ div.admin_section h4 {
}
#lp_item_list, #lp_item_list li {
list-style-type: none;
float:left;
/* float:left;*/
}
#lp_item_list ul, #lp_item_list li{
float:left;
/* float:left;*/
width:100%;
}
#lp_item_list .item_data {
padding:5px 0px 5px 0px;
/* float:left;*/
}
#lp_item_list .item {
border:none;
}
@ -2260,10 +2258,6 @@ div.admin_section h4 {
height:5px;
}
#lp_item_list .item_data {
padding:5px 0px 5px 0px;
float:left;
}
.ui-state-highlight {
height:25px;
@ -3461,7 +3455,7 @@ a.forum_group_link {
margin-bottom: -90em;
cursor:pointer;
background-color:#eee;
margin-left: 0px !important;
margin-left: 4px !important;
background-image: url("../img/hide0.png");
background-repeat: no-repeat;
background-position: center center;
@ -3874,8 +3868,16 @@ footer {
.doc_folder {
margin-right:5px;
margin-top:5px;
width: 100%;
float:left;
}
.doc_resource{
margin: 5px;
margin: 5px;
width: 100%;
float:left;
}
.lp_resource_element_new {
border: 1px dotted green;
}

@ -2436,12 +2436,11 @@ class DocumentManager {
return $html;
}
function get_document_preview($course_info, $lp_id = false, $target = '', $session_id = 0, $add_move_button = false) {
$course_info = api_get_course_info($course_info['code']);
if (empty($course_info) || !is_array($course_info)) {
function get_document_preview($course_info, $lp_id = false, $target = '', $session_id = 0, $add_move_button = false) {
if (empty($course_info['real_id']) || empty($course_info['code']) || !is_array($course_info)) {
return '';
}
$user_id = api_get_user_id();
}
$user_id = api_get_user_id();
$user_in_course = false;
if (api_is_platform_admin()) {
@ -2665,24 +2664,24 @@ class DocumentManager {
}
$return .= '<ul class="lp_resource">';
$return .= '<li class="doc_folder" id="doc_id_'.$resource['id'].'" style="margin-left:'.($num * 18).'px; ">';
$return .= '<li class="doc_folder " id="doc_id_'.$resource['id'].'" style="margin-left:'.($num * 18).'px; ">';
if ($lp_id) {
$return .= '<img style="cursor: pointer;" src="'.$img_path.'nolines_plus.gif" align="absmiddle" id="img_' . $resource['id'] . '" '.$onclick.' >';
} else {
$return .= '<span style="margin-left:16px">&nbsp;</span>';
}
$return .= '<img alt="" src="'.$img_path.'lp_folder.gif" title="" align="absmiddle" />&nbsp;';
$return .= '<img alt="" src="'.$img_path.'lp_folder.gif" title="" align="absmiddle" />&nbsp;';
$return .= '<span '.$onclick.' style="cursor: pointer;" >'.$title.'</span>';
$return .= '</li>
<div style="display: none;" id="res_'.$resource['id'].'">';
$return .= '</li>';
$return .= '<div id="res_'.$resource['id'].'" style="display: none;" >';
if (isset($resource['files'])) {
$return .= self::write_resources_tree($course_info, $session_id, $resource['files'], $num +1, $lp_id, $target, $add_move_button);
}
$return .= '</div>';
$return .= '</ul>';
} else {
if (!is_array($resource)) {
@ -2715,9 +2714,9 @@ class DocumentManager {
$link = Display::url('<img alt="" src="'.$img.'" title="" />&nbsp;' . $my_file_title, $url, array('target' => $target));
$return .= '<li class="doc_resource " data_id="'.$key.'" data_type="document" title="'.$my_file_title.'" >';
$return .= '<li class="doc_resource lp_resource_element" data_id="'.$key.'" data_type="document" title="'.$my_file_title.'" >';
$return .= '<div style="margin-left:' . (($num +1) * 18) . 'px;margin-right:5px;">';
$return .= '<div class="item_data" style="margin-left:' . (($num +1) * 18) . 'px;margin-right:5px;">';
if ($add_move_button) {
$return .= '<a class="moved" href="#">';

@ -4846,6 +4846,7 @@ class learnpath {
);
}
$this->tree_array($arrLP);
$arrLP = $this->arrMenu;
unset ($this->arrMenu);
@ -4853,6 +4854,7 @@ class learnpath {
$elements = array();
for ($i = 0; $i < count($arrLP); $i++) {
$title = $arrLP[$i]['title'];
$title_cut = cut($arrLP[$i]['title'], 25);
if (($i % 2) == 0) {
$oddclass = 'row_odd';
} else {
@ -4864,12 +4866,12 @@ class learnpath {
$icon = '';
if (file_exists('../img/lp_' . $icon_name . '.png')) {
$icon = '<img align="left" src="../img/lp_' . $icon_name . '.png" style="margin-right:3px;" />';
$icon = '<img src="../img/lp_' . $icon_name . '.png" />';
} else {
if (file_exists('../img/lp_' . $icon_name . '.gif')) {
$icon = '<img align="left" src="../img/lp_' . $icon_name . '.gif" style="margin-right:3px;" />';
$icon = '<img src="../img/lp_' . $icon_name . '.gif" />';
} else {
$icon = '<img align="left" src="../img/folder_document.gif" style="margin-right:3px;" />';
$icon = '<img src="../img/folder_document.gif" />';
}
}
@ -4898,14 +4900,14 @@ class learnpath {
}
}
}
$return_audio .= Display::span($title.$icon).Display::tag('td', $audio, array('style'=>''));
$return_audio .= Display::span($icon.' '.$title).Display::tag('td', $audio, array('style'=>''));
$return_audio .= '</td>';
$move_icon = '';
$edit_icon = '';
$delete_icon = '';
if ($is_allowed_to_edit) {
if (!$update_audio OR $update_audio <> 'true') {
if (!$update_audio OR $update_audio <> 'true') {
$move_icon .= '<a class="moved" href="#">';
$move_icon .= Display::return_icon('move_everywhere.png', get_lang('Move'), array(), ICON_SIZE_TINY);
$move_icon .= '</a>';
@ -4926,7 +4928,7 @@ class learnpath {
$delete_icon .= '</a>';
}
if ($update_audio != 'true') {
$row = $move_icon.Display::span($title.$icon).Display::span($audio.$edit_icon.$delete_icon, array('class'=>'button_actions'));
$row = $move_icon.' '.$icon.Display::span($title_cut).Display::span($audio.$edit_icon.$delete_icon, array('class'=>'button_actions'));
} else {
$row = Display::span($title.$icon).Display::span($audio, array('class'=>'button_actions'));
}
@ -4983,12 +4985,16 @@ class learnpath {
}
}
$return = '<ul id="lp_item_list" class="well">';
$return = '<ul id="lp_item_list">';
$return .='<h4>'.$this->name.'</h4><br>';
$tree = self::print_recursive($elements, $default_data, $default_content);
if (!empty($tree)) {
$return .= $tree;
} else {
$return .= Display::return_message(get_lang("DragAndDropElementHere"));
$return .= Display::return_message(get_lang("DragAndDropAnElementHere"));
}
$return .= '</ul>';
if ($update_audio == 'true') {
@ -4999,7 +5005,7 @@ class learnpath {
function print_recursive($elements, $default_data, $default_content) {
$return = '';
foreach($elements as $key => $item) {
foreach ($elements as $key => $item) {
if (isset($item['load_data']) || empty($item['data'])) {
$item['data'] = $default_data[$item['load_data']];
$item['type'] = $default_content[$item['load_data']]['item_type'];
@ -7643,8 +7649,7 @@ class learnpath {
* @return string
*/
public function get_documents() {
$course_info = api_get_course_info();
require_once api_get_path(LIBRARY_PATH).'document.lib.php';
$course_info = api_get_course_info();
$document_tree = DocumentManager::get_document_preview($course_info, $this->lp_id, null, 0, true);
return $document_tree;
}
@ -7687,12 +7692,13 @@ class learnpath {
while ($row_quiz = Database :: fetch_array($res_quiz)) {
$return .= '<li class="lp_resource_element" data_id="'.$row_quiz['id'].'" data_type="quiz" title="'.$row_quiz['title'].'" >';
$return .= '<img alt="" src="../img/quizz_small.gif" style="margin-right:5px;" title="" />';
$return .= '<a class="moved" href="#">';
$return .= Display::return_icon('move_everywhere.png', get_lang('Move'), array(), ICON_SIZE_TINY);
$return .= '</a> ';
$return .= '<img alt="" src="../img/quizz_small.gif" style="margin-right:5px;" title="" />';
$return .= '<a href="' . api_get_self() . '?cidReq=' . Security :: remove_XSS($_GET['cidReq']) . '&amp;action=add_item&amp;type=' . TOOL_QUIZ . '&amp;file=' . $row_quiz['id'] . '&amp;lp_id=' . $this->lp_id . '">' .
Security :: remove_XSS(cut($row_quiz['title'], 80)).
'</a>';
@ -7729,12 +7735,12 @@ class learnpath {
if ($item_visibility != 2) {
$return .= '<li class="lp_resource_element" data_id="'.$row_link['id'].'" data_type="'.TOOL_LINK.'" title="'.$row_link['title'].'" >';
$return .= '<img alt="" src="../img/lp_link.gif" style="margin-right:5px;" title="" />';
$return .= '<a class="moved" href="#">';
$return .= Display::return_icon('move_everywhere.png', get_lang('Move'), array(), ICON_SIZE_TINY);
$return .= '</a> ';
$return .= '<img alt="" src="../img/lp_link.gif" style="margin-right:5px;" title="" />';
$return .= '<a href="' . api_get_self() . '?cidReq=' . Security :: remove_XSS($_GET['cidReq']) . '&amp;action=add_item&amp;type=' . TOOL_LINK . '&amp;file=' . $row_link['id'] . '&amp;lp_id=' . $this->lp_id . '">'.
$row_link['title'].
'</a>';
@ -7800,11 +7806,12 @@ class learnpath {
$return .= '<li class="lp_resource_element" data_id="'.$forum['forum_id'].'" data_type="'.TOOL_FORUM.'" title="'.$forum['forum_title'].'" >';
if (!empty($forum['forum_id'])) {
$return .= '<img alt="" src="../img/lp_forum.gif" style="margin-right:5px;" title="" />';
$return .= '<a class="moved" href="#">';
$return .= Display::return_icon('move_everywhere.png', get_lang('Move'), array(), ICON_SIZE_TINY);
$return .= ' </a>';
$return .= '<img alt="" src="../img/lp_forum.gif" style="margin-right:5px;" title="" />';
$return .= '<a style="cursor:hand" onclick="javascript: toggle_forum(' . $forum['forum_id'] . ')" style="vertical-align:middle">
<img src="' . api_get_path(WEB_IMG_PATH) . 'add.gif" id="forum_' . $forum['forum_id'] . '_opener" align="absbottom" />
@ -7818,10 +7825,13 @@ class learnpath {
if (is_array($a_threads)) {
foreach ($a_threads as $thread) {
$return .= '<li class="lp_resource_element" data_id="'.$thread['thread_id'].'" data_type="'.TOOL_THREAD.'" title="'.$thread['thread_title'].'" >';
$return .= Display::return_icon('forumthread.png', get_lang('Thread'), array(), ICON_SIZE_TINY);
$return .= '&nbsp;<a class="moved" href="#">';
$return .= Display::return_icon('move_everywhere.png', get_lang('Move'), array(), ICON_SIZE_TINY);
$return .= ' </a>';
$return .= ' </a>';
$return .= Display::return_icon('forumthread.png', get_lang('Thread'), array(), ICON_SIZE_TINY);
$return .= '<a href="' . api_get_self() . '?cidReq=' . Security :: remove_XSS($_GET['cidReq']) . '&amp;action=add_item&amp;type=' . TOOL_THREAD . '&amp;thread_id=' . $thread['thread_id'] . '&amp;lp_id=' . $this->lp_id . '">' . Security :: remove_XSS($thread['thread_title']) . '</a>';
$return .= '</li>';
}

@ -73,6 +73,15 @@ $(function() {
cursor: "move",
connectWith: "#lp_item_list",
placeholder: "ui-state-highlight", //defines the yellow highlight
start: function(event, ui) {
$(ui.item).css("width", "160px");
$(ui.item).find(".item_data").attr("style", "");
},
stop: function(event, ui) {
$(ui.item).css("width", "100%");
},
});
$("#lp_item_list").sortable({
@ -80,6 +89,7 @@ $(function() {
handle: ".moved", //only the class "moved"
cursor: "move",
placeholder: "ui-state-highlight", //defines the yellow highlight
update: function(event, ui) {
//Walk through the direct descendants of the lp_item_list <ul>
@ -140,7 +150,8 @@ $(function() {
$(".normal-message").hide();
$(ui.item).attr("id", data);
$(ui.item).addClass("lp_resource_element_new");
$(ui.item).addClass("lp_resource_element_new");
$(ui.item).find(".item_data").attr("style", "");
$(ui.item).addClass("record li_container");
$(ui.item).removeClass("lp_resource_element");
$(ui.item).removeClass("doc_resource");
@ -163,15 +174,7 @@ function FCKeditor_OnComplete( editorInstance ) {
loaded = true;
}
var hide_bar = function() {
$("#main_content .span3").hide();
$("#doc_form").removeClass("span8");
$("#doc_form").addClass("span11");
$("#hide_bar_template").css({"background-image" : \'url("../img/hide2.png")\'})
}
function check_for_title() {
function check_for_title() {
if (temp) {
// This functions shows that you can interact directly with the editor area
@ -210,12 +213,9 @@ function check_for_title() {
contentTextArray = contentText.split(\' \') ;
var x=0;
for(x=0; (x<5 && x<contentTextArray.length); x++) {
if(x < 4)
{
if(x < 4) {
bestandsnaamNieuw += contentTextArray[x] + \' \';
}
else
{
} else {
bestandsnaamNieuw += contentTextArray[x];
}
}
@ -311,11 +311,18 @@ switch ($type) {
case 'chapter':
$interbreadcrumb[]= array ('url' => '#', 'name' => get_lang('NewChapter'));
break;
case 'document':
$interbreadcrumb[]= array ('url' => 'lp_controller.php?action=add_item&lp_id='.$_SESSION['oLP']->get_id(), 'name' => get_lang('NewStep'));
break;
default:
$interbreadcrumb[]= array ('url' => '#', 'name' => get_lang('NewStep'));
break;
}
if ($action == 'add_item' && $type == 'document' ) {
$interbreadcrumb[]= array ('url' => '#', 'name' => get_lang('NewDocumentCreated'));
}
// Theme calls.
$show_learn_path = true;
$lp_theme_css = $_SESSION['oLP']->get_theme();
@ -333,7 +340,7 @@ $suredel = trim(get_lang('AreYouSureToDelete'));
#resExercise li { margin: 3px; padding: 0.4em; font-size: 1.4em; height: 18px; }
</style>
<script type='text/javascript'>
<script>
function stripslashes(str) {
str=str.replace(/\\'/g,'\'');
str=str.replace(/\\"/g,'"');
@ -353,13 +360,13 @@ function confirmation(name) {
$(document).ready(function() {
$("#hide_bar_template").toggle(
function() {
$("#main_content .span3").hide();
$("#lp_sidebar").hide();
$(this).css({'background-image' : 'url("../img/hide2.png")'})
$("#doc_form").removeClass("span8");
$("#doc_form").addClass("span11");
},
function() {
$("#main_content .span3").show();
$("#lp_sidebar").show();
$("#doc_form").removeClass("span11");
$("#doc_form").addClass("span8");
$(this).css('background-image', 'url("../img/hide0.png")');
@ -374,112 +381,104 @@ $(document).ready(function() {
echo $_SESSION['oLP']->build_action_menu();
echo '<div class="row-fluid" style="overflow:hidden">';
echo '<div class="span4">';
echo '<div id="lp_sidebar" class="span4">';
echo '<div class="lp_tree well">';
// Build the tree with the menu items in it
echo $_SESSION['oLP']->return_new_tree(); //echo $_SESSION['oLP']->build_tree();
echo '</div>';
// Show the template list.
if ($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 #ddd; 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 $_SESSION['oLP']->return_new_tree();
echo '</div>';
}
if ($type == 'document' && !isset($_GET['file'])) {
// Show the template list.
echo '<div id="frmModel" style="display:block; height:890px;width:100px; position:relative;"></div>';}
echo '</div>';
//hide bar div
if ($action == 'add_item' && $type == 'document' && !isset($_GET['file'])) {
echo '<div id="hide_bar_template" class="span1"></div>';
if ($action == 'add_item' && $type == 'document' && !isset($_GET['file'])) {
echo '<div id="hide_bar_template" ></div>';
}
echo '<div id="doc_form" class="span8">';
if (isset($new_item_id) && is_numeric($new_item_id)) {
switch ($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, $type);
Display::display_confirmation_message(get_lang('NewLinksCreated'));
break;
case TOOL_STUDENTPUBLICATION:
echo $_SESSION['oLP']->display_manipulate($new_item_id, $type);
Display::display_confirmation_message(get_lang('NewStudentPublicationCreated'));
break;
case 'module':
echo $_SESSION['oLP']->display_manipulate($new_item_id, $type);
Display::display_confirmation_message(get_lang('NewModuleCreated'));
break;
case TOOL_QUIZ:
echo $_SESSION['oLP']->display_manipulate($new_item_id, $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, $type);
Display::display_confirmation_message(get_lang('NewForumCreated'));
break;
case 'thread':
echo $_SESSION['oLP']->display_manipulate($new_item_id, $type);
Display::display_confirmation_message(get_lang('NewThreadCreated'));
break;
}
} else {
switch ($type) {
case 'chapter':
echo $_SESSION['oLP']->display_item_form($type, get_lang('EnterDataNewChapter'));
break;
case 'module':
echo $_SESSION['oLP']->display_item_form($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;
}
if ($action == 'add_item' && $type == 'document' && !isset($_GET['file'])) {
echo '<div id="doc_form" class="span7">';
} else {
echo '<div id="doc_form" class="span8">';
}
if (isset($new_item_id) && is_numeric($new_item_id)) {
switch ($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, $type);
Display::display_confirmation_message(get_lang('NewLinksCreated'));
break;
case TOOL_STUDENTPUBLICATION:
echo $_SESSION['oLP']->display_manipulate($new_item_id, $type);
Display::display_confirmation_message(get_lang('NewStudentPublicationCreated'));
break;
case 'module':
echo $_SESSION['oLP']->display_manipulate($new_item_id, $type);
Display::display_confirmation_message(get_lang('NewModuleCreated'));
break;
case TOOL_QUIZ:
echo $_SESSION['oLP']->display_manipulate($new_item_id, $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, $type);
Display::display_confirmation_message(get_lang('NewForumCreated'));
break;
case 'thread':
echo $_SESSION['oLP']->display_manipulate($new_item_id, $type);
Display::display_confirmation_message(get_lang('NewThreadCreated'));
break;
}
} else {
switch ($type) {
case 'chapter':
echo $_SESSION['oLP']->display_item_form($type, get_lang('EnterDataNewChapter'));
break;
case 'module':
echo $_SESSION['oLP']->display_item_form($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();
Display::display_footer();

@ -301,4 +301,4 @@ if (isset($_POST['save_audio'])) {
echo $_SESSION['oLP']->overview();
/* FOOTER */
Display::display_footer();
Display::display_footer();

@ -364,11 +364,13 @@ switch ($action) {
$_SESSION['oLP']->delete_item($_GET['id']);
$is_success = true;
}
require 'lp_add_item.php';
/*
if (isset($_GET['view']) && $_GET['view'] == 'build') {
require 'lp_build.php';
} else {
require 'lp_admin_view.php';
}
}*/
}
break;

Loading…
Cancel
Save