SignalEvent("EVENT_APPEND_HTML_TO_FORM", array("PageName" => "AddResourceComment", "FormName"=>"CommentForm", "Labels" => array(), "InputElements" => array(), "Notes" => array())); # Extract the results. $Labels = $Data["Labels"]; $InputElements = $Data["InputElements"]; $Notes = $Data["Notes"]; # Append them where required. for ($i=0; $i< count($Labels); $i++) { print("
" ."".$Labels[$i]."" ."".$InputElements[$i]."" ."
" ."".$Notes[$i]."" ."
"); } } # ----- MAIN ----------------------------------------------------------------- $Action = (IsEditing()) ? "Update" : "Add"; ?>

# Comment

UserCanViewField($User, $TitleField)) { ?>
Resource | Get($TitleField); ?>
Comment | <?PHP print GetBody(); ?>