• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP tep_count_customer_address_book_entries函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: osC_Account_Address_book

 function osC_Account_Address_book()
 {
     global $osC_Services, $breadcrumb, $osC_Customer;
     if ($osC_Services->isStarted('breadcrumb')) {
         $breadcrumb->add(NAVBAR_TITLE_ADDRESS_BOOK, tep_href_link(FILENAME_ACCOUNT, $this->_module, 'SSL'));
     }
     if ($osC_Customer->hasDefaultAddress() === false) {
         $this->page_contents = 'address_book_process.php';
     } elseif (isset($_GET['new'])) {
         if ($osC_Services->isStarted('breadcrumb')) {
             $breadcrumb->add(NAVBAR_TITLE_ADDRESS_BOOK_ADD_ENTRY, tep_href_link(FILENAME_ACCOUNT, $this->_module . '&new', 'SSL'));
         }
         $this->page_contents = 'address_book_process.php';
     } elseif (isset($_GET['edit']) && is_numeric($_GET[$this->_module])) {
         if ($osC_Services->isStarted('breadcrumb')) {
             $breadcrumb->add(NAVBAR_TITLE_ADDRESS_BOOK_EDIT_ENTRY, tep_href_link(FILENAME_ACCOUNT, $this->_module . '=' . $_GET[$this->_module] . '&edit', 'SSL'));
         }
         $this->page_contents = 'address_book_process.php';
     } elseif (isset($_GET['delete']) && is_numeric($_GET[$this->_module])) {
         if ($osC_Services->isStarted('breadcrumb')) {
             $breadcrumb->add(NAVBAR_TITLE_ADDRESS_BOOK_DELETE_ENTRY, tep_href_link(FILENAME_ACCOUNT, $this->_module . '=' . $_GET[$this->_module] . '&delete', 'SSL'));
         }
         $this->page_contents = 'address_book_delete.php';
     }
     if (isset($_GET['new']) && $_GET['new'] == 'save') {
         if (tep_count_customer_address_book_entries() >= MAX_ADDRESS_BOOK_ENTRIES) {
             $messageStack->add('address_book', ERROR_ADDRESS_BOOK_FULL);
             $this->page_contents = 'address_book.php';
         } else {
             $this->_process();
         }
     } elseif (isset($_GET['edit']) && $_GET['edit'] == 'save') {
         $this->_process($_GET[$this->_module]);
     } elseif (isset($_GET['delete']) && $_GET['delete'] == 'confirm' && is_numeric($_GET[$this->_module])) {
         $this->_delete($_GET[$this->_module]);
     }
 }
开发者ID:itnovator,项目名称:oscommerce_cvs,代码行数:37,代码来源:address_book.php


示例2: tep_session_register

        }
    } else {
        if (!tep_session_is_registered('sendto')) {
            tep_session_register('sendto');
        }
        $sendto = $customer_default_address_id;
        tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
    }
}
// if no shipping destination address was selected, use their own address as default
if (!tep_session_is_registered('sendto')) {
    $sendto = $customer_default_address_id;
}
$breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
$breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, '', 'SSL'));
$addresses_count = tep_count_customer_address_book_entries();
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php 
echo HTML_PARAMS;
?>
>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php 
echo CHARSET;
?>
">
<title><?php 
echo TITLE;
?>
</title>
开发者ID:laiello,项目名称:hotel-os,代码行数:31,代码来源:checkout_shipping_address.php


示例3: tep_draw_input_field

echo tep_draw_input_field('telephone', $entry['entry_telephone'], 'size="20"');
?>
</td>
	  </tr>
	  <tr>
		<td width="50%"><?php 
echo (ENTRY_FAX_NUMBER_MIN_LENGTH == 'true' ? '<strong>' . ENTRY_FAX_NUMBER . '</strong>&nbsp;<span class="inputRequirement">*</span>' : ENTRY_FAX_NUMBER) . (tep_not_null(ENTRY_FAX_NUMBER_TEXT) ? '&nbsp;' . ENTRY_FAX_NUMBER_TEXT : '');
?>
</td>
		<td width="50%"><?php 
echo tep_draw_input_field('fax', $entry['entry_fax'], 'size="20"');
?>
</td>
	  </tr>
