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


PHP CJSCore::GetHTML方法代码示例

本文整理汇总了PHP中CJSCore::GetHTML方法的典型用法代码示例。如果您正苦于以下问题:PHP CJSCore::GetHTML方法的具体用法?PHP CJSCore::GetHTML怎么用?PHP CJSCore::GetHTML使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CJSCore的用法示例。


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

示例1: Init

	public function Init($admin = true)
	{
		if (!$GLOBALS['USER']->IsAuthorized())
			return false;

		if (!$this->bInited)
		{
			$bSkipRestore = false;
			$DISABLE_STANDARD_NOTIFY = ($admin ? 'false' : 'true');

			if (defined('BX_PUBLIC_MODE') && BX_PUBLIC_MODE == 1)
				echo CJSCore::GetHTML(array('autosave'));
?>
<input type="hidden" name="autosave_id" id="autosave_marker_<?php 
echo $this->GetID();
?>
" value="<?php 
echo $this->GetID();
?>
" />
<script type="text/javascript">window.autosave_<?php 
echo $this->GetID();
?>
 = new top.BX.CAutoSave({
	form_marker: 'autosave_marker_<?php 
echo $this->GetID();
?>
',
	form_id: '<?php 
echo $this->GetID();
?>
',
	DISABLE_STANDARD_NOTIFY: <?php 
echo $DISABLE_STANDARD_NOTIFY;
?>
});
</script>
<?
			$this->bInited = true;
		}
	}
开发者ID:ASDAFF,项目名称:bxApiDocs,代码行数:41,代码来源:undo.php

示例2: array

			{
				$DB->commit();
				$response = array('status' => 'success');
			}
			$APPLICATION->RestartBuffer();
			echo json_encode($response);
		}
		else
		{
			$opt = array('getContent' => true);
			$status = $ob->GET($opt);
			$response = publicDoc(array('name' => $APPLICATION->ConvertCharset($ob->arParams['element_name'], SITE_CHARSET, 'UTF-8'), 'content' => $opt['content']), $oauthCredentials);
			$googleIdDoc = CUtil::JSEscape($response['id']);
			$uriToDoc = CUtil::JSEscape($ob->uri . '?' . bitrix_sessid_get() . '&editInGoogle=1&start=1');
			$APPLICATION->RestartBuffer();
			echo CJSCore::GetHTML(array('ajax'));
					echo <<<HTML
			<script type="text/javascript">
				BX.ready(function(){
					window.onunload = function(){
						BX.ajax.loadJSON('{$uriToDoc}', {commit: 1, id: '{$googleIdDoc}'}, function(result){
							//todo catch error
							if(window.opener)
							{
								if(window.elementViewer)
								{
									window.elementViewer.show(window.elementViewer.getCurrent(), true);
								}
							}
						});
					};
开发者ID:ASDAFF,项目名称:bitrix-5,代码行数:31,代码来源:webdav.php

示例3: GetMessage

?>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="windows-1251">
	<title><?php 
echo GetMessage("WD_EXT_LINK_COMP_LINK");
?>
</title>
	<!-- <link rel="stylesheet" href="https://cp.bitrix.ru/bitrix/templates/bitrix24/interface.css?1353493044"/> -->
	<link rel="stylesheet" href="<?php 
echo $tempPatch;
?>
/style.css"/>
	<?php 
echo CJSCore::GetHTML(array('viewer'));
?>
</head>
<body>
	<div class="sharing-link-page<?php 
if (substr_count($sType, "b24") <= 0) {
    echo " old-design";
}
?>
">
		<div id="header">
			<div class="header-logo-block">
				<a href="<?php 
echo SITE_DIR;
?>
" title="<?php 
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:template.php

示例4: Init

    public function Init($admin = true)
    {
        global $USER;
        if (!$USER->IsAuthorized()) {
            return false;
        }
        if (!$this->bInited) {
            $DISABLE_STANDARD_NOTIFY = $admin ? 'false' : 'true';
            if (defined('BX_PUBLIC_MODE') && BX_PUBLIC_MODE == 1) {
                echo CJSCore::GetHTML(array('autosave'));
            }
            ?>
<input type="hidden" name="autosave_id" id="autosave_marker_<?php 
            echo $this->GetID();
            ?>
" value="<?php 
            echo $this->GetID();
            ?>
" />
<script type="text/javascript">window.autosave_<?php 
            echo $this->GetID();
            ?>
 = new top.BX.CAutoSave({
	form_marker: 'autosave_marker_<?php 
            echo $this->GetID();
            ?>
',
	form_id: '<?php 
            echo $this->GetID();
            ?>
',
	DISABLE_STANDARD_NOTIFY: <?php 
            echo $DISABLE_STANDARD_NOTIFY;
            ?>
});
</script>
<?php 
            $this->checkRestore();
            $this->bInited = true;
        }
        return true;
    }
开发者ID:rasuldev,项目名称:torino,代码行数:42,代码来源:undo.php

示例5: closeConfirm

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
/** @var CAllMain $APPLICATION */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<?php 
echo CJSCore::GetHTML(array('ajax', 'viewer'));
?>
		<?php 
//$APPLICATION->ShowHead();
?>
		<style>
		</style>
	</head>
	<body style="height: 100%;margin: 0;padding: 0;">
		<script type="text/javascript">
			function closeConfirm()
			{
				if (typeof(BX.PULL) != 'undefined' && typeof(BX.PULL.tryConnectDelay) == 'function') // TODO change to right code in near future (e.shelenkov)
				{
					BX.PULL.tryConnectDelay();
				}
				if(window.opener)
				{
					if((BX.browser.IsIE() || BX.browser.IsIE11()) && window.opener._ie_elementViewer && (window.opener._ie_elementViewer.bVisible || window.opener._ie_elementViewer.createDoc))
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:startpage.php


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