/**
  @package    admin::functions
  @author     Loaded Commerce
  @copyright  Copyright 2003-2014 Loaded Commerce, LLC
  @copyright  Portions Copyright 2003 osCommerce
  @license    https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt
  @version    $Id: lc_cfg_set_categories_top_category.php v1.0 2013-08-08 datazen $
*/
function lc_cfg_set_categories_top_category($default = 0, $key = null)
{
    global $lC_Database, $lC_Language, $lC_Vqmod;
    include_once $lC_Vqmod->modCheck(DIR_FS_ADMIN . 'includes/classes/category_tree.php');
    include_once $lC_Vqmod->modCheck(DIR_FS_ADMIN . 'includes/applications/categories/classes/categories.php');
    $lC_Language->loadIniFile('categories.php');
    $lC_CategoryTree = new lC_CategoryTree_Admin();
    $categories = array('0' => $lC_Language->get('top_category'));
    foreach ($lC_CategoryTree->getArray() as $value) {
        // added switch for only category mode categories in selection dropdown.
        if ($value['mode'] == 'category') {
            $cid = explode('_', $value['id']);
            $count = count($cid);
            $cid = end($cid);
            $acArr = lC_Categories_Admin::getAllChildren($id);
            $categories[$cid] = str_repeat("    ", $count - 1) . ' ' . $value['title'];
        }
    }
    $css_class = 'class="input with-small-padding mid-margin-top"';
    $name = empty($key) ? 'configuration_value' : 'configuration[' . $key . ']';
    $array = array();
    $array[] = array('id' => '', 'text' => $lC_Language->get('text_select_category'));
    foreach ($categories as $key => $value) {
        $array[] = array('id' => $key, 'text' => $value);
    }
    return lc_draw_pull_down_menu($name, $array, $default, $css_class);
}
/**
  @package    admin::functions
  @author     Loaded Commerce
  @copyright  Copyright 2003-2014 Loaded Commerce, LLC
  @copyright  Portions Copyright 2003 osCommerce
  @license    https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt
  @version    $Id: lc_cfg_set_zones_pulldown_menu.php v1.0 2013-08-08 datazen $
*/
function lc_cfg_set_zones_pulldown_menu($default, $key = null)
{
    global $lC_Database;
    $css_class = 'class="input with-small-padding"';
    $args = func_get_args();
    if (count($args) > 2 && strpos($args[0], 'class') !== false) {
        $css_class = $args[0];
        $default = $args[1];
        $key = $args[2];
    }
    if (isset($_GET['plugins'])) {
        $name = !empty($key) ? 'plugins[' . $key . ']' : 'plugins_value';
    } else {
        $name = !empty($key) ? 'configuration[' . $key . ']' : 'configuration_value';
    }
    $zones_array = array();
    $Qcountry = $lC_Database->query('select configuration_value from :table_configuration where configuration_key = :configuration_key');
    $Qcountry->bindTable(':table_configuration', TABLE_CONFIGURATION);
    $Qcountry->bindValue(':configuration_key', 'STORE_COUNTRY');
    $Qcountry->execute();
    foreach (lC_Address::getZones($Qcountry->value('configuration_value')) as $zone) {
        $zones_array[] = array('id' => $zone['id'], 'text' => $zone['name'], 'group' => $zone['country_name']);
    }
    return lc_draw_pull_down_menu($name, $zones_array, $default, $css_class);
}
/**
  @package    admin::functions
  @author     Loaded Commerce
  @copyright  Copyright 2003-2014 Loaded Commerce, LLC
  @copyright  Portions Copyright 2003 osCommerce
  @license    https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt
  @version    $Id: lc_cfg_set_output_compression_pulldown_menu.php v1.0 2013-08-08 datazen $
*/
function lc_cfg_set_output_compression_pulldown_menu($default, $key = null)
{
    global $lC_Database;
    $css_class = 'class="input with-small-padding"';
    $name = 'configuration[SERVICE_OUTPUT_COMPRESSION_GZIP_LEVEL]';
    $comp = array();
    for ($i = 0; $i <= 9; $i++) {
        $comp[] = array('id' => $i, 'text' => $i);
    }
    return lc_draw_pull_down_menu($name, $comp, $key, $css_class);
}
/**
  @package    admin::functions
  @author     Loaded Commerce
  @copyright  Copyright 2003-2014 Loaded Commerce, LLC
  @copyright  Portions Copyright 2003 osCommerce
  @license    https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt
  @version    $Id: lc_cfg_set_weight_classes_pulldown_menu.php v1.0 2013-08-08 datazen $
*/
function lc_cfg_set_weight_classes_pulldown_menu($default, $key = null)
{
    global $lC_Database, $lC_Language;
    $css_class = 'class="input with-small-padding"';
    $name = empty($key) ? 'configuration_value' : 'configuration[' . $key . ']';
    $weight_class_array = array();
    foreach (lC_Weight::getClasses() as $class) {
        $weight_class_array[] = array('id' => $class['id'], 'text' => $class['title']);
    }
    return lc_draw_pull_down_menu($name, $weight_class_array, $default, $css_class);
}
/**
  @package    admin::functions
  @author     Loaded Commerce
  @copyright  Copyright 2003-2014 Loaded Commerce, LLC
  @copyright  Portions Copyright 2003 osCommerce
  @license    https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt
  @version    $Id: lc_cfg_set_num_pulldown_menu.php v1.0 2013-08-08 datazen $
*/
function lc_cfg_set_num_pulldown_menu($default, $key = null)
{
    global $lC_Database;
    $css_class = 'class="input with-small-padding"';
    $name = empty($key) ? 'configuration_value' : 'configuration[' . $key . ']';
    $i = 0;
    $array = array();
    for ($i = 1; $i <= 20; $i++) {
        $array[] = array('id' => $i, 'text' => $i);
    }
    return lc_draw_pull_down_menu($name, $array, $default, $css_class);
}
/**
  @package    admin::functions
  @author     Loaded Commerce
  @copyright  Copyright 2003-2014 Loaded Commerce, LLC
  @copyright  Portions Copyright 2003 osCommerce
  @license    https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt
  @version    $Id: lc_cfg_set_currencies_pulldown_menu.php v1.0 2013-08-08 datazen $
*/
function lc_cfg_set_currencies_pulldown_menu($default, $key = null)
{
    global $lC_Database;
    $css_class = 'class="input with-small-padding"';
    $name = empty($key) ? 'configuration_value' : 'configuration[' . $key . ']';
    $Qcurrencies = $lC_Database->query('select * from :table_currencies');
    $Qcurrencies->bindTable(':table_currencies', TABLE_CURRENCIES);
    $Qcurrencies->execute();
    while ($Qcurrencies->next()) {
        $currencies_array[] = array('id' => $Qcurrencies->valueInt('currencies_id'), 'text' => $Qcurrencies->value('title'));
    }
    return lc_draw_pull_down_menu($name, $currencies_array, $default, $css_class);
}
Пример #7
0
 public function getParameters()
 {
     global $lC_Language;
     $groups = array();
     $groups_ids = array();
     foreach ($this->_groups as $group) {
         if ($group['id'] != '1') {
             $groups[] = array('text' => $group['title'], 'id' => $group['id']);
             $groups_ids[] = $group['id'];
         }
     }
     return array(array('key' => $lC_Language->get('images_resize_field_groups'), 'field' => lc_draw_pull_down_menu('groups[]', $groups, $groups_ids, 'multiple="multiple" size="5" class="input full-width"')), array('key' => $lC_Language->get('images_resize_field_overwrite_images'), 'field' => lc_draw_checkbox_field('overwrite', '1', null, 'class="input"')));
 }
