public static function getData($id)
 {
     global $lC_Database, $lC_Language, $lC_Vqmod;
     $result = array();
     include $lC_Vqmod->modCheck('includes/modules/order_total/' . $id . '.php');
     $lC_Language->injectDefinitions('modules/order_total/' . $id . '.xml');
     $module = 'lC_OrderTotal_' . $id;
     $module = new $module();
     $cnt = 0;
     $keys = '';
     foreach ($module->getKeys() 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>&nbsp;<span class="icon-info-round icon-blue with-tooltip with-small-padding" style="cursor:pointer;" title="' . $Qkey->value('configuration_description') . '" data-tooltip-options=\'{"classes":["anthracite-gradient"]}\'></span>';
         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 full-width"');
         }
         $keys .= '</label><br /><br />';
         $cnt++;
     }
     $result['keys'] = substr($keys, 0, strrpos($keys, '<br /><br />'));
     $result['totalKeys'] = $cnt;
     return $result;
 }
Ejemplo n.º 2
0
 public static function getFormData($id = null, $edit = false)
 {
     global $lC_Database, $lC_Language;
     $result = array();
     $result['titleCode'] = '';
     foreach ($lC_Language->getAll() as $l) {
         $result['titleCode'] .= '<span class="input" style="width:95%"><label for="title[' . $l['id'] . ']" class="button silver-gradient glossy">' . $lC_Language->showImage($l['code']) . '</label>' . lc_draw_input_field('title[' . $l['id'] . ']', null, 'class="input-unstyled"') . '</span><br />';
     }
     if (isset($id) && $id != null) {
         $lC_ObjectInfo = new lC_ObjectInfo(lC_Image_groups_Admin::getData($id));
         $status_name = array();
         $Qgd = $lC_Database->query('select language_id, title from :table_products_images_groups where id = :id');
         $Qgd->bindTable(':table_products_images_groups', TABLE_PRODUCTS_IMAGES_GROUPS);
         $Qgd->bindInt(':id', $id);
         $Qgd->execute();
         while ($Qgd->next()) {
             $status_name[$Qgd->valueInt('language_id')] = $Qgd->value('title');
         }
         $result['editTitleCode'] = '';
         foreach ($lC_Language->getAll() as $l) {
             $result['editTitleCode'] .= '<span class="input" style="width:95%"><label for="title[' . $l['id'] . ']" class="button silver-gradient glossy">' . $lC_Language->showImage($l['code']) . '</label>' . lc_draw_input_field('title[' . $l['id'] . ']', isset($status_name[$l['id']]) ? $status_name[$l['id']] : null, 'class="input-unstyled"') . '</span><br />';
         }
         $result['code'] = $lC_ObjectInfo->get('code');
         $result['width'] = $lC_ObjectInfo->get('size_width');
         $result['height'] = $lC_ObjectInfo->get('size_height');
         $result['force_size'] = $lC_ObjectInfo->get('force_size');
     }
     return $result;
 }
Ejemplo n.º 3
0
 public function setFunction($value, $value2 = null)
 {
     global $lC_Language;
     if (utility::isPro() === false) {
         $string = '<span class="input large-margin-bottom">
                <span class="icon-calendar mid-margin-right"></span>
                ' . lc_draw_input_field('attributes[' . self::getID() . ']', $value, 'id="attributes_' . self::getID() . '" class="input-unstyled datepicker"') . '
              </span>
              <span class="input relative disabled date-available-ends margin-bottom">
                <span class="icon-calendar mid-margin-right"></span>
                <div class="strong upsellwrapper" style="position:absolute;top:-29px;left:0px;">
                  <span class="upsellinfo" upselltitle="' . $lC_Language->get('text_availability_ends') . '" upselldesc="' . $lC_Language->get('text_availability_ends_desc') . '">Ends</span> ' . lc_go_pro() . '
                </div>
                ' . lc_draw_input_field('availability_ends_go_pro', null, 'id="availability_ends_go_pro" class="input-unstyled" disabled') . '
              </span>
              ';
     } else {
         $string = '<div class="no-wrap"><span class="input large-margin-bottom" style="width:46%;">
                <span class="icon-calendar mid-margin-right"></span>
                ' . lc_draw_input_field('attributes[' . self::getID() . ']', $value, 'id="attributes_' . self::getID() . '" class="input-unstyled datepicker"') . '
              </span>
              <span class="input relative date-available-ends margin-bottom" style="width:46%;">
                <span class="icon-calendar mid-margin-right"></span>
                <div class="strong" style="position:absolute;top:-29px;left:0px;">
                  <span>Ends</span>
                </div>
                ' . lc_draw_input_field('attributes2[' . self::getID() . ']', $value2, 'id="attributes2_' . self::getID() . '" class="input-unstyled datepicker"') . '
              </span></div>
              ';
     }
     return $string;
 }
Ejemplo n.º 4
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;
 }
Ejemplo n.º 5
0
 public function initialize()
 {
     global $lC_Language, $lC_Template, $lC_Product;
     if (isset($lC_Product) && is_a($lC_Product, 'lC_Product') && $lC_Template->getModule() != 'tell_a_friend') {
         $this->_content = '<li class="box-tell-a-friend-input">' . lc_draw_input_field('to_email_address', null, 'id="box-to_email_address" class="box-to-email-address"') . '&nbsp;<a class="box-tell-a-friend-submit" onclick="$(this).closest(\'form\').submit();"></a></li>' . "\n" . '<li class="box-tell-a-friend-text">' . $lC_Language->get('box_tell_a_friend_text') . '</li>' . "\n";
     }
 }
