Example #1
0
 public static function getData($id)
 {
     global $lC_Database, $lC_Vqmod;
     include $lC_Vqmod->modCheck('includes/modules/services/' . $_GET['module'] . '.php');
     $module = 'lC_Services_' . $_GET['module'] . '_Admin';
     $module = new $module();
     $cnt = 0;
     $keys = '';
     $result = array();
     foreach ($module->keys() as $key) {
         $Qkey = $lC_Database->query('select configuration_title, configuration_value, configuration_description, use_function, set_function from :table_configuration where configuration_key = :configuration_key');
         $Qkey->bindTable(':table_configuration', TABLE_CONFIGURATION);
         $Qkey->bindValue(':configuration_key', $key);
         $Qkey->execute();
         $keys .= '<label for="' . $Qkey->value('configuration_title') . '" class="label"><strong>' . $Qkey->value('configuration_title') . '</strong></label>';
         if (!lc_empty($Qkey->value('set_function'))) {
             $keys .= lc_call_user_func($Qkey->value('set_function'), $Qkey->value('configuration_value'), $key);
         } else {
             $keys .= lc_draw_input_field('configuration[' . $key . ']', $Qkey->value('configuration_value'), 'class="input" onfocus="this.select();" style="width:28%;"');
         }
         $keys .= '<span class="margin-left">' . lc_show_info_bubble($Qkey->value('configuration_description'), null, 'on-left grey') . '</span><br /><br />';
         $cnt++;
     }
     $result['keys'] = substr($keys, 0, strrpos($keys, '<br /><br />'));
     $result['totalKeys'] = $cnt;
     $result['title'] = $module->title;
     return $result;
 }
Example #2
0
echo $lC_Language->get('field_access');
?>
</label>
                    <!-- VQMOD-hookpoint; DO NOT MODIFY OR REMOVE THE LINE BELOW -->
                    <span class="upsellinfo" upselltitle="<?php 
echo $lC_Language->get('text_access_levels_upsell_title');
?>
" upselldesc="<?php 
echo $lC_Language->get('text_access_levels_upsell_desc');
?>
"><?php 
echo lc_go_b2b();
?>
</span>  
                    <?php 
echo lc_show_info_bubble($lC_Language->get('info_bubble_categories_access_levels'), null, 'on-right grey large-margin-left');
?>
  
                  </p>
                  <!-- VQMOD-hookpoint; DO NOT MODIFY OR REMOVE THE LINE BELOW -->
                  <p class="margin-left"><input type="checkbox" class="checkbox small-margin-right" disabled> <?php 
echo $lC_Language->get('access_levels_registered');
?>
</p><p class="margin-left"><input type="checkbox" class="checkbox small-margin-right" disabled> <?php 
echo $lC_Language->get('access_levels_wholesale');
?>
</p><p class="margin-left"><input type="checkbox" class="checkbox small-margin-right" disabled> <?php 
echo $lC_Language->get('access_levels_dealer');
?>
</p>
                </div>
Example #3
0
]" class="button silver-gradient glossy"><?php 
    echo $lC_Language->showImage($l['code']);
    ?>
</label>
                <?php 
    echo lc_draw_textarea_field('branding_footer_text[' . $l['id'] . ']', isset($bInfo) && isset($bInfo[$l['id']]['footer_text']) ? $bInfo[$l['id']]['footer_text'] : null, 48, 2, 'id="branding_footer_text[' . $l['id'] . ']" class="required input-unstyled full-width autoexpanding"');
    ?>
              </span>
              <?php 
}
?>
          </div>
          <div id="customcss" class="with-padding">
            <p class="button-height block-label mid-margin-bottom">
              <label class="label" for="branding_customcss"><?php 
echo lc_show_info_bubble($lC_Language->get('info_bubble_customcss'));
echo $lC_Language->get('field_customcss_text');
?>
</label>
              <?php 
echo lc_draw_textarea_field('branding_customcss', isset($bInfo) && isset($bInfo['custom_css']) ? $bInfo['custom_css'] : null, 48, 15, 'id="branding_customcss" class="input full-width required autoexpanding small-margin-top margin-bottom"');
?>
            </p>
          </div>
        </div>
      </div>
    </form>
  </div>
  <div class="clear-both"></div>
  <div class="six-columns twelve-columns-tablet margin-bottom">
    <div id="buttons-menu-div-listing">
Example #4
0
      <?php 
