Bitrix Site Manager

CAdminListRow::AddInputField

void
CAdminListRow::AddInputField(
  string $ID[, 
  array $arAttributes = array()]
)

The AddInputField method adds a generic text input field. The field is active in the editing mode only.

Parameters

Parameter Description
ID The cell identifier.
arAttributes An array of additional INPUT tag attributes in the format: "attribute" => "value".

Example:


// the NAME parameter is edited as a text and displayed as a link
$row->AddInputField("NAME", array("size"=>20));
$row->AddViewField("NAME", '<a href="rubric_edit.php?id='.$f_id.
                           '&lang='.LANG.'">'.$f_NAME.'</a>');