本文整理汇总了PHP中lc_draw_pull_down_menu函数的典型用法代码示例。如果您正苦于以下问题:PHP lc_draw_pull_down_menu函数的具体用法?PHP lc_draw_pull_down_menu怎么用?PHP lc_draw_pull_down_menu使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了lc_draw_pull_down_menu函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: lc_cfg_set_categories_top_category
/**
@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);
}
示例2: lc_cfg_set_zones_pulldown_menu
/**
@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);
}
示例3: lc_cfg_set_output_compression_pulldown_menu
/**
@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);
}
示例4: lc_cfg_set_weight_classes_pulldown_menu
/**
@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);
}
示例5: lc_cfg_set_num_pulldown_menu
/**
@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);
}
示例6: lc_cfg_set_currencies_pulldown_menu
/**
@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: getParameters
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: showAudienceSelectionForm
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;
}
示例9: lc_cfg_set_zone_classes_pull_down_menu
/**
@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);
}
示例10: lc_cfg_set_order_statuses_pull_down_menu
/**
@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: setFunction
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;
}
示例12: lc_cfg_set_product_on_homepage
/**
@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: initialize
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";
}
}
示例14: setFunction
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;
}
示例15: lc_cfg_set_countries_pulldown_menu
/**
@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);
}