当前位置: 首页>>代码示例>>PHP>>正文


PHP osc_draw_pull_down_menu函数代码示例

本文整理汇总了PHP中osc_draw_pull_down_menu函数的典型用法代码示例。如果您正苦于以下问题:PHP osc_draw_pull_down_menu函数的具体用法?PHP osc_draw_pull_down_menu怎么用?PHP osc_draw_pull_down_menu使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了osc_draw_pull_down_menu函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: initialize

 function initialize()
 {
     global $osC_Database, $osC_Language;
     $Qmanufacturers = $osC_Database->query('select m.manufacturers_id as id, m.manufacturers_name as text, m.manufacturers_image as image from :table_manufacturers m, :table_manufacturers_info mi where m.manufacturers_id = mi.manufacturers_id and mi.languages_id = :languages_id order by manufacturers_name');
     $Qmanufacturers->bindTable(':table_manufacturers', TABLE_MANUFACTURERS);
     $Qmanufacturers->bindTable(':table_manufacturers_info', TABLE_MANUFACTURERS_INFO);
     $Qmanufacturers->bindInt(':languages_id', $osC_Language->getID());
     $Qmanufacturers->setCache('box-manufacturers-' . $osC_Language->getCode(), 100);
     $Qmanufacturers->execute();
     if (BOX_MANUFACTURERS_LIST_TYPE == 'ComboBox') {
         $manufacturers_array = array(array('id' => '', 'text' => $osC_Language->get('pull_down_default')));
         while ($Qmanufacturers->next()) {
             $manufacturers_array[] = $Qmanufacturers->toArray();
         }
         $this->_content = '<form name="manufacturers" action="' . osc_href_link(FILENAME_DEFAULT, null, 'NONSSL', false) . '" method="get">' . osc_draw_pull_down_menu('manufacturers', $manufacturers_array, null, 'onchange="this.form.submit();" size="' . BOX_MANUFACTURERS_LIST_SIZE . '" style="width: 99%"') . osc_draw_hidden_session_id_field() . '</form>';
     } else {
         $this->_content = '<ul>';
         while ($Qmanufacturers->next()) {
             $manufacturers_image = $Qmanufacturers->value('image');
             if (!empty($manufacturers_image) && file_exists(DIR_WS_IMAGES . 'manufacturers/' . $Qmanufacturers->value('image'))) {
                 $this->_content .= '<li>' . osc_link_object(osc_href_link(FILENAME_DEFAULT, 'manufacturers=' . $Qmanufacturers->valueInt('id')), osc_image("images/manufacturers/" . $Qmanufacturers->value('image'), $Qmanufacturers->value('text'))) . '</li>';
             }
         }
         $this->_content .= '</ul>';
     }
     $Qmanufacturers->freeResult();
 }
开发者ID:Doluci,项目名称:tomatocart,代码行数:27,代码来源:manufacturers.php

示例2: osc_cfg_set_zones_pulldown_menu

function osc_cfg_set_zones_pulldown_menu($default, $key = null)
{
    $name = !empty($key) ? 'configuration[' . $key . ']' : 'configuration_value';
    $zones_array = array();
    foreach (osC_Address::getZones() as $zone) {
        $zones_array[] = array('id' => $zone['id'], 'text' => $zone['name'], 'group' => $zone['country_name']);
    }
    return osc_draw_pull_down_menu($name, $zones_array, $default);
}
开发者ID:heshuai64,项目名称:gamestore,代码行数:9,代码来源:osc_cfg_set_zones_pulldown_menu.php

示例3: osc_cfg_set_countries_pulldown_menu

function osc_cfg_set_countries_pulldown_menu($default, $key = null)
{
    $name = !empty($key) ? 'configuration[' . $key . ']' : 'configuration_value';
    $countries_array = array();
    foreach (Address::getCountries() as $country) {
        $countries_array[] = array('id' => $country['id'], 'text' => $country['name']);
    }
    return osc_draw_pull_down_menu($name, $countries_array, $default);
}
开发者ID:kdexter,项目名称:oscommerce,代码行数:9,代码来源:osc_cfg_set_countries_pulldown_menu.php

