<?php
/*
  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2010 osCommerce

  Released under the GNU General Public License
*/

  $cl_box_groups[] = array(
    'heading' => BOX_HEADING_CONFIGURATION.'<span class="cew">Improved Original Widget</span>',
    'apps' => array(
      array(
        'code' => FILENAME_ADMINISTRATORS,
        'title' => BOX_CONFIGURATION_ADMINISTRATORS,
        'link' => tep_href_link(FILENAME_ADMINISTRATORS)
      ),
      array(
        'code' => FILENAME_STORE_LOGO,
        'title' => BOX_CONFIGURATION_STORE_LOGO,
        'link' => tep_href_link(FILENAME_STORE_LOGO)
      )
    )
  );

  $configuration_groups_query = tep_db_query("select configuration_group_id as cgID, configuration_group_title as cgTitle from " . TABLE_CONFIGURATION_GROUP . " where visible = '1' and configuration_group_id <= '19' order by sort_order");
  while ($configuration_groups = tep_db_fetch_array($configuration_groups_query)) {
    $cl_box_groups[sizeof($cl_box_groups)-1]['apps'][] = array(
      'code' => FILENAME_CONFIGURATION,
      'title' => $configuration_groups['cgTitle'],
      'link' => tep_href_link(FILENAME_CONFIGURATION, 'gID=' . $configuration_groups['cgID']),
	  'active' => $configuration_groups['cgID']
    );
  }
  $cl_box_groups[] = array(
    'heading' => '<b>'.BOX_HEADING_FIRST_PAGE.'</b> <span class="cew">Exclusive Widget</span>');
  $configuration_groups_query = tep_db_query("select configuration_group_id as cgID, configuration_group_title as cgTitle from " . TABLE_CONFIGURATION_GROUP . " where visible = '1' and configuration_group_id >= '20' and configuration_group_id <= '39' order by sort_order");
  while ($configuration_groups = tep_db_fetch_array($configuration_groups_query)) {
    $cl_box_groups[sizeof($cl_box_groups)-1]['apps'][] = array(
      'code' => FILENAME_CONFIGURATION1,
      'title' => $configuration_groups['cgTitle'],
      'link' => tep_href_link(FILENAME_CONFIGURATION1, 'gID=' . $configuration_groups['cgID']),
	  'active' => $configuration_groups['cgID']
    );
  }
  $cl_box_groups[] = array(
    'heading' => '<b>'.BOX_HEADING_NESTED_PAGE.'</b> <span class="cew">Exclusive Widget</span>');
  $configuration_groups_query = tep_db_query("select configuration_group_id as cgID, configuration_group_title as cgTitle from " . TABLE_CONFIGURATION_GROUP . " where visible = '1' and configuration_group_id >= '40' and configuration_group_id <= '59' order by sort_order");
  while ($configuration_groups = tep_db_fetch_array($configuration_groups_query)) {
    $cl_box_groups[sizeof($cl_box_groups)-1]['apps'][] = array(
      'code' => FILENAME_CONFIGURATION2,
      'title' => $configuration_groups['cgTitle'],
      'link' => tep_href_link(FILENAME_CONFIGURATION2, 'gID=' . $configuration_groups['cgID']),
	  'active' => $configuration_groups['cgID']
    );
  }
  $cl_box_groups[] = array(
    'heading' => '<b>'.BOX_HEADING_MODULES_SETTING.'</b> <span class="cew">Exclusive Widget</span>');

  $configuration_groups_query = tep_db_query("select configuration_group_id as cgID, configuration_group_title as cgTitle from " . TABLE_CONFIGURATION_GROUP . " where visible = '1' and configuration_group_id >= '60' and configuration_group_id <= '79' order by sort_order");
  while ($configuration_groups = tep_db_fetch_array($configuration_groups_query)) {
    $cl_box_groups[sizeof($cl_box_groups)-1]['apps'][] = array(
      'code' => FILENAME_CONFIGURATION3,
      'title' => $configuration_groups['cgTitle'],
      'link' => tep_href_link(FILENAME_CONFIGURATION3, 'gID=' . $configuration_groups['cgID']),
	  'active' => $configuration_groups['cgID']
    );
  }	
  $cl_box_groups[] = array(
    'heading' => '<b>'.BOX_HEADING_PAGES.'</b> <span class="cew">Exclusive Widget</span>');
  $configuration_groups_query = tep_db_query("select configuration_group_id as cgID, configuration_group_title as cgTitle from " . TABLE_CONFIGURATION_GROUP . " where visible = '1' and configuration_group_id >= '80' and configuration_group_id <= '119' order by sort_order");
  while ($configuration_groups = tep_db_fetch_array($configuration_groups_query)) {
    $cl_box_groups[sizeof($cl_box_groups)-1]['apps'][] = array(
      'code' => FILENAME_CONFIGURATION4,
      'title' => $configuration_groups['cgTitle'],
      'link' => tep_href_link(FILENAME_CONFIGURATION4, 'gID=' . $configuration_groups['cgID']),
	  'active' => $configuration_groups['cgID']
    );
  }
  $cl_box_groups[] = array(
    'heading' => '<b>'.BOX_HEADING_BOXES_SETTING.'</b> <span class="cew">Exclusive Widget</span>');
  $configuration_groups_query = tep_db_query("select configuration_group_id as cgID, configuration_group_title as cgTitle from " . TABLE_CONFIGURATION_GROUP . " where visible = '1' and configuration_group_id >= '160' and configuration_group_id <= '279' order by sort_order");
  while ($configuration_groups = tep_db_fetch_array($configuration_groups_query)) {
    $cl_box_groups[sizeof($cl_box_groups)-1]['apps'][] = array(
      'code' => FILENAME_CONFIGURATION5,
      'title' => $configuration_groups['cgTitle'],
      'link' => tep_href_link(FILENAME_CONFIGURATION5, 'gID=' . $configuration_groups['cgID']),
	  'active' => $configuration_groups['cgID']
    );
  }
	
  $cl_box_groups[] = array(
    'heading' => '<b>'.BOX_HEADING_SETTING.'</b> <span class="cew">Exclusive Widget</span>');
  $configuration_groups_query = tep_db_query("select configuration_group_id as cgID, configuration_group_title as cgTitle from " . TABLE_CONFIGURATION_GROUP . " where visible = '1' and configuration_group_id >= '280' order by sort_order");
  while ($configuration_groups = tep_db_fetch_array($configuration_groups_query)) {
    $cl_box_groups[sizeof($cl_box_groups)-1]['apps'][] = array(
      'code' => FILENAME_CONFIGURATION6,
      'title' => $configuration_groups['cgTitle'],
      'link' => tep_href_link(FILENAME_CONFIGURATION6, 'gID=' . $configuration_groups['cgID']),
	  'active' => $configuration_groups['cgID']
    );
  }
	
?>
