当前位置: 首页>>代码示例>>PHP>>正文


PHP bitrix_sessid_post函数代码示例

本文整理汇总了PHP中bitrix_sessid_post函数的典型用法代码示例。如果您正苦于以下问题:PHP bitrix_sessid_post函数的具体用法?PHP bitrix_sessid_post怎么用?PHP bitrix_sessid_post使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了bitrix_sessid_post函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: ShowOffer

    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 
    }
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:28,代码来源:dbtools.php

示例2: __GroupRightsShowRowDefault

 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);
 }
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:13,代码来源:group_rights.php

示例3: showEpilog

 /**
  * Отрисовка нижней части страницы.
  * По-умолчанию рисует все поля, которые не попали в вывод, как 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] . '" />';
         }
     }
 }
开发者ID:Reprezo,项目名称:digitalwand.admin_helper,代码行数:15,代码来源:AdminEditHelper.php

示例4: CAdminMessage

	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>
	<?
	}
开发者ID:nycmic,项目名称:bittest,代码行数:31,代码来源:seo_search_yandex_direct_auth.php

示例5: show_tip

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>';
}
开发者ID:Satariall,项目名称:izurit,代码行数:24,代码来源:repair_db.php

示例6: ShowReportList

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");
    ?>
&nbsp;</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();
    ?>
//.........这里部分代码省略.........
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:101,代码来源:checklist.php

示例7: bitrix_sessid_post

?>
'});
	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');
?>
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:template.php

示例8: CheckPermission

    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;
    }
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:92,代码来源:components_lib.php

示例9: array

}
$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>
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:template.php

示例10: GetFormHtml

    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") . '" />
';
    }
开发者ID:spas-viktor,项目名称:books,代码行数:16,代码来源:openid.php

示例11: StartContent

	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";
	}
开发者ID:nycmic,项目名称:bittest,代码行数:21,代码来源:admin_lib.php

示例12: bitrix_sessid_post

 public function bitrix_sessid_post()
 {
     return bitrix_sessid_post();
 }
开发者ID:wlbl,项目名称:twigrix,代码行数:4,代码来源:bitrixextension.php

示例13: array

         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"];
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:component.php

示例14: 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();
        }
    }
开发者ID:Black-Core-Sec,项目名称:sd,代码行数:101,代码来源:CModuleOptions.php

示例15: array

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;?>
开发者ID:ASDAFF,项目名称:BitrixGems,代码行数:31,代码来源:options.php


注:本文中的bitrix_sessid_post函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。