Example #1
0
								}
							}
							elseif ($arOrderProps["TYPE"] == "FILE")
							{
								if (strpos($arOrderProps["VALUE"], ",") !== false)
								{
									$arValues = explode(",", $arOrderProps["VALUE"]);
									foreach ($arValues as $fileId)
									{
										echo showImageOrDownloadLink(trim($fileId), $ID);
										echo "<br/>";
									}
								}
								else
								{
									echo showImageOrDownloadLink($arOrderProps["VALUE"], $ID);
								}
							}
							else
							{
								echo htmlspecialcharsEx($arOrderProps["VALUE"]);
							}
							?>
							</td>
						</tr>
					<?
						}
					}
				$tabControl->EndCustomField("ORDER_PROPS", '');

			$tabControl->AddSection("order_delivery", GetMessage("P_ORDER_DELIVERY_TITLE"));
Example #2
0
function getIblockPropInfo($value, $propData, $arSize = array("WIDTH" => 90, "HEIGHT" => 90), $orderId = 0)
{
	$res = "";

	if ($propData["MULTIPLE"] == "Y")
	{
		$arVal = array();
		if (!is_array($value))
		{
			if (strpos($value, ",") !== false)
				$arVal = explode(",", $value);
			else
				$arVal[] = $value;
		}
		else
			$arVal = $value;

		if (count($arVal) > 0)
		{
			foreach ($arVal as $key => $val)
			{
				if ($propData["PROPERTY_TYPE"] == "F")
				{
					if (strlen($res) > 0)
						$res .= "<br/> ".showImageOrDownloadLink(trim($val), $orderId, $arSize);
					else
						$res = showImageOrDownloadLink(trim($val), $orderId, $arSize);
				}
				else
				{
					if (strlen($res) > 0)
						$res .= ", ".$val;
					else
						$res = $val;
				}
			}
		}
	}
	else
	{
		if ($propData["PROPERTY_TYPE"] == "F")
			$res = showImageOrDownloadLink($value, $orderId, $arSize);
		else
			$res = $value;
	}

	if (strlen($res) == 0)
		$res = "&nbsp";

	return $res;
}
Example #3
0
				}
				elseif($arProps["TYPE"] == "FILE")
				{
					$fileValue = "";
					if (strpos($arProps["VALUE"], ",") !== false)
					{
						$arValues = explode(",", $arProps["VALUE"]);
						foreach ($arValues as $fileId)
						{
							$fileValue .= showImageOrDownloadLink(trim($fileId), $arOrder["ID"]);
							$fileValue .= "<br/>";
						}
					}
					else
					{
						$fileValue = showImageOrDownloadLink($arProps["VALUE"], $arOrder["ID"]);
					}

					if(strlen($arProps["CODE"]) > 0)
						$row->AddField("PROP_".$arProps["CODE"], $fileValue);
					else
						$row->AddField("PROP_".$arProps["ORDER_PROPS_ID"], $fileValue);
				}
				else
				{
					if(strlen($arProps["CODE"]) > 0)
						$row->AddField("PROP_".$arProps["CODE"], $arProps["VALUE"]);
					else
						$row->AddField("PROP_".$arProps["ORDER_PROPS_ID"], $arProps["VALUE"]);
				}
			}