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


PHP Customers::updateCity方法代码示例

本文整理汇总了PHP中Customers::updateCity方法的典型用法代码示例。如果您正苦于以下问题:PHP Customers::updateCity方法的具体用法?PHP Customers::updateCity怎么用?PHP Customers::updateCity使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Customers的用法示例。


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

示例1: header

    if ($Deliverys->SetFieldsByInput($SavedCity->fields['shipping_comp'], $SavedCity->fields['names_regions'])) {
        $tpl->Assign('delivery', $Deliverys->list);
    }
} else {
    if ($DeliveryService->SetList()) {
        $tpl->Assign('delivery_services', $DeliveryService->list);
    }
    if ($Deliverys->SetList()) {
        $tpl->Assign('delivery', $Deliverys->list);
    }
}
if (isset($_POST['apply'])) {
    $Customer->updateContPerson($_POST['cont_person']);
    $Customer->updatePhones($_POST['phones']);
    $Customer->updateContragent($_POST['id_manager']);
    $Customer->updateCity($_POST['id_delivery_department']);
    $Customer->updateDelivery($_POST['id_delivery']);
    $Customer->updateBonus($_POST['bonus_card'], $_POST['sex'], $_POST['learned_from'], $_POST['birthday'], $_POST['buy_volume']);
    header("Location: " . $_SERVER['HTTP_REFERER']);
}
$Order = new Orders();
if (isset($id_order)) {
    $Order->SetFieldsById($id_order);
}
if (isset($_POST['smb_off'])) {
    if ($Order->OffUserOrder($id_order)) {
        $tpl->Assign('msg', 'Заказ отменен контрагентом.');
        unset($_POST);
    } else {
        $tpl->Assign('msg', 'Информация не обновлена.');
    }
开发者ID:Arikito,项目名称:webking.xt,代码行数:31,代码来源:cp_cab_customer.php

示例2: isset

 $tpl->Assign('managers_list', $managers_list);
 $tpl->Assign('saved', $saved);
 $tpl->Assign('personal_discount', isset($_SESSION['cart']) && isset($_SESSION['cart']['personal_discount']) ? $_SESSION['cart']['personal_discount'] : 1);
 /* Действия */
 if (isset($GLOBALS['Rewrite']) && is_numeric($GLOBALS['Rewrite'])) {
     if (isset($_POST['add_order'])) {
         // Добавить к корзине товары из заказа
         $Cart->FillByOrderId($GLOBALS['Rewrite'], true);
     } else {
         // заменить корзину товарами из заказа
         $Cart->FillByOrderId($GLOBALS['Rewrite']);
     }
     if ($Users->fields['gid'] == _ACL_CONTRAGENT_) {
         $Customers->updateContPerson($_POST['cont_person']);
         $Customers->updatePhones($_POST['phones']);
         $Customers->updateCity($_POST['id_city']);
         $Customers->updateDelivery($_POST['id_delivery']);
         if ($_POST['bonus_card'] != '') {
             $_SESSION['member']['bonus_card'] = $_POST['bonus_card'];
         } else {
             unset($_SESSION['member']['bonus_card']);
         }
     }
     unset($_POST);
     header('Location: ' . _base_url . '/cart/');
     exit;
 } elseif (isset($GLOBALS['Rewrite']) && $GLOBALS['Rewrite'] == 'success') {
     foreach ($_SESSION['cart']['products'] as $id => $p) {
         $Products->SetFieldsById($id);
         $product = $Products->fields;
         $_SESSION['cart']['products'][$id]['name'] = $product['name'];
开发者ID:Arikito,项目名称:webking.xt,代码行数:31,代码来源:cart.php


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