本文整理汇总了PHP中CAdminTabControl::Begin方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminTabControl::Begin方法的具体用法?PHP CAdminTabControl::Begin怎么用?PHP CAdminTabControl::Begin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAdminTabControl
的用法示例。
在下文中一共展示了CAdminTabControl::Begin方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bitrix_sessid_post
$path = "/bitrix/";
}
$path = htmlspecialcharsbx($path);
$aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage("TRANS_SEARCH"), "ICON" => "translate_search", "TITLE" => GetMessage("TRANS_SEARCH_TITLE"), 'ONSELECT' => "_trSetBTN('search');"), array("DIV" => "edit2", "TAB" => GetMessage("TRANS_REPLACE"), "ICON" => "translate_replace", "TITLE" => GetMessage("TRANS_REPLACE_TITLE"), 'ONSELECT' => "_trSetBTN('replace');"));
$tabControl = new CAdminTabControl("tabControl2", $aTabs, false);
?>
<form name="form_search" method="POST" action="">
<input type="hidden" name="path" value="<?php
echo $path;
?>
">
<input type="hidden" name="tr_search" value="1">
<input type="hidden" id="replace_oper" name="replace_oper" value="N">
<?php
echo bitrix_sessid_post();
$tabControl->Begin();
$tabControl->BeginNextTab();
?>
<tr>
<td><?php
echo GetMessage("TR_SEARCH_PHRASE");
?>
:</td>
<td><input type="text" name="search_phrase" value="<?php
echo htmlspecialcharsbx($search_phrase);
?>
" ></td>
</tr>
<tr>
<td><?php
echo GetMessage("TR_SEARCH_MESSAGE");
示例2: RefreshList
if (data)
CHttpRequest.Post(url, data);
else
CHttpRequest.Send(url);
}
function RefreshList()
{
tbl_dump.GetAdminList('/bitrix/admin/dump.php?lang=<?=LANGUAGE_ID?>');
}
</script>
<form name="fd1" action="<?echo $APPLICATION->GetCurPage()?>?lang=<?=LANGUAGE_ID?>" method="GET">
<?
$editTab->Begin();
$editTab->BeginNextTab();
?>
<tr>
<td colspan=2 align=center><?
echo BeginNote();
echo GetMessage('MODE_DESC');
echo EndNote();
?></td>
</tr>
<tr>
<td> </td>
<td><label><input type="radio" name=arc_profile value=shared id='shared_profile' onclick="SetMode(this.value)"> <?=GetMessage('MODE_SHARED')?></label></td>
</tr>
<tr>
示例3: Show
//.........这里部分代码省略.........
$htmlGroup = "";
if($this->group)
{
if (!empty($arCustomTabs))
{
foreach($this->tabs as $arTab)
{
if(is_array($arTab["FIELDS"]))
{
foreach($arTab["FIELDS"] as $arField)
{
if(
(strlen($this->arFields[$arField["id"]]["custom_html"]) > 0)
|| (strlen($this->arFields[$arField["id"]]["html"]) > 0)
)
{
$p = array_search($arField["id"], $this->arFields[$this->group]["group"]);
if($p !== false)
unset($this->arFields[$this->group]["group"][$p]);
}
}
}
}
}
if(!empty($this->arFields[$this->group]["group"]))
{
$htmlGroup .= '<tr class="heading" id="tr_'.$this->arFields[$this->group]["id"].'">'
.$this->arFields[$this->group]["html"].'</tr>'
."\n";
}
}
$this->OnAdminTabControlBegin();
$this->tabIndex = 0;
while($this->tabIndex < count($this->tabs))
{
ob_start();//Start of the tab content
$arTab = $this->tabs[$this->tabIndex];
if(is_array($arTab["FIELDS"]))
{
foreach($arTab["FIELDS"] as $arField)
{
if(isset($this->arFields[$arField["id"]]["group"]))
{
if(!empty($this->arFields[$arField["id"]]["group"]))
{
echo $htmlGroup;
foreach($this->arFields[$arField["id"]]["group"] as $p)
{
if($this->arFields[$p]["custom_html"])
echo preg_replace("/^\\s*<tr/is", "<tr class=\"bx-in-group\"", $this->arFields[$p]["custom_html"]);
elseif($this->arFields[$p]["html"] && !$this->arFields[$p]["delimiter"])
echo '<tr class="bx-in-group" '.($this->arFields[$p]["valign"] <> ''? ' valign="'.$this->arFields[$p]["valign"].'"':'').' id="tr_'.$p.'">', $this->arFields[$p]["html"], "</tr>\n";
unset($arHiddens[$this->arFields[$p]["id"]]);
$this->arFields[$p] = array();
}
}
}
elseif(strlen($this->arFields[$arField["id"]]["custom_html"]) > 0)
{
if($this->group_ajax)
echo preg_replace("#<script[^>]*>.*?</script>#im".FX_UTF_PCRE_MODIFIER, "", $this->arFields[$arField["id"]]["custom_html"]);
else
echo $this->arFields[$arField["id"]]["custom_html"];
}
示例4: htmlspecialcharsbx
echo htmlspecialcharsbx($_REQUEST["back_url_settings"]);
?>
">
<?php
}
?>
</form>
<a name="services"></a>
<h2><?php
echo GetMessage("STAT_OPT_SYSTEM_PROC");
?>
</h2>
<?php
$tabControl2->Begin();
?>
<form name="cleanupform" method="POST" action="<?php
echo $APPLICATION->GetCurPage();
?>
?mid=<?php
echo htmlspecialcharsbx($mid);
?>
&lang=<?php
echo LANGUAGE_ID;
?>
">
<?php
$tabControl2->BeginNextTab();
?>
示例5: htmlspecialcharsbx
BX(res).setAttribute('class', 'adm-btn');
if (el.bxwaiter && el.bxwaiter.parentNode)
{
el.bxwaiter.parentNode.removeChild(el.bxwaiter);
el.bxwaiter = null;
}
el.disabled = false;
}
}
</script>
<?
}
$systemTabControl = new CAdminTabControl("tabControl2", $aTabs, true, true);
$systemTabControl->Begin();
$systemTabControl->BeginNextTab();
?><tr><td align="left"><?
$arAgentInfo = false;
$rsAgents = CAgent::GetList(array(),array('MODULE_ID' => 'catalog','NAME' => 'CCatalog::PreGenerateXML("yandex");'));
if ($arAgent = $rsAgents->Fetch())
{
$arAgentInfo = $arAgent;
}
if (!is_array($arAgentInfo) || empty($arAgentInfo))
{
?><form name="agent_form" method="POST" action="<?echo $APPLICATION->GetCurPage()?>?mid=<?php
echo htmlspecialcharsbx($mid);
?>
&lang=<?php
echo LANGUAGE_ID;
示例6: urlencode
if (is_array($_REQUEST[$option[0]]) && in_array($v["value"], $_REQUEST[$option[0]])) {
\Bitrix\Main\Config\Option::set($module_id, $option[0], implode("|", $_REQUEST[$option[0]]));
break;
} elseif ($_REQUEST[$option[0]] == $v["value"]) {
\Bitrix\Main\Config\Option::set($module_id, $option[0], $_REQUEST[$option[0]]);
break;
}
}
}
}
}
}
}
LocalRedirect($APPLICATION->GetCurPage() . "?mid=" . urlencode($module_id) . "&lang=" . urlencode(LANGUAGE_ID) . "&" . $o_tab->ActiveTabParam());
}
$o_tab->Begin();
?>
<form method="post" action="<?php
echo $APPLICATION->GetCurPage();
?>
?mid=<?php
echo urlencode($module_id);
?>
&lang=<?php
echo LANGUAGE_ID;
?>
">
<?php
$o_tab->BeginNextTab();
foreach ($all_options as &$option) {
示例7: htmlspecialcharsbx
echo $findSection;
?>
">
<input type="hidden" name="subTmpId" value="<?php
echo $subTmpId;
?>
">
<input type="hidden" name="PRODUCT_NAME_HIDDEN" value="<?php
echo htmlspecialcharsbx($parentProductName);
?>
">
<?php
echo bitrix_sessid_post();
$tabControl = new CAdminTabControl("tabControl", $aTabs, true, true);
$strFormAction = $APPLICATION->GetCurPage();
$tabControl->Begin(array("FORM_ACTION" => $strFormAction));
$tabControl->BeginNextTab();
?>
<script type="text/javascript">
BX('edit_edit_table').className += ' adm-shop-page-table';
var CellTPL = [];
<?php
foreach ($arCellTemplates as $key => $value) {
?>
CellTPL[<?php
echo $key;
?>
] = '<?php
echo $value;
?>
示例8: Show
//.........这里部分代码省略.........
else
{
ob_end_flush();
}
if(!is_array($_SESSION["ADMIN_CUSTOM_FIELDS"]))
$_SESSION["ADMIN_CUSTOM_FIELDS"] = array();
$arDisabled = CUserOptions::GetOption("form", $this->name."_disabled", "N");
if(is_array($arDisabled) && $arDisabled["disabled"] === "Y")
{
$_SESSION["ADMIN_CUSTOM_FIELDS"][$this->name] = true;
$this->tabs = $this->arSavedTabs;
$this->arFields = $this->arSystemFields;
}
else
{
unset($_SESSION["ADMIN_CUSTOM_FIELDS"][$this->name]);
}
if(isset($_REQUEST[$this->name."_active_tab"]))
$this->selectedTab = $_REQUEST[$this->name."_active_tab"];
else
$this->selectedTab = $this->tabs[0]["DIV"];
//To show
$arHiddens = $this->arFields;
echo $this->sPrologContent;
if(array_key_exists("FORM_ACTION", $this->arParams))
$action = htmlspecialcharsbx($this->arParams["FORM_ACTION"]);
else
$action = htmlspecialcharsbx($APPLICATION->GetCurPage());
echo '<form method="POST" Action="'.$action.'" ENCTYPE="multipart/form-data" id="'.$this->name.'_form" name="'.$this->name.'_form"'.($this->arParams["FORM_ATTRIBUTES"] <> ''? ' '.$this->arParams["FORM_ATTRIBUTES"]:'').'>';
parent::Begin();
$htmlGroup = "";
if($this->group)
{
foreach($this->tabs as $arTab)
{
if(is_array($arTab["FIELDS"]))
{
foreach($arTab["FIELDS"] as $arField)
{
if(
(strlen($this->arFields[$arField["id"]]["custom_html"]) > 0)
|| (strlen($this->arFields[$arField["id"]]["html"]) > 0)
)
{
$p = array_search($arField["id"], $this->arFields[$this->group]["group"]);
if($p !== false)
unset($this->arFields[$this->group]["group"][$p]);
}
}
}
}
if(!empty($this->arFields[$this->group]["group"]))
{
$htmlGroup .= '<tr class="heading" id="tr_'.$this->arFields[$this->group]["id"].'">'
.$this->arFields[$this->group]["html"].'</tr>'
."\n";
}
}
while($this->tabIndex < count($this->tabs))
{
示例9: insertDefault_footer
function insertDefault_footer()
{
if (!confirm("<?php
echo GetMessage("FILEMAN_ED_CONFIRM_FOOTER");
?>
"))
return;
var oTA = BX("__bx_footer_ta");
oTA.value = "</body>\n</html>";
}
</script>
<?php
$aTabs_dialog = array(array("DIV" => "__bx_head", "TAB" => GetMessage("FILEMAN_ED_TOP_AREA"), "ICON" => "", "TITLE" => GetMessage("FILEMAN_ED_EDIT_HEAD"), "ONSELECT" => "window.oBXEditorDialog.adjustSizeEx();"), array("DIV" => "__bx_footer", "TAB" => GetMessage("FILEMAN_ED_BOTTOM_AREA"), "ICON" => "", "TITLE" => GetMessage("FILEMAN_ED_EDIT_FOOTER"), "ONSELECT" => "window.oBXEditorDialog.adjustSizeEx();"));
$tabControlDialog = new CAdminTabControl("tabControlDialog_templ", $aTabs_dialog, false, true);
$tabControlDialog->Begin();
$tabControlDialog->BeginNextTab();
?>
<div id="__bx_head"></div>
<?php
$tabControlDialog->BeginNextTab();
?>
<div id="__bx_footer"></div>
<?php
$tabControlDialog->End();
}
?>
<script>
if (!window.oBXEditorDialog.bUseTabControl)
{
示例10: GetMessage
}
$value = $field->getValue();
$default = $field->getDefault();
$fData = array('label' => $field->getLabel(), 'name' => $field->getName(), 'type' => $field->getType(), 'value' => $value, 'isMany' => $field->isMany(), 'sort' => $field->getSort(), 'default' => $default, 'variants' => array());
if ($field->getType() == WS_PSettings::FIELD_TYPE_LIST) {
$fData['variants'] = $field->getVariants();
$variants = array();
foreach ($fData['variants'] as $value => $name) {
$variants[$value] = $name;
}
}
$jsParams['fields'][$field->getName()] = $fData;
}
?>
<div class="project_settings"><?
$tab->Begin();
$tab->BeginNextTab();
?>
<tr class="heading">
<td valign="top" colspan="2" style="text-align: center; padding-right: 130px;" align="left">
<a href="#" class="action" id="<?php
echo $jsParams['newFieldButton'];
?>
"><?php
echo GetMessage("ws_projectsettings_add_field_link");
?>
</a>
<a href="#" class="action" id="<?php
echo $jsParams['toogleSimCodesButton'];
?>
"><?php
示例11: ShowHTML
//.........这里部分代码省略.........
$input = '<input id="__FD_PARAM_' . $opt . '" name="' . $opt . '" size="' . $arOptParams['FIELD_SIZE'] . '" value="' . htmlspecialchars($val) . '" type="text" style="float: left;" ' . ($arOptParams['FIELD_READONLY'] == 'Y' ? 'readonly' : '') . ' />
<input value="' . $arOptParams['BUTTON_TEXT'] . '" type="button" onclick="window.BX_FD_' . $opt . '();" />
<script>
setTimeout(function(){
if (BX("bx_fd_input_' . strtolower($opt) . '"))
BX("bx_fd_input_' . strtolower($opt) . '").onclick = window.BX_FD_' . $opt . ';
}, 200);
window.BX_FD_ONRESULT_' . $opt . ' = function(filename, filepath)
{
var oInput = BX("__FD_PARAM_' . $opt . '");
if (typeof filename == "object")
oInput.value = filename.src;
else
oInput.value = (filepath + "/" + filename).replace(/\\/\\//ig, \'/\');
}
</script>';
if ($arOptParams['REFRESH'] == 'Y') {
$input .= '<input type="submit" name="refresh" value="OK" />';
}
break;
case 'CUSTOM':
$input = $arOptParams['VALUE'];
break;
default:
if (!isset($arOptParams['SIZE'])) {
$arOptParams['SIZE'] = 25;
}
if (!isset($arOptParams['MAXLENGTH'])) {
$arOptParams['MAXLENGTH'] = 255;
}
$input = '<input type="' . ($arOptParams['TYPE'] == 'INT' ? 'number' : 'text') . '" size="' . $arOptParams['SIZE'] . '" maxlength="' . $arOptParams['MAXLENGTH'] . '" value="' . htmlspecialchars($val) . '" name="' . htmlspecialchars($option) . '" />';
if ($arOptParams['REFRESH'] == 'Y') {
$input .= '<input type="submit" name="refresh" value="OK" />';
}
break;
}
if (isset($arOptParams['NOTES']) && $arOptParams['NOTES'] != '') {
$input .= '<div class="notes">
<table cellspacing="0" cellpadding="0" border="0" class="notes">
<tbody>
<tr class="top">
<td class="left"><div class="empty"></div></td>
<td><div class="empty"></div></td>
<td class="right"><div class="empty"></div></td>
</tr>
<tr>
<td class="left"><div class="empty"></div></td>
<td class="content">
' . $arOptParams['NOTES'] . '
</td>
<td class="right"><div class="empty"></div></td>
</tr>
<tr class="bottom">
<td class="left"><div class="empty"></div></td>
<td><div class="empty"></div></td>
<td class="right"><div class="empty"></div></td>
</tr>
</tbody>
</table>
</div>';
}
$arP[$this->arGroups[$arOptParams['GROUP']]['TAB']][$arOptParams['GROUP']]['OPTIONS'][] = $label != '' ? '<tr><td valign="top" width="40%">' . $label . '</td><td valign="top" nowrap>' . $input . '</td></tr>' : '<tr><td valign="top" colspan="2" align="center">' . $input . '</td></tr>';
$arP[$this->arGroups[$arOptParams['GROUP']]['TAB']][$arOptParams['GROUP']]['OPTIONS_SORT'][] = $arOptParams['SORT'];
}
$tabControl = new CAdminTabControl('tabControl', $this->arTabs);
$tabControl->Begin();
echo '<form name="' . $this->module_id . '" method="POST" action="' . $APPLICATION->GetCurPage() . '?mid=' . $this->module_id . '&lang=' . LANGUAGE_ID . '" enctype="multipart/form-data">' . bitrix_sessid_post();
foreach ($arP as $tab => $groups) {
$tabControl->BeginNextTab();
foreach ($groups as $group_id => $group) {
if (sizeof($group['OPTIONS_SORT']) > 0) {
echo '<tr class="heading"><td colspan="2">' . $this->arGroups[$group_id]['TITLE'] . '</td></tr>';
array_multisort($group['OPTIONS_SORT'], $group['OPTIONS']);
foreach ($group['OPTIONS'] as $opt) {
echo $opt;
}
}
}
}
if ($this->need_access_tab) {
$tabControl->BeginNextTab();
$module_id = $this->module_id;
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/admin/group_rights.php";
}
$tabControl->Buttons();
?>
<input type="hidden" name="update" value="Y" />
<input type="submit" name="save" value="<?php
echo GetMessage("ICS_BS");
?>
" />
<input type="reset" name="reset" value="<?php
echo GetMessage("ICS_BR");
?>
" />
</form>
<?php
$tabControl->End();
}
}
示例12: GetMessage
" method="post" name="pdf_form"><?
$oTabControl = new CAdminTabControl
(
'pdf',
array
(
array
(
'DIV' => 'edit1',
'TAB' => GetMessage('GREENSIGHT_TABPDF'),
'ICON' => 'main_user_edit',
'TITLE' => GetMessage('GREENSIGHT_TABPDF_TITLE'),
)
)
);
$oTabControl->Begin();
$oTabControl->BeginNextTab();
?>
<input type="hidden" name="ID" value="<?php
echo $arElement['ID'];
?>
">
<tr valign="top">
<td class="field-name" width="40%">
<?php
echo GetMessage('GREENSIGHT_FOR_CHEEF');
?>
<br>
<?php
echo GetMessage('GREENSIGHT_UNIT');
?>
示例13: GetMessage
}
.c-migration-adm-info p{
margin: 5px 0;padding: 0;
}
.c-migration-adm-info span{
display: inline-block;
width: 10px;
height: 10px;
}
</style>
<div id="migration_progress" style="margin:0 0 10px 0;"></div>
<?php
$tabControl1 = new CAdminTabControl("tabControl2", array(array("DIV" => "tab2", "TAB" => GetMessage('SPRINT_MIGRATION_TAB1'), "TITLE" => GetMessage('SPRINT_MIGRATION_TAB1_TITLE'))));
$tabControl1->Begin();
$tabControl1->BeginNextTab();
?>
<tr>
<td class="adm-detail-content-cell-l" style="text-align:left;vertical-align:top;width:40%;">
</td>
<td class="adm-detail-content-cell-r" style="vertical-align:top;width:60%">
<div id="migration_migrations"></div>
</td>
</tr>
<tr>
<td class="adm-detail-content-cell-l" style="width:40%;"> </td>
<td class="adm-detail-content-cell-r" style="width:60%">
<?php
echo GetMessage('SPRINT_MIGRATION_DESCR2');
示例14: htmlspecialcharsbx
?>
" name="form1" onSubmit='return prepareData()' enctype="multipart/form-data">
<input type="hidden" name="lang" value="<?php
echo LANG;
?>
" />
<input type="hidden" name="Update" value="Y" />
<input type="hidden" name="SID" value="<?php
echo htmlspecialcharsbx($SID);
?>
" />
<input type="hidden" name="STRUCTURE" id="STRUCTURE" value="" />
<?php
echo bitrix_sessid_post();
$parentTabControl->Begin();
$parentTabControl->BeginNextTab();
?>
<tr>
<td width="50%">
<label for="USE_DIFF_SITES_SETTINGS"><?php
echo GetMessage('SALE_DH_USE_DIFF_SITES_SETTINGS');
?>
:</label>
</td>
<td width="50%">
<input type="checkbox" name="USE_DIFF_SITES_SETTINGS" id="USE_DIFF_SITES_SETTINGS"<?php
echo $bSites ? " checked=\"checked\"" : "";
?>
onclick="changeSiteList(!this.checked)" value="Y" />
</td>