示例4: osc_cfg_set_weight_classes_pulldown_menu

function osc_cfg_set_weight_classes_pulldown_menu($default, $key = null)
{
    $name = empty($key) ? 'configuration_value' : 'configuration[' . $key . ']';
    $weight_class_array = array();
    foreach (Weight::getClasses() as $class) {
        $weight_class_array[] = array('id' => $class['id'], 'text' => $class['title']);
    }
    return osc_draw_pull_down_menu($name, $weight_class_array, $default);
}
开发者ID:kdexter,项目名称:oscommerce,代码行数:9,代码来源:osc_cfg_set_weight_classes_pulldown_menu.php

示例5: osc_cfg_set_zone_classes_pull_down_menu

function osc_cfg_set_zone_classes_pull_down_menu($default, $key = null)
{
    $OSCOM_Database = Registry::get('Database');
    $name = empty($key) ? 'configuration_value' : 'configuration[' . $key . ']';
    $zone_class_array = array(array('id' => '0', 'text' => OSCOM::getDef('parameter_none')));
    $Qzones = $OSCOM_Database->query('select geo_zone_id, geo_zone_name from :table_geo_zones order by geo_zone_name');
    $Qzones->execute();
    while ($Qzones->next()) {
        $zone_class_array[] = array('id' => $Qzones->valueInt('geo_zone_id'), 'text' => $Qzones->value('geo_zone_name'));
    }
    return osc_draw_pull_down_menu($name, $zone_class_array, $default);
}
开发者ID:kdexter,项目名称:oscommerce,代码行数:12,代码来源:osc_cfg_set_zone_classes_pull_down_menu.php

示例6: parse

 public static function parse($data)
 {
     $default_value = null;
     foreach ($data['data'] as $variant) {
         if ($variant['default'] === true) {
             $default_value = $variant['id'];
             break;
         }
     }
     $string = '<table border="0" cellspacing="0" cellpadding="2">' . '  <tr>' . '    <td width="100">' . $data['title'] . ':</td>' . '    <td>' . osc_draw_pull_down_menu('variants[' . $data['group_id'] . ']', $data['data'], $default_value, 'onchange="refreshVariants();" id="variants_' . $data['group_id'] . '"') . '</td>' . '  </tr>' . '</table>';
     return $string;
 }
开发者ID:kdexter,项目名称:oscommerce,代码行数:12,代码来源:PullDownMenu.php

示例7: selection

 function selection()
 {
     global $osC_Language, $osC_ShoppingCart;
     $account_types_array = array();
     foreach ($this->_getAccountTypes() as $key => $type) {
         $account_types_array[] = array('id' => $key, 'text' => $type);
     }
     $selection = array('id' => $this->_code, 'module' => $this->_method_title, 'fields' => array(array('title' => $osC_Language->get('payment_wirecard_eft_bank_owner_firstname'), 'field' => osc_draw_input_field('wirecard_eft_owner_first', $osC_ShoppingCart->getBillingAddress('firstname'))), array('title' => $osC_Language->get('payment_wirecard_eft_bank_owner_lastname'), 'field' => osc_draw_input_field('wirecard_eft_owner_last', $osC_ShoppingCart->getBillingAddress('lastname'))), array('title' => $osC_Language->get('payment_wirecard_eft_account_type'), 'field' => osc_draw_pull_down_menu('wirecard_eft_account_type', $account_types_array)), array('title' => $osC_Language->get('payment_wirecard_eft_bank_account_number'), 'field' => osc_draw_input_field('wirecard_eft_account')), array('title' => $osC_Language->get('payment_wirecard_eft_bank_code'), 'field' => osc_draw_input_field('wirecard_eft_bank')), array('title' => $osC_Language->get('payment_wirecard_eft_check_number'), 'field' => osc_draw_input_field('wirecard_eft_check_number'))));
     if ($osC_ShoppingCart->getBillingAddress('country_iso_code_2') == 'IT') {
         $selection['fields'][] = array('title' => $osC_Language->get('payment_wirecard_eft_id_number'), 'field' => osc_draw_input_field('wirecard_eft_id_number'));
     }
     return $selection;
 }