if (utility::isPro() === false) {
    ?>
        <div class="twelve-columns strong mid-margin-bottom upsellwrapper">
          <span class="upsellinfo" upselltitle="<?php 
    echo $lC_Language->get('text_product_class_upsell_title');
    ?>
" upselldesc="<?php 
    echo $lC_Language->get('text_product_class_upsell_desc');
    ?>
"><?php 
    echo $lC_Language->get('text_product_class') . lc_go_pro();
    ?>
</span>
          <?php 
    echo lc_show_info_bubble($lC_Language->get('info_bubble_data_product_class'));
    ?>
        </div>
        <div class="twelve-columns product-module-content margin-bottom">
          <span class="select full-width replacement select-styled-list disabled">
            <select class="withClearFunctions disabled">
              <option><?php 
    echo $lC_Language->get('text_common');
    ?>
</option>
            </select>
            <span class="select-value"><?php 
    echo $lC_Language->get('text_common');
    ?>
</span>
            <span class="select-arrow"></span>
Example #5
0
      <div class="field-block field-block-product button-height">
        <label for="specials_pricing_switch" class="label"><b><?php 
    echo $lC_Language->get('text_special_pricing');
    ?>
</b></label>
        <input id="specials_pricing_switch" name="specials_pricing_switch" onchange="togglePricingSection(this, 'specials_pricing_container');" type="checkbox" class="switch wider specials-pricing" data-text-off="<?php 
    echo $lC_Language->get('slider_switch_disabled');
    ?>
" data-text-on="<?php 
    echo $lC_Language->get('slider_switch_enabled');
    ?>
"<?php 
    echo isset($pInfo) && $pInfo->get('products_special_price') != null ? ' checked' : '';
    ?>
 /><?php 
    echo lc_show_info_bubble($lC_Language->get('info_bubble_pricing_specials'), null, 'info-spot on-left grey margin-left margin-right');
    ?>
        <div onclick="togglePricingSection(this, 'specials_pricing_container');" style="cursor:pointer;" class="field-block-chevron-container float-right"><span id="specials_pricing_container_span" class="icon-chevron-thin-down icon-size2"></span></div>
      </div>
      <div id="specials_pricing_container" class="field-drop button-height black-inputs no-margin-bottom"<?php 
    echo isset($pInfo) && $pInfo->get('products_special_price') != null ? ' style="display:block;"' : ' style="display:none;"';
    ?>
>
        <?php 
    echo lC_Products_Admin::getSpecialPricingContent();
    ?>
      </div>
      <?php 
}
?>
                
Example #6
0
 public static function getProductAttributeModules($section = '')
 {
     global $lC_Database, $lC_Language, $_module;
     $aInfo = new lC_ObjectInfo(lC_Products_Admin::get($_GET[$_module]));
     $attributes = $aInfo->get('attributes');
     $attributes2 = $aInfo->get('attributes2');
     $output = '';
     $Qattributes = $lC_Database->query('select id, code from :table_templates_boxes where modules_group = :modules_group order by code desc');
     $Qattributes->bindTable(':table_templates_boxes');
     $Qattributes->bindValue(':modules_group', 'product_attributes');
     $Qattributes->execute();
     while ($Qattributes->next()) {
         $module = basename($Qattributes->value('code'));
         if (!class_exists('lC_ProductAttributes_' . $module)) {
             if (file_exists(DIR_FS_ADMIN . 'includes/modules/product_attributes/' . $module . '.php')) {
                 include DIR_FS_ADMIN . 'includes/modules/product_attributes/' . $module . '.php';
             } else {
                 if (lC_Addons_Admin::hasAdminAddonsProductAttributesModule($module)) {
                     include lC_Addons_Admin::getAdminAddonsProductAttributesModulePath($module);
                 }
             }
         }
         if (class_exists('lC_ProductAttributes_' . $module)) {
             $module = 'lC_ProductAttributes_' . $module;
             $module = new $module();
             if ($module->getSection() == $section) {
                 if (file_exists(DIR_FS_ADMIN . 'includes/languages/' . $lC_Language->getCode() . '/modules/product_attributes/' . $module->getCode() . '.php')) {
                     $lC_Language->loadIniFile('/modules/product_attributes/' . $module->getCode() . '.php');
                 } else {
                     lC_Addons_Admin::loadAdminAddonsProductAttributesDefinitions($module->getCode());
                 }
                 // added for value2 support
                 $value2 = isset($attributes2[$Qattributes->valueInt('id')]) && $attributes2[$Qattributes->valueInt('id')] != null ? $attributes2[$Qattributes->valueInt('id')] : '';
                 $output .= '<div class="new-row-mobile six-columns six-columns-tablet twelve-columns-mobile no-margin-bottom">
                     <div class="twelve-columns strong mid-margin-bottom">
                       <span>' . $lC_Language->get('product_attributes_' . $module->getCode() . '_title') . '</span>' . lc_show_info_bubble($lC_Language->get('info_bubble_attributes_' . $module->getCode() . '_text'), null, 'info-spot on-left grey float-right mid-margin-bottom') . '
                     </div>
                     <div class="twelve-columns product-module-content margin-bottom">
                       ' . $module->setFunction(isset($attributes[$Qattributes->valueInt('id')]) ? $attributes[$Qattributes->valueInt('id')] : null, $value2) . '
                     </div>
                   </div>';
             }
         }
     }
     return $output;
 }
Example #7
0
?>
            </div>
            <div class="twelve-columns no-margin-bottom small-margin-top">
              <input type="text" class="input full-width" value="<?php 