Ejemplo n.º 6
0
 public static function getData($id)
 {
     global $lC_Database, $lC_Language, $lC_Vqmod;
     include $lC_Vqmod->modCheck('../includes/classes/modules.php');
     $lC_Language->load('modules-' . $_GET['set']);
     include $lC_Vqmod->modCheck('../includes/modules/' . $_GET['set'] . '/' . $id . '.php');
     $module = 'lC_' . ucfirst($_GET['set']) . '_' . $id;
     $lC_Language->injectDefinitions('modules/' . $_GET['set'] . '/' . $id . '.xml');
     $module = new $module();
     $cnt = 0;
     $keys = '';
     $result = array();
     foreach ($module->getKeys() as $key) {
         $Qkey = $lC_Database->query('select configuration_title, configuration_key, 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 .= '<b>' . $Qkey->value('configuration_title') . '</b><br />' . $Qkey->value('configuration_description') . '<br />';
         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'));
         }
         $keys .= '<br /><br />';
         $cnt++;
     }
     $result['keys'] = substr($keys, 0, strrpos($keys, '<br /><br />'));
     $result['totalKeys'] = $cnt;
     $result['title'] = $module->getTitle();
     $result['author'] = $module->getAuthorName();
     return $result;
 }
Ejemplo n.º 7
0
 public static function getFormData($id = null, $edit = false)
 {
     global $lC_Database, $lC_Language;
     $result = array();
     $result['names'] = '';
     foreach ($lC_Language->getAll() as $l) {
         $result['names'] .= '<span class="input" style="width:88%"><label for="name[' . $l['id'] . ']" class="button silver-gradient glossy">' . $lC_Language->showImage($l['code']) . '</label>' . lc_draw_input_field('name[' . $l['id'] . ']', null, 'class="input-unstyled"') . '</span><br />';
     }
     if (isset($id) && $id != null) {
         if ($edit === true) {
             $Qsd = $lC_Database->query('select language_id, orders_status_name, orders_status_type from :table_orders_status where orders_status_id = :orders_status_id');
             $Qsd->bindTable(':table_orders_status', TABLE_ORDERS_STATUS);
             $Qsd->bindInt(':orders_status_id', $id);
             $Qsd->execute();
             $status_name = array();
             while ($Qsd->next()) {
                 $status_name[$Qsd->valueInt('language_id')] = $Qsd->value('orders_status_name');
                 $status_type = $Qsd->value('orders_status_type');
             }
             $result['editNames'] = '';
             $result['editType'] = $status_type;
             foreach ($lC_Language->getAll() as $l) {
                 $result['editNames'] .= '<span class="input" style="width:88%"><label for="name[' . $l['id'] . ']" class="button silver-gradient glossy">' . $lC_Language->showImage($l['code']) . '</label>' . lc_draw_input_field('name[' . $l['id'] . ']', isset($status_name[$l['id']]) ? $status_name[$l['id']] : null, 'class="input-unstyled"') . '</span><br />';
             }
         } else {
             $Qorders = $lC_Database->query('select count(*) as total from :table_orders where orders_status = :orders_status');
             $Qorders->bindTable(':table_orders', TABLE_ORDERS);
             $Qorders->bindInt(':orders_status', $id);
             $Qorders->execute();
             $Qhistory = $lC_Database->query('select count(*) as total from :table_orders_status_history where orders_status_id = :orders_status_id group by orders_id');
             $Qhistory->bindTable(':table_orders_status_history', TABLE_ORDERS_STATUS_HISTORY);
             $Qhistory->bindInt(':orders_status_id', $id);
             $Qhistory->execute();
             if ($Qorders->valueInt('total') > 0 || $Qhistory->valueInt('total') > 0) {
                 if ($Qorders->valueInt('total') > 0) {
                     $result['rpcStatus'] = -2;
                     $result['totalOrders'] = $Qorders->valueInt('total');
                 }
                 if ($Qhistory->valueInt('total') > 0) {
                     $result['rpcStatus'] = -3;
                     $result['totalOrders'] = $Qhistory->valueInt('total');
                 }
             }
         }
     }
     return $result;
 }
Ejemplo n.º 8
0
 public static function getFormData($id = null)
 {
     global $lC_Database, $lC_Language;
     $result = array();
     foreach ($lC_Language->getAll() as $l) {
         $result['mfgUrl'] .= '<span class="input" style="width:88%"><label for="name[' . $l['id'] . ']" class="button silver-gradient glossy">' . $lC_Language->showImage($l['code']) . '</label>' . lc_draw_input_field('manufacturers_url[' . $l['id'] . ']', null, 'class="input-unstyled"') . '</span><br />';
     }
     if ($id != null && is_numeric($id)) {
         $manufacturers_array = array();
         $Qmanufacturer = $lC_Database->query('select manufacturers_url, languages_id from :table_manufacturers_info where manufacturers_id = :manufacturers_id');
         $Qmanufacturer->bindTable(':table_manufacturers_info', TABLE_MANUFACTURERS_INFO);
         $Qmanufacturer->bindInt(':manufacturers_id', $id);
         $Qmanufacturer->execute();
         while ($Qmanufacturer->next()) {
             $manufacturers_array[$Qmanufacturer->valueInt('languages_id')] = $Qmanufacturer->value('manufacturers_url');
         }
         foreach ($lC_Language->getAll() as $l) {
             $result['editMfgUrl'] .= '<span class="input" style="width:88%"><label for="name[' . $l['id'] . ']" class="button silver-gradient glossy">' . $lC_Language->showImage($l['code']) . '</label>' . lc_draw_input_field('manufacturers_url[' . $l['id'] . ']', $manufacturers_array[$l['id']], 'class="input-unstyled"') . '</span><br />';
         }
         $result['mData'] = lC_Manufacturers_Admin::getData($id, $lC_Language->getID());
         $result['mImage'] = lc_image('../' . DIR_WS_IMAGES . 'manufacturers/' . $result['mData']['manufacturers_image'], $result['mData']['manufacturers_name']) . '<br />' . DIR_WS_CATALOG . DIR_WS_IMAGES . 'manufacturers/' . $result['mData']['manufacturers_image'] . '<br />';
     }
     return $result;
 }