开发者ID:Doluci,项目名称:tomatocart,代码行数:13,代码来源:wirecard_eft.php

示例8: selection

 function selection()
 {
     global $osC_Database, $osC_Language, $osC_ShoppingCart;
     for ($i = 1; $i < 13; $i++) {
         $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1)));
     }
     $year = date('Y');
     for ($i = $year; $i < $year + 10; $i++) {
         $expires_year[] = array('id' => $i, 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $selection = array('id' => $this->_code, 'module' => $this->_method_title, 'fields' => array(array('title' => $osC_Language->get('payment_cc_credit_card_owner'), 'field' => osc_draw_input_field('cc_owner', $osC_ShoppingCart->getBillingAddress('firstname') . ' ' . $osC_ShoppingCart->getBillingAddress('lastname'))), array('title' => $osC_Language->get('payment_cc_credit_card_number'), 'field' => osc_draw_input_field('cc_number')), array('title' => $osC_Language->get('payment_cc_credit_card_expiry_date'), 'field' => osc_draw_pull_down_menu('cc_expires_month', $expires_month) . '&nbsp;' . osc_draw_pull_down_menu('cc_expires_year', $expires_year))));
     return $selection;
 }
开发者ID:Doluci,项目名称:tomatocart,代码行数:13,代码来源:cc.php

示例9: osc_cfg_set_zone_classes_pull_down_menu

function osc_cfg_set_zone_classes_pull_down_menu($default, $key = null)
{
    global $osC_Database, $osC_Language;
    $name = empty($key) ? 'configuration_value' : 'configuration[' . $key . ']';
    $zone_class_array = array(array('id' => '0', 'text' => $osC_Language->get('parameter_none')));
    $Qzones = $osC_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 osc_draw_pull_down_menu($name, $zone_class_array, $default);
}
开发者ID:heshuai64,项目名称:gamestore,代码行数:13,代码来源:osc_cfg_set_zone_classes_pull_down_menu.php

示例10: initialize

 public function initialize()
 {
     $OSCOM_Database = Registry::get('Database');
     $Qmanufacturers = $OSCOM_Database->query('select manufacturers_id as id, manufacturers_name as text from :table_manufacturers order by manufacturers_name');
     $Qmanufacturers->setCache('manufacturers');
     $Qmanufacturers->execute();
     $manufacturers_array = array(array('id' => '', 'text' => OSCOM::getDef('pull_down_default')));
     while ($Qmanufacturers->next()) {
         $manufacturers_array[] = $Qmanufacturers->toArray();
     }
     $Qmanufacturers->freeResult();
     $this->_content = '<form name="manufacturers" action="' . OSCOM::getLink() . '" method="get">' . osc_draw_hidden_field('Index', null) . osc_draw_pull_down_menu('Manufacturers', $manufacturers_array, null, 'onchange="this.form.submit();" size="' . BOX_MANUFACTURERS_LIST_SIZE . '" style="width: 100%"') . osc_draw_hidden_session_id_field() . '</form>';
 }
开发者ID:kdexter,项目名称:oscommerce,代码行数:13,代码来源:Controller.php

示例11: osc_cfg_set_tax_classes_pull_down_menu

function osc_cfg_set_tax_classes_pull_down_menu($default, $key = null)
{
    global $osC_Database, $osC_Language;
    $name = empty($key) ? 'configuration_value' : 'configuration[' . $key . ']';
    $tax_class_array = array(array('id' => '0', 'text' => $osC_Language->get('parameter_none')));
    $Qclasses = $osC_Database->query('select tax_class_id, tax_class_title from :table_tax_class order by tax_class_title');
    $Qclasses->bindTable(':table_tax_class', TABLE_TAX_CLASS);
    $Qclasses->execute();
    while ($Qclasses->next()) {
        $tax_class_array[] = array('id' => $Qclasses->valueInt('tax_class_id'), 'text' => $Qclasses->value('tax_class_title'));
    }
    return osc_draw_pull_down_menu($name, $tax_class_array, $default);
}
开发者ID:heshuai64,项目名称:gamestore,代码行数:13,代码来源:osc_cfg_set_tax_classes_pull_down_menu.php

示例12: getParameters

 function getParameters()
 {
     global $osC_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' => $osC_Language->get('images_resize_field_groups'), 'field' => osc_draw_pull_down_menu('groups[]', $groups, $groups_ids, 'multiple="multiple" size="5"')), array('key' => $osC_Language->get('images_resize_field_overwrite_images'), 'field' => osc_draw_checkbox_field('overwrite', '1')));
 }
开发者ID:sajad1441,项目名称:TomatoShop-v1,代码行数:13,代码来源:resize.php

示例13: osc_cfg_set_order_statuses_pull_down_menu

function osc_cfg_set_order_statuses_pull_down_menu($default, $key = null)
{
    $OSCOM_Database = Registry::get('Database');
    $OSCOM_Language = Registry::get('Language');
    $name = empty($key) ? 'configuration_value' : 'configuration[' . $key . ']';
    $statuses_array = array(array('id' => '0', 'text' => OSCOM::getDef('default_entry')));
    $Qstatuses = $OSCOM_Database->query('select orders_status_id, orders_status_name from :table_orders_status where language_id = :language_id order by orders_status_name');
    $Qstatuses->bindInt(':language_id', $OSCOM_Language->getID());
    $Qstatuses->execute();
    while ($Qstatuses->next()) {
        $statuses_array[] = array('id' => $Qstatuses->valueInt('orders_status_id'), 'text' => $Qstatuses->value('orders_status_name'));
    }
    return osc_draw_pull_down_menu($name, $statuses_array, $default);
}
开发者ID:kdexter,项目名称:oscommerce,代码行数:14,代码来源:osc_cfg_set_order_statuses_pull_down_menu.php

示例14: initialize

 function initialize()
 {
     global $osC_Database, $osC_Language;
     $Qmanufacturers = $osC_Database->query('select manufacturers_id as id, manufacturers_name as text from :table_manufacturers order by manufacturers_name');
     $Qmanufacturers->bindTable(':table_manufacturers', TABLE_MANUFACTURERS);
     $Qmanufacturers->setCache('manufacturers');
     $Qmanufacturers->execute();
     $manufacturers_array = array(array('id' => '', 'text' => $osC_Language->get('pull_down_default')));
     while ($Qmanufacturers->next()) {
         $manufacturers_array[] = $Qmanufacturers->toArray();
     }
     $Qmanufacturers->freeResult();
     $this->_content = '<form name="manufacturers" action="' . osc_href_link(FILENAME_DEFAULT, null, 'NONSSL', false) . '" method="get">' . osc_draw_pull_down_menu('manufacturers', $manufacturers_array, null, 'onchange="this.form.submit();" size="' . BOX_MANUFACTURERS_LIST_SIZE . '" style="width: 100%"') . osc_draw_hidden_session_id_field() . '</form>';
 }
开发者ID:heshuai64,项目名称:gamestore,代码行数:14,代码来源:manufacturers.php

示例15: showAudienceSelectionForm

 function showAudienceSelectionForm()
 {
     global $osC_Database, $osC_Language, $osC_Template;
     $customers_array = array(array('id' => '***', 'text' => $osC_Language->get('newsletter_email_all_customers')));
     $Qcustomers = $osC_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" action="' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page'] . '&nID=' . $this->_newsletter_id . '&action=send') . '" method="post">' . '  <p align="center">' . osc_draw_pull_down_menu('customer', $customers_array, null, 'size="20" style="width: 100%;"') . '</p>' . '  <p align="right">' . osc_draw_hidden_field('subaction', 'confirm') . '<input type="submit" value="' . $osC_Language->get('button_ok') . '" class="operationButton" />&nbsp;<input type="button" value="' . $osC_Language->get('button_cancel') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page']) . '\';" class="operationButton" /></p>' . '</form>';
     return $audience_form;
 }
开发者ID:4DvAnCeBoY,项目名称:tomatocart-shoppingcart,代码行数:14,代码来源:email.php


注:本文中的osc_draw_pull_down_menu函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。