<?php 
if (tep_count_customer_address_book_entries() <= 1) {
    echo tep_draw_hidden_field('primary', 'on');
} elseif (isset($HTTP_GET_VARS['edit']) && $customer_default_address_id != $HTTP_GET_VARS['edit'] || isset($HTTP_GET_VARS['edit']) == false) {
    ?>
	  <tr>
		<td width="50%"></td>
		<td width="50%"><?php 
    echo tep_draw_checkbox_field('primary', 'on', false, 'id="primary"') . ' ' . SET_AS_PRIMARY;
    ?>
</td>
	  </tr>
<?php 
}
?>
	</table>
	</fieldset>
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:31,代码来源:address_book_details.php


示例4: array

             // systemsmanager begin - Dec 1, 2005 security patch
             //          $customer_country_id = $country_id;
             $customer_country_id = $country;
             // systemsmanager end
             $customer_zone_id = $zone_id > 0 ? (int) $zone_id : '0';
             $customer_default_address_id = (int) $_GET['edit'];
             $sql_data_array = array('customers_firstname' => $firstname, 'customers_lastname' => $lastname, 'customers_default_address_id' => (int) $_GET['edit']);
             if (ACCOUNT_GENDER == 'true') {
                 $sql_data_array['customers_gender'] = $gender;
             }
             smn_db_perform(TABLE_CUSTOMERS, $sql_data_array, 'update', "customers_id = '" . (int) $customer_id . "'");
         }
         $messageStack->add_session('addressbook', SUCCESS_ADDRESS_BOOK_ENTRY_UPDATED, 'success');
     }
 } else {
     if (tep_count_customer_address_book_entries() < MAX_ADDRESS_BOOK_ENTRIES) {
         $sql_data_array['customers_id'] = (int) $customer_id;
         smn_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array);
         $new_address_book_id = smn_db_insert_id();
         // reregister session variables
         if (isset($_POST['primary']) && $_POST['primary'] == 'on') {
             $customer_first_name = $firstname;
             // systemsmanager begin - Dec 1, 2005 security patch
             //          $customer_country_id = $country_id;
             $customer_country_id = $country;
             // systemsmanager end
             $customer_zone_id = $zone_id > 0 ? (int) $zone_id : '0';
             if (isset($_POST['primary']) && $_POST['primary'] == 'on') {
                 $customer_default_address_id = $new_address_book_id;
             }
             $sql_data_array = array('customers_firstname' => $firstname, 'customers_lastname' => $lastname);
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:31,代码来源:address_book_process.php


示例5: Copyright

  Copyright (c) 2005 osCommerce

  Released under the GNU General Public License
*/
if (isset($_GET['edit'])) {
    $Qentry = $osC_Database->query('select entry_gender, entry_company, entry_firstname, entry_lastname, entry_street_address, entry_suburb, entry_postcode, entry_city, entry_state, entry_zone_id, entry_country_id, entry_telephone, entry_fax from :table_address_book where customers_id = :customers_id and address_book_id = :address_book_id');
    $Qentry->bindTable(':table_address_book', TABLE_ADDRESS_BOOK);
    $Qentry->bindInt(':customers_id', $osC_Customer->id);
    $Qentry->bindInt(':address_book_id', $_GET['address_book']);
    $Qentry->execute();
    if ($Qentry->numberOfRows() < 1) {
        $messageStack->add('address_book', ERROR_NONEXISTING_ADDRESS_BOOK_ENTRY, 'error');
    }
    $page_heading_title = HEADING_TITLE_ADDRESS_BOOK_EDIT_ENTRY;
} else {
    if (($counter = tep_count_customer_address_book_entries()) >= MAX_ADDRESS_BOOK_ENTRIES) {
        $messageStack->add('address_book', ERROR_ADDRESS_BOOK_FULL);
    }
    $page_heading_title = HEADING_TITLE_ADDRESS_BOOK_ADD_ENTRY;
}
require 'includes/form_check.js.php';
?>

<div class="pageHeading">
  <span class="pageHeadingImage"><?php 
echo tep_image(DIR_WS_IMAGES . 'table_background_address_book.gif', $page_heading_title, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT);
?>
</span>

  <h1><?php 
echo $page_heading_title;
开发者ID:itnovator,项目名称:oscommerce_cvs,代码行数:31,代码来源:address_book_process.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP tep_count_customer_orders函数代码示例发布时间:2022-05-23
下一篇:
PHP tep_class_exists函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap