本文整理匯總了PHP中CSaleOrder::GetHistoryList方法的典型用法代碼示例。如果您正苦於以下問題:PHP CSaleOrder::GetHistoryList方法的具體用法?PHP CSaleOrder::GetHistoryList怎麽用?PHP CSaleOrder::GetHistoryList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CSaleOrder
的用法示例。
在下文中一共展示了CSaleOrder::GetHistoryList方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: date
$filters_date_history_to = date($DB->DateFormatToPHP(CSite::GetDateFormat("FULL", SITE_ID)), mktime($arDate["HH"], $arDate["MI"], $arDate["SS"], $arDate["MM"], $arDate["DD"], $arDate["YYYY"]));
$arFilterHistory["DATE_CREATE_TO"] = $filters_date_history_to;
}
else
$filters_date_history_to = "";
}
$arHistoryData = array();
$bUseOldHistory = false;
// collect records from old history to show in the new order changes list
$dbHistory = CSaleOrder::GetHistoryList(
array("H_DATE_INSERT" => "DESC"),
array("H_ORDER_ID" => $ID),
false,
false,
array("*")
);
while ($arHistory = $dbHistory->Fetch())
{
$res = convertHistoryToNewFormat($arHistory);
if ($res)
{
$arHistoryData[] = $res;
$bUseOldHistory = true;
}
}
示例2: Trim
$arFilterHistory["H_DATE_INSERT_FROM"] = Trim($filters_date_history_from);
}
if (strlen($filters_date_history_to) > 0) {
if ($arDate = ParseDateTime($filters_date_history_to, CSite::GetDateFormat("FULL", SITE_ID))) {
if (StrLen($filters_date_history_to) < 11) {
$arDate["HH"] = 23;
$arDate["MI"] = 59;
$arDate["SS"] = 59;
}
$filters_date_history_to = date($DB->DateFormatToPHP(CSite::GetDateFormat("FULL", SITE_ID)), mktime($arDate["HH"], $arDate["MI"], $arDate["SS"], $arDate["MM"], $arDate["DD"], $arDate["YYYY"]));
$arFilterHistory["H_DATE_INSERT_TO"] = $filters_date_history_to;
} else {
$filters_date_history_to = "";
}
}
$dbHistory = CSaleOrder::GetHistoryList($arHistSort, $arFilterHistory, false, false, array("*"));
$dbHistory = new CAdminResult($dbHistory, $sTableID_tab5);
$dbHistory->NavStart();
$lAdmin_tab5->NavText($dbHistory->GetNavPrint(GetMessage('SOD_HIST_LIST')));
$histdHeader = array(array("id" => "H_DATE_INSERT", "content" => GetMessage("SOD_HIST_H_DATE"), "sort" => "H_DATE_INSERT", "default" => true), array("id" => "H_USER_ID", "content" => GetMessage("SOD_HIST_H_USER"), "sort" => "H_USER_ID", "default" => true), array("id" => "STATUS_ID", "content" => $arFieldsAll["STATUS_ID"], "sort" => "STATUS_ID", "default" => true), array("id" => "PAYED", "content" => $arFieldsAll["PAYED"], "sort" => "PAYED", "default" => true), array("id" => "ALLOW_DELIVERY", "content" => $arFieldsAll["ALLOW_DELIVERY"], "sort" => "ALLOW_DELIVERY", "default" => true), array("id" => "CANCELED", "content" => $arFieldsAll["CANCELED"], "sort" => "CANCELED", "default" => true), array("id" => "DEDUCTED", "content" => $arFieldsAll["DEDUCTED"], "sort" => "DEDUCTED", "default" => true), array("id" => "MARKED", "content" => $arFieldsAll["MARKED"], "sort" => "MARKED", "default" => true), array("id" => "PRICE", "content" => $arFieldsAll["PRICE"], "sort" => "PRICE", "default" => true), array("id" => "MORE", "content" => GetMessage("SOD_HIST_H_MORE"), "sort" => "", "default" => true));
$lAdmin_tab5->AddHeaders($histdHeader);
$arDeleteFields = array("ID", "H_USER_ID", "H_DATE_INSERT", "H_CURRENCY", "H_ORDER_ID", "EMP_CANCELED_ID", "EMP_DEDUCTED_ID", "EMP_MARKED_ID", "EMP_STATUS_ID", "EMP_ALLOW_DELIVERY_ID", "STATUS_ID", "PAYED", "ALLOW_DELIVERY", "CANCELED", "DEDUCTED", "MARKED", "PRICE");
while ($arHistory = $dbHistory->Fetch()) {
$row =& $lAdmin_tab5->AddRow($arHistory["ID"], $arHistory, '', '');
$stmp = MakeTimeStamp($arHistory["H_DATE_INSERT"], "DD.MM.YYYY HH:MI:SS");
$row->AddField("H_DATE_INSERT", date("d.m.Y H:i", $stmp));
$row->AddField("H_USER_ID", GetFormatedUserName($arHistory["H_USER_ID"], false));
$payed = "";
if ($arHistory["PAYED"] == "Y") {
$payed = GetMessage("SOD_HIST_YES");
} elseif ($arHistory["PAYED"] == "N") {