Ejemplo n.º 9
0
          <div class="inputs blue-gradient" style="display:inline; padding:8px 0;">
            <span class="mid-margin-left no-margin-right strong"><?php 
echo $lC_Currencies->getSymbolLeft();
?>
</span>
            <?php 
if (isset($pInfo)) {
    if (DISPLAY_PRICE_WITH_TAX == 1 || $_SESSION['localization']['show_tax'] == 1) {
        $products_price_gross = lc_round($pInfo->get('products_price_with_tax'), DECIMAL_PLACES);
    } else {
        $products_price_gross = lc_round($pInfo->get('products_price'), DECIMAL_PLACES);
    }
} else {
    $products_price_gross = null;
}
echo lc_draw_input_field('products_price_gross', $products_price_gross, 'style="width:94%;" class="input-unstyled strong products-price-gross" id="products_price0_gross" READONLY');
?>
          </div>         
        </div>
      </div>
    </div>
  </fieldset>
  <fieldset class="fieldset">
    <legend class="legend"><?php 
echo $lC_Language->get('text_management_settings');
?>
</legend>
    <div class="columns no-margin-bottom">
      <?php 
echo lC_Products_Admin::getProductAttributeModules('dataManagementSettings');
?>
Ejemplo n.º 10
0
</label>'+
                   '          <span class="input">'+
                   '            <span class="icon-calendar"></span>'+
                   '            <?php 
echo lc_draw_input_field('date_expires', null, 'class="input-unstyled datepicker"');
?>
'+
                   '          </span>'+
                   '      </p>'+  
                   '      <p class="button-height inline-label">'+
                   '        <label for="expires_impressions" class="label"><?php 
echo $lC_Language->get('field_maximum_impressions');
?>
</label>'+
                   '        <?php 
echo lc_draw_input_field('expires_impressions', null, 'class="input" maxlength="7" size="7"');
?>
'+
                   '      </p>'+                       
                   '      <p class="button-height inline-label">'+
                   '        <label for="status" class="label"><?php 
echo $lC_Language->get('field_status');
?>
</label>'+
                   '         <?php 
echo '&nbsp;' . lc_draw_checkbox_field('status', null, null, 'class="switch medium checked" checked="checked" data-text-on="' . strtoupper($lC_Language->get('button_yes')) . '" data-text-off="' . strtoupper($lC_Language->get('button_no')) . '"');
?>
'+
                   '      </p>'+
                   '    </form>'+
                   '    <hr>'+
Ejemplo n.º 11
0
                   '        <label for="categories_image" class="label" style="width:33%;"><?php 
echo $lC_Language->get('field_image');
?>
</label>'+
                   '        <?php 
echo lc_draw_file_field('categories_image', true, 'class="file"');
?>
'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="sort_order" class="label" style="width:33%;"><?php 
echo $lC_Language->get('field_sort_order');
?>
</label>'+
                   '        <?php 
echo lc_draw_input_field('sort_order', null, 'class="input" id="editSortOrder"');
?>
'+
                   '      </p>'+
                   '    </form>'+
                   '  </div>'+
                   '</div>',
          title: '<?php 
