$db_dost = CSaleOrder::GetList(
array(),
array("DELIVERY_ID" => $arResult["DELIVERY_ID"]),
false,
false,
array("ID")
);
$srtUsValue ="";
$db_propVals = CSaleOrderUserPropsValue::GetList(
array(),
array("USER_PROPS_ID" => $arResult["PROFILE_ID"]),
false,
false,
array("ID", "USER_VALUE_NAME", "ORDER_PROPS_ID", "*")
);
while ($arPropVals = $db_propVals->Fetch())
{
$srtUsValue .= $arPropVals["USER_VALUE_NAME"].": ".$arPropVals["NAME"].": ".$arPropVals["VALUE"];
$srtUsValue .= "<br />";
}
$arDeliv = CSaleOrder::GetByID($arResult["ORDER_ID"]);
$arPaySys = CSalePaySystem::GetByID($arResult["PAY_SYSTEM_ID"], $arResult["PERSON_TYPE"]);
$arAdres ="";
$db_propAdres = CSaleOrderUserPropsValue::GetList(
array(),
array("USER_PROPS_ID" => $arResult["PROFILE_ID"], "ORDER_PROPS_ID" => "5", "ORDER_PROPS_ID" => "14", "ORDER_PROPS_ID" => "18", "ORDER_PROPS_ID" => "20"),
false,
false,
array("ID", "USER_VALUE_NAME", "ORDER_PROPS_ID", "*")
);
while ($arPropAdres = $db_propAdres->Fetch())
{
$arAdres .= $arPropAdres["NAME"].": ".$arPropAdres["VALUE"];
$arAdres .= "<br />";
}
$arIndexA ="";
$db_propAdres = CSaleOrderUserPropsValue::GetList(
array(),
array("USER_PROPS_ID" => $arResult["PROFILE_ID"], "ORDER_PROPS_ID" => "4", "ORDER_PROPS_ID" => "24"),
false,
false,
array("ID", "USER_VALUE_NAME", "ORDER_PROPS_ID", "*")
);
while ($arPropIndex = $db_propAdres->Fetch())
{
$arIndexA .= $arPropIndex["VALUE"];
$arIndexA .= "<br />";
} |