Пример #8
0
 public function showAudienceSelectionForm()
 {
     global $lC_Database, $lC_Language, $lC_Template;
     $customers_array = array(array('id' => '***', 'text' => $lC_Language->get('newsletter_email_all_customers')));
     $Qcustomers = $lC_Database->query('select customers_id, customers_firstname, customers_lastname, customers_email_address from :table_customers order by customers_lastname');
     $Qcustomers->bindTable(':table_customers', TABLE_CUSTOMERS);
     $Qcustomers->execute();
     while ($Qcustomers->next()) {
         $customers_array[] = array('id' => $Qcustomers->valueInt('customers_id'), 'text' => $Qcustomers->value('customers_lastname') . ', ' . $Qcustomers->value('customers_firstname') . ' (' . $Qcustomers->value('customers_email_address') . ')');
     }
     $Qcustomers->freeResult();
     $audience_form = '<form name="customers" id="customers" action="#" method="post">' . '  <p>' . lc_draw_pull_down_menu('customer', $customers_array, null, 'class="input full-width with-small-padding" size="25"') . '</p>' . '</form>';
     return $audience_form;
 }
/**
  @package    admin::functions
  @author     Loaded Commerce
  @copyright  Copyright 2003-2014 Loaded Commerce, LLC
  @copyright  Portions Copyright 2003 osCommerce
  @license    https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt
  @version    $Id: lc_cfg_set_zone_classes_pull_down_menu.php v1.0 2013-08-08 datazen $
*/
function lc_cfg_set_zone_classes_pull_down_menu($default, $key = null)
{
    global $lC_Database, $lC_Language;
    $css_class = 'class="input with-small-padding"';
    $name = empty($key) ? 'configuration_value' : 'configuration[' . $key . ']';
    $zone_class_array = array(array('id' => '0', 'text' => $lC_Language->get('parameter_none')));
    $Qzones = $lC_Database->query('select geo_zone_id, geo_zone_name from :table_geo_zones order by geo_zone_name');
    $Qzones->bindTable(':table_geo_zones', TABLE_GEO_ZONES);
    $Qzones->execute();
    while ($Qzones->next()) {
        $zone_class_array[] = array('id' => $Qzones->valueInt('geo_zone_id'), 'text' => $Qzones->value('geo_zone_name'));
    }
    return lc_draw_pull_down_menu($name, $zone_class_array, $default, $css_class);
}
/**
  @package    admin::functions
  @author     Loaded Commerce
  @copyright  Copyright 2003-2014 Loaded Commerce, LLC
  @copyright  Portions Copyright 2003 osCommerce
  @license    https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt
  @version    $Id: lc_cfg_set_order_statuses_pull_down_menu.php v1.0 2013-08-08 datazen $
*/
function lc_cfg_set_order_statuses_pull_down_menu($default, $key = null)
{
    global $lC_Database, $lC_Language;
    $css_class = 'class="input with-small-padding"';
    $name = empty($key) ? 'configuration_value' : 'configuration[' . $key . ']';
    $statuses_array = array(array('id' => '0', 'text' => $lC_Language->get('default_entry')));
    $Qstatuses = $lC_Database->query('select orders_status_id, orders_status_name from :table_orders_status where language_id = :language_id order by orders_status_name');
    $Qstatuses->bindTable(':table_orders_status', TABLE_ORDERS_STATUS);
    $Qstatuses->bindInt(':language_id', $lC_Language->getID());
    $Qstatuses->execute();
    while ($Qstatuses->next()) {
        $statuses_array[] = array('id' => $Qstatuses->valueInt('orders_status_id'), 'text' => $Qstatuses->value('orders_status_name'));
    }
    return lc_draw_pull_down_menu($name, $statuses_array, $default, $css_class);
}
Пример #11
0
 public function setFunction($value, $value2 = null)
 {
     global $lC_Database, $lC_Language;
     $string = '';
     $Qmanufacturers = $lC_Database->query('select manufacturers_id, manufacturers_name from :table_manufacturers order by manufacturers_name');
     $Qmanufacturers->bindTable(':table_manufacturers');
     $Qmanufacturers->execute();
     $array = array(array('id' => 'NULL', 'text' => $lC_Language->get('none')));
     while ($Qmanufacturers->next()) {
         $array[] = array('id' => $Qmanufacturers->valueInt('manufacturers_id'), 'text' => $Qmanufacturers->value('manufacturers_name'));
     }
     if (!empty($array)) {
         $string = lc_draw_pull_down_menu('attributes[' . self::getID() . ']', $array, $value, 'class="select full-width"');
     }
     return $string;
 }
