<table align="center"><?
if ($arResult["ShowReady"]=="Y")
{
?><tr><td align="center"><? echo GetMessage("TSBS_READY"); ?></td></tr>
<tr><td><ul><?
foreach ($arResult["ITEMS"]["AnDelCanBuy"] as &$v)
{
?><li type="1" style="border:1px grey; border-style:solid;"><?
foreach ($arResult["GRID"]["HEADERS"] as $id => $arHeader)
{
if(isset($v[$arHeader['id']]) && !empty($v[$arHeader['id']]))
{
if(in_array($arHeader['id'], array("NAME")))
{
if ('' != $v["DETAIL_PAGE_URL"])
{
?><a href="<?echo $v["DETAIL_PAGE_URL"]; ?>" style="color: orange"><b><?echo $v[$arHeader['id']]?></b></a></br><?
}
else
{
?><b><?echo $v[$arHeader['id']]?></b><br /><?
}
}
else if(in_array($arHeader['id'], array("PRICE_FORMATED")))
{
?><?= $arHeader['name']?><b><?echo $v[$arHeader['id']]?></b><br /><?
}
else if(in_array($arHeader['id'], ["DETAIL_PICTURE", "PREVIEW_PICTURE"]) && !empty($v[$arHeader['id']."_SRC"]))
{
?><?= $arHeader['name']?><br><img src="<?echo $v[$arHeader['id']."_SRC"]?>"><br/><?
}
else
{
?><?= $arHeader['name']?>: <?echo $v[$arHeader['id']]?></br><?
}
}
}