當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Customers::updateContragent方法代碼示例

本文整理匯總了PHP中Customers::updateContragent方法的典型用法代碼示例。如果您正苦於以下問題:PHP Customers::updateContragent方法的具體用法?PHP Customers::updateContragent怎麽用?PHP Customers::updateContragent使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Customers的用法示例。


在下文中一共展示了Customers::updateContragent方法的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: array

$contragents->SetList();
$availablemanagers = $contragents->list;
$newsletters = $Newsletter->getNewsletterByIdUser($Users->fields['id_user']);
$tpl->Assign('newsletters', $newsletters);
if ($customer['id_contragent'] > 0) {
    $contragents->GetSavedFields($customer['id_contragent']);
    $savedmanager = $contragents->fields;
}
$Users->SetUser($_SESSION['member']);
$tpl->Assign('User', $Users->fields);
$tpl->Assign('Customer', $customer);
$tpl->Assign('availablemanagers', $availablemanagers);
$tpl->Assign('savedmanager', $savedmanager);
$tpl->Assign('msg', array('type' => 'info', 'text' => 'Что бы настроить уведомления и получать рассылку введите свой email в <a href="' . Link::Custom('cabinet', null, array('clear' => true)) . '">личных данных</a>.'));
if (isset($_POST['save_settings'])) {
    if ($Users->updateUser($_POST) && $customers->updateContragent($_POST['id_manager'])) {
        header("Location: /cabinet/settings/?t=basic&success");
    } else {
        header("Location: /cabinet/settings/?t=basic&unsuccess");
    }
} elseif (isset($_POST['save_password'])) {
    $_POST['passwd'] = $_POST['new_passwd'];
    if (isset($_POST['passwd']) && $_POST['passwd'] != '' && $_POST['passwd'] == $_POST['passwdconfirm']) {
        if ($Users->updateUser($_POST)) {
            header("Location: /cabinet/settings/?t=password&success");
        } else {
            header("Location: /cabinet/settings/?t=password&unsuccess");
        }
    } else {
        header("Location: /cabinet/settings/?t=password&unsuccess");
    }
開發者ID:Arikito,項目名稱:webking.xt,代碼行數:31,代碼來源:cp_cab_settings_customer.php


注:本文中的Customers::updateContragent方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。