/**
  @package    admin::functions
  @author     Loaded Commerce
  @copyright  Copyright 2003-2014 Loaded Commerce, LLC
  @copyright  Portions Copyright 2003 osCommerce
  @license    https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt
  @version    $Id: lc_cfg_set_product_on_homepage.php v1.0 2013-08-08 datazen $
*/
function lc_cfg_set_product_on_homepage($default, $key = null)
{
    global $lC_Database, $lC_Language;
    $css_class = 'class="input with-small-padding mid-margin-top"';
    $Qproducts = $lC_Database->query('select SQL_CALC_FOUND_ROWS products_id, products_name from :table_products_description where language_id = :language_id');
    $Qproducts->appendQuery('order by products_name');
    $Qproducts->bindTable(':table_products_description', TABLE_PRODUCTS_DESCRIPTION);
    $Qproducts->bindInt(':language_id', $lC_Language->getID());
    $Qproducts->execute();
    $name = empty($key) ? 'configuration_value' : 'configuration[' . $key . ']';
    $array = array();
    $array[] = array('id' => '', 'text' => $lC_Language->get('text_select_product'));
    while ($Qproducts->next()) {
        $array[] = array('id' => $Qproducts->value('products_id'), 'text' => $Qproducts->value('products_name'));
    }
    return lc_draw_pull_down_menu($name, $array, $default, $css_class);
}
Пример #13
0
 public function initialize()
 {
     global $lC_Session, $lC_Currencies;
     $data = array();
     foreach ($lC_Currencies->currencies as $key => $value) {
         $data[] = array('id' => $key, 'text' => $value['title']);
     }
     if (sizeof($data) > 1) {
         $hidden_get_variables = '';
         foreach ($_GET as $key => $value) {
             if ($key != 'currency' && $key != $lC_Session->getName() && $key != 'x' && $key != 'y') {
                 $hidden_get_variables .= lc_draw_hidden_field($key, $value);
             }
         }
         $this->_content = '<li class="box-currencies-selection">' . lc_draw_pull_down_menu('currency', $data, $_SESSION['currency'], 'class="box-currencies-select" onchange="$(this).closest(\'form\').submit();"') . $hidden_get_variables . lc_draw_hidden_session_id_field() . '</li>' . "\n";
     }
 }
 public function setFunction($value, $value2 = null)
 {
     global $lC_Database, $lC_Language;
     $string = '';
     $Qstatus = $lC_Database->query('select id, title from :table_shipping_availability where languages_id = :languages_id order by title');
     $Qstatus->bindTable(':table_shipping_availability');
     $Qstatus->bindInt(':languages_id', $lC_Language->getID());
     $Qstatus->execute();
     $array = array();
     while ($Qstatus->next()) {
         $array[] = array('id' => $Qstatus->valueInt('id'), 'text' => $Qstatus->value('title'));
     }
     if (!empty($array)) {
         $string = lc_draw_pull_down_menu('attributes[' . self::getID() . ']', $array, $value, 'class="select full-width"');
     }
     return $string;
 }
