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


PHP Orders::SetNote_diler方法代碼示例

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


在下文中一共展示了Orders::SetNote_diler方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

<?php

$GLOBALS['IERA_LINKS'] = array();
$GLOBALS['IERA_LINKS'][0]['title'] = "Кабинет";
$GLOBALS['IERA_LINKS'][0]['url'] = _base_url . '/cabinet/';
$GET_limit = "";
if (isset($_GET['limit'])) {
    $GET_limit = "limit" . $_GET['limit'] . '/';
}
if (isset($_POST['id_order']) && !empty($_POST['id_order'])) {
    $id_order = intval($_POST['id_order']);
}
$Order = new Orders();
if (isset($_POST['id_klient'])) {
    $Order->SetNote_diler($_POST['id_order'], $_POST['id_klient']);
}
$Customer = new Customers();
$Customer->SetFieldsById($User->fields['id_user']);
$klients = $Customer->SetList($User->fields['email']);
$tpl->Assign('klient', $klients);
$fields = array('date', 'id_order', 'status', 'pretense', 'pretense_status', 'return', 'return_status', 'note');
$f_assoc = array('date' => 'o.creation_date', 'id_order' => 'o.id_order', 'status' => 'o.id_order_status', 'pretense' => 'o.id_pretense_status', 'pretense_status' => 'o.id_pretense_status', 'return' => 'o.id_return_status', 'return_status' => 'o.id_return_status', 'customer' => 'u.id_user');
$orderby = "o.creation_date desc, o.id_order desc";
$sort_links = array();
$ii = count($GLOBALS['IERA_LINKS']) - 1;
foreach ($fields as $f) {
    $sort_links[$f] = $GLOBALS['IERA_LINKS'][$ii]['url'] . "{$GET_limit}ord/{$f}/desc";
    if (in_array("ord", $GLOBALS['REQAR']) && in_array($f, $GLOBALS['REQAR'])) {
        if (in_array("asc", $GLOBALS['REQAR'])) {
            $sort_links[$f] = $GLOBALS['IERA_LINKS'][$ii]['url'] . "{$GET_limit}ord/{$f}/desc";
            $orderby = "{$f_assoc[$f]} asc";
開發者ID:Arikito,項目名稱:webking.xt,代碼行數:31,代碼來源:cp_cab_diler.php

示例2: array

<?php

$GLOBALS['IERA_LINKS'][] = array('title' => "Кабинет контрагента", 'url' => _base_url . '/cabinet/');
$Contragent = new Contragents();
$GET_limit = "";
if (isset($_GET['limit'])) {
    $GET_limit = "limit" . $_GET['limit'] . '/';
}
if (isset($_POST['id_order']) && !empty($_POST['id_order'])) {
    $id_order = intval($_POST['id_order']);
}
$Order = new Orders();
if (isset($_POST['change_client'])) {
    $Order->SetNote_diler($_POST['order'], $_POST['client']);
}
if (isset($_POST['change_status'])) {
    $Order->UpdateStatus($_POST['order'], $_POST['status'], isset($_POST['target_date']) ? $_POST['target_date'] : null);
}
if (isset($_POST['target'])) {
    $target = $_POST['target'];
} else {
    $target = 100;
}
$Customer = new Customers();
$Customer->SetFieldsById($Users->fields['id_user']);
$tpl->Assign('current_customer', $Customer->fields);
$klients = $Customer->SetList($Users->fields['email']);
$tpl->Assign('klient', $klients);
$Contragent->SetFieldsById($Users->fields['id_user']);
$tpl->Assign("contragent", $Contragent->fields);
$contrdates = $Contragent->SetCurrentWeek();
開發者ID:Arikito,項目名稱:webking.xt,代碼行數:31,代碼來源:cp_cab_contragent.php

示例3: Orders

<?php

$id_order = $_POST['id_order'];
$note_diler = $_POST['note_diler'];
$order = new Orders();
$order->SetNote_diler($id_order, $note_diler);
開發者ID:Arikito,項目名稱:webking.xt,代碼行數:6,代碼來源:ajax_diler_note_klient.php


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