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


PHP tep_draw_pull_down_menu函数代码示例

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


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

示例1: execute

 function execute()
 {
     global $PHP_SELF, $currencies, $request_type, $currency, $oscTemplate;
     if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
         if (isset($currencies) && is_object($currencies) && count($currencies->currencies) > 1) {
             reset($currencies->currencies);
             $currencies_array = array();
             while (list($key, $value) = each($currencies->currencies)) {
                 $currencies_array[] = array('id' => $key, 'text' => $value['title']);
             }
             $hidden_get_variables = '';
             reset($_GET);
             while (list($key, $value) = each($_GET)) {
                 if (is_string($value) && $key != 'currency' && $key != tep_session_name() && $key != 'x' && $key != 'y') {
                     $hidden_get_variables .= tep_draw_hidden_field($key, $value);
                 }
             }
             $form_output = tep_draw_form('currencies', tep_href_link($PHP_SELF, '', $request_type, false), 'get') . tep_draw_pull_down_menu('currency', $currencies_array, $currency, 'onchange="this.form.submit();" style="width: 100%"') . $hidden_get_variables . tep_hide_session_id() . '</form>';
             ob_start();
             include 'includes/modules/boxes/templates/currencies.php';
             $data = ob_get_clean();
             $oscTemplate->addBlock($data, $this->group);
         }
     }
 }
开发者ID:katapofatico,项目名称:Responsive-osCommerce,代码行数:25,代码来源:bm_currencies.php

示例2: pull_down_image_zones

 function pull_down_image_zones($abstract_zone_id)
 {
     extract(tep_load('database'));
     $abstract_query = "select az.abstract_zone_id as id, az.abstract_zone_name as text from " . TABLE_ABSTRACT_ZONES . " az, " . TABLE_ABSTRACT_TYPES . " abt where abstract_types_class='image_zones' and abt.abstract_types_id=az.abstract_types_id";
     $abstract_array = $db->query_to_array($abstract_query);
     return tep_draw_pull_down_menu('configuration_value', $abstract_array, $abstract_zone_id);
 }
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:7,代码来源:config.php

示例3: execute

 function execute()
 {
     global $PHP_SELF, $lng, $request_type, $oscTemplate, $language, $request_type, $HTTP_GET_VARS, $current_lang_key;
     if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {
         if (!isset($lng) || isset($lng) && !is_object($lng)) {
             include DIR_WS_CLASSES . 'language.php';
             $lng = new language();
         }
         if (count($lng->catalog_languages) > 1) {
             reset($lng->catalog_languages);
             $languages_array = array();
             while (list($key, $value) = each($lng->catalog_languages)) {
                 $languages_array[] = array('id' => $key, 'text' => $value['name']);
             }
             foreach ($lng->catalog_languages as $key => $value) {
                 if ($value['directory'] == $language) {
                     $current_lang_key = $key;
                     break;
                 }
             }
             reset($HTTP_GET_VARS);
             while (list($key, $value) = each($HTTP_GET_VARS)) {
                 if (is_string($value) && $key != 'language' && $key != tep_session_name() && $key != 'x' && $key != 'y') {
                     $hidden_get_variables .= tep_draw_hidden_field($key, $value);
                 }
             }
             $data = '<div class="headerBox languages">' . '  <span class="headerTitle languages-title">' . MODULE_BOXES_HEADER_LANGUAGES_BOX_TITLE . '</span>' . '  <div class="headerBoxContents">' . '    ' . tep_draw_form('languages', tep_href_link($PHP_SELF, '', $request_type, false), 'get') . '    ' . tep_draw_pull_down_menu('language', $languages_array, $current_lang_key, 'onchange="this.form.submit();"') . $hidden_get_variables . tep_hide_session_id() . '</form>' . '  </div>' . '</div>';
             $oscTemplate->addBlock($data, $this->group);
         }
     }
 }
开发者ID:templatemonster,项目名称:oscommerce,代码行数:31,代码来源:h_languages.php