/**
  @package    admin::functions
  @author     Loaded Commerce
  @copyright  Copyright 2003-2014 Loaded Commerce, LLC
  @copyright  Portions Copyright 2003 osCommerce
  @license    https://github.com/loadedcommerce/loaded7/blob/master/LICENSE.txt
  @version    $Id: lc_cfg_set_countries_pulldown_menu.php v1.0 2013-08-08 datazen $
*/
function lc_cfg_set_countries_pulldown_menu($default, $key = null)
{
    $css_class = 'class="input with-small-padding"';
    $args = func_get_args();
    if (count($args) > 2 && strpos($args[0], 'class') !== false) {
        $css_class = $args[0];
        $default = $args[1];
        $key = $args[2];
    }
    if (isset($_GET['plugins'])) {
        $name = !empty($key) ? 'plugins[' . $key . ']' : 'plugins_value';
    } else {
        $name = !empty($key) ? 'configuration[' . $key . ']' : 'configuration_value';
    }
    $countries_array = array();
    foreach (lC_Address::getCountries() as $country) {
        $countries_array[] = array('id' => $country['id'], 'text' => $country['name']);
    }
    return lc_draw_pull_down_menu($name, $countries_array, $default, $css_class);
}
Пример #16
0
 public function initialize()
 {
     global $lC_Session;
     $data = array();
     // added to allow a reset to the DEFAULT_TEMPLATE database setting
     $reset = array();
     $reset[] = array('id' => 'reset', 'text' => 'Clear Template Selection');
     foreach (lC_Template::getTemplates() as $template) {
         $data[] = array('id' => $template['code'], 'text' => $template['title']);
     }
     // merge the reset option into the templates dropdown selection array
     $data = array_merge($reset, $data);
     if (sizeof($data) > 1) {
         $hidden_get_variables = '';
         foreach ($_GET as $key => $value) {
             if ($key != 'template' && $key != $lC_Session->getName() && $key != 'x' && $key != 'y') {
                 $hidden_get_variables .= lc_draw_hidden_field($key, $value);
             }
         }
         $this->_content = '<li class="box-templates-selection">' . $hidden_get_variables . lc_draw_pull_down_menu('template', $data, $_SESSION['template']['code'], 'class="box-templates-select" onchange="$(this).closest(\'form\').submit();"') . lc_draw_hidden_session_id_field() . '</li>';
     }
 }
