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


PHP tep_draw_form函数代码示例

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


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

示例1: 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

示例2: 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

示例3: 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

示例4: getData

 function getData()
 {
     global $PHP_SELF, $HTTP_GET_VARS;
     // Display the button
     $content = tep_draw_form('skroutz_easy', tep_href_link('skroutz.php', '', 'NONSSL', false), 'post') . '<div align="center">' . tep_image(DIR_WS_IMAGES . $this->logo, $this->title) . '</div>' . '<div style="margin: 5px 0">' . $this->description . '.</div>' . $this->list_header . ':' . '<ul style="margin: 0 0 0.5em 2em; padding-left: 0">' . '  <li>' . $this->list_item1 . '</li>' . '  <li>' . $this->list_item2 . '</li>' . '  <li>' . $this->list_item3 . '</li>' . '</ul>' . '<div align="center"><a href="http://www.skroutz.gr/easy" style="color: #F68B24">' . $this->more . '</a></div>' . tep_draw_input_field('submit', $this->button, 'style="width: 100%; word-wrap: break-word"', 'submit') . '</form>';
     return $content;
 }
开发者ID:sebastien-fauvel,项目名称:oauth2-oscommerce-module,代码行数:7,代码来源:bm_skroutz.php

示例5: execute

 function execute()
 {
     global $request_type, $oscTemplate;
     $form_output = '    ' . tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', $request_type, false), 'get') . '    <div class="input-group">' . '    ' . tep_draw_input_field('keywords', '', 'required placeholder="' . TEXT_SEARCH_PLACEHOLDER . '"', 'search') . '      <span class="input-group-btn"><button type="submit" class="btn btn-search"><i class="fa fa-search"></i></button></span>' . '    </div>' . tep_draw_hidden_field('search_in_description', '0') . tep_hide_session_id() . '    </form>';
     ob_start();
     include DIR_WS_MODULES . 'boxes/templates/search.php';
     $data = ob_get_clean();
     $oscTemplate->addBlock($data, $this->group);
 }
开发者ID:othreed,项目名称:osCommerce-234-bootstrap-wADDONS,代码行数:9,代码来源:bm_search.php

示例6: 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

示例7: execute

 function execute()
 {
     global $request_type, $oscTemplate;
     if ($this->group == 'boxes_header') {
         $data = '<div class="col-sm-6">' . tep_navbar_search('btn-info', false) . '</div>';
     } else {
         $data = '<div class="panel panel-default">' . '  <div class="panel-heading">' . MODULE_BOXES_SEARCH_BOX_TITLE . '</div>' . '  <div class="panel-body text-center">' . '    ' . tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', $request_type, false), 'get') . '    <div class="input-group">' . '    ' . tep_draw_input_field('keywords', '', 'required placeholder="' . TEXT_SEARCH_PLACEHOLDER . '"') . '      <span class="input-group-btn"><button type="submit" class="btn btn-search"><i class="glyphicon glyphicon-search"></i></button></span>' . '    </div>' . tep_draw_hidden_field('search_in_description', '0') . tep_hide_session_id() . '<br />' . MODULE_BOXES_SEARCH_BOX_TEXT . '<br /><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><strong>' . MODULE_BOXES_SEARCH_BOX_ADVANCED_SEARCH . '</strong></a>' . '    </form>' . '  </div>' . '</div>';
     }
     $oscTemplate->addBlock($data, $this->group);
 }
开发者ID:osc2nuke,项目名称:demobts,代码行数:10,代码来源:bm_search.php

示例8: 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

示例9: ajax_start

 function ajax_start()
 {
     extract(tep_load('defs', 'sessions'));
     $result = false;
     if ($cDefs->action != 'direct_management_select') {
         return $result;
     }
     $cStrings =& $this->strings;
     $contents = '<div class="bounder"><div class="formArea"><div class="blockpad">' . $cStrings->TEXT_INFO_DIRECT_MANAGEMENT_POPUP . '</div>' . tep_draw_form('dm_confirm', $cDefs->script, 'action=direct_management', 'POST', 'target="_blank"') . tep_draw_hidden_field('dm_select', 'confirm') . '<div class="formButtons">' . tep_image_submit('button_confirm.gif', IMAGE_CONFIRM) . '</div></form></div></div>';
     echo $contents;
     $cSessions->close();
     $result = true;
     return $result;
 }
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:14,代码来源:admin_direct_management.php

