Documentation

BeginNextTab

void
CAdminTabControl::BeginNextTab(
)

The method BeginNextTab completes a previously started tab (if any has been started) and starts a new page.

Example

<?
// display tab titles
$tabControl->Begin(); ?> <? //******************** // the first tab is a mail list editing form
//******************** $tabControl->BeginNextTab(); ?> <tr> <td width="40%"><?echo GetMessage("rub_act")?></td> <td width="60%"><input type="checkbox"
                           name="ACTIVE"
                           value="Y"<?if($str_ACTIVE == "Y") echo " checked"?>></td> </tr> <tr> <td><?echo GetMessage("rub_visible")?></td> <td><input type="checkbox"
               name="VISIBLE"
               value="Y"<?if($str_VISIBLE == "Y") echo " checked"?>></td> </tr> <tr> <td><?echo GetMessage("rub_site")?></td> <td><?echo CLang::SelectBox("LID", $str_LID);?></td> </tr> <tr> <td><span class="required">*</span><?echo GetMessage("rub_name")?></td> <td><input type="text"
               name="NAME"
               value="<?echo $str_NAME;?>" size="30" maxlength="100"></td> </tr> <tr> <td><?echo GetMessage("rub_sort")?></td> <td><input type="text"
               name="SORT" value="<?echo $str_SORT;?>" size="30"></td> </tr> <tr> <td><?echo GetMessage("rub_desc")?></td> <td><textarea class="typearea"
                  name="DESCRIPTION" cols="45" rows="5"
                  wrap="VIRTUAL"><?echo $str_DESCRIPTION; ?></textarea></td> </tr> <tr> <td><?echo GetMessage("rub_auto")?></td> <td><input type="checkbox"
               name="AUTO"
               value="Y"<?if($str_AUTO == "Y") echo " checked"?>
               OnCl ick="if (this.checked)
                            tabControl.EnableTab('edit2');
                        else tabControl.DisableTab('edit2');"></td> </tr> <? //******************** // second tab //******************** $tabControl->BeginNextTab(); ?>
© «Bitrix24», 2001-2024
Up