// Action bar
if(!$bReadOnly)
{
$arActions = array(
...
"set_property" => "Установить свойство", # FIXME GetMessage()
);
if($arIBTYPE["SECTIONS"] == "Y")
{
...
# Add property setter
$rsProps = CIBlockProperty::GetList(array(),array('IBLOCK_ID' => $_REQUEST['IBLOCK_ID']));
$properties = ' <select name="property_code" size="1"><option value="">'.GetMessage("MAIN_NO").'</option>';
while($ar = $rsProps->GetNext())
{
$properties .= '<option value="'.$ar["CODE"].'">'.$ar["NAME"].'</option>';
}
$arActions["property_chooser"] = array("type" => "html", "value" => $properties);
$arActions["property_value"] = array("type" => "html", "value" => '<input type="text" name="property_value" size="5">');
} |