static function ShowOffer($TRIGGER, $message) { ?> <div style='background-color:#ffffcc; border: 1px solid #ff8888; padding: 10px; margin: 5px 0; font-size:80%; '> <div style='float: right; width: 150px; margin-top:-5px;'> <form action="<?php echo POST_FORM_ACTION_URI; ?> " method="POST"> <input type='hidden' name='<?php echo htmlspecialcharsbx($TRIGGER); ?> ' value='Y' /> <?php echo bitrix_sessid_post(); ?> <input type='submit' value='<?php echo GetMessage('F_DB_GO'); ?> ' /> </form> </div> <?php echo htmlspecialcharsEx($message); ?> </div> <?php }
function __GroupRightsShowRowDefault($module_id, $ar, $arSites, $arRightsUseSites, $site_id_tmp) { $GROUP_DEFAULT_RIGHT = COption::GetOptionString($module_id, "GROUP_DEFAULT_RIGHT", false, strlen($site_id_tmp) > 0 ? $site_id_tmp : "", strlen($site_id_tmp) > 0); if (!$GROUP_DEFAULT_RIGHT) { if (strlen($site_id_tmp) == 0) { $GROUP_DEFAULT_RIGHT = "D"; } else { return; } } $titleCol = bitrix_sessid_post() . "<b>" . GetMessage("MAIN_BY_DEFAULT") . "</b>"; __GroupRightsShowRow($titleCol, false, 0, $ar, $GROUP_DEFAULT_RIGHT, $site_id_tmp, $arRightsUseSites, $arSites, false); }
/** * Отрисовка нижней части страницы. * По-умолчанию рисует все поля, которые не попали в вывод, как input hidden * @api */ protected function showEpilog() { echo bitrix_sessid_post(); $interfaceSettings = static::getInterfaceSettings(); foreach ($interfaceSettings['FIELDS'] as $code => $settings) { if (!isset($settings['TAB']) and isset($settings['FORCE_SELECT']) and $settings['FORCE_SELECT'] == true) { print '<input type="hidden" name="FIELDS[' . $code . ']" value="' . $this->data[$code] . '" />'; } } }
catch (Exception $e) { $message = new CAdminMessage(Loc::getMessage('SEO_ERROR_GET_ACCESS', array("#ERROR_TEXT#" => $e->getMessage()))); echo $message->Show(); } } ?> <?=BeginNote();?> <div id="auth_button" style="<?=$bNeedAuth ? 'display:block' : 'display:none'?>;"> <p><?=Loc::getMessage('SEO_AUTH_HINT')?></p> <input type=button onclick="makeAuth()" value="<?=Loc::getMessage('SEO_AUTH_YANDEX')?>" /> </div> <div id="auth_code" style="display: none;"> <form name="auth_code_form" action="<?=Converter::getHtmlConverter()->encode($APPLICATION->getCurPageParam("", array("CODE", "oauth")))?>" method="POST"><?=bitrix_sessid_post();?><?=Loc::getMessage('SEO_AUTH_CODE')?>: <input type="text" name="CODE" style="width: 200px;" /> <input type="submit" name="send_code" value="<?=Loc::getMessage('SEO_AUTH_CODE_SUBMIT')?>"></form></div> <? if(!$bNeedAuth) { if(is_array($currentUser)) { ?> <div id="auth_result" class="seo-auth-result"> <b><?=Loc::getMessage('SEO_AUTH_CURRENT')?>:</b><div style="width: 300px; padding: 10px 0 0 0;"> <?=Converter::getHtmlConverter()->encode($currentUser['real_name'].' ('.$currentUser['display_name'].')')?><br /> <a href="javascript:void(0)" onclick="makeNewAuth()"><?=Loc::getMessage('SEO_AUTH_CANCEL')?></a> <div style="clear: both;"></div> </div> </div> <? }
function show_tip() { ?> <form name="check" action=""> <input type="submit" value="<?php echo GetMessage("RDB_CHECK_TABLES"); ?> " class="adm-btn-save"> <input type="hidden" value="Y" name="check_tables"> <?php if (!isset($_REQUEST["login"]) && !isset($_REQUEST["password"])) { echo bitrix_sessid_post(); } if (isset($_REQUEST["login"])) { echo '<input type="hidden" value="' . htmlspecialcharsbx($_REQUEST["login"]) . '" name="login">'; } if (isset($_REQUEST["password"])) { echo '<input type="hidden" value="' . htmlspecialcharsbx($_REQUEST["password"]) . '" name="password">'; } if (isset($_REQUEST["lang"])) { echo '<input type="hidden" value="' . htmlspecialcharsbx($_REQUEST["lang"]) . '" name="lang">'; } echo '</form>'; }
function ShowReportList() { global $showHiddenReports; $arFilter = array("REPORT" => "Y"); if ($showHiddenReports == 'N') { $arFilter['HIDDEN'] = 'N'; } $dbReport = CCheckListResult::GetList(array(), $arFilter); while ($arReport = $dbReport->Fetch()) { $arReports[] = $arReport; } ?> <form id="bx_project_form" style="display:none;" action="" method="POST" enctype="multipart/form-data"> <?php echo bitrix_sessid_post(); ?> <div class="checklist-result-form-content" > <?php echo BeginNote(); ?> <h2><?php echo GetMessage("CL_FORM_ABOUT_CLIENT_TITLE"); ?> </h2> <div class="checklist-result-form-content-field"> <input id="report_id" name="report_id" type="hidden"/> <label><?php echo GetMessage("CL_REPORT_COMPANY_NAME"); ?> </label><input id="COMPANY_NAME" name="COMPANY_NAME" type="text"/> </div> <div class="checklist-result-form-content-field"> <label><?php echo GetMessage("CL_REPORT_CLIENT_NAME"); ?> </label><input id="CLIENT" name="CLIENT" type="text"/> </div> <div class="checklist-result-form-content-field"> <label><?php echo GetMessage("CL_REPORT_CLIENT_POST"); ?> </label><input id="CLIENT_POST" name="CLIENT_POST" type="text"/> </div> <div class="checklist-result-form-content-field"> <label><?php echo GetMessage("CL_REPORT_PHONE"); ?> </label> <table width="100%" style="border-spacing: 0px"> <tr> <td width="65%" style="border: 0px; padding: 0"> <input id="PHONE" name="PHONE" type="text" style="width:100%"/> </td> <td width="55" style="border: 0px; padding: 0"> <div style="text-align: right"><?php echo GetMessage("CL_REPORT_PHONE_ADD"); ?> </div> </td> <td style="border: 0px"> <input id="PHONE_ADD" name="PHONE_ADD" type="text"/> </td> </tr> </table> </div> <div class="checklist-result-form-content-field"> <label><?php echo GetMessage("CL_REPORT_EMAIL"); ?> </label><input id="EMAIL" name="EMAIL" type="text"/> </div> <div class="checklist-result-textarea-wrap"> <label><?php echo GetMessage("CL_REPORT_COMMENT"); ?> </label> <div class="checklist-result-textarea"> <textarea style="color: #AAAAAA" id="report_comment" OnFocus="if (this.value =='<?php echo GetMessage("CL_REPORT_COMMENT_HELP"); ?> ') {this.value = ''; this.style.color = '#000000';}" OnBlur="if (this.value == '') {this.value = '<?php echo GetMessage("CL_REPORT_COMMENT_HELP"); ?> '; this.style.color = '#AAAAAA';}" name="COMMENT" class="checklist-textarea"><?php echo GetMessage("CL_REPORT_COMMENT_HELP"); ?> </textarea> </div> </div> <input id="type_action" type="hidden" name="ACTION" value="ADDSENDREPORT"> <div class="checklist-result-form-button"> <a class="adm-btn adm-btn-green adm-btn" onclick="SaveSendReport();"><?php echo GetMessage("CL_SAVE_SEND_REPORT"); ?> </a> </div> <?php echo EndNote(); ?> </div> </form> <?php $exists_sended_to_bitrix = CCheckListResult::GetList(array(), array("SENDED_TO_BITRIX" => "Y"))->Fetch(); if (count($arReports) > 0) { ?> <div class="checklist-archive-rept"> <?php echo GetMessage("CL_REPORT_ARCHIVE"); ?> <table class="checklist-archive-table" cellspacing="0"> <tr class="checklist-archive-table-header"> <td><?php echo GetMessage("CL_REPORT_DATE"); ?> </td> <td><?php echo GetMessage("CL_REPORT_FIO_TESTER"); ?> (<?php echo GetMessage("CL_REPORT_COMPANY_NAME"); ?> )</td> <td><?php echo GetMessage("CL_REPORT_TABLE_TOTAL"); ?> </td> <td><?php echo GetMessage("CL_REPORT_TABLE_CHECKED"); ?> </td> <td><?php echo GetMessage("CL_REPORT_TABLE_FAILED"); ?> </td> <td> </td> <td> </td> <td> </td> </tr> <?php foreach ($arReports as $k => $arReport) { ?> <tr class=""> <td><?php echo $arReport["DATE_CREATE"]; ?> </td> <td><?php echo $arReport["TESTER"]; ?> (<?php echo $arReport["COMPANY_NAME"]; ?> )</td> <td><?php echo $arReport["TOTAL"]; ?> </td> <td><?php echo $arReport["SUCCESS"]; ?> </td> <td><?php echo $arReport["FAILED"]; ?> </td> <td><a class="checklist-archive-table-detail" href="/bitrix/admin/checklist_report.php?ID=<?php echo $arReport["ID"]; ?> &lang=<?php echo LANG; ?> "><?php echo GetMessage("CL_REPORT_TABLE_DETAIL"); ?> </a></td> <td> <?php if ($arReport["SENDED_TO_BITRIX"] == 'N' && $k == 0) { ?> <?php if (!$exists_sended_to_bitrix) { ?> <a href="" onmouseover="ShowHint(this)" onclick="showProjectForm(<?php echo $arReport["ID"]; ?> ); return false;"><?php echo GetMessage("CL_SAVE_SEND_REPORT_CUT"); ?> </a> <?php } else { ?> <?php } ?> <?php } elseif ($arReport["SENDED_TO_BITRIX"] == 'Y') { ?> <?php echo GetMessage("CL_REPORT_SENDED"); ?> <?php } else { ?> <?php } ?> </td> <td> <?php if ($arReport["HIDDEN"] == 'N') { ?> <a href="" onclick="hideReport(<?php echo $arReport["ID"]; ?> ); return false;"><?php echo GetMessage('CL_HIDE_REPORT'); ?> </a> <?php } else { ?> <a href="" onclick="showReport(<?php echo $arReport["ID"]; ?> ); return false;"><?php echo GetMessage('CL_SHOW_REPORT'); ?> </a> <?php } ?> </td> </tr> <?php } ?> </table> <br> </div> <div> <div style="float: right"> <input type="checkbox" id="sh_chk" onClick="ShowHideReports()" <?php echo $showHiddenReports == 'Y' ? 'checked' : ''; ?> ><label for="sh_chk"> <?php echo GetMessage('CL_SHOW_HIDDEN'); ?> </label> </div> <div> <?php if ($exists_sended_to_bitrix) { ?> <a class="adm-btn adm-btn-green " onclick="RefreshReportStatuses();"><?php echo GetMessage("CL_REFRESH_REPORT_STATUSES"); ?> </a> <?php } else { ?> <br><br> <?php } ?> </div> </div> <script> BX.adminFormTools.modifyCheckbox(BX('sh_chk')) </script> <?php } else { ?> <div style="margin-top:15px"></div> <?php } }
?> '}); BX.message({'REPORT_PRCNT_VIEW_IS_NOT_AVAILABLE': '<?php echo CUtil::JSEscape(GetMessage('REPORT_PRCNT_VIEW_IS_NOT_AVAILABLE')); ?> '}); BX.message({'REPORT_PRCNT_BUTTON_TITLE': '<?php echo CUtil::JSEscape(GetMessage('REPORT_PRCNT_BUTTON_TITLE')); ?> '}); </script> <!-- The form is defined in a body of administrative page --> <?php echo bitrix_sessid_post('csrf_token'); ?> <div class="reports-constructor"> <div class="adm-filter-wrap"> <?php $_title = ''; if (!empty($arResult['report']['TITLE'])) { $_title = $arResult['report']['TITLE']; } ?> <div class="adm-input-wrap"> <div class="reports-title-label"><?php echo GetMessage('REPORT_TITLE'); ?>
function CheckPermission($permission = "D", $arSection = array(), $bOutput = true) { $arSection = !is_array($arSection) ? array() : $arSection; if ($permission < "R") { ShowError(GetMessage("P_DENIED_ACCESS")); return false; } elseif ($permission < "U" && !empty($arSection) && $arSection["ELEMENTS_CNT"] <= 0) { ShowNote($arSection["ELEMENTS_CNT_ALL"] > 0 ? GetMessage("P_SECTION_IS_NOT_APPROVED") : GetMessage("P_SECTION_IS_EMPTY")); return false; } elseif ($permission < "U" && !empty($arSection["PATH"])) { $password_checked = true; foreach ($arSection["PATH"] as $key => $res) { if (empty($res["PASSWORD"])) { continue; } if (check_bitrix_sessid() && $arSection["PASSWORD"] == md5($_REQUEST["password_" . $arSection["ID"]])) { $_SESSION['PHOTOGALLERY']['SECTION'][$arSection["ID"]] = $arSection["PASSWORD"]; } } foreach ($arSection["PATH"] as $key => $res) { if (empty($res["PASSWORD"])) { continue; } if ($res["PASSWORD"] != $_SESSION['PHOTOGALLERY']['SECTION'][$res["ID"]]) { $password_checked = false; if ($bOutput) { ?> <div class="photo-info-box photo-album-password"> <div class="photo-info-box-inner"> <?php /*ShowError(GetMessage("P_DENIED_ACCESS"));*/ ?> <p> <?php if ($res["ID"] != $arSection["ID"]) { ?> <?php echo GetMessage("P_PARENT_ALBUM_IS_PASSWORDED"); ?> <?php } else { ?> <?php echo GetMessage("P_ALBUM_IS_PASSWORDED"); ?> <?php } ?> <?php echo str_replace("#NAME#", $res["NAME"], GetMessage("P_ALBUM_IS_PASSWORDED_TITLE")); ?> </p> <form method="post" action="<?php echo POST_FORM_ACTION_URI; ?> " class="photo-form"> <?php echo bitrix_sessid_post(); ?> <label for="password_<?php echo $res["ID"]; ?> "><?php echo GetMessage("P_PASSWORD"); ?> : </label> <input type="password" class="password" name="password_<?php echo $res["ID"]; ?> " <?php ?> id="password_<?php echo $res["ID"]; ?> " value="" /> <input type="submit" class="submit" name="supply_password" value="<?php echo GetMessage("P_ENTER"); ?> " /> </form> </div> </div> <?php self::$arPassFormShowed[$arSection["ID"]] = true; } break; } } return $password_checked; } return true; }
} $arResult["FIELDS"][] = array("id" => "IBLOCK_SECTION_ID", "name" => GetMessage("WD_PARENT_SECTION"), "type" => "custom"); $arResult["DATA"]["IBLOCK_SECTION_ID"] = '<select class="quick-edit" name="IBLOCK_SECTION_ID">' . '<option value="0"' . ($arResult["SECTION"]["IBLOCK_SECTION_ID"] == 0 ? ' selected=selected"' : '') . ($arResult["~SECTION"]["IBLOCK_SECTION_ID"] <= 0 ? ' class="selected"' : '') . '>' . GetMessage("WD_CONTENT") . '</option>'; $sectionName = GetMessage("WD_CONTENT"); foreach ($arResult["SECTION_LIST"] as $res) { $arResult["DATA"]["IBLOCK_SECTION_ID"] .= '<option value="' . $res["ID"] . '"' . ($arResult["SECTION"]["IBLOCK_SECTION_ID"] == $res["ID"] ? ' selected=selected"' : '') . ($arResult["~SECTION"]["IBLOCK_SECTION_ID"] == $res["ID"] ? ' class="selected"' : '') . '>' . str_repeat(".", $res["DEPTH_LEVEL"]) . $res["NAME"] . '</option>'; if ($arResult["SECTION"]["IBLOCK_SECTION_ID"] == $res["ID"]) { $sectionName = str_repeat(".", $res["DEPTH_LEVEL"]) . $res["NAME"]; } } $arResult["DATA"]["IBLOCK_SECTION_ID"] .= '</select>'; $arResult["DATA"]["IBLOCK_SECTION_ID"] = "<div class=\"quick-view wd-toggle-edit wd-section\">" . $sectionName . "</div>" . $arResult["DATA"]["IBLOCK_SECTION_ID"]; if (!isset($arParams['TAB_ID'])) { $APPLICATION->IncludeComponent("bitrix:main.interface.form", "", array("FORM_ID" => $arParams["FORM_ID"], "TABS" => array(array("id" => "tab1", "name" => GetMessage("WD_FOLDER"), "fields" => $arResult["FIELDS"])), "BUTTONS" => array("back_url" => CComponentEngine::MakePathFromTemplate($arParams["~SECTIONS_URL"], array("PATH" => implode("/", $arResult["NAV_CHAIN"]))), "custom_html" => '<input type="hidden" name="SECTION_ID" value="' . $arParams["SECTION_ID"] . '" /><input type="hidden" name="edit_section" value="Y" />'), "DATA" => $arResult["DATA"]), $this->__component->__parent ? $this->__component->__parent : $component); } else { $arResult["FIELDS"][] = array("id" => "BUTTONS2", "name" => "", "type" => "custom", "colspan" => true, "value" => bitrix_sessid_post() . "\n\t\t<table width=\"100%\"><tr>\n<td style=\"width:30%; background-image:none; padding:0;\"></td><td style=\"padding:1px;background-image:none;\">\n<input type=\"hidden\" name=\"SECTION_ID\" value=\"" . $arParams["SECTION_ID"] . "\" />\n<input type=\"hidden\" name=\"edit_section\" value=\"Y\" />\n<input type=\"button\" class=\"button-edit wd_commit\" style=\"margin-right:10px; float: left; display: none;\" value=\"" . htmlspecialcharsbx(GetMessage("WD_SAVE")) . "\" /> \n<input type=\"button\" class=\"button-edit wd_rollback\" style=\"margin-right:10px; float: left; display: none;\" value=\"" . htmlspecialcharsbx(GetMessage("WD_CANCEL")) . "\" /> \n</td></tr></table>"); $arTabs = array(array("id" => $arParams["TAB_ID"], "name" => GetMessage("WD_FOLDER"), "title" => GetMessage("WD_FOLDER"), "fields" => $arResult["FIELDS"])); if ($this->__component->__parent) { $this->__component->__parent->arResult["TABS"][] = $arTabs[0]; if (empty($this->__component->__parent->arResult["DATA"])) { $this->__component->__parent->arResult["DATA"] = array(); } $this->__component->__parent->arResult["DATA"] = array_merge($this->__component->__parent->arResult["DATA"], $arResult["DATA"]); } } if ($this->__component->__parent) { $this->__component->__parent->arResult["arButtons"] = is_array($this->__component->__parent->arResult["arButtons"]) ? $this->__component->__parent->arResult["arButtons"] : array(); $this->__component->__parent->arResult["arButtons"][] = array("TEXT" => GetMessage("WD_DELETE_SECTION"), "LINK" => "javascript:WDDrop('" . CUtil::JSEscape($arResult["URL"]["DELETE"]) . "');", "ICON" => "btn-delete section-delete"); } ?> <script>
public function GetFormHtml($arParams) { $login = ''; $matches = array(); if (preg_match('#id.rambler.ru/users/([^/$]+)#i', $arParams["~LAST_LOGIN"], $matches)) { $login = $matches[1]; } return ' <span class="bx-ss-icon openid"></span> <input type="text" name="OPENID_IDENTITY_RAMBLER" value="' . htmlspecialcharsbx($login) . '" size="20" /> <span>@rambler.ru</span> ' . bitrix_sessid_post() . ' <input type="hidden" name="auth_service_error" value="" /> <input type="submit" class="button" name="" value="' . GetMessage("socserv_openid_login") . '" /> '; }
function StartContent($arAdditional = array()) { $this->InitSystem(); $this->EndDescription(); $this->bContentStarted = true; if ($arAdditional['buffer']) { $this->bContentBuffered = true; //ob_start(); $this->cont_id = RandString(10); echo '<div id="'.$this->cont_id.'" style="display: none;">'; } echo '<form name="'.$this->__form_name.'">'."\r\n"; echo bitrix_sessid_post()."\r\n"; if (is_set($_REQUEST, 'back_url')) echo '<input type="hidden" name="back_url" value="'.htmlspecialcharsbx($_REQUEST['back_url']).'" />'."\r\n"; }
public function bitrix_sessid_post() { return bitrix_sessid_post(); }
echo $strReturn; return; } } if ($arResult["arForm"]["USE_CAPTCHA"] == "Y") { $arResult["CAPTCHACode"] = $APPLICATION->CaptchaGetCode(); } // include CSS with additional icons for Site Edit mode if ($APPLICATION->GetShowIncludeAreas() && $USER->IsAdmin()) { // define additional icons for Site Edit mode $arIcons = array(array('URL' => "javascript:" . $APPLICATION->GetPopupLink(array('URL' => "/bitrix/admin/form_edit.php?bxpublic=Y&from_module=form&lang=" . LANGUAGE_ID . "&ID=" . $arParams["WEB_FORM_ID"] . "&back_url=" . urlencode($_SERVER["REQUEST_URI"]), 'PARAMS' => array('width' => 700, 'height' => 500, 'resize' => false))), 'ICON' => 'bx-context-toolbar-edit-icon', 'TITLE' => GetMessage("FORM_PUBLIC_ICON_EDIT"))); // append icons $this->AddIncludeAreaIcons($arIcons); } // define variables to assign $arResult = array_merge($arResult, array("isFormNote" => strlen($arResult["FORM_NOTE"]) ? "Y" : "N", "isAccessFormParams" => $arResult["F_RIGHT"] >= 25 ? "Y" : "N", "isStatisticIncluded" => CModule::IncludeModule('statistic') ? "Y" : "N", "FORM_HEADER" => sprintf("<form name=\"%s\" action=\"%s\" method=\"%s\" enctype=\"multipart/form-data\">", $arResult["arForm"]["SID"], POST_FORM_ACTION_URI, "POST") . ($res .= bitrix_sessid_post() . '<input type="hidden" name="WEB_FORM_ID" value="' . $arParams['WEB_FORM_ID'] . '" />'), "FORM_TITLE" => trim(htmlspecialcharsbx($arResult["arForm"]["NAME"])), "FORM_DESCRIPTION" => $arResult["arForm"]["DESCRIPTION_TYPE"] == "html" ? trim($arResult["arForm"]["DESCRIPTION"]) : nl2br(htmlspecialcharsbx(trim($arResult["arForm"]["DESCRIPTION"]))), "isFormTitle" => strlen($arResult["arForm"]["NAME"]) > 0 ? "Y" : "N", "isFormDescription" => strlen($arResult["arForm"]["DESCRIPTION"]) > 0 ? "Y" : "N", "isFormImage" => intval($arResult["arForm"]["IMAGE_ID"]) > 0 ? "Y" : "N", "isUseCaptcha" => $arResult["arForm"]["USE_CAPTCHA"] == "Y", "DATE_FORMAT" => CLang::GetDateFormat("SHORT"), "REQUIRED_SIGN" => CForm::ShowRequired("Y"), "FORM_FOOTER" => "</form>")); /* if ($arResult["isFormNote"] == "Y") { ob_start(); ShowMessage($arResult["FORM_NOTE"]); $arResult["FORM_NOTE"] = ob_get_contents(); ob_end_clean(); } */ // get template vars for form image if ($arResult["isFormImage"] == "Y") { $arResult["FORM_IMAGE"]["ID"] = $arResult["arForm"]["IMAGE_ID"]; // assign form image url $arImage = CFile::GetFileArray($arResult["arForm"]["IMAGE_ID"]); $arResult["FORM_IMAGE"]["URL"] = $arImage["SRC"];
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(); } }
if($REQUEST_METHOD=="POST" && strlen($Update)>0 && check_bitrix_sessid()){ foreach( $_POST['GEMS_ACCESS'] as $sGem => $aAllowedUG ){ $oGemManager->setGemAccessRights( $sGem, $aAllowedUG ); } } $aTabs = array( array("DIV" => "access", "TAB" => GetMessage("MAIN_TAB_ACCESS"), "ICON" => "form_settings", "TITLE" => GetMessage("MAIN_TAB_TITLE_ACCESS")), array("DIV" => "rights", "TAB" => GetMessage("MAIN_TAB_RIGHTS"), "ICON" => "form_settings", "TITLE" => GetMessage("MAIN_TAB_TITLE_RIGHTS")) ); $tabControl = new CAdminTabControl("tabControl", $aTabs); $tabControl->Begin(); ?> <form method="POST" action="<?echo $APPLICATION->GetCurPage()?>?mid=<?=htmlspecialchars($mid)?>&lang=<?=LANGUAGE_ID?>"><?=bitrix_sessid_post()?> <?$tabControl->BeginNextTab();?> <? $aInstalledGems = $oGemManager->getInstalledGems( $bReturnGems = true ); ?> <tr><td> <table> <?foreach( $aInstalledGems as $sGem => $oGem ):?> <? if( $oGem->needAdminPage() === false ) continue; ?> <tr> <td valign="top"><?=$sGem?></td> <td><?=BitrixGemsHelper::GetUserGroupSelect('GEMS_ACCESS['.$sGem.'][]',$oGemManager->getGemAccessRights($sGem), true)?></td> </tr> <?endforeach;?>
} ?> </div> <?php return ob_get_clean(); } } $bOkCancel = ""; if (!isset($arParams['POPUP_DIALOG'])) { $bOkCancel = "\n<div class=\"wd_edit_buttons\">\n\t<input type=\"button\" class=\"button-edit wd_commit\" value=\"" . htmlspecialcharsbx(GetMessage("WD_SAVE")) . "\" /> \n\t<input type=\"button\" class=\"button-edit wd_rollback wd_hidden\" value=\"" . htmlspecialcharsbx(GetMessage("WD_CANCEL")) . "\" />\n</div>\n"; } foreach ($arResult['DATA'] as $id => $perm) { $subj = $perm['GROUP_CODE']; $arFields[] = array("id" => implode("_", array("PERM", $subj, $perm['TASK_ID'])), "name" => isset($arSubjs[$subj]) ? $arSubjs[$subj]['name'] : '', "type" => "custom", "value" => __wd_perms_select($id, $subj, $perm, $arPerms)); } $arFields[] = array("id" => "BUTTONS2", "name" => "", "type" => "custom", "colspan" => true, "value" => bitrix_sessid_post() . "\n\t\t<table width=\"100%\"><tr>\n<td colspan=\"2\" style=\"background-image:none;padding:1px;\"><div class=\"wd_perm_buttons\">\n<input type=\"hidden\" name=\"ACTION\" value=\"set_rights\" />\n<input type=\"hidden\" name=\"ENTITY_ID\" value=\"" . $arParams['ENTITY_ID'] . "\" />\n<input type=\"hidden\" name=\"SOCNET_TYPE\" value=\"" . $arParams['SOCNET_TYPE'] . "\" />\n<input type=\"hidden\" name=\"SOCNET_GROUP_ID\" value=\"" . $arParams['SOCNET_GROUP_ID'] . "\" />\n<input type=\"hidden\" name=\"SOCNET_ID\" value=\"" . $arParams['SOCNET_ID'] . "\" />\n<div class=\"wd_edit\">\n\t<a class=\"wd_add_permission\" href=\"javascript:void(0);\">" . htmlspecialcharsbx(GetMessage("WD_ADD_PERMISSION")) . "</a>\n</div>\n" . $bOkCancel . "\n</div></td></tr></table>"); $arTabs = array(array("id" => isset($arParams["TAB_ID"]) ? $arParams["TAB_ID"] . "_" . $UID : "tab_permissions_" . $UID, "class" => "tab_permissions", "name" => GetMessage("WD_TAB_PERMISSIONS"), "title" => str_replace('""', '', GetMessage("WD_TAB_PERMISSIONS_" . $arParams["ENTITY_TYPE"], array("#NAME#" => htmlspecialcharsEx($arResult['ENTITY_NAME'])))), "fields" => $arFields)); if ($arParams["MERGE_VIEW"] == "Y" && $this->__component->__parent) { $this->__component->__parent->arResult["TABS"][] = $arTabs[0]; if (empty($this->__component->__parent->arResult["DATA"])) { $this->__component->__parent->arResult["DATA"] = array(); } $this->__component->__parent->arResult["DATA"] = array_merge($this->__component->__parent->arResult["DATA"], $arData); } else { ?> <div class="wd-iblock-rights"><?php $APPLICATION->IncludeComponent("bitrix:main.interface.form", "", array("FORM_ID" => $arParams["FORM_ID"], "TABS" => $arTabs, "BUTTONS" => array("custom_html" => '<input type="hidden" name="ENTITY_ID" value="' . $arParams["ENTITY_ID"] . '" />' . '<input type="hidden" name="edit" value="Y" />' . '<input type="hidden" name="ACTION" value="set_rights" />', "standard_buttons" => false), "DATA" => $arData, "SHOW_SETTINGS" => false, "SHOW_FORM_TAG" => false), $this->__component->__parent ? $this->__component->__parent : $component); ?> </div><?php } ?>
} $tabControl->EndTab(); $tabControl->BeginNextTab(); if ($STEP == 4) { $FINITE = true; } $tabControl->EndTab(); $tabControl->Buttons(); ?><? echo bitrix_sessid_post();?><? if ($ACTION == 'IMPORT_EDIT' || $ACTION == 'IMPORT_COPY') { ?><input type="hidden" name="PROFILE_ID" value="<? echo intval($PROFILE_ID); ?>"><? } if ($STEP < 4) { ?><input type="hidden" name="STEP" value="<? echo intval($STEP) + 1; ?>"> <input type="hidden" name="lang" value="<? echo LANGUAGE_ID; ?>"> <input type="hidden" name="ACT_FILE" value="<? echo htmlspecialcharsbx($_REQUEST["ACT_FILE"]); ?>"> <input type="hidden" name="ACTION" value="<? echo htmlspecialcharsbx($ACTION); ?>"> <? if ($STEP > 1) {
} if ($arResult["arForm"]["USE_CAPTCHA"] == "Y") $arResult["CAPTCHACode"] = $APPLICATION->CaptchaGetCode(); // define variables to assign $arResult = array_merge( $arResult, array( "isFormNote" => strlen($arResult["FORM_NOTE"]) ? "Y" : "N", // flag "is there a form note" "isAccessFormParams" => $arResult["F_RIGHT"] >= 25 ? "Y" : "N", // flag "does current user have access to form params" "isStatisticIncluded" => CModule::IncludeModule('statistic') ? "Y" : "N", // flag "is statistic module included" "FORM_HEADER" => sprintf( // form header (<form> tag and hidden inputs) "<form name=\"%s\" action=\"%s\" method=\"%s\" enctype=\"multipart/form-data\" id=\"%s\">", $arResult["arForm"]["SID"], POST_FORM_ACTION_URI, "POST", "forms-".$arParams["ROUTE"] ).$res .= bitrix_sessid_post().'<input type="hidden" name="WEB_FORM_ID" value="'.$arParams['WEB_FORM_ID'].'" />', "FORM_TITLE" => trim(htmlspecialcharsbx($arResult["arForm"]["NAME"])), // form title "FORM_DESCRIPTION" => // form description $arResult["arForm"]["DESCRIPTION_TYPE"] == "html" ? trim($arResult["arForm"]["DESCRIPTION"]) : nl2br(htmlspecialcharsbx(trim($arResult["arForm"]["DESCRIPTION"]))), "isFormTitle" => strlen($arResult["arForm"]["NAME"]) > 0 ? "Y" : "N", // flag "does form have title" "isFormDescription" => strlen($arResult["arForm"]["DESCRIPTION"]) > 0 ? "Y" : "N", // flag "does form have description" "isFormImage" => intval($arResult["arForm"]["IMAGE_ID"]) > 0 ? "Y" : "N", // flag "does form have image" "isUseCaptcha" => $arResult["arForm"]["USE_CAPTCHA"] == "Y", // flag "does form use captcha" "DATE_FORMAT" => CLang::GetDateFormat("SHORT"), // current site date format "REQUIRED_SIGN" => CForm::ShowRequired("Y"), // "required" sign "FORM_FOOTER" => "</form>", // form footer (close <form> tag)
function CustomizeLightEditorForBlog() { ?> <script> LHEButtons['BlogImage'] ={ id : 'Image', // Standart image icon from editor-s CSS name : BX.message.Image, handler: function(pBut) { //pBut.pLEditor.OpenDialog({id : 'BlogImage', obj: false}); blogShowFile(); }, OnBeforeCreate: function(pLEditor, pBut) { // Disable in non BBCode mode in html pBut.disableOnCodeView = !pLEditor.bBBCode || pLEditor.arConfig.bConvertContentFromBBCodes; return pBut; }, parser: { name: 'blogimage', obj: { Parse: function(sName, sContent, pLEditor) { var i, cnt = arImages.length, j; if (!pLEditor.arBlogImages) pLEditor.arBlogImages = {}; if (!pLEditor.pBlogPostImage) pLEditor.pBlogPostImage = BX('blog-post-image'); for(i = 0; i < cnt; i++) { if (!pLEditor.arBlogImages[arImages[i]]) { pLEditor.arBlogImages[arImages[i]] = { src : BX(arImages[i]).src, pTitle: BX.findChild(pLEditor.pBlogPostImage, {attribute : {name: 'IMAGE_ID_title[' + arImages[i] + ']'}}, true).value || "" }; } } sContent = sContent.replace(/\[IMG ID=((?:\s|\S)*?)(?:\s*?WIDTH=(\d+)\s*?HEIGHT=(\d+))?\]/ig, function(str, id, width, height) { if (!pLEditor.arBlogImages[id]) return str; width = parseInt(width); height = parseInt(height); var strSize = "", imageSrc = pLEditor.arBlogImages[id].src, imageTitle = pLEditor.arBlogImages[id].pTitle || ""; if (width && height && pLEditor.bBBParseImageSize) strSize = " width=\"" + width + "\" height=\"" + height + "\""; return '<img id="' + pLEditor.SetBxTag(false, {tag: "blogimage", params: {value : id}}) + '" src="' + imageSrc + '" title="' + imageTitle + '" ' + strSize +'>'; }); return sContent; }, UnParse: function(bxTag, pNode, pLEditor) { if (bxTag.tag == 'blogimage') { var width = parseInt(pNode.arAttributes['width']), height = parseInt(pNode.arAttributes['height']), strSize = ""; if (width && height && pLEditor.bBBParseImageSize) strSize = ' WIDTH=' + width + ' HEIGHT=' + height; return '[IMG ID=' + bxTag.params.value + strSize + ']'; } return ""; } } } }; // Rename image button and change Icon LHEButtons['Image'].id = 'ImageLink'; LHEButtons['Image'].src = '/bitrix/components/bitrix/blog/templates/.default/images/bbcode/font_image_upload.gif'; LHEButtons['Image'].name = '<?php echo GetMessage("BLOG_P_IMAGE_LINK"); ?> '; LHEButtons['BlogInputVideo'] = { id : 'BlogInputVideo', src : '/bitrix/components/bitrix/blog/templates/.default/images/bbcode/font_video.gif', name : '<?php echo GetMessage("FPF_VIDEO"); ?> ', handler: function(pBut) { pBut.pLEditor.OpenDialog({id : 'BlogVideo', obj: false}); }, OnBeforeCreate: function(pLEditor, pBut) { // Disable in non BBCode mode in html pBut.disableOnCodeView = !pLEditor.bBBCode || pLEditor.arConfig.bConvertContentFromBBCodes; return pBut; }, parser: { name: 'blogvideo', obj: { Parse: function(sName, sContent, pLEditor) { sContent = sContent.replace(/\[VIDEO\s*?width=(\d+)\s*?height=(\d+)\s*\]((?:\s|\S)*?)\[\/VIDEO\]/ig, function(str, w, h, src) { var w = parseInt(w) || 400, h = parseInt(h) || 300, src = BX.util.trim(src); return '<img id="' + pLEditor.SetBxTag(false, {tag: "blogvideo", params: {value : src}}) + '" src="/bitrix/images/1.gif" class="bxed-video" width=' + w + ' height=' + h + ' title="' + BX.message.Video + ": " + src + '" />'; }); return sContent; }, UnParse: function(bxTag, pNode, pLEditor) { if (bxTag.tag == 'blogvideo') { return "[VIDEO WIDTH=" + pNode.arAttributes["width"] + " HEIGHT=" + pNode.arAttributes["height"] + "]" + bxTag.params.value + "[/VIDEO]"; } return ""; } } } }; window.LHEDailogs['BlogImage'] = function(pObj) { var str = '<span class="errortext" id="lhed_blog_image_error" style="display:none;"></span>' + '<table width="100%"><tr>' + '<td class="lhe-dialog-label lhe-label-imp"><?php echo GetMessage('BLOG_IMAGE'); ?> :</td>' + '<td class="lhe-dialog-param">' + '<form id="' + pObj.pLEditor.id + 'img_upload_form" action="<?php echo CUtil::JSEscape(POST_FORM_ACTION_URI); ?> " method="post" enctype="multipart/form-data" style="margin: 0!important; padding: 0!important;">' + '<?php echo bitrix_sessid_post(); ?> ' + '<input type="file" size="30" name="BLOG_UPLOAD_FILE" id="bx_lhed_blog_img_input" />' + '<input type="hidden" value="Y" name="blog_upload_image"/>' + '<input type="hidden" value="Y" name="do_upload"/>' + '</form>'+ '</td>' + '</tr><tr id="' + pObj.pLEditor.id + 'lhed_blog_notice">' + '<td colSpan="2" style="padding: 0 0 20px 25px !important; font-size: 11px!important;"><?php echo GetMessage('BPC_IMAGE_SIZE_NOTICE', array('#SIZE#' => DoubleVal(COption::GetOptionString("blog", "image_max_size", 1000000) / 1000000))); ?> </td>' + '</tr></table>'; return { title: "<?php echo GetMessage('BLOG_P_IMAGE_UPLOAD'); ?> ", innerHTML : str, width: 500, OnLoad: function() { pObj.pForm = false; pObj.pInput = false; pObj.pInput = BX('bx_lhed_blog_img_input'); pObj.pForm = BX(pObj.pLEditor.id + 'img_upload_form'); pObj.pLEditor.focus(pObj.pInput); window.obLHEDialog.adjustSizeEx(); }, OnSave: function() { if (pObj.pInput && pObj.pForm && pObj.pInput.value != "") { BX.showWait('bx_lhed_blog_img_input'); BX('lhed_blog_image_error').style.display = 'none'; BX('lhed_blog_image_error').innerHTML = ''; BX.ajax.submit(pObj.pForm, function(){ BX.closeWait(); if (window.bxBlogImageId) { window.InsertBlogImage(window.bxBlogImageId, window.bxBlogImageIdWidth); window.obLHEDialog.Close(); window.bxBlogImageId = false; } else if(window.bxBlogImageError) { BX('lhed_blog_image_error').innerHTML = window.bxBlogImageError; BX('lhed_blog_image_error').style.display = 'block'; window.obLHEDialog.adjustSizeEx(); } }); return false; } } }; }; window.InsertBlogImage = function(imageId, width) { pLEditor = window.oBlogLHE; var strSize = ''; if (!pLEditor.arBlogImages[imageId]) { pLEditor.arBlogImages[imageId] = { src : BX(imageId).src, pTitle: BX.findChild(pLEditor.pBlogPostImage, {attribute : {name: 'IMAGE_ID_title[' + imageId + ']'}}, true).value || "" }; } if(width > 0) { if(pLEditor.arConfig.width && pLEditor.arConfig.width.indexOf('%') <= 0) widthC = parseInt(pLEditor.arConfig.width)*0.8; else widthC = 800; if(width > widthC) strSize = ' width="80%"'; } if (pLEditor.sEditorMode == 'code' && pLEditor.bBBCode) // BB Codes pLEditor.WrapWith("", "", "[IMG ID=" + imageId + "]"); else if(pLEditor.sEditorMode == 'html') // WYSIWYG { pLEditor.InsertHTML('<img id="' + pLEditor.SetBxTag(false, {tag: "blogImage", params: {value : imageId}}) + '" src="' + pLEditor.arBlogImages[imageId].src + '" title="' + (pLEditor.arBlogImages[imageId].pTitle || "") + '"' + strSize + '>'); setTimeout('pLEditor.AutoResize();', 500); } } // window.LHEDailogs['BlogVideo'] = function(pObj) { var str = '<table width="100%"><tr>' + '<td class="lhe-dialog-label lhe-label-imp"><label for="' + pObj.pLEditor.id + 'lhed_blog_video_path"><b><?php echo GetMessage('BPC_VIDEO_P'); ?> :</b></label></td>' + '<td class="lhe-dialog-param">' + '<input id="' + pObj.pLEditor.id + 'lhed_blog_video_path" value="" size="30"/>' + '</td>' + '</tr><tr>' + '<td></td>' + '<td style="padding: 0!important; font-size: 11px!important;"><?php echo GetMessage('BPC_VIDEO_PATH_EXAMPLE'); ?> </td>' + '</tr><tr>' + '<td class="lhe-dialog-label lhe-label-imp"><label for="' + pObj.pLEditor.id + 'lhed_blog_video_width">' + BX.message.ImageSizing + ':</label></td>' + '<td class="lhe-dialog-param">' + '<input id="' + pObj.pLEditor.id + 'lhed_blog_video_width" value="" size="4"/>' + ' x ' + '<input id="' + pObj.pLEditor.id + 'lhed_blog_video_height" value="" size="4" />' + '</td>' + '</tr></table>'; return { title: "<?php echo GetMessage('FPF_VIDEO'); ?> ", innerHTML : str, width: 480, OnLoad: function() { pObj.pPath = BX(pObj.pLEditor.id + "lhed_blog_video_path"); pObj.pWidth = BX(pObj.pLEditor.id + "lhed_blog_video_width"); pObj.pHeight = BX(pObj.pLEditor.id + "lhed_blog_video_height"); pObj.pLEditor.focus(pObj.pPath); }, OnSave: function() { pLEditor = window.oBlogLHE; var src = BX.util.trim(pObj.pPath.value), w = parseInt(pObj.pWidth.value) || 400, h = parseInt(pObj.pHeight.value) || 300; if (src == "") return; if (pLEditor.sEditorMode == 'code' && pLEditor.bBBCode) // BB Codes { pLEditor.WrapWith("", "", "[VIDEO WIDTH=" + w + " HEIGHT=" + h + "]" + src + "[/VIDEO]"); } else if(pLEditor.sEditorMode == 'html') // WYSIWYG { pLEditor.InsertHTML('<img id="' + pLEditor.SetBxTag(false, {tag: "blogvideo", params: {value : src}}) + '" src="/bitrix/images/1.gif" class="bxed-video" width=' + w + ' height=' + h + ' title="' + BX.message.Video + ": " + src + '" />'); setTimeout('pLEditor.AutoResize();', 500); } } }; }; // Sabmit form by ctrl+enter window.blogCtrlEnterHandler = function(e) { oBlogLHE.SaveContent(); if (document.forms.REPLIER) document.forms.REPLIER.submit(); }; document.forms.REPLIER.onsubmit = function() { oBlogLHE.SaveContent(); }; </script> <?php }
/** * @param array $originalPostVars */ protected function showHtmlForm($originalPostVars = array()) { ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?echo LANG_CHARSET?>" /> <meta name="robots" content="none" /> <title><?echo getMessage("SECURITY_FILTER_FORM_TITLE")?></title> <link rel="stylesheet" type="text/css" href="/bitrix/themes/.default/adminstyles.css" /> <link rel="stylesheet" type="text/css" href="/bitrix/themes/.default/404.css" /> </head> <body> <script>if(document.location!=top.location)top.location=document.location;</script> <style> div.description td { font-family:Verdana,Arial,sans-serif; font-size:70%; border: 1px solid #BDC6E0; padding:3px; background-color: white; } div.description table { border-collapse:collapse; } div.description td.head { background-color:#E6E9F4; } </style> <div class="error-404"> <table class="error-404" border="0" cellpadding="0" cellspacing="0" align="center"> <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"> <div class="title"> <table cellpadding="0" cellspacing="0"> <tr> <td><div class="icon"></div></td> <td><?echo getMessage("SECURITY_FILTER_FORM_SUB_TITLE")?></td> </tr> </table> </div> <div class="description"> <?echo getMessage("SECURITY_FILTER_FORM_MESSAGE")?><br /><br /> <table cellpadding="0" cellspacing="0" witdh="100%"> <tr> <td class="head" align="center"><?echo getMessage("SECURITY_FILTER_FORM_VARNAME")?></td> <td class="head" align="center"><?echo getMessage("SECURITY_FILTER_FORM_VARDATA")?></td> </tr> <?foreach($this->getChangedVars() as $var_name => $str):?> <tr valign="top"> <td><?echo htmlspecialcharsbx($var_name)?></td> <td><?echo htmlspecialcharsbx($str)?></td> </tr> <?endforeach?> </table><br /> <form method="POST" <?if(defined('POST_FORM_ACTION_URI')):?> action="<?echo POST_FORM_ACTION_URI?>" <?endif?>> <?echo self::formatHiddenFields($originalPostVars);?> <?echo bitrix_sessid_post();?> <input type="submit" name='____SECFILTER_ACCEPT_JS' value="<?echo getMessage('SECURITY_FILTER_FORM_ACCEPT')?>" /> <input type="submit" name='____SECFILTER_CONVERT_JS' value="<?echo getMessage('SECURITY_FILTER_FORM_CONVERT')?>" /> </form> </div> </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> </body> </html> <? }
} elseif (ForumCurrUserPermissions($arResult["FORUM"]["ID"]) < "Q") { $APPLICATION->AuthForm(GetMessage("FM_NO_FPERMS")); } elseif (empty($topics)) { ShowError(GetMessage("F_ERROR_TOPICS_IS_EMPTY")); return false; } /******************************************************************** Default values ********************************************************************/ $GLOBALS['APPLICATION']->ResetException(); $arResult["TOPICS"] = array(); $arResult["GROUPS"] = CForumGroup::GetByLang(LANGUAGE_ID); $arResult["GROUP_NAVIGATION"] = array(); $arResult["ERROR_MESSAGE"] = ""; $arResult["OK_MESSAGE"] = ""; $arResult["sessid"] = bitrix_sessid_post(); $arResult["arForum"] = array("data" => array(), "active" => $arParams["newFID"]); $bVarsFromForm = false; $arResult["CURRENT_PAGE"] = CComponentEngine::MakePathFromTemplate($arParams["URL_TEMPLATES_TOPIC_MOVE"], array("FID" => $arParams["FID"], "TID" => $arParams["TID"])); $arResult["URL"] = array("LIST" => CComponentEngine::MakePathFromTemplate($arParams["URL_TEMPLATES_LIST"], array("FID" => $arParams["FID"])), "~LIST" => CComponentEngine::MakePathFromTemplate($arParams["~URL_TEMPLATES_LIST"], array("FID" => $arParams["FID"]))); $cache = new CPHPCache(); $cache_path_main = str_replace(array(":", "//"), "/", "/" . SITE_ID . "/" . $componentName . "/"); /******************************************************************** /Default values ********************************************************************/ /******************************************************************** Action ********************************************************************/ if (strToUpper($_REQUEST["action"]) == "MOVE" && check_bitrix_sessid()) { $strErrorMessage = ""; $strOKMessage = "";
); $context = new CAdminContextMenu($aMenu); $context->Show(); $aTabs = array( array("DIV" => "edit1", "TAB" => GetMessage("MAIL_MSG_MESSAGE"), "ICON"=>"main_user_edit", "TITLE"=>GetMessage("MAIL_MSG_VIEW_TITLE")), ); $tabControl = new CAdminTabControl("tabControl", $aTabs); ?> <form method="POST" action="<?echo $APPLICATION->GetCurPage()?>"> <?=bitrix_sessid_post()?> <input type="hidden" name="lang" value="<?echo LANG?>"> <input type="hidden" name="ID" value="<?echo $ID?>"> <a name="tb"></a> <?$tabControl->Begin();?> <?$tabControl->BeginNextTab();?> <tr> <td width="40%"><?echo GetMessage("MAIL_MSG_VIEW_DATE")?></td> <td width="60%"><?=$str_FIELD_DATE?></td> </tr> <?if(strlen($dbr_arr["FIELD_FROM"])>0):?> <tr> <td><?echo GetMessage("MAIL_MSG_VIEW_FROM")?></td> <td><?=TxtToHTML($dbr_arr["FIELD_FROM"])?></td>
static function Show() { global $USER_FIELD_MANAGER, $APPLICATION; if (self::ShowErrors()) { return; } self::ShowMenu(); self::$objCAdminForm->BeginEpilogContent(); echo bitrix_sessid_post(); GetFilterHiddens("filter_"); echo ' <input type="hidden" name="Update" value="Y"> <input type="hidden" name="ID" value="' . self::$holidaysFields->ID . '"> '; self::$objCAdminForm->EndEpilogContent(); self::$objCAdminForm->Begin(); self::$objCAdminForm->BeginNextFormTab(); Tab1(self::$objCAdminForm); if (self::SHOW_USER_FIELDS) { self::$objCAdminForm->BeginNextFormTab(); self::$objCAdminForm->BeginCustomField("USER_FIELDS", GetMessage("SUP_ADMIN_USER_FIELDS"), false); $USER_FIELD_MANAGER->EditFormShowTab("LEARN_ATTEMPT", self::$isErrors, self::$holidaysFields->ID); self::$objCAdminForm->EndCustomField("USER_FIELDS"); } self::$objCAdminForm->Buttons(array("back_url" => "ticket_holidays_list.php?lang=" . LANG . GetFilterParams("filter_", false))); self::$objCAdminForm->arParams["FORM_ACTION"] = $APPLICATION->GetCurPage() . "?lang=" . LANG . GetFilterParams("filter_"); self::$objCAdminForm->Show(); }
function Display() { foreach (GetModuleEvents("main", "OnAdminSubListDisplay", true) as $arEvent) { ExecuteModuleEventEx($arEvent, array(&$this)); } echo '<div id="form_' . $this->table_id . '" class="adm-sublist">'; if ($this->bEditMode && !$this->bCanBeEdited) { $this->bEditMode = false; } $boolCloseMessage = true; $errmsg = ''; foreach ($this->arFilterErrors as $err) { $errmsg .= ($errmsg != '' ? '<br>' : '') . $err; } foreach ($this->arUpdateErrors as $err) { $errmsg .= ($errmsg != '' ? '<br>' : '') . $err[0]; } foreach ($this->arGroupErrors as $err) { $errmsg .= ($errmsg != '' ? '<br>' : '') . $err[0]; } if ($errmsg != '') { CAdminSubMessage::ShowMessage(array("MESSAGE" => GetMessage("admin_lib_error"), "DETAILS" => $errmsg, "TYPE" => "ERROR")); $boolCloseMessage = false; } $successMessage = ''; for ($i = 0, $cnt = count($this->arActionSuccess); $i < $cnt; $i++) { $successMessage .= ($successMessage != '' ? '<br>' : '') . $this->arActionSuccess[$i]; } if ($successMessage != '') { CAdminSubMessage::ShowMessage(array("MESSAGE" => GetMessage("admin_lib_success"), "DETAILS" => $successMessage, "TYPE" => "OK")); $boolCloseMessage = false; } if ($this->bPublicMode && $boolCloseMessage) { echo '<script type="text/javascript">top.BX.WindowManager.Get().hideNotify();</script>'; } echo $this->sPrologContent; if ($this->sContent === false) { echo '<div class="adm-list-table-wrap' . ($this->context ? '' : ' adm-list-table-without-header') . (count($this->arActions) <= 0 && !$this->bCanBeEdited ? ' adm-list-table-without-footer' : '') . '">'; } if ($this->context) { $this->context->Show(); } //!!! insert filter's hiddens echo bitrix_sessid_post(); if ($this->sContent !== false) { echo $this->sContent; return; } $bShowSelectAll = count($this->arActions) > 0 || $this->bCanBeEdited; $this->bShowActions = false; foreach ($this->aRows as $row) { if (!empty($row->aActions)) { $this->bShowActions = true; break; } } $colSpan = 0; echo '<table class="adm-list-table" id="' . $this->table_id . '"> <thead> <tr class="adm-list-table-header">'; if ($bShowSelectAll) { echo '<td class="adm-list-table-cell adm-list-table-checkbox" onclick="this.firstChild.firstChild.click(); return BX.PreventDefault(event);"><div class="adm-list-table-cell-inner"><input class="adm-checkbox adm-designed-checkbox" type="checkbox" id="' . $this->table_id . '_check_all" ' . ($this->bEditMode ? 'disabled' : 'onclick="' . $this->table_id . '.SelectAllRows(this); return BX.eventCancelBubble(event);"') . ' title="' . GetMessage("admin_lib_list_check_all") . '" /><label for="' . $this->table_id . '_check_all" class="adm-designed-checkbox-label"></label></div></td>'; $colSpan++; } if ($this->bShowActions) { echo '<td class="adm-list-table-cell adm-list-table-popup-block" title="' . GetMessage("admin_lib_list_act") . '"><div class="adm-list-table-cell-inner"></div></td>'; $colSpan++; } foreach ($this->aHeaders as $column_id => $header) { if (!in_array($column_id, $this->arVisibleColumns)) { continue; } $bSort = $this->sort && !empty($header["sort"]); if ($bSort) { //$attrs = $this->sort->Show($header["content"], $header["sort"], $header["title"], "adm-list-table-cell"); $attrs = $this->sort->Show($header["content"], $header["sort"], $header["title"], "adm-list-table-cell"); } else { $attrs = 'class="adm-list-table-cell"'; } echo '<td ' . $attrs . '> <div class="adm-list-table-cell-inner">' . $header["content"] . '</div>' . ($bSort ? '<span class="adm-sub-sort"></span>' : '') . ' </td>'; $colSpan++; } echo '</tr></thead><tbody>'; if (!empty($this->aRows)) { foreach ($this->aRows as &$row) { $row->Display(); } unset($row); } elseif (!empty($this->aHeaders)) { echo '<tr><td colspan="' . $colSpan . '" class="adm-list-table-cell adm-list-table-empty">' . GetMessage("admin_lib_no_data") . '</td></tr>'; } echo '</tbody></table>'; $this->ShowActionTable(); echo $this->sEpilogContent; echo '</div>'; echo $this->sNavText; }
/** * <p>Вывод HTML-заголовка формы</p> * * * @return string <p>Возвращает HTML-код заголовка формы. В том числе, тэг <form>, * скрытые поля.</p> <a name="examples"></a><h4>Использование</h4> <p>При создании * шаблона формы редактором, добавляется в начало шаблона * автоматически.</p> <pre class="syntax"> <?=$FORM->ShowFormHeader()?> </pre> * * <h4>See Also</h4> * <menu> <li><a href="http://dev.1c-bitrix.ru/api_help/form/classes/cformoutput/index.php">Класс CFormOutput</a></li> * <li><a * href="http://dev.1c-bitrix.ru/api_help/form/classes/cformoutput/showformfooter.php">CFormOutput::ShowFormFooter</a></li> * </menu></b<br><br> * * * @static * @link http://dev.1c-bitrix.ru/api_help/form/classes/cformoutput/showformheader.php * @author Bitrix */ public function ShowFormHeader() { global $APPLICATION; $res = sprintf("<form name=\"%s\" action=\"%s\" method=\"%s\" enctype=\"multipart/form-data\">", $this->arForm["SID"], POST_FORM_ACTION_URI, "POST"); $res .= bitrix_sessid_post(); $arHiddenInputs["WEB_FORM_ID"] = $this->WEB_FORM_ID; if (!empty($this->RESULT_ID)) { $arHiddenInputs["RESULT_ID"] = $this->RESULT_ID; } $arHiddenInputs["lang"] = LANGUAGE_ID; foreach ($arHiddenInputs as $name => $value) { $res .= sprintf("<input type=\"hidden\" name=\"%s\" value=\"%s\" />", $name, $value); } return $res; }
$arResult["arUser"]["WORK_LOGO_HTML"] = CFile::ShowImage($arResult["arUser"]["WORK_LOGO"], 150, 150, "border=0", "", true); } $arResult["arForumUser"]["AVATAR_INPUT"] = CFile::InputFile("forum_AVATAR", 20, $arResult["arForumUser"]["AVATAR"], false, 0, "IMAGE"); if (strlen($arResult["arForumUser"]["AVATAR"]) > 0) { $arResult["arForumUser"]["AVATAR_HTML"] = CFile::ShowImage($arResult["arForumUser"]["AVATAR"], 150, 150, "border=0", "", true); } $arResult["arBlogUser"]["AVATAR_INPUT"] = CFile::InputFile("blog_AVATAR", 20, $arResult["arBlogUser"]["AVATAR"], false, 0, "IMAGE"); if (strlen($arResult["arBlogUser"]["AVATAR"]) > 0) { $arResult["arBlogUser"]["AVATAR_HTML"] = CFile::ShowImage($arResult["arBlogUser"]["AVATAR"], 150, 150, "border=0", "", true); } $arResult["IS_ADMIN"] = $USER->IsAdmin(); $arCountries = GetCountryArray(); $arResult["COUNTRY_SELECT"] = SelectBoxFromArray("PERSONAL_COUNTRY", $arCountries, $arResult["arUser"]["PERSONAL_COUNTRY"], GetMessage("USER_DONT_KNOW")); $arResult["COUNTRY_SELECT_WORK"] = SelectBoxFromArray("WORK_COUNTRY", $arCountries, $arResult["arUser"]["WORK_COUNTRY"], GetMessage("USER_DONT_KNOW")); $arResult["strProfileError"] = $strError; $arResult["BX_SESSION_CHECK"] = bitrix_sessid_post(); $arResult["DATE_FORMAT"] = CLang::GetDateFormat("SHORT"); $arResult["COOKIE_PREFIX"] = COption::GetOptionString("main", "cookie_name", "BITRIX_SM"); if (strlen($arResult["COOKIE_PREFIX"]) <= 0) { $arResult["COOKIE_PREFIX"] = "BX"; } // ********************* User properties *************************************************** $arResult["USER_PROPERTIES"] = array("SHOW" => "N"); if (!empty($arParams["USER_PROPERTY"])) { $arUserFields = $USER_FIELD_MANAGER->GetUserFields("USER", $arResult["ID"], LANGUAGE_ID); if (count($arParams["USER_PROPERTY"]) > 0) { foreach ($arUserFields as $FIELD_NAME => $arUserField) { if (!in_array($FIELD_NAME, $arParams["USER_PROPERTY"])) { continue; } $arUserField["EDIT_FORM_LABEL"] = strLen($arUserField["EDIT_FORM_LABEL"]) > 0 ? $arUserField["EDIT_FORM_LABEL"] : $arUserField["FIELD_NAME"];
private function ShowDataSaveForm() { $keys = array_keys($GLOBALS); for($i=0; $i<count($keys); $i++) { if($keys[$i]!='i' && $keys[$i]!='GLOBALS' && $keys[$i]!='strTitle' && $keys[$i]!='filepath') { global ${$keys[$i]}; } } $PathInstall = str_replace('\\', '/', __FILE__); $PathInstall = substr($PathInstall, 0, strlen($PathInstall)-strlen('/index.php')); IncludeModuleLangFile($PathInstall.'/install.php'); $APPLICATION->SetTitle(GetMessage('ASD_MODULE_NAME')); include($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_admin_after.php'); ?> <form action="<?= $APPLICATION->GetCurPage()?>" method="get"> <?= bitrix_sessid_post()?> <input type="hidden" name="lang" value="<?= LANG?>" /> <input type="hidden" name="id" value="<?= $this->MODULE_ID?>" /> <input type="hidden" name="uninstall" value="Y" /> <input type="hidden" name="step" value="2" /> <?CAdminMessage::ShowMessage(GetMessage('MOD_UNINST_WARN'))?> <input type="submit" name="inst" value="<?echo GetMessage('MOD_UNINST_DEL')?>" /> </form> <? include($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/epilog_admin.php'); die(); }
public static function OnAdminContextMenuShowHandler(&$items) { if ($GLOBALS['APPLICATION']->GetCurPage() == '/bitrix/admin/iblock_edit.php' && $_REQUEST['ID'] > 0) { CJSCore::Init(array('asd_iblock')); $BID = intval($_REQUEST['ID']); $importAction = "javascript:(new BX.CDialog({\n\t\t\t\t\t\t\twidth: 310,\n\t\t\t\t\t\t\theight: 110,\n\t\t\t\t\t\t\tresizable: false,\n\t\t\t\t\t\t\ttitle: '" . GetMessage('ASD_ACTION_IMPORT_FORM') . "',\n\t\t\t\t\t\t\tcontent: '<form action=\"" . CUtil::JSEscape($GLOBALS['APPLICATION']->GetCurPageParam('', array('action'))) . "\" method=\"post\" enctype=\"multipart/form-data\">" . bitrix_sessid_post() . "<input type=\"hidden\" name=\"action\" value=\"asd_prop_import\" />" . "<input type=\"hidden\" name=\"ID\" value=\"" . $BID . "\" />" . "<input type=\"hidden\" name=\"type\" value=\"" . htmlspecialcharsbx($_REQUEST['type']) . "\" />" . "<input type=\"file\" name=\"xml_file\" /><br/><br/>" . "<center><input type=\"submit\" value=\"" . GetMessage('ASD_ACTION_IMPORT_SUBMIT') . "\" /></center>" . "</form>'\n\t\t\t\t\t\t})).Show()"; $exportAction = "javascript:(new BX.CDialog({\n\t\t\t\t\t\t\twidth: 310,\n\t\t\t\t\t\t\theight: 200,\n\t\t\t\t\t\t\tresizable: false,\n\t\t\t\t\t\t\ttitle: '" . GetMessage('ASD_ACTION_EXPORT_FORM') . "',\n\t\t\t\t\t\t\tbuttons: [BX.CAdminDialog.btnSave, BX.CAdminDialog.btnCancel],\n\t\t\t\t\t\t\tcontent: '<form action=\"" . CUtil::JSEscape($GLOBALS['APPLICATION']->GetCurPageParam('', array('action'))) . "\" method=\"post\" enctype=\"multipart/form-data\">" . bitrix_sessid_post() . "<input type=\"hidden\" name=\"action\" value=\"asd_prop_export\" />" . "<input type=\"hidden\" name=\"ID\" value=\"" . $BID . "\" />"; $exportAction .= '<input type="checkbox" name="forms" id="forms" value="Y" />' . '<label for="forms">' . GetMessage('ASD_ACTION_EXPORT_FORMS') . '</label><br/><br/>'; $exportAction .= '<input type="checkbox" id="asd_export_prop_all" checked="checked" />' . '<label for="asd_export_prop_all"><i>' . GetMessage('ASD_ACTION_EXPORT_ALL') . '</i></label><br/>'; $rsProp = CIBlockProperty::GetList(array(), array('IBLOCK_ID' => $BID)); while ($arProp = $rsProp->GetNext()) { $exportAction .= '<input type="checkbox" class="asd_export_prop" name="p[' . $arProp['ID'] . ']" id="p' . $arProp['ID'] . '" value="Y" checked="checked" />' . '<label for="p' . $arProp['ID'] . '" title="' . $arProp['CODE'] . '">' . $arProp['NAME'] . '</label><br/>'; } $exportAction .= "</form>'\n\t\t\t\t\t\t\t})).Show()"; $items[] = array('TEXT' => GetMessage('ASD_ACTION_EXPORT_IMPORT'), 'TITLE' => GetMessage('ASD_ACTION_EXPORT_IMPORT_TITLE'), 'LINK' => '#', 'ICON' => 'btn_settings', 'MENU' => array(array('TEXT' => GetMessage('ASD_ACTION_EXPORT_PROP'), 'ACTION' => version_compare(SM_VERSION, '11.5.5') >= 0 ? $exportAction : htmlspecialcharsbx($exportAction)), array('TEXT' => GetMessage('ASD_ACTION_IMPORT_PROP'), 'ACTION' => version_compare(SM_VERSION, '11.5.5') >= 0 ? $importAction : htmlspecialcharsbx($importAction)))); } if (($GLOBALS['APPLICATION']->GetCurPage() == '/bitrix/admin/iblock_element_edit.php' || $GLOBALS['APPLICATION']->GetCurPage() == '/bitrix/admin/cat_product_edit.php') && $_REQUEST['ID'] > 0 && (!isset($_REQUEST['action']) && $_REQUEST['action'] != 'copy')) { if ($arElement = CIBlockElement::GetByID($_REQUEST['ID'])->GetNext()) { if (strlen($arElement['DETAIL_PAGE_URL'])) { $items[] = array('ICON' => 'asd_iblock_show_element', 'TEXT' => GetMessage('ASD_ACTION_VIEW_DETAIL'), 'LINK' => str_replace('%2F', '/', $arElement['DETAIL_PAGE_URL'])); } } } }
</span><?php } ?> <div class="invite-buttons-block"><?php if ($arResult["RequestsOut"] && $arResult["RequestsOut"]["List"]) { ?> <a class="sonet-group-requests-smbutton" href="#" onclick="__URESubmitForm('out', 'reject');"><?php ?> <span class="sonet-group-requests-smbutton-left"></span><?php ?> <span class="sonet-group-requests-smbutton-text"><?php echo GetMessage("SONET_URE_T_REJECT_OUT"); ?> </span><?php ?> <span class="sonet-group-requests-smbutton-right"></span><?php ?> </a><?php } ?> </div> <input type="hidden" name="max_count" value="<?php echo $ind; ?> "> <input type="hidden" name="type" value="out"> <input type="hidden" name="action" id="requests_action_out" value=""><?php echo bitrix_sessid_post(); ?> </form></div><?php }
private static function replaceSessid(&$content) { $methodInvocations = bitrix_sessid_post("sessid", true); if ($methodInvocations > 0) { $content = str_replace("value=\"" . bitrix_sessid() . "\"", "value=\"\"", $content); } }