$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");
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>
function Show() { /** @global CMain $APPLICATION */ global $APPLICATION; //Save form defined tabs $this->arSavedTabs = $this->tabs; $this->arSystemTabs = array(); $this->arReqiredTabs = array(); foreach($this->tabs as $arTab) { $this->arSystemTabs[$arTab["DIV"]] = $arTab; if(is_array($arTab["FIELDS"])) { foreach($arTab["FIELDS"] as $arField) $this->arFields[$arField["id"]] = $arField; } if ($arTab["required"] && is_array($arTab["FIELDS"])) { $this->arReqiredTabs[$arTab["DIV"]] = $arTab; } } //Save form defined fields $this->arSystemFields = $this->arFields; $arCustomTabs = CAdminFormSettings::getTabsArray($this->name); if (!empty($arCustomTabs)) { $this->bCustomFields = true; $this->tabs = array(); foreach($arCustomTabs as $tab_id => $arTab) { if(array_key_exists($tab_id, $this->arSystemTabs)) { $arNewTab = $this->arSystemTabs[$tab_id]; $arNewTab["TAB"] = $arTab["TAB"]; $arNewTab["FIELDS"] = array(); } else { $arNewTab = array( "DIV" => $tab_id, "TAB" => $arTab["TAB"], "ICON" => "main_user_edit", "TITLE" => "", "FIELDS" => array(), ); } $bHasFields = false; foreach($arTab["FIELDS"] as $field_id => $content) { if(array_key_exists($field_id, $this->arSystemFields)) { $arNewField = $this->arSystemFields[$field_id]; $arNewField["content"] = $content; $bHasFields = true; } elseif(array_key_exists($field_id, $this->arForbiddenFields)) { $arNewField = false; } elseif(strlen($content) > 0) { $arNewField = array( "id" => $field_id, "content" => $content, "html" => '<td colspan="2">'.htmlspecialcharsex($content).'</td>', "delimiter" => true, ); } else { $arNewField = false; } if(is_array($arNewField)) { $this->arFields[$field_id] = $arNewField; $arNewTab["FIELDS"][] = $arNewField; foreach ($this->arReqiredTabs as $tab_id => $arReqTab) { foreach ($arReqTab["FIELDS"] as $i => $arReqTabField) { if ($arReqTabField["id"] == $field_id) unset($this->arReqiredTabs[$tab_id]["FIELDS"][$i]); } } } } if ($bHasFields) $this->tabs[] = $arNewTab; } foreach ($this->arReqiredTabs as $arReqTab) { if (!empty($arReqTab["FIELDS"])) { $this->tabs[] = $arReqTab; foreach ($arReqTab["FIELDS"] as $arReqTabField) { $this->arFields[$arReqTabField["id"]] = $arReqTabField; } } } } if($_REQUEST["mode"] == "settings") { ob_end_clean(); $this->ShowSettings($this->arFields); die(); } 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"]:'').'>'; $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"]; } elseif(strlen($this->arFields[$arField["id"]]["html"]) > 0) { $rowClass = ( array_key_exists("rowClass", $this->arFields[$arField["id"]]) ? ' class="'.$this->arFields[$arField["id"]]["rowClass"].'"' : '' ); if($this->arFields[$arField["id"]]["delimiter"]) echo '<tr class="heading" id="tr_'.$arField["id"].'"'.$rowClass.'>'; else echo '<tr'.($this->arFields[$arField["id"]]["valign"] <> ''? ' valign="'.$this->arFields[$arField["id"]]["valign"].'"':'').' id="tr_'.$arField["id"].'"'.$rowClass.'>'; echo $this->arFields[$arField["id"]]["html"].'</tr>'."\n"; } unset($arHiddens[$arField["id"]]); } } $tabContent = ob_get_contents(); ob_end_clean(); //Dispose tab content if ($tabContent == "") { array_splice($this->tabs, $this->tabIndex, 1); // forget about tab } else { $this->tabs[$this->tabIndex]["CONTENT"] = $tabContent; $this->tabIndex++; } } //sometimes form settings are incorrect but we must show required fields $requiredFields = ''; foreach($arHiddens as $arField) { if($arField["required"]) { if(strlen($this->arFields[$arField["id"]]["custom_html"]) > 0) { $requiredFields .= $this->arFields[$arField["id"]]["custom_html"]; } elseif(strlen($this->arFields[$arField["id"]]["html"]) > 0) { if($this->arFields[$arField["id"]]["delimiter"]) $requiredFields .= '<tr class="heading">'; else $requiredFields .= '<tr>'; $requiredFields .= $this->arFields[$arField["id"]]["html"].'</tr>'; } unset($arHiddens[$arField["id"]]); } } if($requiredFields <> '') { $this->tabs[] = array( "CONTENT" => $requiredFields, "DIV" => "bx_req", "TAB" => GetMessage("admin_lib_required"), "TITLE" => GetMessage("admin_lib_required"), ); } parent::Begin(); while($this->tabIndex < count($this->tabs)) { $this->BeginNextTab(); echo $this->tabs[$this->tabIndex]["CONTENT"]; } parent::Buttons($this->arButtonsParams); echo $this->sButtonsContent; $this->End(); echo $this->sEpilogContent; echo '<span class="bx-fields-hidden">'; foreach($arHiddens as $arField) { echo $arField["hidden"]; } echo '</span>'; echo '</form>'; }
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(); ?>
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;
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) {
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; ?>
function Show() { /** @global CMain $APPLICATION */ global $APPLICATION; //Save form defined tabs $this->arSavedTabs = $this->tabs; $this->arSystemTabs = array(); foreach($this->tabs as $arTab) { $this->arSystemTabs[$arTab["DIV"]] = $arTab; if(is_array($arTab["FIELDS"])) foreach($arTab["FIELDS"] as $arField) $this->arFields[$arField["id"]] = $arField; } //Save form defined fields $this->arSystemFields = $this->arFields; $arCustomTabs = array(); $customTabs = CUserOptions::GetOption("form", $this->name); if($customTabs && $customTabs["tabs"]) { $arTabs = explode("--;--", $customTabs["tabs"]); if(count($arTabs) > 0) { foreach($arTabs as $customFields) { $arCustomFields = explode("--,--", $customFields); //Tab MUST have at least one field if(count($arCustomFields) > 1) { $arCustomTabID = ""; $arCustomTabName = ""; foreach($arCustomFields as $customField) { if($arCustomTabID == "") { list($arCustomTabID, $arCustomTabName) = explode("--#--", $customField); $arCustomTabs[$arCustomTabID] = array( "TAB" => $arCustomTabName, "FIELDS" => array(), ); } else { list($arCustomFieldID, $arCustomFieldName) = explode("--#--", $customField); $arCustomFieldName = ltrim($arCustomFieldName, defined("BX_UTF")? "* -\xa0\xc2": "* -\xa0"); $arCustomTabs[$arCustomTabID]["FIELDS"][$arCustomFieldID] = $arCustomFieldName; } } } } $this->bCustomFields = true; $this->tabs = array(); foreach($arCustomTabs as $tab_id => $arTab) { if(array_key_exists($tab_id, $this->arSystemTabs)) { $arNewTab = $this->arSystemTabs[$tab_id]; $arNewTab["TAB"] = $arTab["TAB"]; $arNewTab["FIELDS"] = array(); } else { $arNewTab = array( "DIV" => $tab_id, "TAB" => $arTab["TAB"], "ICON" => "main_user_edit", "TITLE" => "", "FIELDS" => array(), ); } foreach($arTab["FIELDS"] as $field_id => $content) { if(array_key_exists($field_id, $this->arSystemFields)) { $arNewField = $this->arSystemFields[$field_id]; $arNewField["content"] = $content; } elseif(strlen($content) > 0) { $arNewField = array( "id" => $field_id, "content" => $content, "html" => '<td colspan="2">'.htmlspecialcharsex($content).'</td>', "delimiter" => true, ); } else { $arNewField = false; } if(is_array($arNewField)) { $this->arFields[$field_id] = $arNewField; $arNewTab["FIELDS"][] = $arNewField; } } $this->tabs[] = $arNewTab; } } } if($_REQUEST["mode"] == "settings") { ob_end_clean(); $this->ShowSettings($this->arFields); die(); } 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)) { $this->BeginNextTab(); $arTab = $this->tabs[$this->tabIndex-1]; 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"]) 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"]]); } } } elseif(strlen($this->arFields[$arField["id"]]["custom_html"]) > 0) { if($this->group_ajax) echo preg_replace("#<script[^>]*>.*?</script>#im".BX_UTF_PCRE_MODIFIER, "", $this->arFields[$arField["id"]]["custom_html"]); else echo $this->arFields[$arField["id"]]["custom_html"]; } elseif(strlen($this->arFields[$arField["id"]]["html"]) > 0) { $rowClass = ( array_key_exists("rowClass", $this->arFields[$arField["id"]]) ? ' class="'.$this->arFields[$arField["id"]]["rowClass"].'"' : '' ); if($this->arFields[$arField["id"]]["delimiter"]) echo '<tr class="heading" id="tr_'.$arField["id"].'"'.$rowClass.'>'; else echo '<tr'.($this->arFields[$arField["id"]]["valign"] <> ''? ' valign="'.$this->arFields[$arField["id"]]["valign"].'"':'').' id="tr_'.$arField["id"].'"'.$rowClass.'>'; echo $this->arFields[$arField["id"]]["html"].'</tr>'."\n"; } unset($arHiddens[$arField["id"]]); } } } foreach($arHiddens as $arField) { if($arField["required"]) { if(strlen($this->arFields[$arField["id"]]["custom_html"]) > 0) { echo $this->arFields[$arField["id"]]["custom_html"]; } elseif(strlen($this->arFields[$arField["id"]]["html"]) > 0) { if($this->arFields[$arField["id"]]["delimiter"]) echo '<tr class="heading">'; else echo '<tr>'; echo $this->arFields[$arField["id"]]["html"].'</tr>'; } unset($arHiddens[$arField["id"]]); } } parent::Buttons($this->arButtonsParams); echo $this->sButtonsContent; $this->End(); echo $this->sEpilogContent; echo '<span class="bx-fields-hidden">'; foreach($arHiddens as $arField) { echo $arField["hidden"]; } echo '</span>'; echo '</form>'; }
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) {
} $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
public function ShowHTML() { global $APPLICATION; $arP = array(); foreach ($this->arGroups as $group_id => $group_params) { $arP[$group_params['TAB']][$group_id] = array(); } if (is_array($this->arOptions)) { foreach ($this->arOptions as $option => $arOptParams) { $val = $this->arCurOptionValues[$option]; if ($arOptParams['SORT'] < 0 || !isset($arOptParams['SORT'])) { $arOptParams['SORT'] = 0; } $label = isset($arOptParams['TITLE']) && $arOptParams['TITLE'] != '' ? $arOptParams['TITLE'] : ''; $opt = htmlspecialchars($option); switch ($arOptParams['TYPE']) { case 'DATE': $input = '<input type="text" name="' . $opt . '" id="' . $opt . '" value="' . $val . '" /><script>$(\'#' . $opt . '\').datetimepicker({lang:"en",format:"F d, Y H:i", step:"30"});</script>'; break; case 'CHECKBOX': $input = '<input type="checkbox" name="' . $opt . '" id="' . $opt . '" value="Y"' . ($val == 'Y' ? ' checked' : '') . ' ' . ($arOptParams['REFRESH'] == 'Y' ? 'onclick="document.forms[\'' . $this->module_id . '\'].submit();"' : '') . ' />'; break; case 'TEXT': if (!isset($arOptParams['COLS'])) { $arOptParams['COLS'] = 25; } if (!isset($arOptParams['ROWS'])) { $arOptParams['ROWS'] = 5; } $input = '<textarea rows="' . $type[1] . '" cols="' . $arOptParams['COLS'] . '" rows="' . $arOptParams['ROWS'] . '" name="' . $opt . '">' . htmlspecialchars($val) . '</textarea>'; if ($arOptParams['REFRESH'] == 'Y') { $input .= '<input type="submit" name="refresh" value="OK" />'; } break; case 'SELECT': $input = SelectBoxFromArray($opt, $arOptParams['VALUES'], $val, '', '', $arOptParams['REFRESH'] == 'Y' ? true : false, $arOptParams['REFRESH'] == 'Y' ? $this->module_id : ''); if ($arOptParams['REFRESH'] == 'Y') { $input .= '<input type="submit" name="refresh" value="OK" />'; } break; case 'MSELECT': $input = SelectBoxMFromArray($opt . '[]', $arOptParams['VALUES'], $val); if ($arOptParams['REFRESH'] == 'Y') { $input .= '<input type="submit" name="refresh" value="OK" />'; } break; case 'COLORPICKER': if (!isset($arOptParams['FIELD_SIZE'])) { $arOptParams['FIELD_SIZE'] = 25; } ob_start(); echo '<input id="__CP_PARAM_' . $opt . '" name="' . $opt . '" size="' . $arOptParams['FIELD_SIZE'] . '" value="' . htmlspecialchars($val) . '" type="text" style="float: left;" ' . ($arOptParams['FIELD_READONLY'] == 'Y' ? 'readonly' : '') . ' /> <script> function onSelect_' . $opt . '(color, objColorPicker) { var oInput = BX("__CP_PARAM_' . $opt . '"); oInput.value = color; } </script>'; $APPLICATION->IncludeComponent('bitrix:main.colorpicker', '', array('SHOW_BUTTON' => 'Y', 'ID' => $opt, 'NAME' => 'Выбор цвета', 'ONSELECT' => 'onSelect_' . $opt), false); $input = ob_get_clean(); if ($arOptParams['REFRESH'] == 'Y') { $input .= '<input type="submit" name="refresh" value="OK" />'; } break; case 'FILE': if (!isset($arOptParams['FIELD_SIZE'])) { $arOptParams['FIELD_SIZE'] = 25; } if (!isset($arOptParams['BUTTON_TEXT'])) { $arOptParams['BUTTON_TEXT'] = '...'; } CAdminFileDialog::ShowScript(array('event' => 'BX_FD_' . $opt, 'arResultDest' => array('FUNCTION_NAME' => 'BX_FD_ONRESULT_' . $opt), 'arPath' => array(), 'select' => 'F', 'operation' => 'O', 'showUploadTab' => true, 'showAddToMenuTab' => false, 'fileFilter' => '', 'allowAllFiles' => true, 'SaveConfig' => true)); $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(); } }
" 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'); ?>
} .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');
?> " 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>