function return_content() { $OSCOM_CategoryTree = new category_tree(); $OSCOM_StatusTree = new status_tree(); $return = '<!-- row start -->'; $return .= '<div class="row">'; $return .= '<!-- col starts -->'; $return .= '<div class="col-md-3">'; $return .= '<!-- panel starts -->'; $return .= '<div id="storage" class="panel panel-default">'; $return .= '<div class="panel-heading">'; $return .= '<h3 class="panel-title">' . TEXT_PLACE_HOLDER . '</h3>'; $return .= '</div>'; $return .= '<div class="panel-body">'; $return .= 'stuff'; $return .= '</div>'; $return .= '<ul id="header-storage" class="list-group">'; $return .= $OSCOM_StatusTree->getStatusTree(); $return .= '</ul>'; $return .= '</div>'; $return .= '<!-- panel ends -->'; $return .= '</div>'; $return .= '<!-- col ends -->'; $return .= '<!-- board starts -->'; $return .= '<div class="col-md-9">'; $return .= ' <div id="header-container" class="drop_area">'; $return .= $OSCOM_CategoryTree->getTree(); $return .= ' </div>'; $return .= '</div>'; $return .= '<!-- board ends -->'; $return .= '</div>'; $return .= '<!-- row ends -->'; header('Content-Type: application/json'); echo json_encode($return); }
<?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ require 'includes/application_top.php'; require DIR_WS_INCLUDES . 'bootstrap_top.php'; echo '<div id="dndPlaceHolder">'; echo '<div id="return-form-result"></div>'; $OSCOM_CategoryTree = new category_tree(); $OSCOM_StatusTree = new status_tree(); echo '<div id="header-result" class="container">' . '<!-- row start -->' . '<div class="row">' . '<!-- col starts -->' . '<div class="col-md-3">' . '<!-- panel starts -->' . '<div id="storage" class="panel panel-default">' . '<div class="panel-heading">' . '<h3 class="panel-title">' . TEXT_PLACE_HOLDER . '</h3>' . '</div>' . '<div class="panel-body">' . 'stuff' . '</div>' . '<ul id="header-storage" class="list-group">' . $OSCOM_StatusTree->getStatusTree() . '</ul>' . '</div>' . '<!-- panel ends -->' . '</div>' . '<!-- col ends -->' . '<!-- board starts -->' . '<div class="col-md-9">' . '<div id="header-container" class="drop_area">' . $OSCOM_CategoryTree->getTree() . ' </div>' . '</div>' . '</div>' . '<!-- board ends -->' . '</div>' . '<!-- row ends -->' . '</div>'; echo '</div><!-- dndPlaceHolder ends -->'; require DIR_WS_INCLUDES . 'bootstrap_bottom.php'; require DIR_WS_INCLUDES . 'application_bottom.php';
$content .= '<ul class="dropdown-menu" role="menu">'; $content .= '<li><a data-action="create_header" data-type="dropdown" class="action "href="#">New Dropdown</a></li>'; $content .= '<li><a data-action="create_header" data-type="dropdowncat" class="action "href="#">New Cat dropdown</a></li>'; $content .= '<li class="divider"></li>'; $content .= '<li><a data-action="create_header" data-type="form" class="action "href="#">New Form</a></li>'; $content .= '<li><a data-action="create_header" data-type="formsearch" class="action "href="#">New Search Form</a></li>'; $content .= '<li class="divider"></li>'; $content .= '<li><a data-action="create_header" data-type="text" class="action "href="#">New Text</a></li>'; $content .= '<li><a data-action="create_header" data-type="link" class="action "href="#">New Link</a></li>'; $content .= '<li><a data-action="create_header" data-type="logo" class="action "href="#">New Logo</a></li>'; $content .= '<li><a data-action="create_header" data-type="cart" class="action "href="#">New *cart</a></li>'; $content .= '<li><a data-action="create_header" data-type="button" class="action "href="#">New Button</a></li>'; $content .= '<li><a data-action="create_header" data-type="language" class="action "href="#">New language</a></li>'; $content .= '</ul>'; $content .= '</div>'; $content .= '</div>'; $content .= '<div class="col-md-4 text-center">'; $content .= '<a href="bts_css_editor.php" type="button" class="btn btn-danger">Css Editor</a>'; $content .= '</div>'; $content .= '</div><br/>'; echo $content; echo '<div id="return-form-result"></div>'; /* call the template builder class and set the default template id*/ $OSCOM_CategoryDemoTree = new category_demo_tree(); $OSCOM_CategoryDemoTree->setRootCategoryID($template_id); /* Compile the unused element tree structure -left sidebar*/ $OSCOM_StatusTree = new status_tree(); echo '<div class="contentContainer"><div id="header-result" class="container">' . '<!-- row start -->' . '<div class="row">' . '<!-- col starts -->' . '<div class="col-md-3">' . '<!-- panel starts -->' . '<div id="storage" class="panel panel-default">' . '<div class="panel-heading">' . '<h3 class="panel-title">' . TEXT_PLACE_HOLDER . '</h3>' . '</div>' . '<ul id="header-storage" class="list-group">' . $OSCOM_StatusTree->getStatusTree() . '</ul>' . '</div>' . '<!-- panel ends -->' . '</div>' . '<!-- col ends -->' . '<!-- board starts -->' . '<div class="col-md-9">' . '<div id="header-container" class="drop_area">' . '<!-- template Starts -->' . '<div class="col-md-12 alert alert-template dragMe" data-element-id="' . $template_id . '" id="' . $template_id . '" draggable="false">' . '<span class="label label-template">' . $OSCOM_CategoryDemoTree->getData($template_id, 'name') . '</span>' . $OSCOM_CategoryDemoTree->getTree() . ' </div><!-- template Ends -->' . ' </div>' . '</div>' . '</div>' . '<!-- board ends -->' . '</div>' . '<!-- row ends -->' . '</div>'; echo '</div><!-- dndPlaceHolder ends -->'; require DIR_WS_INCLUDES . 'template_bottom.php'; require DIR_WS_INCLUDES . 'application_bottom.php';
function return_content() { global $template_id; $OSCOM_StatusTree = new status_tree(); $OSCOM_CategoryDemoTree = new category_demo_tree(); $OSCOM_CategoryDemoTree->setRootCategoryID($template_id); //$OSCOM_StatusTree = new status_tree(); //$OSCOM_StatusTree->setRootCategoryID($template_id); $return = '<!-- row start -->'; $return .= '<div class="row">'; $return .= '<!-- col starts -->'; $return .= '<div class="col-md-3">'; $return .= '<!-- panel starts -->'; $return .= '<div id="storage" class="panel panel-default">'; $return .= '<div class="panel-heading">'; $return .= '<h3 class="panel-title">' . TEXT_PLACE_HOLDER . '</h3>'; $return .= '</div>'; //$return .= '<div class="panel-body">'; //$return .= 'stuff'; //$return .= '</div>'; $return .= '<ul id="header-storage" class="list-group">'; $return .= $OSCOM_StatusTree->getStatusTree(); $return .= '</ul>'; $return .= '</div>'; $return .= '<!-- panel ends -->'; $return .= '</div>'; $return .= '<!-- col ends -->'; $return .= '<!-- board starts -->'; $return .= '<div class="col-md-9">'; $return .= ' <div id="header-container" class="drop_area">'; $return .= '<!-- template Starts -->'; $return .= ' <div class="col-md-12 breadcrumb alert alert-template dragMe" data-element-id="' . $template_id . '" id="' . $template_id . '" draggable="false">'; $return .= ' <span class="label label-template">' . $OSCOM_CategoryDemoTree->getData($template_id, 'name') . '</span>'; $return .= $OSCOM_CategoryDemoTree->getTree(); $return .= ' </div>'; $return .= '<!-- template Ends -->'; $return .= ' </div>'; $return .= '</div>'; $return .= '<!-- board ends -->'; $return .= '</div>'; $return .= '<!-- row ends -->'; header('Content-Type: application/json'); echo json_encode($return); }