示例4: getData

 function getData()
 {
     global $HTTP_GET_VARS, $request_type, $oscTemplate;
     $data = '';
     $manufacturers_query = tep_db_query("select manufacturers_id, manufacturers_name from " . TABLE_MANUFACTURERS . " order by manufacturers_name");
     if ($number_of_rows = tep_db_num_rows($manufacturers_query)) {
         if ($number_of_rows <= MAX_DISPLAY_MANUFACTURERS_IN_A_LIST) {
             // Display a list
             $manufacturers_list = '<ul class="nav nav-list">';
             while ($manufacturers = tep_db_fetch_array($manufacturers_query)) {
                 $manufacturers_name = strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN ? substr($manufacturers['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['manufacturers_name'];
                 if (isset($HTTP_GET_VARS['manufacturers_id']) && $HTTP_GET_VARS['manufacturers_id'] == $manufacturers['manufacturers_id']) {
                     $manufacturers_name = '<strong>' . $manufacturers_name . '</strong>';
                 }
                 $manufacturers_list .= '<li><a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers['manufacturers_id']) . '">' . $manufacturers_name . '</a></li>';
             }
             $manufacturers_list .= '</ul>';
             $content = $manufacturers_list;
         } else {
             // Display a drop-down
             $manufacturers_array = array();
             if (MAX_MANUFACTURERS_LIST < 2) {
                 $manufacturers_array[] = array('id' => '', 'text' => PULL_DOWN_DEFAULT);
             }
             while ($manufacturers = tep_db_fetch_array($manufacturers_query)) {
                 $manufacturers_name = strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN ? substr($manufacturers['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['manufacturers_name'];
                 $manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'], 'text' => $manufacturers_name);
             }
             $content = tep_draw_form('manufacturers', tep_href_link(FILENAME_DEFAULT, '', $request_type, false), 'get') . tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, isset($HTTP_GET_VARS['manufacturers_id']) ? $HTTP_GET_VARS['manufacturers_id'] : '', 'onchange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 100%"') . tep_hide_session_id() . '</form>';
         }
         $data = '<div class="panel panel-default">' . '  <div class="panel-heading">' . MODULE_BOXES_MANUFACTURERS_BOX_TITLE . '</div>' . '  <div class="panel-body">' . $content . '</div>' . '</div>';
     }
     return $data;
 }
开发者ID:osc2nuke,项目名称:demobts,代码行数:34,代码来源:bm_manufacturers.php

示例5: _draw_stocked_attributes

 function _draw_stocked_attributes()
 {
     global $languages_id;
     $out = '';
     $attributes = $this->_build_attributes_array(true, false);
     if (sizeof($attributes) > 0) {
         for ($o = 0; $o < sizeof($attributes); $o++) {
             $s = sizeof($attributes[$o]['ovals']);
             for ($a = 0; $a < $s; $a++) {
                 $attribute_stock_query = tep_db_query("select products_stock_quantity from " . TABLE_PRODUCTS_STOCK . " where products_id = '" . (int) $this->products_id . "' AND products_stock_attributes REGEXP '(^|,)" . (int) $attributes[$o]['oid'] . "-" . (int) $attributes[$o]['ovals'][$a]['id'] . "(,|\$)' AND products_stock_quantity > 0");
                 $out_of_stock = tep_db_num_rows($attribute_stock_query) == 0;
                 if ($out_of_stock && $this->show_out_of_stock == 'True') {
                     switch ($this->mark_out_of_stock) {
                         case 'Left':
                             $attributes[$o]['ovals'][$a]['text'] = TEXT_OUT_OF_STOCK . ' - ' . $attributes[$o]['ovals'][$a]['text'];
                             break;
                         case 'Right':
                             $attributes[$o]['ovals'][$a]['text'] .= ' - ' . TEXT_OUT_OF_STOCK;
                             break;
                     }
                 } elseif ($out_of_stock && $this->show_out_of_stock != 'True') {
                     unset($attributes[$o]['ovals'][$a]);
                 }
             }
             $out .= '<tr><td align="right" class="main"><b>' . $attributes[$o]['oname'] . ':</b></td><td class="main" align="left">' . tep_draw_pull_down_menu('id[' . $attributes[$o]['oid'] . ']', array_values($attributes[$o]['ovals']), $attributes[$o]['default'], 'onchange="stkmsg(this.form);"') . '</td></tr>';
         }
         $out .= $this->_draw_out_of_stock_message_js($attributes);
         return $out;
     }
 }
开发者ID:digideskio,项目名称:oscmax2,代码行数:30,代码来源:pad_multiple_dropdowns.php

示例6: showInterface

 function showInterface()
 {
     global $pInfo;
     if (MODULE_SHIPPING_FREIGHTQUOTE_STATUS != 'True') {
         return false;
     }
     $template = array('TITLE' => TEXT_PRODUCTS_FREIGHTQUOTE, 'LABEL_ENABLE' => TEXT_PRODUCTS_FREIGHTQUOTE_ENABLE, 'LABEL_CLASS' => TEXT_PRODUCTS_FREIGHTQUOTE_CLASS, 'LABEL_DIMENSIONS' => TEXT_PRODUCTS_FREIGHTQUOTE_DIMENSIONS, 'LABEL_NMFC' => TEXT_PRODUCTS_FREIGHTQUOTE_NMFC, 'LABEL_HZMT' => TEXT_PRODUCTS_FREIGHTQUOTE_HZMT, 'LABEL_COMMODITY_TYPE' => TEXT_PRODUCTS_FREIGHTQUOTE_COMMODITY_TYPE, 'LABEL_PACKAGE_TYPE' => TEXT_PRODUCTS_FREIGHTQUOTE_PACKAGE_TYPE, 'LABEL_CONTENT_TYPE' => TEXT_PRODUCTS_FREIGHTQUOTE_CONTENT_TYPE);
     $boolean_dropdown = array(array('id' => 'true', 'text' => 'True'), array('id' => 'false', 'text' => 'False'));
     $classes = array(array('id' => '50', 'text' => '50'), array('id' => '55', 'text' => '55'), array('id' => '60', 'text' => '60'), array('id' => '65', 'text' => '65'), array('id' => '70', 'text' => '70'), array('id' => '77.5', 'text' => '77.5'), array('id' => '85', 'text' => '85'), array('id' => '92.5', 'text' => '92.5'), array('id' => '100', 'text' => '100'), array('id' => '110', 'text' => '110'), array('id' => '125', 'text' => '125'), array('id' => '150', 'text' => '150'), array('id' => '175', 'text' => '175'), array('id' => '200', 'text' => '200'), array('id' => '250', 'text' => '250'), array('id' => '300', 'text' => '300'), array('id' => '400', 'text' => '400'), array('id' => '500', 'text' => '500'));
     $packages = array(array('id' => 'Bags', 'text' => 'Bags'), array('id' => 'Bales', 'text' => 'Bales'), array('id' => 'Boxes', 'text' => 'Boxes'), array('id' => 'Bundles', 'text' => 'Bundles'), array('id' => 'Carpets', 'text' => 'Carpets'), array('id' => 'Coils', 'text' => 'Coils'), array('id' => 'Crates', 'text' => 'Crates'), array('id' => 'Cylinders', 'text' => 'Cylinders'), array('id' => 'Drums', 'text' => 'Drums'), array('id' => 'Pails', 'text' => 'Pails'), array('id' => 'Reels', 'text' => 'Reels'), array('id' => 'Rolls', 'text' => 'Rolls'), array('id' => 'TubesPipes', 'text' => 'Tubes/Pipes'), array('id' => 'Motorcycle', 'text' => 'Motorcycle'), array('id' => 'ATV', 'text' => 'ATV'), array('id' => 'Pallets_48x40', 'text' => 'Pallets 48x40'), array('id' => 'Pallets_other', 'text' => 'Pallets Other'), array('id' => 'Pallets_120x120', 'text' => 'Pallets 120x120'), array('id' => 'Pallets_120x100', 'text' => 'Pallets 120x100'), array('id' => 'Pallets_120x80', 'text' => 'Pallets 120x80'), array('id' => 'Pallets_europe', 'text' => 'Pallets Europe'), array('id' => 'Pallets_48x48', 'text' => 'Pallets 48x48'), array('id' => 'Pallets_60x48', 'text' => 'Pallets 60x48'));
     $commodities = array(array('id' => 'GeneralMerchandise', 'text' => 'General Merchandise'), array('id' => 'Machinery', 'text' => 'Machinery'), array('id' => 'HouseholdGoods', 'text' => 'Household Goods'), array('id' => 'FragileGoods', 'text' => 'Fragile Goods'), array('id' => 'ComputerHardware', 'text' => 'Computer Hardware'), array('id' => 'BottledProducts', 'text' => 'Bottled Products'), array('id' => 'BottleBeverages', 'text' => 'Bottle Beverages'), array('id' => 'NonPerishableFood', 'text' => 'Non Perishable Food'), array('id' => 'SteelSheet', 'text' => 'Steel Sheet'), array('id' => 'BrandedGoods', 'text' => 'Branded Goods'), array('id' => 'PrecisionInstruments', 'text' => 'Precision Instruments'), array('id' => 'ChemicalsHazardous', 'text' => 'Chemicals Hazardous'), array('id' => 'FineArt', 'text' => 'Fine Art'), array('id' => 'Automobiles', 'text' => 'Automobiles'), array('id' => 'CellPhones', 'text' => 'Cell Phones'), array('id' => 'NewMachinery', 'text' => 'New Machinery'), array('id' => 'UsedMachinery', 'text' => 'Used Machinery'), array('id' => 'HotTubs', 'text' => 'Hot Tubs'));
     $contents = array(array('id' => 'NewCommercialGoods', 'text' => 'New Commercial Goods'), array('id' => 'UsedCommercialGoods', 'text' => 'Used Commercial Goods'), array('id' => 'HouseholdGoods', 'text' => 'Household Goods'), array('id' => 'FragileGoods', 'text' => 'Fragile Goods'), array('id' => 'Automobile', 'text' => 'Automobile'), array('id' => 'Motorcycle', 'text' => 'Motorcycle'), array('id' => 'AutoOrMotorcycle', 'text' => 'Auto or Motorcycle'));
     $template['DROPDOWN_CLASS'] = tep_draw_pull_down_menu('products_freightquote_class', $classes, $pInfo->products_freightquote_class);
     $template['FIELD_ENABLE'] = tep_draw_checkbox_field('products_freightquote_enable', '1', $pInfo->products_freightquote_enable == '1' ? true : false);
     $template['FIELDS_DIMENSIONS'] = tep_draw_input_field('products_freightquote_length', $pInfo->products_freightquote_length, 'maxlength=3 style="width:50px"') . 'L x ' . tep_draw_input_field('products_freightquote_width', $pInfo->products_freightquote_width, 'maxlength=3 style="width:50px"') . 'W x ' . tep_draw_input_field('products_freightquote_height', $pInfo->products_freightquote_height, 'maxlength=3 style="width:50px"') . 'H';
     $template['FIELD_NMFC'] = tep_draw_input_field('products_freightquote_nmfc', $pInfo->products_freightquote_nmfc, 'maxlength=100');
     $template['DROPDOWN_HZMT'] = tep_draw_pull_down_menu('products_freightquote_hzmt', $boolean_dropdown, $pInfo->products_freightquote_hzmt == 'true' ? 'true' : 'false');
     $template['DROPDOWN_PACKAGE_TYPES'] = tep_draw_pull_down_menu('products_freightquote_package_type', $packages, $pInfo->products_freightquote_package_type);
     $template['DROPDOWN_COMMODITY_TYPES'] = tep_draw_pull_down_menu('products_freightquote_commodity_type', $commodities, $pInfo->products_freightquote_commodity_type);
     $template['DROPDOWN_CONTENT_TYPES'] = tep_draw_pull_down_menu('products_freightquote_content_type', $contents, $pInfo->products_freightquote_content_type);
     $template_file = file_get_contents($this->fqDirectory . 'freightquote_interface.tpl');
     foreach ($template as $key => $val) {
         $template_file = str_replace($key, $val, $template_file);
     }
     echo $template_file;
 }
开发者ID:Kymation,项目名称:Freightquote.com-for-osCommerce,代码行数:26,代码来源:freightquote_admin.php

示例7: getSetField

    function getSetField()
    {
        global $languages_id;
        $statuses_array = array();
        $flags_query = tep_db_query("describe orders_status public_flag");
        if (tep_db_num_rows($flags_query) == 1) {
            $statuses_query = tep_db_query("select orders_status_id, orders_status_name from orders_status where language_id = '" . (int) $languages_id . "' and public_flag = '0' order by orders_status_name");
        } else {
            $statuses_query = tep_db_query("select orders_status_id, orders_status_name from orders_status where language_id = '" . (int) $languages_id . "' order by orders_status_name");
        }
        while ($statuses = tep_db_fetch_array($statuses_query)) {
            $statuses_array[] = array('id' => $statuses['orders_status_id'], 'text' => $statuses['orders_status_name']);
        }
        $input = tep_draw_pull_down_menu('transactions_order_status_id', $statuses_array, OSCOM_APP_PAYPAL_TRANSACTIONS_ORDER_STATUS_ID, 'id="inputTransactionsOrderStatusId"');
        $result = <<<EOT
<div>
  <p>
    <label for="inputTransactionsOrderStatusId">{$this->title}</label>

    {$this->description}
  </p>

  <div>
    {$input}
  </div>
</div>
EOT;
        return $result;
    }
开发者ID:katapofatico,项目名称:Responsive-osCommerce,代码行数:29,代码来源:transactions_order_status_id.php

示例8: choose_audience

    function choose_audience()
    {
        global $HTTP_GET_VARS, $languages_id;
        $products_array = array();
        $products_query = tep_db_query("select pd.products_id, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where pd.language_id = '" . $languages_id . "' and pd.products_id = p.products_id and p.products_status = '1' order by pd.products_name");
        while ($products = tep_db_fetch_array($products_query)) {
            $products_array[] = array('id' => $products['products_id'], 'text' => $products['products_name']);
        }
        $choose_audience_string = '<script type="text/javascript"><!--
function mover(move) {
  if (move == \'remove\') {
    for (x=0; x<(document.notifications.products.length); x++) {
      if (document.notifications.products.options[x].selected) {
        with(document.notifications.elements[\'chosen[]\']) {
          options[options.length] = new Option(document.notifications.products.options[x].text,document.notifications.products.options[x].value);
        }
        document.notifications.products.options[x] = null;
        x = -1;
      }
    }
  }
  if (move == \'add\') {
    for (x=0; x<(document.notifications.elements[\'chosen[]\'].length); x++) {
      if (document.notifications.elements[\'chosen[]\'].options[x].selected) {
        with(document.notifications.products) {
          options[options.length] = new Option(document.notifications.elements[\'chosen[]\'].options[x].text,document.notifications.elements[\'chosen[]\'].options[x].value);
        }
        document.notifications.elements[\'chosen[]\'].options[x] = null;
        x = -1;
      }
    }
  }
  return true;
}

function selectAll(FormName, SelectBox) {
  temp = "document." + FormName + ".elements[\'" + SelectBox + "\']";
  Source = eval(temp);

  for (x=0; x<(Source.length); x++) {
    Source.options[x].selected = "true";
  }

  if (x<1) {
    alert(\'' . JS_PLEASE_SELECT_PRODUCTS . '\');
    return false;
  } else {
    return true;
  }
}
//--></script>';
        $global_button = tep_draw_button(BUTTON_GLOBAL, 'circle-triangle-n', tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID'] . '&action=confirm&global=true'), 'primary');
        $cancel_button = tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID']));
        $choose_audience_string .= '<form name="notifications" action="' . tep_href_link(FILENAME_NEWSLETTERS, 'page=' . $HTTP_GET_VARS['page'] . '&nID=' . $HTTP_GET_VARS['nID'] . '&action=confirm') . '" method="post" onsubmit="return selectAll(\'notifications\', \'chosen[]\')"><table border="0" width="100%" cellspacing="0" cellpadding="2">' . "\n" . '  <tr>' . "\n" . '    <td align="center" class="smallText"><strong>' . TEXT_PRODUCTS . '</strong><br />' . tep_draw_pull_down_menu('products', $products_array, '', 'size="20" style="width: 20em;" multiple') . '</td>' . "\n" . '    <td align="center" class="smallText">&nbsp;<br />' . $global_button . '<br /><br /><br /><input type="button" value="' . BUTTON_SELECT . '" style="width: 8em;" onClick="mover(\'remove\');"><br /><br /><input type="button" value="' . BUTTON_UNSELECT . '" style="width: 8em;" onClick="mover(\'add\');"><br /><br /><br />' . tep_draw_button(IMAGE_SEND, 'mail-closed', null, 'primary') . '<br /><br />' . $cancel_button . '</td>' . "\n" . '    <td align="center" class="smallText"><strong>' . TEXT_SELECTED_PRODUCTS . '</strong><br />' . tep_draw_pull_down_menu('chosen[]', array(), '', 'size="20" style="width: 20em;" multiple') . '</td>' . "\n" . '  </tr>' . "\n" . '</table></form>';
        return $choose_audience_string;
    }
开发者ID:othreed,项目名称:osCommerce-234-bootstrap-wADDONS,代码行数:56,代码来源:product_notification.php

示例9: getData

 function getData()
 {
     global $HTTP_GET_VARS, $request_type, $oscTemplate, $template_id;
     $data = '';
     $content = tep_draw_form('goto', 'bts_header_builder.php', '', 'get');
     $content .= tep_draw_pull_down_menu('template_id', tep_get_templates_tree(), $current_category_id, 'onchange="this.form.submit();"');
     $content .= tep_hide_session_id() . '</form>';
     $data = '<div class="panel panel-default">' . '  <div class="panel-heading">' . MODULE_BOXES_TEMPLATES_BOX_TITLE . '</div>' . '  <div class="panel-body">' . $content . '</div>' . '</div>';
     return $data;
 }
开发者ID:osc2nuke,项目名称:demobts,代码行数:10,代码来源:bm_templates.php

示例10: sbs_get_country_list

function sbs_get_country_list($name, $selected = '', $parameters = '')
{
    $countries_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));
    $countries = sbs_get_countries();
    $size = sizeof($countries);
    for ($i = 0; $i < $size; $i++) {
        $countries_array[] = array('id' => $countries[$i]['countries_id'], 'text' => $countries[$i]['countries_name']);
    }
    return tep_draw_pull_down_menu($name, $countries_array, $selected, $parameters);
}
开发者ID:digideskio,项目名称:oscmax2,代码行数:10,代码来源:create_order_details.php

示例11: selection

 function selection()
 {
     for ($i = 1; $i < 13; $i++) {
         $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
     }
     $today = getdate();
     for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
         $expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $selection = array('id' => $this->code, 'module' => $this->public_title, 'fields' => array(array('title' => MODULE_PAYMENT_PAYPAL_PAYFLOW_PRO_TEXT_CREDIT_CARD_NUMBER, 'field' => tep_draw_input_field('paypal_payflow_pro_number')), array('title' => MODULE_PAYMENT_PAYPAL_PAYFLOW_PRO_TEXT_CREDIT_CARD_EXPIRES, 'field' => tep_draw_pull_down_menu('paypal_payflow_pro_expires_month', $expires_month) . '&nbsp;' . tep_draw_pull_down_menu('paypal_payflow_pro_expires_year', $expires_year)), array('title' => MODULE_PAYMENT_PAYPAL_PAYFLOW_PRO_TEXT_CREDIT_CARD_CVV2, 'field' => tep_draw_input_field('paypal_payflow_pro_cvv2', '', 'size="4"'))));
     return $selection;
 }
开发者ID:p6,项目名称:paypal-payflow-pro-for-oscommerce,代码行数:12,代码来源:paypal_payflow_pro.php

示例12: show_manufacturers

/**
 * $Id: manufacturers.php 63 2005-12-16 21:41:48Z Michael $
 * osCommerce, Open Source E-Commerce Solutions
 * http://www.oscommerce.com
 * Copyright (c) 2003 osCommerce
 * Released under the GNU General Public License
 * adapted 2005 for xoops by FlinkUX <http://www.flinkux.de>
 * @package xosC
 * @author Michael Hammelmann <michael.hammelmann@flinkux.de>
*/
function show_manufacturers()
{
    global $xoopsDB, $xoopsConfig, $xoopsTpl, $xoopsConfig;
    include_once XOOPS_ROOT_PATH . "/modules/osC/includes/configure.php";
    include_once XOOPS_ROOT_PATH . "/modules/osC/includes/database_tables.php";
    include_once XOOPS_ROOT_PATH . "/modules/osC/includes/filenames.php";
    include_once XOOPS_ROOT_PATH . "/modules/osC/includes/functions/database.php";
    include_once XOOPS_ROOT_PATH . "/modules/osC/includes/functions/sessions.php";
    include_once XOOPS_ROOT_PATH . "/modules/osC/includes/functions/general.php";
    include_once XOOPS_ROOT_PATH . "/modules/osC/includes/functions/html_output.php";
    include_once XOOPS_ROOT_PATH . "/modules/osC/includes/classes/boxes.php";
    if (!defined('XBLOCK_CONFIG')) {
        $configuration_query = tep_db_query('select configuration_key as cfgKey, configuration_value as cfgValue from ' . TABLE_CONFIGURATION);
        while ($configuration = tep_db_fetch_array($configuration_query)) {
            define($configuration['cfgKey'], $configuration['cfgValue']);
        }
        define('XBLOCK_CONFIG', "1");
    }
    $manufacturers_query = tep_db_query("select manufacturers_id, manufacturers_name from " . TABLE_MANUFACTURERS . " order by manufacturers_name");
    if ($number_of_rows = tep_db_num_rows($manufacturers_query)) {
        $info_box_contents = array();
        $info_box_contents[] = array('text' => BOX_HEADING_MANUFACTURERS);
        new infoBoxHeading($info_box_contents, false, false);
        if ($number_of_rows <= MAX_DISPLAY_MANUFACTURERS_IN_A_LIST) {
            // Display a list
            $manufacturers_list = '';
            while ($manufacturers = tep_db_fetch_array($manufacturers_query)) {
                $manufacturers_name = strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN ? substr($manufacturers['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['manufacturers_name'];
                if (isset($HTTP_GET_VARS['manufacturers_id']) && $HTTP_GET_VARS['manufacturers_id'] == $manufacturers['manufacturers_id']) {
                    $manufacturers_name = '<b>' . $manufacturers_name . '</b>';
                }
                $manufacturers_list .= '<a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers['manufacturers_id']) . '">' . $manufacturers_name . '</a><br>';
            }
            $manufacturers_list = substr($manufacturers_list, 0, -4);
            $info_box_contents = array();
            $info_box_contents[] = array('text' => $manufacturers_list);
        } else {
            // Display a drop-down
            $manufacturers_array = array();
            if (MAX_MANUFACTURERS_LIST < 2) {
                $manufacturers_array[] = array('id' => '', 'text' => PULL_DOWN_DEFAULT);
            }
            while ($manufacturers = tep_db_fetch_array($manufacturers_query)) {
                $manufacturers_name = strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN ? substr($manufacturers['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['manufacturers_name'];
                $manufacturers_array[] = array('id' => $manufacturers['manufacturers_id'], 'text' => $manufacturers_name);
            }
            $info_box_contents = array();
            $info_box_contents[] = array('form' => tep_draw_form('manufacturers', tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get'), 'text' => tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, isset($HTTP_GET_VARS['manufacturers_id']) ? $HTTP_GET_VARS['manufacturers_id'] : '', 'onChange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 100%"') . tep_hide_session_id());
        }
        $block = new infoBox($info_box_contents);
    }
    return $block->content;
}
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:63,代码来源:manufacturers.php

示例13: selection

 function selection()
 {
     global $order;
     for ($i = 1; $i < 13; $i++) {
         $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
     }
     $today = getdate();
     for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
         $expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_OWNER, 'field' => tep_draw_input_field('intensepay_cc_name', $order->billing['firstname'] . ' ' . $order->billing['lastname'])), array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_NUMBER, 'field' => tep_draw_input_field('intensepay_cc_num')), array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_EXPIRES, 'field' => tep_draw_pull_down_menu('intensepay_cc_exp_mon', $expires_month) . '&nbsp;' . tep_draw_pull_down_menu('intensepay_cc_exp_year', $expires_year)), array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_CVV2, 'field' => tep_draw_input_field('intensepay_cc_cvv2', '', 'style="width:40px" maxlength="4"'))));
     return $selection;
 }
开发者ID:rrecurse,项目名称:IntenseCart,代码行数:13,代码来源:usaepay.php

示例14: confirmation

 function confirmation()
 {
     global $order;
     for ($i = 1; $i < 13; $i++) {
         $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
     }
     $today = getdate();
     for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
         $expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $confirmation = array('fields' => array(array('title' => MODULE_PAYMENT_AUTHORIZENET_CC_AIM_CREDIT_CARD_OWNER, 'field' => tep_draw_input_field('cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])), array('title' => MODULE_PAYMENT_AUTHORIZENET_CC_AIM_CREDIT_CARD_NUMBER, 'field' => tep_draw_input_field('cc_number_nh-dns')), array('title' => MODULE_PAYMENT_AUTHORIZENET_CC_AIM_CREDIT_CARD_EXPIRES, 'field' => tep_draw_pull_down_menu('cc_expires_month', $expires_month) . '&nbsp;' . tep_draw_pull_down_menu('cc_expires_year', $expires_year)), array('title' => MODULE_PAYMENT_AUTHORIZENET_CC_AIM_CREDIT_CARD_CVC, 'field' => tep_draw_input_field('cc_cvc_nh-dns', '', 'size="5" maxlength="4"'))));
     return $confirmation;
 }
开发者ID:laiello,项目名称:myopensources,代码行数:13,代码来源:authorizenet_cc_aim.php

示例15: selection

 function selection()
 {
     global $order;
     for ($i = 1; $i < 13; $i++) {
         $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
     }
     $today = getdate();
     for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
         $expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_OWNER, 'field' => tep_draw_input_field('ipayment_cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])), array('title' => MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_NUMBER, 'field' => tep_draw_input_field('ipayment_cc_number')), array('title' => MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_EXPIRES, 'field' => tep_draw_pull_down_menu('ipayment_cc_expires_month', $expires_month) . '&nbsp;' . tep_draw_pull_down_menu('ipayment_cc_expires_year', $expires_year)), array('title' => MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_CHECKNUMBER, 'field' => tep_draw_input_field('ipayment_cc_checkcode', '', 'size="4" maxlength="3"') . '&nbsp;<small>' . MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_CHECKNUMBER_LOCATION . '</small>')));
     return $selection;
 }
开发者ID:rongandat,项目名称:scalaprj,代码行数:13,代码来源:ipayment.php


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