if($prop_fields["CODE"] == "PHOTO")
{
echo "<select name=\"PROP[".$prop_fields["ID"]."][]\" class=\"typeselect\" size=\"\" multiple>";
$items = GetIBlockElementListEx("gallery","photos",Array(),Array("SORT"=>"ASC"));
while($arItem = $items->GetNext())
echo "<option value=\"".$arItem["ID"]."\"".(in_array($arItem["ID"],$prop_values)?" selected":"").">".$arItem["NAME"]."</option>";
echo "</select>";
}
else
{
_ShowPropertyField('PROP['.$prop_fields["ID"].']', $prop_fields, $prop_values, ((!$bVarsFromForm) && ($ID<=0)), $bVarsFromForm);
}
|