echo $lC_Language->get('modal_heading_edit_category');
?>
',
          width: 500,
                actions: {
            'Close' : {
              color: 'red',
              click: function(win) { win.closeModal(); }
Ejemplo n.º 12
0
               '        <label for="price" class="label"><?php 
echo $lC_Language->get('text_price');
?>
</label>'+
               '        <?php 
echo lc_draw_input_field('price', null, 'class="input mid-margin-top" id="editPrice"');
?>
'+
               '      </p>'+
               '      <p class="button-height inline-label">'+
               '        <label for="quantity" class="label"><?php 
echo $lC_Language->get('text_quantity');
?>
</label>'+
               '        <?php 
echo lc_draw_input_field('quantity', null, 'class="input mid-margin-top" id="editQuantity"');
?>
'+
               '      </p>'+               
               '    </form>'+
               '  </div>'+               
               '  <span id="oId" style="display:none;"></span>'+
               '  <span id="pId" style="display:none;"></span>'+
               '  <span id="opId" style="display:none;"></span>'+
               '</div>',
        title: '<?php 
echo $lC_Language->get('text_product_details');
?>
',
        width: 600,
        scrolling: true,
Ejemplo n.º 13
0
 public static function getZones($id)
 {
     global $lC_Database;
     $Qcheck = $lC_Database->query('select zone_id from :table_zones where zone_country_id = :zone_country_id limit 1');
     $Qcheck->bindTable(':table_zones', TABLE_ZONES);
     $Qcheck->bindInt(':zone_country_id', $id);
     $Qcheck->execute();
     $entry_state_has_zones = $Qcheck->numberOfRows() > 0;
     $Qcheck->freeResult();
     $result = array();
     if (isset($entry_state_has_zones) && $entry_state_has_zones === true) {
         $Qzones = $lC_Database->query('select zone_name from :table_zones where zone_country_id = :zone_country_id order by zone_name');
         $Qzones->bindTable(':table_zones', TABLE_ZONES);
         $Qzones->bindInt(':zone_country_id', $id);
         $Qzones->execute();
         $zones_array = array();
         while ($Qzones->next()) {
             $zones_array[] = array('id' => $Qzones->value('zone_name'), 'text' => $Qzones->value('zone_name'));
         }
         $result['abZonesDropdown'] = lc_draw_pull_down_menu('ab_state', $zones_array, null, 'class="input with-small-padding" style="width:73%;"');
     } else {
         $result['abZonesDropdown'] = lc_draw_input_field('ab_state');
     }
     return $result;
 }
Ejemplo n.º 14
0
                   '        <label for="value" class="label" style="width:31% !important;"><?php 
echo $lC_Language->get('field_definition_group');
?>
</label>'+
                   '        <span id="groupSelection"></span><span class="icon-info-round icon-blue with-tooltip small-margin-left" title="<?php 
echo $lC_Language->get('tooltip_definition_group');
?>
" style="cursor:pointer;" data-tooltip-options=\'{"classes":["anthracite-gradient"]}\'></span>'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="group_new" class="label" style="width:31% !important;"><?php 
echo $lC_Language->get('field_definition_new_group');
?>
</label>'+
                   '        <?php 
echo lc_draw_input_field('group_new', null, 'class="input" style="width:90%;"');
?>
<span class="icon-info-round icon-blue with-tooltip small-margin-left" title="<?php 
echo $lC_Language->get('tooltip_new_definition_group');
?>
" style="cursor:pointer;" data-tooltip-options=\'{"classes":["anthracite-gradient"]}\'></span>'+
                   '      </p>'+
                   '    </form>'+
                   '  </div>'+
                   '</div>',
          title: '<?php 
echo $lC_Language->get('modal_heading_new_language_definition');
?>
',
          width: 500,
                actions: {
Ejemplo n.º 15
0
 public static function formData($id = null, $parent = null)
 {
     global $lC_Language, $_module;
     $lC_Language->loadIniFile('categories.php');
     $lC_CategoryTree = new lC_CategoryTree_Admin();
     $result = array();
     $categories_array = array('0' => $lC_Language->get('top_category'));
     foreach ($lC_CategoryTree->getArray() as $value) {
         $cid = explode('_', $value['id']);
         $count = count($cid);
         $cid = end($cid);
         $acArr = lC_Categories_Admin::getAllChildren($id);
         if ($cid != $id && !lC_Categories_Admin::in_array_r($cid, $acArr)) {
             $categories_array[$cid] = str_repeat("&nbsp;&nbsp;&nbsp;&nbsp;", $count - 1) . ' ' . $value['title'];
         }
     }
     $result['categoriesArray'] = $categories_array;
     if (isset($id) && is_numeric($id)) {
         $result['cData'] = lC_Categories_Admin::get($id, $lC_Language->getID());
         $result['categoryImage'] = '';
         $lC_ObjectInfo = new lC_ObjectInfo(lC_Categories_Admin::get($id));
         if (!lc_empty($lC_ObjectInfo->get('categories_image'))) {
             $result['categoryImage'] = '<div><p>' . lc_image('../' . DIR_WS_IMAGES . 'categories/' . $lC_ObjectInfo->get('categories_image'), $lC_ObjectInfo->get('categories_name'), HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT) . '<br />' . DIR_WS_CATALOG . 'images/categories/' . $lC_ObjectInfo->getProtected('categories_image') . '</p></div>';
         }
     }
     $category_names = '';
     foreach ($lC_Language->getAll() as $l) {
         if (isset($id) && is_numeric($id)) {
             $category_names .= '<span class="input" style="width:88%"><label for="categories_name[' . $l['id'] . ']" class="button silver-gradient glossy">' . $lC_Language->showImage($l['code']) . '</label>' . lc_draw_input_field('categories_name[' . $l['id'] . ']', $result['cData']['categories_name'], 'class="input-unstyled"') . '</span><br />';
         } else {
             $category_names .= '<span class="input" style="width:88%"><label for="categories_name[' . $l['id'] . ']" class="button silver-gradient glossy">' . $lC_Language->showImage($l['code']) . '</label>' . lc_draw_input_field('categories_name[' . $l['id'] . ']', null, 'class="input-unstyled"') . '</span><br />';
         }
     }
     $result['categoryNames'] = $category_names;
     $result['parentCategory'] = isset($parent) && $parent != null ? $parent : 0;
     return $result;
 }
Ejemplo n.º 16
0
?>
"></span></label>
      <?php 
echo lc_draw_input_field('CFG_STORE_OWNER_EMAIL_ADDRESS', null, 'class="input" style="width:93%;"');
?>
    </div> 
    <div class="field-block button-height">
      <label for="CFG_ADMINISTRATOR_EMAIL" class="label"><b><?php 
echo $lC_Language->get('param_administrator_email');
?>
</b>&nbsp;<span style="cursor:pointer;" class="hide-on-mobile hide-on-tablet icon-info-round icon-blue with-tooltip with-small-padding" data-tooltip-options='{"classes":["blue-gradient"],"position":"right"}' title="<?php 
echo $lC_Language->get('param_administrator_email_description');
?>
"></span></label>
      <?php 
echo lc_draw_input_field('CFG_ADMINISTRATOR_EMAIL', null, 'class="input" style="width:93%;"');
?>
    </div>
    <div class="field-block button-height">
      <label for="CFG_ADMINISTRATOR_PASSWORD" class="label"><b><?php 
echo $lC_Language->get('param_administrator_password');
?>
</b>&nbsp;<span style="cursor:pointer;" class="hide-on-mobile hide-on-tablet icon-info-round icon-blue with-tooltip with-small-padding" data-tooltip-options='{"classes":["blue-gradient"],"position":"right"}' title="<?php 
echo $lC_Language->get('param_administrator_password_description');
?>
"></span></label>
      <?php 
echo lc_draw_password_field('CFG_ADMINISTRATOR_PASSWORD', 'class="input" style="width:93%;"');
?>
    </div>
    <div class="field-block button-height">
Ejemplo n.º 17
0
        return false;
      } 
      $.modal({
        content: '<div id="newFolderForm">'+
                 '  <form name="addFolder" id="addFolder" action="" method="post">'+ 
                 '    <p><?php 
echo $lC_Language->get('introduction_new_directory');
?>
</p>'+ 
                 '    <p class="button-height inline-label">'+
                 '      <label for="fid" class="label" style="width:30%;"><?php 
echo $lC_Language->get('field_directory_name');
?>
</label>'+
                 '      <?php 
echo lc_draw_input_field('fid', null, 'class="input" style="width:90%;"');
?>
'+
                 '    </p>'+                
                 '  </form>'+ 
                 '  <p class="margin-top"><?php 
echo lc_output_string_protected($_SESSION['fm_directory']);
?>
</p>'+ 
                 '</div>',
        title: '<?php 
echo $lC_Language->get('modal_heading_new_folder');
?>
',
        width: 600,
            actions: {
Ejemplo n.º 18
0
?>
<div class="infoBoxHeading"><?php 
echo lc_icon_admin('edit.png') . ' ' . $lC_ObjectInfo->getProtected('products_name');
?>
</div>
<div class="infoBoxContent">
  <form name="pEdit" action="<?php 
echo lc_href_link_admin(FILENAME_DEFAULT, $lC_Template->getModule() . '&page=' . $_GET['page'] . '&pID=' . $lC_ObjectInfo->getInt('products_id') . '&action=save');
?>
" method="post">
  <p><?php 
echo $lC_Language->get('introduction_edit_product_expected');
?>
</p>
  <p><?php 
echo $lC_Language->get('field_date_expected') . '<br />' . lc_draw_input_field('products_date_available', $lC_ObjectInfo->get('products_date_available'));
?>
</p>
  <p align="center"><?php 
echo lc_draw_hidden_field('subaction', 'confirm') . '<input type="submit" value="' . $lC_Language->get('button_save') . '" class="operationButton" /> <input type="button" value="' . $lC_Language->get('button_cancel') . '" onclick="document.location.href=\'' . lc_href_link_admin(FILENAME_DEFAULT, $lC_Template->getModule() . '&page=' . $_GET['page']) . '\';" class="operationButton" />';
?>
</p>
  </form>
</div>
<script type="text/javascript">
  $(function() {
    $("#products_date_available").datepicker( {
      dateFormat: 'yy-mm-dd',
      changeMonth: true,
      changeYear: true
    } );
Ejemplo n.º 19
0
                  </div>
                </div>
              </div>
              <!-- div class="twelve-columns no-margin-top no-margin-bottom">
                <div class="columns no-margin-left">
                  <div class="three-columns twelve-columns-mobile"> 
                    <div class="margin-right">
                      <label class="label" for="categories_content_file"><b><?php 
echo $lC_Language->get('field_categories_content_file');
?>
</b></label>
                    </div>
                  </div>
                  <div class="nine-columns twelve-columns-mobile upsellwrapper">
                    <?php 
echo lc_draw_input_field('categories_content_file', null, 'id="categories_content_file" name="categories_content_file" class="input" style="min-width:250px;"' . ($cInfo['categories_content_file'] != '' ? ' value="' . $cInfo['categories_content_file'] . '"' : ' placeholder="/customhtml.php"') . '" disabled');
?>
                    <span class="upsellinfo" upselltitle="<?php 
echo $lC_Language->get('text_html_content_file_upsell_title');
?>
" upselldesc="<?php 
echo $lC_Language->get('text_html_content_file_upsell_desc');
?>
"><?php 
echo lc_go_pro();
?>
</span>  
                    <?php 
echo lc_show_info_bubble($lC_Language->get('info_bubble_categories_content_file'), null, 'on-left grey large-margin-left');
?>
                    <p class="small-margin-top"><?php 
Ejemplo n.º 20
0
                   '        <label for="zone_name" class="label"><?php 
echo $lC_Language->get('field_name');
?>
</label>'+
                   '        <?php 
echo lc_draw_input_field('zone_name', null, 'class="input full-width" id="editZoneName"');
?>
'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="zone_description" class="label"><?php 
echo $lC_Language->get('field_description');
?>
</label>'+
                   '        <?php 
echo lc_draw_input_field('zone_description', null, 'class="input full-width" id="editZoneDescription"');
?>
'+
                   '      </p>'+
                   '    </form>'+
                   '  </div>'+
                   '</div>',
          title: '<?php 
echo $lC_Language->get('modal_heading_edit_zone_group');
?>
',
          width: 500,
                actions: {
            'Close' : {
              color: 'red',
              click: function(win) { win.closeModal(); }
Ejemplo n.º 21
0
                   '        <label for="countries_iso_code_2" class="label"><?php 
echo $lC_Language->get('field_iso_code_2');
?>
</label>'+
                   '        <?php 
echo lc_draw_input_field('countries_iso_code_2', null, 'class="input full-width" id="editCountriesIsoCode2"');
?>
'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="countries_iso_code_3" class="label"><?php 
echo $lC_Language->get('field_iso_code_3');
?>
</label>'+
                   '        <?php 
echo lc_draw_input_field('countries_iso_code_3', null, 'class="input full-width" id="editCountriesIsoCode3"');
?>
'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="address_format" class="label"><?php 
echo $lC_Language->get('field_address_format');
?>
</label>'+
                   '        <?php 
echo lc_draw_textarea_field('address_format', null, null, null, 'class="input full-width" id="editAddressFormat"');
?>
'+
                   '      </p>'+
                   '    </form>'+
                   '  </div>'+
Ejemplo n.º 22
0
                   '        <label for="tax_class_title" class="label"><?php 
echo $lC_Language->get('field_title');
?>
</label>'+
                   '        <?php 
echo lc_draw_input_field('tax_class_title', null, 'class="input full-width" id="editTaxClassTitle"');
?>
'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="tax_class_description" class="label"><?php 
echo $lC_Language->get('field_description');
?>
</label>'+
                   '        <?php 
echo lc_draw_input_field('tax_class_description', null, 'class="input full-width" id="editTaxClassDescription"');
?>
'+
                   '      </p>'+
                   '    </form>'+
                   '  </div>'+
                   '</div>',
          title: '<?php 
echo $lC_Language->get('modal_heading_edit_tax_class');
?>
',
          width: 500,
                actions: {
            'Close' : {
              color: 'red',
              click: function(win) { win.closeModal(); }
Ejemplo n.º 23
0
 public static function getFormData($id = null, $edit = false)
 {
     global $lC_Database, $lC_Language;
     $result = array();
     $result['titleCode'] = '';
     foreach ($lC_Language->getAll() as $l) {
         $result['titleCode'] .= '<span class="input" style="width:75%"><label for="name[' . $l['id'] . ']" class="button silver-gradient glossy">' . $lC_Language->showImage($l['code']) . '</label>' . lc_draw_input_field('name[' . $l['id'] . ']', null, 'class="input-unstyled"') . '</span> ' . lc_draw_input_field('key[' . $l['id'] . ']', null, 'class="input" size="4"') . '<br />';
     }
     $Qrules = $lC_Database->query('select weight_class_id, weight_class_title from :table_weight_classes where language_id = :language_id order by weight_class_title');
     $Qrules->bindTable(':table_weight_classes', TABLE_WEIGHT_CLASS);
     $Qrules->bindInt(':language_id', $lC_Language->getID());
     $Qrules->execute();
     $result['newRules'] = '';
     while ($Qrules->next()) {
         $result['newRules'] .= '<span class="input full-width"><label for="rules[' . $Qrules->valueInt('weight_class_id') . ']" style="width:20%" class="button grey-gradient glossy">' . $Qrules->value('weight_class_title') . '</label>' . lc_draw_input_field('rules[' . $Qrules->valueInt('weight_class_id') . ']', null, 'class="input-unstyled required number"') . '</span>';
     }
     if (isset($id) && $id != null) {
         if ($edit === true) {
             $Qwc = $lC_Database->query('select language_id, weight_class_key, weight_class_title from :table_weight_classes where weight_class_id = :weight_class_id');
             $Qwc->bindTable(':table_weight_classes', TABLE_WEIGHT_CLASS);
             $Qwc->bindInt(':weight_class_id', $id);
             $Qwc->execute();
             $classes_array = array();
             while ($Qwc->next()) {
                 $classes_array[$Qwc->valueInt('language_id')] = array('key' => $Qwc->value('weight_class_key'), 'title' => $Qwc->value('weight_class_title'));
             }
             foreach ($lC_Language->getAll() as $l) {
                 $result['names'] .= '<span class="input" style="width:75%"><label for="name[' . $l['id'] . ']" class="button silver-gradient glossy">' . $lC_Language->showImage($l['code']) . '</label>' . lc_draw_input_field('name[' . $l['id'] . ']', $classes_array[$l['id']]['title'], 'class="input-unstyled"') . '</span> ' . lc_draw_input_field('key[' . $l['id'] . ']', $classes_array[$l['id']]['key'], 'class="input" size="4"') . '<br />';
             }
             $Qwc->freeResult();
             $Qrules = $lC_Database->query('select r.weight_class_to_id, r.weight_class_rule, c.weight_class_title from :table_weight_classes_rules r, :table_weight_classes c where r.weight_class_from_id = :weight_class_from_id and r.weight_class_to_id != :weight_class_to_id and r.weight_class_to_id = c.weight_class_id and c.language_id = :language_id order by c.weight_class_title');
             $Qrules->bindTable(':table_weight_classes_rules', TABLE_WEIGHT_CLASS_RULES);
             $Qrules->bindTable(':table_weight_classes', TABLE_WEIGHT_CLASS);
             $Qrules->bindInt(':weight_class_from_id', $id);
             $Qrules->bindInt(':weight_class_to_id', $id);
             $Qrules->bindInt(':language_id', $lC_Language->getID());
             $Qrules->execute();
             $result['editRules'] = '';
             while ($Qrules->next()) {
                 $result['editRules'] .= '<span class="input full-width"><label for="rules[' . $Qrules->valueInt('weight_class_to_id') . ']" style="width:20%" class="button grey-gradient glossy">' . $Qrules->value('weight_class_title') . '</label>' . lc_draw_input_field('rules[' . $Qrules->valueInt('weight_class_to_id') . ']', $Qrules->value('weight_class_rule'), 'class="input-unstyled required number"') . '</span>';
             }
         } else {
             $result['wcData'] = lC_Weight_classes_Admin::getData($id);
             $Qcheck = $lC_Database->query('select count(*) as total from :table_products where products_weight_class = :products_weight_class');
             $Qcheck->bindTable(':table_products', TABLE_PRODUCTS);
             $Qcheck->bindInt(':products_weight_class', $id);
             $Qcheck->execute();
             if ($id == SHIPPING_WEIGHT_UNIT || $Qcheck->valueInt('total') > 0) {
                 if ($id == SHIPPING_WEIGHT_UNIT) {
                     $result['rpcStatus'] = -3;
                 }
                 if ($Qcheck->valueInt('total') > 0) {
                     $result['rpcStatus'] = -2;
                     $result['totalInUse'] = $Qcheck->valueInt('total');
                 }
             }
         }
     }
     return $result;
 }
Ejemplo n.º 24
0
                   '        <label for="module" class="label" style="width:30%;"><?php 
echo $lC_Language->get('field_display_module');
?>
</label>'+
                   '        <?php 
echo lc_draw_pull_down_menu('module', null, null, 'class="input with-small-padding" style=width:73%;"');
?>
'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="sort_order" class="label" style="width:30%;"><?php 
echo $lC_Language->get('field_sort_order');
?>
</label>'+
                   '        <?php 
echo lc_draw_input_field('sort_order', null, 'class="input"');
?>
'+
                   '      </p>'+
                   '    </form>'+
                   '  </div>'+
                   '</div>',
          title: '<?php 
echo $lC_Language->get('modal_heading_new_variant_group');
?>
',
          width: 500,
                actions: {
            'Close' : {
              color: 'red',
              click: function(win) { win.closeModal(); }
Ejemplo n.º 25
0
}
?>
    <div class="row">
      <div class="col-sm-6 col-lg-6 large-padding-left margin-top">
        <div class="well no-padding-top">
          <h3><?php 
echo $lC_Language->get('login_returning_customer_heading');
?>
</h3>
          <form role="form" id="login" name="login" class="no-margin-bottom" action="<?php 
echo lc_href_link(FILENAME_ACCOUNT, 'login=process', 'SSL');
?>
" method="post">
            <div class="form-group">
              <label class="sr-only"></label><?php 
echo lc_draw_input_field('email_address', $_POST['email'] ? $_POST['email'] : $_SESSION['lC_Customer_data']['email_address'] ? $_SESSION['lC_Customer_data']['email_address'] : '', 'class="form-control" placeholder="' . $lC_Language->get('field_customer_email_address') . '"');
?>
            </div>
            <div class="form-group">
              <label class="sr-only"></label><?php 
echo lc_draw_password_field('password', 'class="form-control" placeholder="' . $lC_Language->get('field_customer_password') . '"');
?>
              <p class="help-block small-margin-left"><?php 
echo sprintf($lC_Language->get('login_returning_customer_password_forgotten'), lc_href_link(FILENAME_ACCOUNT, 'password_forgotten', 'SSL'));
?>
</p>
            </div>
            <div class="button-set clearfix">
              <button class="pull-right btn btn-lg btn-primary" onclick="$('#login').submit();" type="submit"><?php 
echo $lC_Language->get('button_sign_in');
?>
Ejemplo n.º 26
0
                   '        <label for="width" class="label"><?php 
echo $lC_Language->get('field_width');
?>
</label>'+
                   '        <?php 
echo lc_draw_input_field('width', null, 'class="input full-width"');
?>
'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="height" class="label"><?php 
echo $lC_Language->get('field_height');
?>
</label>'+
                   '        <?php 
echo lc_draw_input_field('height', null, 'class="input full-width"');
?>
'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="force_size" class="label"><?php 
echo $lC_Language->get('field_force_size');
?>
</label>'+
                   '        <?php 
echo lc_draw_checkbox_field('force_size', null, null, 'class="switch medium" data-text-on="' . strtoupper($lC_Language->get('button_yes')) . '" data-text-off="' . strtoupper($lC_Language->get('button_no')) . '"');
?>
'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="default" class="label"><?php 
Ejemplo n.º 27
0
                   '    <form name="osNew" id="osNew" autocomplete="off" action="" method="post">'+
                   '      <div class="field-block button-height margin-bottom">'+
                   '        <label for="name" class="label anthracite"><?php 
echo $lC_Language->get('field_name');
?>
</label>'+
                   '        <span id="newGroupNamesContainer"></span>'+
                   '      </div>'+
                   '      <div class="field-drop button-height black-inputs">'+
                   '        <label for="baseline" class="label" style="width:55%;"><?php 
echo $lC_Language->get('field_baseline_discount');
?>
</label>'+
                   '        <div class="inputs" style="width:28%">'+
                   '          <span class="mid-margin-right float-right strong">%</span><?php 
echo lc_draw_input_field('baseline', '0.00', 'onfocus="this.select();" class="input-unstyled small-margin-left strong" style="width:50%;"');
?>
'+
                   '        </div>'+
                   '      </div>'+ extraFormHtml +
                   '    </form>'+
                   '    </fieldset>'+
                   '  </div>'+
                   '</div>',
          title: '<?php 
echo $lC_Language->get('modal_heading_new_customer_group');
?>
',
          width: 600,
                actions: {
            'Close' : {
Ejemplo n.º 28
0
?>
"></span></label>
      <?php 
echo lc_draw_input_field('DIR_FS_DOCUMENT_ROOT', $dir_fs_www_root, 'class="input" style="width:93%;"');
?>
    </div>
    <div class="field-block button-height">
      <label for="HTTP_WORK_DIRECTORY" class="label"><b><?php 
echo $lC_Language->get('param_web_work_directory');
?>
</b><span style="cursor:pointer;" class="hide-on-mobile hide-on-tablet icon-info-round icon-blue with-tooltip with-small-padding" data-tooltip-options='{"classes":["blue-gradient"],"position":"right"}' title="<?php 
echo $lC_Language->get('param_web_work_directory_description');
?>
"></span></label>
      <?php 
echo lc_draw_input_field('HTTP_WORK_DIRECTORY', $dir_fs_www_root . 'includes/work', 'class="input" style="width:93%;"');
?>
    </div> 
    <div id="buttonContainer" class="large-margin-top margin-right" style="float:right">
      <a href="index.php" class="button">
        <span class="button-icon red-gradient glossy"><span class="icon-cross"></span></span>
        <?php 
echo addslashes($lC_Language->get('image_button_cancel'));
?>
      </a>&nbsp;&nbsp;  
      <a href="javascript://" onclick="$('#mBox').hide(); $('#pBox').hide(); $('#upgradeForm2').submit();" class="button">
        <span class="button-icon blue-gradient glossy"><span class="icon-right-round"></span></span>
        <?php 
echo addslashes($lC_Language->get('image_button_continue'));
?>
      </a>
Ejemplo n.º 29
0
                   '  <div id="newBannerForm">'+
                   '    <form name="bNew" id="bNew" action="<?php 
echo lc_href_link_admin(FILENAME_DEFAULT, $lC_Template->getModule() . '&action=save');
?>
" method="post" enctype="multipart/form-data">'+
                   '      <p><?php 
echo $lC_Language->get('introduction_new_shipping_rule');
?>
</p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="title" class="label"><?php 
echo $lC_Language->get('field_title');
?>
</label>'+
                   '        <?php 
echo lc_draw_input_field('title', null, 'class="input" style="width:93%;"');
?>
'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="url" class="label"><?php 
echo $lC_Language->get('field_shipping_methods');
?>
</label>'+
                  /*  '<fieldset class="fieldset"><legend class="legend">U.S. Postal Service</legend>'+
				   '      <p><input type="checkbox" name="" value=""></p>'+
				   '</fieldset>'+ */
                   '<fieldset class="fieldset"><legend class="legend">United Parcel Service</legend>'+
				   '      <p><input type="checkbox" name="ups[]" value="Next AM">&nbsp;Next AM</p>'+
				   '      <p><input type="checkbox" name="ups[]" value="Next AM Ltr">&nbsp;Next AM Ltr</p>'+
				   '      <p><input type="checkbox" name="ups[]" value="Next Day">&nbsp;Next Day</p>'+
  @version    $Id: address_book_details.php v1.0 2013-08-08 datazen $
*/
if (ACCOUNT_GENDER > -1) {
    echo '<li>' . lc_draw_label($lC_Language->get('field_customer_gender'), null, 'fake', ACCOUNT_GENDER > 0) . lc_draw_radio_field('gender', array(array('id' => 'm', 'text' => $lC_Language->get('gender_male')), array('id' => 'f', 'text' => $lC_Language->get('gender_female'))), isset($Qentry) ? $Qentry->value('entry_gender') : (!$lC_Customer->hasDefaultAddress() ? $lC_Customer->getGender() : null)) . '</li>';
}
echo '<li>' . lc_draw_label($lC_Language->get('field_customer_first_name'), null, 'firstname', true) . lc_draw_input_field('firstname', isset($Qentry) ? $Qentry->value('entry_firstname') : (!$lC_Customer->hasDefaultAddress() ? $lC_Customer->getFirstName() : null)) . '</li>';
echo '<li>' . lc_draw_label($lC_Language->get('field_customer_last_name'), null, 'lastname', true) . lc_draw_input_field('lastname', isset($Qentry) ? $Qentry->value('entry_lastname') : (!$lC_Customer->hasDefaultAddress() ? $lC_Customer->getLastName() : null)) . '</li>';
if (ACCOUNT_COMPANY > -1) {
    echo '<li>' . lc_draw_label($lC_Language->get('field_customer_company'), null, 'company', ACCOUNT_COMPANY > 0) . lc_draw_input_field('company', isset($Qentry) ? $Qentry->value('entry_company') : null) . '</li>';
}
echo '<li>' . lc_draw_label($lC_Language->get('field_customer_street_address'), null, 'street_address', true) . lc_draw_input_field('street_address', isset($Qentry) ? $Qentry->value('entry_street_address') : null) . '</li>';
if (ACCOUNT_SUBURB > -1) {
    echo '<li>' . lc_draw_label($lC_Language->get('field_customer_suburb'), null, 'suburb', ACCOUNT_SUBURB > 0) . lc_draw_input_field('suburb', isset($Qentry) ? $Qentry->value('entry_suburb') : null) . '</li>';
}
if (ACCOUNT_POST_CODE > -1) {
    echo '<li>' . lc_draw_label($lC_Language->get('field_customer_post_code'), null, 'postcode', ACCOUNT_POST_CODE > 0) . lc_draw_input_field('postcode', isset($Qentry) ? $Qentry->value('entry_postcode') : null) . '</li>';
}
echo '<li>' . lc_draw_label($lC_Language->get('field_customer_city'), null, 'city', true) . lc_draw_input_field('city', isset($Qentry) ? $Qentry->value('entry_city') : null) . '</li>';
if (ACCOUNT_STATE > -1) {
    echo '<li>' . lc_draw_label($lC_Language->get('field_customer_state'), null, 'state', ACCOUNT_STATE > 0) . (isset($Qentry) ? lC_AddressBook::getZonesField($Qentry->valueInt('entry_country_id')) : lC_AddressBook::getZonesField(STORE_COUNTRY)) . '</li>';
}
echo '<li>' . lc_draw_label($lC_Language->get('field_customer_country'), null, 'country', true) . lc_draw_pull_down_menu('country', lC_AddressBook::getCountriesDropdownArray(), isset($Qentry) ? $Qentry->valueInt('entry_country_id') : STORE_COUNTRY) . '</li>';
if (ACCOUNT_TELEPHONE > -1) {
    echo '<li>' . lc_draw_label($lC_Language->get('field_customer_telephone_number'), null, 'telephone', ACCOUNT_TELEPHONE > 0) . lc_draw_input_field('telephone', isset($Qentry) ? $Qentry->value('entry_telephone') : null) . '</li>';
}
if (ACCOUNT_FAX > -1) {
    echo '<li>' . lc_draw_label($lC_Language->get('field_customer_fax_number'), null, 'fax', ACCOUNT_FAX > 0) . lc_draw_input_field('fax', isset($Qentry) ? $Qentry->value('entry_fax') : null) . '</li>';
}
if ($lC_Customer->hasDefaultAddress() && (isset($_GET['edit']) && $lC_Customer->getDefaultAddressID() != $_GET['address_book'] || isset($_GET['new']))) {
    echo '<li>' . lc_draw_label($lC_Language->get('set_as_primary'), null) . lc_draw_checkbox_field('primary') . '</li>';
}