echo isset($pInfo) ? $pInfo->get('products_weight') : null;
?>
" id="products_weight" name="products_weight" />
            </div>
          </div>
          <div class="new-row-mobile six-columns six-columns-tablet twelve-columns-mobile">
            <div class="twelve-columns no-margin-bottom strong">
              <span><?php 
echo $lC_Language->get('field_weight_class');
?>
</span><?php 
echo lc_show_info_bubble($lC_Language->get('info_bubble_shipping_weight_class'));
?>
            </div>
            <div class="twelve-columns no-margin-bottom small-margin-top">
              <?php 
echo lc_draw_pull_down_menu('products_weight_class', $weight_class_array, isset($pInfo) ? $pInfo->get('products_weight_class') : SHIPPING_WEIGHT_UNIT, 'class="select full-width small-margin-top"');
?>
            </div>
          </div>
        </div>
      </fieldset>
    </div>
    <div class="twelve-columns">
      <fieldset class="fieldset">
        <legend class="legend"><?php 
echo $lC_Language->get('text_supplier_characteristics');
Example #8
0
?>
</span>
              <?php 
echo lc_draw_input_field('products_price', isset($pInfo) ? lc_round($pInfo->get('products_price'), DECIMAL_PLACES) : null, 'style="font-size:1em; padding:4px; height:20px; width:80%;" class="required input-unstyled" onfocus="this.select();" id="products_price0" onchange="$(\'#products_base_price\').val(this.value); updatePricingDiscountDisplay();"');
?>
            </div>              
          </div>
          <div class="new-row-mobile new-row-tablet twelve-columns-mobile twelve-columns-tablet six-columns">
            <div class="columns">      
              <div class="six-columns-mobile six-columns-tablet seven-columns margin-bottom">
                <span>
                  <span class="strong"><?php 
echo $lC_Language->get('field_status');
?>
</span><?php 
echo lc_show_info_bubble($lC_Language->get('info_bubble_content_status'), null, 'info-spot on-left grey margin-left');
?>
                </span><br />
                <span class="button-group">
                  <label for="ps_radio_1" class="button blue-active">
                    <input type="radio" name="products_status" id="ps_radio_1" value="active"<?php 
echo isset($pInfo) && $pInfo->getInt('products_status') == 1 ? ' checked' : '';
?>
 />
                    <?php 
echo $lC_Language->get('field_status_active');
?>
                  </label>
                  <label for="ps_radio_2" class="button red-active">
                    <input type="radio" name="products_status" id="ps_radio_2" value="inactive"<?php 
echo isset($pInfo) && $pInfo->getInt('products_status') == -1 ? ' checked' : '';
Example #9
0
  @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: options.php v1.0 2013-08-08 datazen $
*/
global $lC_Language, $pInfo;
?>
<div id="section_options_content" class="with-padding">
  <div class="columns">
    <div class="twelve-columns">
      <div class="new-row-mobile six-columns six-columns-tablet twelve-columns-mobile">
        <div class="twelve-columns no-margin-bottom">
          <div class="strong"><?php 
echo $lC_Language->get('text_inventory_control');
echo lc_show_info_bubble($lC_Language->get('info_bubble_inventory_control'), null, 'info-spot on-right grey margin-left');
?>
</div>
          <div id="optionsInvControlButtons" class="upsellwrapper button-group small-margin-top">
            <!-- lc_options_inventory_control begin -->
            <label for="ioc_radio_1" class="oicb button blue-active<?php 
echo isset($pInfo) && ($pInfo->getInt('has_children') == 1 || $pInfo->getInt('has_subproducts') == 1) ? '' : ' active';
?>
">
              <input type="radio" name="inventory_option_control_radio_group" id="ioc_radio_1" value="1" />
              <?php 
echo $lC_Language->get('text_single_sku');
?>
            </label>
            <label upselltitle="<?php 
echo $lC_Language->get('text_multi_sku');
Example #10
0
          </div>
          <div class="field-block button-height margin-bottom">
            <label for="expires_date" class="label"><b><?php 
echo $lC_Language->get('label_expires_date');
?>
</b></label>
            <div>
              <span class="input">
                <span class="icon-calendar"></span>
                <input type="text" name="expires_date" id="expires_date" value="<?php 
echo isset($fInfo) && $fInfo->get('expires_date') != null ? $fInfo->get('expires_date') : null;
?>
" class="input-unstyled datepicker" style="max-width:147px;">
              </span>
              <?php 
echo lc_show_info_bubble($lC_Language->get('info_bubble_expires_date'), null, 'info-spot on-left grey margin-left');
?>
            </div>
          </div>
        </fieldset>
      </div>
    </div>
    <?php 
echo lc_draw_hidden_field('subaction', 'confirm');
?>
    <div class="clear-both"></div>
    <div class="six-columns twelve-columns-tablet">
      <div id="buttons-menu-div-listing">
        <div id="buttons-container" style="position: relative;" class="clear-both">
          <div style="float:right;">
            <p class="button-height" align="right">