Bitrix Site Manager

CAdminTabControl::ActiveTabParam

string
CAdminTabControl::ActiveTabParam(
)

The ActiveTabParam method returns the name and the value of a "GET" variable containing the name of a tab that will be activated after the page is loaded.

Example

The following example redirects a user after processing the form data.


if (strlen($strError)<=0)
{
  // if Save has been clicked, direct to the list
  if (strlen($save)>0) 
    LocalRedirect("form_field_list.php?WEB_FORM_ID=".$WEB_FORM_ID.
                  "&additional=". $additional."&lang=".LANGUAGE_ID); // if Apply has been clicked, direct back to the form with the last open tab. else LocalRedirect("form_field_edit_simple.php?".$tabControl->ActiveTabParam().
                  "&ID=".$ID."&WEB_FORM_ID=".$WEB_FORM_ID."&additional=".
                  $additional."&lang=".LANGUAGE_ID); }