Пример #17
0
 public function getBatchPagesPullDownMenu($batch_keyword = 'page', $parameters = '')
 {
     global $lC_Language;
     $number_of_pages = ceil($this->batch_size / $this->batch_rows);
     if ($number_of_pages > 1) {
         $pages_array = array();
         for ($i = 1; $i <= $number_of_pages; $i++) {
             $pages_array[] = array('id' => $i, 'text' => $i);
         }
         $hidden_parameter = '';
         if (!empty($parameters)) {
             $parameters = explode('&', $parameters);
             foreach ($parameters as $parameter) {
                 $keys = explode('=', $parameter, 2);
                 if ($keys[0] != $batch_keyword) {
                     $hidden_parameter .= lc_draw_hidden_field($keys[0], isset($keys[1]) ? $keys[1] : '');
                 }
             }
         }
         $string = '<form action="' . lc_href_link(basename($_SERVER['SCRIPT_FILENAME'])) . '" action="get">' . $hidden_parameter . '<a href="javascript:void(0);">' . sprintf($lC_Language->get('result_set_current_page'), lc_draw_pull_down_menu($batch_keyword, $pages_array, $this->batch_number, 'onchange="this.form.submit();"'), $number_of_pages) . '</a>' . lc_draw_hidden_session_id_field() . '</form>';
     } else {
         $string = '<a href="javascript:void(0);">' . sprintf($lC_Language->get('result_set_current_page'), 1, 1) . '</a>';
     }
     return $string;
 }