示例10: credit_selection

 function credit_selection()
 {
     global $customer_id, $currencies, $language;
     // START Checkout Display Fix by BTBlomberg
     $selection_string = '<tr><td></td><td class="main">';
     $selection_string .= tep_draw_form('checkout_payment_gift', tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post');
     $selection_string .= '<div><br /> ';
     $selection_string .= Translate('Enter Redeem Code') . tep_draw_input_field('gv_redeem_code', 'redeem code');
     $selection_string .= ' ';
     $selection_string .= tep_image_submit('button_redeem.gif', Translate('Apply Coupon Code'), 'onclick="return submitFunction()"');
     $selection_string .= '</div><br /></form></td></tr>';
     // END Checkout Display Fix by BTBlomberg
     return $selection_string;
 }
开发者ID:CristianCCIT,项目名称:shop4office,代码行数:14,代码来源:ot_coupon.php

示例11: execute

 function execute()
 {
     global $oscTemplate, $request_type;
     $content_width = MODULE_CONTENT_HEADER_SEARCH_CONTENT_WIDTH;
     $search_box = '<div class="searchbox-margin">';
     $search_box .= tep_draw_form('quick_find', tep_href_link('advanced_search_result.php', '', $request_type, false), 'get', 'class="form-horizontal"');
     $search_box .= '  <div class="input-group">' . tep_draw_input_field('keywords', '', 'required placeholder="' . TEXT_SEARCH_PLACEHOLDER . '"', 'search') . '<span class="input-group-btn"><button type="submit" class="btn btn-info"><i class="fa fa-search"></i></button></span>' . '  </div>';
     $search_box .= tep_hide_session_id() . '</form>';
     $search_box .= '</div>';
     ob_start();
     include 'includes/modules/content/' . $this->group . '/templates/search.php';
     $template = ob_get_clean();
     $oscTemplate->addContent($template, $this->group);
 }
开发者ID:katapofatico,项目名称:Responsive-osCommerce,代码行数:14,代码来源:cm_header_search.php

示例12: display_links

 function display_links($query_numrows, $max_rows_per_page, $max_page_links, $current_page_number, $parameters = '', $page_name = 'page')
 {
     global $PHP_SELF;
     if (tep_not_null($parameters) && substr($parameters, -1) != '&') {
         $parameters .= '&';
     }
     // calculate number of pages needing links
     $num_pages = intval($query_numrows / $max_rows_per_page);
     // $num_pages now contains int of pages needed unless there is a remainder from division
     if ($query_numrows % $max_rows_per_page) {
         $num_pages++;
     }
     // has remainder so add one page
     $pages_array = array();
     for ($i = 1; $i <= $num_pages; $i++) {
         $pages_array[] = array('id' => $i, 'text' => $i);
     }
     if ($num_pages > 1) {
         $display_links = tep_draw_form('pages', basename($PHP_SELF), '', 'get');
         if ($current_page_number > 1) {
             $display_links .= '<a href="' . tep_href_link(basename($PHP_SELF), $parameters . $page_name . '=' . ($current_page_number - 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_PREV . '</a>&nbsp;&nbsp;';
         } else {
             $display_links .= PREVNEXT_BUTTON_PREV . '&nbsp;&nbsp;';
         }
         $display_links .= sprintf(TEXT_RESULT_PAGE, tep_draw_pull_down_menu($page_name, $pages_array, '', 'onChange="this.form.submit();"'), $num_pages);
         if ($current_page_number < $num_pages && $num_pages != 1) {
             $display_links .= '&nbsp;&nbsp;<a href="' . tep_href_link(basename($PHP_SELF), $parameters . $page_name . '=' . ($current_page_number + 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_NEXT . '</a>';
         } else {
             $display_links .= '&nbsp;&nbsp;' . PREVNEXT_BUTTON_NEXT;
         }
         if ($parameters != '') {
             if (substr($parameters, -1) == '&') {
                 $parameters = substr($parameters, 0, -1);
             }
             $pairs = explode('&', $parameters);
             while (list(, $pair) = each($pairs)) {
                 list($key, $value) = explode('=', $pair);
                 $display_links .= tep_draw_hidden_field(rawurldecode($key), rawurldecode($value));
             }
         }
         if (SID) {
             $display_links .= tep_draw_hidden_field(tep_session_name(), tep_session_id());
         }
         $display_links .= '</form>';
     } else {
         $display_links = sprintf(TEXT_RESULT_PAGE, $num_pages, $num_pages);
     }
     return $display_links;
 }
开发者ID:rrecurse,项目名称:IntenseCart,代码行数:49,代码来源:split_page_results.php

示例13: confirmation

function confirmation() {
      global $order;
      $confirmation = array('title' => $this->title,
                            'fields' => array(array('title' => 'Clique o botão "Pagar com Itau Shopline" ao lado e após ser exibido o boleto, confirme o Pedido clicando no botão abaixo.',
                                                    'field' => tep_draw_form('form', MODULE_PAYMENT_ITAU_SHOPLINE_URL, 'post', 'name="form" onsubmit=carregabrw() target="SHOPLINE"') .
                                                               tep_draw_hidden_field('valor', $order->info['total'], '') .
                                                               tep_draw_hidden_field('cliente', $order->customer['firstname'] . ' ' . $order->customer['lastname'], '') .
                                                               tep_draw_hidden_field('endereco', $order->customer['street_address'], '') .
                                                               tep_draw_hidden_field('bairro', $order->customer['suburb'], '') .
                                                               tep_draw_hidden_field('cidade', $order->customer['city'], '') .
                                                               tep_draw_hidden_field('estado', $order->customer['state'], '') .
                                                               tep_draw_hidden_field('cep', $order->customer['postcode'], '') .
                                                               tep_draw_input_field('Itau', 'Ita&uacute; Shopline', '', 'submit', true) .
                                                               '</form>')));
      return $confirmation;
    }
开发者ID:andrem,项目名称:itau-shopline-oscommerce-module,代码行数:16,代码来源:shopline.php

示例14: process

 function process()
 {
     global $order, $cart, $buysafe_result, $currencies, $WantsBond, $PHP_SELF;
     if (is_array($buysafe_result) && $buysafe_result['IsBuySafeEnabled'] == 'true') {
         $WantsBond = $buysafe_result['BondCostDisplayText'] != '' ? true : false;
         if (strstr($PHP_SELF, FILENAME_CHECKOUT_CONFIRMATION)) {
             $hidden_fields = '';
             if (is_array($_POST) && sizeof($_POST) > 0) {
                 reset($_POST);
                 while (list($key, $value) = each($_POST)) {
                     if (strlen($value) > 0 && $key != tep_session_name() && $key != 'WantsBond' && $key != 'x' && $key != 'y') {
                         $hidden_fields .= tep_draw_hidden_field($key, stripslashes($value));
                     }
                 }
             }
             $regs = array();
             preg_match_all("'<BondingSignal[^>]*?>.*?</BondingSignal>'", $_SESSION['nusoap_response'], $regs);
             $rollover = end($regs[0]);
             $rollover = strip_tags(substr($rollover, strpos($rollover, '>') + 1));
             $rollover = html_entity_decode($rollover);
             $output_title = tep_draw_form('buysafe_confirmation', tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'), 'post') . tep_draw_hidden_field('WantsBond', $WantsBond ? $WantsBond : 'false') . $hidden_fields . '
       <script src="' . MODULE_ADDONS_BUYSAFE_ROLLOVER_URL . '" type="text/javascript" language="javascript" charset="utf-8"></script>
       <script language="JavaScript" type="text/javascript">
       <!--
       function buySAFEOnClick() {
         if (document.buysafe_confirmation.WantsBond.value == \'false\') {
           document.buysafe_confirmation.WantsBond.value = \'true\';
         } else {
           document.buysafe_confirmation.WantsBond.value = \'false\';
         }
         document.buysafe_confirmation.submit();
       }
       //-->
       </script>' . $rollover . '</form>';
         } else {
             $output_title = $buysafe_result['CartLineDisplayText'];
         }
         $this->output[] = array('title' => $output_title, 'text' => $buysafe_result['BondCostDisplayText'], 'value' => $buysafe_result['BondCostDisplayText'] ? $buysafe_result['TotalBondCost'] : 0);
         if ($buysafe_result['BondCostDisplayText'] && $buysafe_result['TotalBondCost']) {
             $order->info['total'] += $buysafe_result['TotalBondCost'];
         }
     }
     // end if (is_array($buysafe_result))
 }
开发者ID:resultsonlyweb,项目名称:loaded6-template,代码行数:44,代码来源:ot_buysafe.php

示例15: show_search

/**
 * $Id: search.php 57 2005-12-15 14:39:09Z 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_search()
{
    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";
    $info_box_contents = array();
    $info_box_contents[] = array('text' => BOX_HEADING_SEARCH);
    new infoBoxHeading($info_box_contents, false, false);
    $info_box_contents = array();
    $info_box_contents[] = array('form' => tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get'), 'align' => 'center', 'text' => tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH - 30) . 'px"') . '&nbsp;' . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>');
    $block = new infoBox($info_box_contents);
    return $block->content;
}
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:29,代码来源:search.php


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