Example #1
0
$groups_options_string = '';
foreach ($customer_groups_array as $key => $value) {
    $groups_options_string .= '<option value=\'' . $value['id'] . '\'>' . $value['text'] . '</option>';
}
// get categories array
$product_categories_array = array();
if (isset($lC_ObjectInfo)) {
    $Qcategories = $lC_Database->query('select categories_id from :table_products_to_categories where products_id = :products_id');
    $Qcategories->bindTable(':table_products_to_categories', TABLE_PRODUCTS_TO_CATEGORIES);
    $Qcategories->bindInt(':products_id', $lC_ObjectInfo->getInt('products_id'));
    $Qcategories->execute();
    while ($Qcategories->next()) {
        $product_categories_array[] = $Qcategories->valueInt('categories_id');
    }
}
$assignedCategoryTree = new lC_CategoryTree();
$assignedCategoryTree->setBreadcrumbUsage(false);
$assignedCategoryTree->setSpacerString('&nbsp;', 5);
function getCustomerGroupOptionsString($id = null, $esc = false)
{
    global $customer_groups_array;
    $options_string = '';
    foreach ($customer_groups_array as $value) {
        $options_string_esc .= '<option value=\'' . $value['id'] . '\' ' . ($id == $value['id'] ? 'selected=\'selected\'' : '') . '>' . $value['text'] . '</option>';
        $options_string .= '<option value="' . $value['id'] . '" ' . ($id == $value['id'] ? 'selected="selected"' : '') . '">' . $value['text'] . '</option>';
    }
    if ($esc) {
        return $options_string_esc;
    } else {
        return $options_string;
    }
Example #2
0
<?php

/**
  @package    catalog::admin::applications
  @author     Loaded Commerce
  @copyright  Copyright 2003-2014 Loaded Commerce, LLC
  @copyright  Portions Copyright 2003 osCommerce
  @copyright  Template built on Developr theme by DisplayInline http://themeforest.net/user/displayinline under Extended license 
  @license    https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt
  @version    $Id: edit.php v1.0 2013-08-08 datazen $
*/
if (is_numeric($_GET[$lC_Template->getModule()])) {
    $cInfo = lC_Categories_Admin::get($_GET[$lC_Template->getModule()]);
}
$assignedCategoryTree = new lC_CategoryTree();
$assignedCategoryTree->setBreadcrumbUsage(false);
$assignedCategoryTree->setSpacerString('&nbsp;', 5);
?>
<style scoped="scoped">
.qq-upload-drop-area { min-height: 100px; top: -200px; }
.qq-upload-drop-area span { margin-top:-16px; }
TD { padding: 5px 0 0 5px; }
.legend { font-weight:bold; font-size: 1.1em; }
</style>
<!-- Main content -->
<section role="main" id="main">
  <hgroup id="main-title" class="thin">
    <h1><?php 
echo isset($cInfo) && isset($cInfo[$lC_Language->getID()]['categories_name']) ? $cInfo[$lC_Language->getID()]['categories_name'] : $lC_Language->get('heading_title_new_category');
?>
</h1>
Example #3
0
 public static function assignedCategoryTreeSelect($spacer = 0)
 {
     $assignedCategoryTree = new lC_CategoryTree();
     $assignedCategoryTree->setBreadcrumbUsage(false);
     $assignedCategoryTree->setSpacerString('&nbsp;', 3);
     $assignedCategoryTreeSelect = '';
     foreach ($assignedCategoryTree->getArray() as $value) {
         if ($value['mode'] == 'category') {
             $assignedCategoryTreeSelect .= '<option value="' . $value['id'] . '">' . $value['title'] . '</option>' . "\n";
         }
     }
     return $assignedCategoryTreeSelect;
 }