Пример #18
0
      }
      $.modal({
          content: '<div id="editCategory">'+
                   '  <div id="editCategoryForm">'+
                   '    <form name="cEdit" id="cEdit" action="" method="post" enctype="multipart/form-data">'+
                   '      <p><?php 
echo $lC_Language->get('introduction_edit_category');
?>
</p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="parent_id" class="label" style="width:33%;"><?php 
echo $lC_Language->get('field_parent_category');
?>
</label>'+
                   '        <?php 
echo lc_draw_pull_down_menu('parent_id', null, null, 'class="input with-small-padding" style="width:73%;" id="editParentId"');
?>
'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="categories_name" class="label" style="width:33%;"><?php 
echo $lC_Language->get('field_name');
?>
</label>'+
                   '        <span id="editCategoryNames"></span>'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <span id="categoryImage"></span>'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="categories_image" class="label" style="width:33%;"><?php 
Пример #19
0
                   '         <?php 
echo '&nbsp;' . lc_draw_checkbox_field('target', 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')) . '"');
?>
'+
                   '         <?php 
echo $lC_Language->get('text_banners_target');
?>
'+
                   '      </p>'+                   
                   '      <p class="button-height inline-label">'+
                   '        <label for="group" class="label"><?php 
echo $lC_Language->get('field_group');
?>
</label>'+
                   '        <?php 
echo lc_draw_pull_down_menu('group', null, null, 'class="input with-small-padding"') . $lC_Language->get('field_group_new') . '<br />' . lc_draw_input_field('group_new', null, 'class="input" style="width:93%;"');
?>
'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="image" class="label"><?php 
echo $lC_Language->get('field_image');
?>
</label>'+
                   '        <?php 
echo lc_draw_file_field('image', true, 'class="file"') . ' ' . $lC_Language->get('field_image_local') . '<br />' . realpath('../images/banners/') . '/' . lc_draw_input_field('image_local', null, 'class="input" style="width:93%;"');
?>
'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="address_format" class="label"><?php 
Пример #20
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;
 }
Пример #21
0
      }
      $.modal({
        content: '<div id="batchCopy">'+
                 '  <div id="batchCopyConfirm">'+
                 '    <form name="pbCopy" id="pbCopy" action="" method="post" enctype="multipart/form-data">'+
                 '      <p><?php 
echo $lC_Language->get('introduction_batch_copy_products');
?>
</p>'+
                 '      <p class="button-height inline-label">'+
                 '        <label for="new_category_id" class="label"><?php 
echo $lC_Language->get('field_copy_to_category');
?>
</label>'+
                 '        <?php 
echo lc_draw_pull_down_menu('new_category_id', null, null, 'class="input with-small-padding" style="width:77%;" id="copyNewCategoryId"');
?>
'+
                 '      </p>'+
                 '      <p class="button-height inline-label">'+
                 '        <label for="copy_as" class="label"><?php 
echo $lC_Language->get('field_copy_method');
?>
</label>'+
                 '        <span class="button-group">'+
                 '          <label for="copy_as_1" class="button green-active">'+
                 '            <input type="radio" name="copy_as" id="copy_as_1" value="link" checked><?php 
echo $lC_Language->get('copy_method_link');
?>
'+
                 '          </label>'+
Пример #22
0
         'text' => $lC_Language->get('text_daily')),
   array('id' => 'monthly',
         'text' => $lC_Language->get('text_monthly')),
   array('id' => 'quaterly',
         'text' => $lC_Language->get('text_quarterly')),
   array('id' => 'annually',
         'text' => $lC_Language->get('text_annually'))
   );*/
$arr_summary = array(array('id' => 'summary', 'text' => $lC_Language->get('text_summary')), array('id' => 'detailed', 'text' => $lC_Language->get('text_detailed')), array('id' => 'detailed_amounts', 'text' => $lC_Language->get('text_detailed_amounts')));
$manufacturer_arr = get_dropdown_list_array('manufacturer');
$supplier_arr = get_dropdown_list_array('supplier');
$order_status_arr = get_dropdown_list_array('order_status');
$manufacturer_dropdown = lc_draw_pull_down_menu('manufacturer', $manufacturer_arr, null, 'class="input with-small-padding small-margin-bottom"') . '&nbsp;';
$supplier_dropdown = lc_draw_pull_down_menu('supplier', $supplier_arr, null, 'class="input with-small-padding small-margin-bottom"') . '&nbsp;';
$order_status_dropdown = lc_draw_pull_down_menu('order_status', $order_status_arr, null, 'class="input with-small-padding small-margin-bottom"') . '&nbsp;';
$summary_dropdown = lc_draw_pull_down_menu('summary', $arr_summary, null, 'class="green-gradient select expandable-list"') . '&nbsp;';
// $time_span_dropdown    = lc_draw_pull_down_menu('time_span', $arr_time_span, null, 'class="green-gradient select expandable-list small-margin-bottom"') . '&nbsp;';
$start_date_input = '<span id="sales_report_start_date" class="input small-margin-right">
                         <span class="icon-calendar"></span>
                         <input type="text" onfocus="this.select();" name="start_date" id="start_date" placeholder="' . $lC_Language->get("text_from_date") . '" value="' . (isset($cInfo) ? $cInfo->get("start_date") : null) . '" class="input-unstyled datepicker" style="max-width:80px;">
                       </span>';
$expires_date_input = '<span id="sales_report_expires_date" class="input">
                           <span class="icon-calendar"></span>
                           <input type="text" name="expires_date" id="expires_date" placeholder="' . $lC_Language->get("text_to_date") . '" value="' . (isset($cInfo) ? $cInfo->get("expires_date") : null) . '" class="input-unstyled datepicker" style="max-width:80px;">
                         </span>';
$go_date = '<span><input type="button" name="go" id="go" class="button" onclick="updateList();" value="' . $lC_Language->get("text_go") . '" ></span>';
switch ($_GET['module']) {
    case 'orders':
        // added for mobile css per report
        $dataTableTopMargin320 = '-30px';
        $dataTableTopMargin480 = '-30px';
Пример #23
0
    .dataColTime { text-align: center; } 
    .dataColStatus { text-align: left; } 
    .dataColAction { text-align: right; } 
    .dataTables_info { position:absolute; bottom: 42px; color:#4c4c4c; }
    .selectContainer { position:absolute; bottom:29px; left:30px }  
  </style>
  <div class="with-padding-no-top">
    <div id="statusSelectorContainer">
      <div id="statusSelector">
        <form name="orders_status_filter" id="orders_status_filter" action="" onchange="updateOrderList();">
          <label for="filter" class="white mid-margin-right"><?php 
echo $lC_Language->get('text_status');
?>
:</label>
          <?php 
echo lc_draw_pull_down_menu('filter', lC_Orders_Admin::getOrderStatusArray(), null, 'class="input with-small-padding"');
?>
        </form>
      </div>
    </div>
    <form name="batch" id="batch" action="#" method="post">
      <table border="0" width="100%" cellspacing="0" cellpadding="0" class="table responsive-table" id="dataTable">
        <thead>
          <tr>
            <th scope="col" class="hide-on-mobile align-left"><input onclick="toggleCheck();" id="check-all" type="checkbox" value="1" name="check-all"></th>
            <th scope="col" class="align-left"><?php 
echo $lC_Language->get('table_heading_oid');
?>
</th>
            <th scope="col" class="align-left hide-on-mobile-portrait"><?php 
echo $lC_Language->get('table_heading_customers');
Пример #24
0
?>
</p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="products_id" class="label" style="width:30%;"><?php 
echo $lC_Language->get('field_name');
?>
</label>'+
                   '        <span id="groupNames"></span>'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <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>'+
Пример #25
0
                   '        <label for="box" class="label"><?php 
echo $lC_Language->get('field_module');
?>
</label>'+
                   '        <?php 
echo lc_draw_pull_down_menu('box', null, null, 'class="input with-small-padding" style="width:100%;"');
?>
'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="content_page" class="label"><?php 
echo $lC_Language->get('field_pages');
?>
</label>'+
                   '        <?php 
echo lc_draw_pull_down_menu('content_page', $pages_array, null, 'class="input with-small-padding" style="width:100%;"');
?>
'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="page_specific" class="label"><?php 
echo $lC_Language->get('field_page_specific');
?>
</label>'+
                   '        <?php 
echo lc_draw_checkbox_field('page_specific', null, null, 'class="switch medium" data-text-on="YES" data-text-off="NO"');
?>
'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="group" class="label"><?php 
Пример #26
0
echo $lC_Language->get('text_tax_settings');
?>
</legend>
    <div class="columns no-margin-bottom">
      <div class="new-row-mobile six-columns six-columns-tablet twelve-columns-mobile mid-margin-bottom">
        <div class="twelve-columns no-margin-bottom strong">
          <span><?php 
echo $lC_Language->get('text_tax_class');
?>
</span><?php 
echo lc_show_info_bubble($lC_Language->get('info_bubble_data_tax_class'));
?>
        </div>
        <div class="twelve-columns no-margin-bottom small-margin-top">
          <?php 
echo lc_draw_pull_down_menu('products_tax_class_id', $tax_class_array, isset($pInfo) ? $pInfo->getInt('products_tax_class_id') : null, 'class="select full-width small-margin-top" id="tax_class0"');
?>
        </div>
      </div>
      <div class="new-row-mobile six-columns six-columns-tablet twelve-columns-mobile mid-margin-bottom">
        <div class="twelve-columns no-margin-bottom strong">
          <span><?php 
echo $lC_Language->get('text_base_price_with_tax');
?>
</span><?php 
echo lc_show_info_bubble($lC_Language->get('info_bubble_data_price_with_tax'));
?>
        </div>
        <div class="twelve-columns no-margin-bottom small-margin-top">
          <div class="inputs blue-gradient" style="display:inline; padding:8px 0;">
            <span class="mid-margin-left no-margin-right strong"><?php 
Пример #27
0
      $.modal({
          content: '<div id="importLanguage">'+
                   '  <div id="importLanguageForm">'+
                   '    <form name="lImport" id="lImport" autocomplete="off" action="" method="post">'+
                   '      <p><?php 
echo $lC_Language->get('introduction_import_language');
?>
</p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="language_import" class="label" style="width:0px !important"><?php 
echo $lC_Language->get('field_language_selection');
?>
</label>'+
                   '        <?php 
echo lc_draw_pull_down_menu('language_import', null, null, 'class="input with-small-padding" style = "width:30%"');
?>
'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="import_type" class="absolute-left"><strong><?php 
echo $lC_Language->get('field_import_type');
?>
</strong></label>'+
                   '        <div class="button-height inline-label"><?php 
echo lc_draw_radio_field('import_type', array(array('id' => 'add', 'text' => $lC_Language->get('only_add_new_records')), array('id' => 'update', 'text' => $lC_Language->get('only_update_existing_records')), array('id' => 'replace', 'text' => $lC_Language->get('replace_all'))), 'add', 'class="switch medium"');
?>
</div>'+
                   '      </p>'+
                   '    </form>'+
                   '  </div>'+
Пример #28
0
  } 
  $.modal({
      content: '<div id="undoUpdate">'+
               '  <div id="undoUpdateForm">'+
               '    <form name="undo-form" action="" id="undo-form" method="post">'+
               '      <p><?php 
echo $lC_Language->get('introduction_undo_update');
?>
</p>'+
               '      <p class="button-height inline-label small-margin-bottom">'+
               '        <label for="version" class="label"><?php 
echo $lC_Language->get('field_restore_from');
?>
</label>'+
               '        <?php 
echo lc_draw_pull_down_menu('version', $backupArr, null, 'class="input with-small-padding full-width"');
?>
'+
               '      </p>'+
               '    </form>'+
               '  </div>'+
               '</div>',
      title: '<?php 
echo $lC_Language->get('modal_heading_undo_update');
?>
',
      width: 400,
        actions: {
        'Close' : {
          color: 'red',
          click: function(win) { win.closeModal(); return false; }
  @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>';
}
Пример #30
0
      }  
      $.modal({
          content: '<div id="editNewsletter">'+
                   '  <div id="editNewsletterForm">'+
                   '    <form name="updateEntry" id="updateEntry" action="" method="post">'+ 
                   '      <p><?php 
echo $lC_Language->get('introduction_edit_newsletter');
?>
</p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="module" class="label"><?php 
echo $lC_Language->get('field_module');
?>
</label>'+
                   '        <?php 
echo lc_draw_pull_down_menu('module', null, null, 'id="editModule" class="input with-small-padding" style="width:46%;"');
?>
'+
                   '      </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, 'id="editTitle" class="input" style="width:93%;"');
?>
'+
                   '      </p>'+
                   '      <p class="button-height inline-label">'+
                   '        <label for="content" class="label"><?php