本文整理汇总了PHP中CJSCore类的典型用法代码示例。如果您正苦于以下问题:PHP CJSCore类的具体用法?PHP CJSCore怎么用?PHP CJSCore使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CJSCore类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: OnPlannerInit
public static function OnPlannerInit($params)
{
global $USER, $DB, $CACHE_MANAGER;
$CACHE_MANAGER->RegisterTag('calendar_user_' . $USER->GetID());
$date_from = ConvertTimeStamp();
$ts_date_from = MakeTimeStamp($date_from);
$ts_date_to = $ts_date_from + 86399;
$date_to = ConvertTimeStamp($ts_date_to, 'FULL');
$arFilter = array('arFilter' => array("OWNER_ID" => $USER->GetID(), "FROM_LIMIT" => $date_from, "TO_LIMIT" => $date_to), 'parseRecursion' => true, 'userId' => $USER->GetID(), 'skipDeclined' => true, 'fetchAttendees' => false, 'fetchMeetings' => true);
$arEvents = array();
$eventTime = -1;
$arNewEvents = CCalendarEvent::GetList($arFilter);
if (count($arNewEvents) > 0) {
$now = time() + CTimeZone::GetOffset();
$today = ConvertTimeStamp($now, 'SHORT');
$format = $DB->dateFormatToPHP(IsAmPmMode() ? 'H:MI T' : 'HH:MI');
foreach ($arNewEvents as $arEvent) {
$ts_from = MakeTimeStamp($arEvent['DT_FROM']);
if ($arEvent['RRULE']) {
$ts_to = MakeTimeStamp($arEvent['DT_TO']);
if ($ts_to < $ts_date_from || $ts_from > $ts_date_to) {
continue;
}
}
if (($eventTime < 0 || $eventTime > $ts_from) && $ts_from >= $now) {
$eventTime = $ts_from;
}
if ($params['FULL']) {
$arEvents[] = array('ID' => $arEvent['ID'], 'OWNER_ID' => $USER->GetID(), 'CREATED_BY' => $arEvent['CREATED_BY'], 'NAME' => $arEvent['NAME'], 'DATE_FROM' => $arEvent['DT_FROM'], 'DATE_TO' => $arEvent['DT_TO'], 'TIME_FROM' => FormatDate($format, MakeTimeStamp($arEvent['DT_FROM'])), 'TIME_TO' => FormatDate($format, MakeTimeStamp($arEvent['DT_TO'])), 'IMPORTANCE' => $arEvent['IMPORTANCE'], 'ACCESSIBILITY' => $arEvent['ACCESSIBILITY'], 'DATE_FROM_TODAY' => $today == ConvertTimeStamp(MakeTimeStamp($arEvent['DT_FROM']), 'SHORT'), 'DATE_TO_TODAY' => $today == ConvertTimeStamp(MakeTimeStamp($arEvent['DT_TO']), 'SHORT'));
}
}
}
CJSCore::RegisterExt('calendar_planner_handler', array('js' => '/bitrix/js/calendar/core_planner_handler.js', 'css' => '/bitrix/js/calendar/core_planner_handler.css', 'lang' => BX_ROOT . '/modules/calendar/lang/' . LANGUAGE_ID . '/core_planner_handler.php', 'rel' => array('date', 'timer')));
return array('DATA' => array('CALENDAR_ENABLED' => true, 'EVENTS' => $arEvents, 'EVENT_TIME' => $eventTime < 0 ? '' : FormatDate(IsAmPmMode() ? "g:i a" : "H:i", $eventTime)), 'SCRIPTS' => array('calendar_planner_handler'));
}
开发者ID:Satariall,项目名称:izurit,代码行数:35,代码来源:calendar_event_handlers.php
示例2: GetPublicEditHtml
public static function GetPublicEditHtml($arProperty, $arValue, $strHTMLControlName)
{
$strID = preg_replace('/[^a-zA-Z0-9_]/i', 'x', $strHTMLControlName["VALUE"]);
CJSCore::Init(array('asd_palette'));
$strResult = '<input type="text" name="' . htmlspecialcharsbx($strHTMLControlName['VALUE']) . '" id="' . htmlspecialcharsbx($strID) . '" value="' . htmlspecialcharsbx($arValue['VALUE']) . '" />';
$strResult .= '<script type="text/javascript">
BX.ready(function()
{
$("#' . htmlspecialcharsbx($strID) . '").jPicker({
window: {title: "' . GetMessage('ASD_UT_PALETTE_WND_TITLE') . '"},
images: {clientPath : "/bitrix/js/asd.iblock/jpicker/images/"},
localization: {
text: {
title: "' . GetMessage('ASD_UT_PALETTE_WND_TITLE') . '",
newColor: "' . GetMessage('ASD_UT_PALETTE_WND_NEW_COLOR') . '", currentColor: "' . GetMessage('ASD_UT_PALETTE_WND_CURRENT_COLOR') . '",
ok: "' . GetMessage('ASD_UT_PALETTE_WND_OK') . '", cancel: "' . GetMessage('ASD_UT_PALETTE_WND_CANCEL') . '"
},
tooltips: {
colors: { newColor: "' . GetMessage('ASD_UT_PALETTE_TIPS_NEW_COLOR') . '", currentColor: "' . GetMessage('ASD_UT_PALETTE_TIPS_CURRENT_COLOR') . '" },
buttons: { ok: "' . GetMessage('ASD_UT_PALETTE_TIPS_BTN_OK') . '", cancel: "' . GetMessage('ASD_UT_PALETTE_TIPS_BTN_CANCEL') . '" },
hue: { radio: "' . GetMessage('ASD_UT_PALETTE_TIPS_HUE_MODE') . '", textbox: "' . GetMessage('ASD_UT_PALETTE_TIPS_HUE_VALUE') . '" },
saturation: { radio: "' . GetMessage('ASD_UT_PALETTE_TIPS_SATURATION_MODE') . '", textbox: "' . GetMessage('ASD_UT_PALETTE_TIPS_SATURATION_VALUE') . '" },
value: { radio: "' . GetMessage('ASD_UT_PALETTE_TIPS_BRIGHTNESS_MODE') . '", textbox: "' . GetMessage('ASD_UT_PALETTE_TIPS_BRIGHTNESS_VALUE') . '" },
red: { radio: "' . GetMessage('ASD_UT_PALETTE_TIPS_RED_MODE') . '", textbox: "' . GetMessage('ASD_UT_PALETTE_TIPS_RED_VALUE') . '" },
green: { radio: "' . GetMessage('ASD_UT_PALETTE_TIPS_GREEN_MODE') . '", textbox: "' . GetMessage('ASD_UT_PALETTE_TIPS_GREEN_VALUE') . '" },
blue: { radio: "' . GetMessage('ASD_UT_PALETTE_TIPS_BLUE_MODE') . '", textbox: "' . GetMessage('ASD_UT_PALETTE_TIPS_BLUE_VALUE') . '" },
alpha: { radio: "' . GetMessage('ASD_UT_PALETTE_TIPS_ALPHA_MODE') . '", textbox: "' . GetMessage('ASD_UT_PALETTE_TIPS_ALPHA_VALUE') . '" },
hex: { textbox: "' . GetMessage('ASD_UT_PALETTE_TIPS_HEX_VALUE') . '", alpha: "' . GetMessage('ASD_UT_PALETTE_TIPS_HEX_ALPHA') . '" }
}
}
});
});
</script>';
return $strResult;
}
开发者ID:Hawkart,项目名称:megatv,代码行数:35,代码来源:iblock_prop_palette.php
示例3: initScripts
public static function initScripts($arData)
{
global $APPLICATION;
$arExt = array('planner');
$arScripts = array();
if (is_array($arData['SCRIPTS'])) {
foreach ($arData['SCRIPTS'] as $script) {
if (CJSCore::IsExtRegistered($script)) {
$arExt[] = $script;
} else {
$arScripts[] = $script;
}
}
}
if (is_array($arData['STYLES'])) {
foreach ($arData['STYLES'] as $style) {
$APPLICATION->SetAdditionalCSS($style);
}
}
\Bitrix\Main\Page\Asset::getInstance()->addJsKernelInfo('calendar_planner_handler', array('/bitrix/js/calendar/core_planner_handler.js'));
\Bitrix\Main\Page\Asset::getInstance()->addCssKernelInfo('calendar_planner_handler', array('/bitrix/js/calendar/core_planner_handler.css'));
CJSCore::Init($arExt);
foreach ($arScripts as $script) {
$APPLICATION->AddHeadScript($script);
}
}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:26,代码来源:planner.php
示例4: ShowStep
function ShowStep()
{
$wizard = & $this->GetWizard();
$path = $wizard->package->path;
CJSCore::Init(array('ajax'));
$this->content = '<div id="treelike_comments_import_progress">' . GetMessage('PRMEDIA_TLC_IMPORT_IMPORT_CONTENT') . '</div>';
$this->content .= '<link rel="stylesheet" href="/bitrix/panel/main/admin-public.css" />';
$this->content .= '<style>#wait_treelike_comments_import_progress, .step-buttons {display: none !important;}</style>';
$this->content .= '
<script>
parent.document.getElementsByClassName("bx-core-adm-icon-close")[0].style.display = "none";
;(function (window) {
var BX = window.BX;
var commentImporter = function () {};
commentImporter.prototype.init = function () {
BX.ajax.insertToNode("' . $path . '/ajax/import.php?start=Y", BX("treelike_comments_import_progress"));
};
commentImporter.prototype.update = function () {
BX.ajax.insertToNode("' . $path . '/ajax/import.php", BX("treelike_comments_import_progress"));
};
// add library to window context
window.jsPrmediaCommentImporter = new commentImporter();
}) (window);
jsPrmediaCommentImporter.init();
</script>
';
}
开发者ID:ASDAFF,项目名称:mp,代码行数:31,代码来源:wizard.php
示例5: getList
/**
* Возвращает выпадающий список с часовыми поясами
* @param string $name
* @param string $value
* @param bool $is_multiple
*/
protected static function getList($arProperty, $name, $value, $is_multiple = false)
{
$image = self::getImage($arProperty);
if (!$image) {
return '';
}
global $APPLICATION;
if (self::$counter === 0) {
$script = file_get_contents(__DIR__ . '/../assets/jquery.canvasAreaDraw.js');
\CJSCore::Init(array("jquery"));
$APPLICATION->AddHeadString("<script>{$script}</script>", true);
}
$id = 'canv_' . md5('CanvasPolygon' . $name . self::$counter);
$html = <<<EOD
\t<div style="max-width: 100%; max-height: 600px; overflow: scroll;">
\t\t<input type="hidden" value="{$value}" id="{$id}" name="{$name}">
\t</div>
\t<button id="reset_{$id}">Очистить</button>
\t<script type="text/javascript">
\t\t(function(\$) {
\t\t\tvar \$input = \$('#{$id}');
\t\t\tvar \$parent = \$input.parent();
\t\t\t\$parent.width(\$parent.parent().width());
\t\t\t\$input.canvasAreaDraw({
\t\t\t\timageUrl: "{$image}",
\t\t\t\treset: "#reset_{$id}"
\t\t\t});
\t\t})(jQuery);
\t</script>
EOD;
self::$counter++;
return $html;
}
开发者ID:marvin255,项目名称:bxlib,代码行数:39,代码来源:CanvasPolygon.php
示例6: l
static function l()
{
if (file_exists($_SERVER["DOCUMENT_ROOT"] . "/bxd_log.txt")) {
$content = file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/bxd_log.txt");
global $APPLICATION;
CJSCore::Init(array('bxd'));
$APPLICATION->AddViewContent("bxd_debug", $content, 1);
}
}
开发者ID:akniyev,项目名称:arteva.ru,代码行数:9,代码来源:Cbxd.php
示例7: OnPlannerInit
public static function OnPlannerInit($params)
{
global $APPLICATION, $USER, $CACHE_MANAGER;
self::$SITE_ID = $params['SITE_ID'];
self::$USER_ID = $USER->GetID();
$arTasks = array();
if (self::$USER_ID > 0) {
$CACHE_MANAGER->RegisterTag('tasks_user_' . self::$USER_ID);
$CACHE_MANAGER->RegisterTag('tasks_user_fields');
$arTaskIDs = self::getCurrentTasksList();
$tasksCount = self::getTasksCount($arTaskIDs);
} else {
$arTaskIDs = array();
$tasksCount = 0;
}
if ($params['FULL']) {
if (self::$USER_ID > 0) {
if (is_array($arTaskIDs) && !empty($arTaskIDs)) {
$arTasks = self::getTasks($arTaskIDs);
}
}
} else {
$APPLICATION->IncludeComponent("bitrix:tasks.iframe.popup", ".default", array("ON_TASK_ADDED" => "BX.DoNothing", "ON_TASK_CHANGED" => "BX.DoNothing", "ON_TASK_DELETED" => "BX.DoNothing"), null, array("HIDE_ICONS" => "Y"));
}
CJSCore::RegisterExt('tasks_planner_handler', array('js' => '/bitrix/js/tasks/core_planner_handler.js', 'css' => '/bitrix/js/tasks/css/tasks.css', 'lang' => BX_ROOT . '/modules/tasks/lang/' . LANGUAGE_ID . '/core_planner_handler.php', 'rel' => array('popup', 'tooltip')));
if (self::$USER_ID > 0) {
$oTimer = CTaskTimerManager::getInstance(self::$USER_ID);
$arTimer = $oTimer->getLastTimer();
$arTaskOnTimer = false;
if ($arTimer !== false && $arTimer['TASK_ID'] > 0) {
// Timered task can be in day plan, try to found it
if (in_array($arTimer['TASK_ID'], $arTaskIDs)) {
foreach ($arTasks as &$arTaskData) {
if ($arTaskData['ID'] == $arTimer['TASK_ID']) {
$arTaskOnTimer = $arTaskData;
break;
}
}
unset($arTaskData);
}
// If task not found, select it
if ($arTaskOnTimer === false) {
$arTmp = self::getTasks(array($arTimer['TASK_ID']));
if (isset($arTmp[0])) {
$arTaskOnTimer = $arTmp[0];
}
}
}
} else {
$arTimer = false;
$arTaskOnTimer = false;
}
$arResult = array('DATA' => array('TASKS_ENABLED' => true, 'TASKS' => $arTasks, 'TASKS_COUNT' => $tasksCount, 'TASKS_TIMER' => $arTimer, 'TASK_ON_TIMER' => $arTaskOnTimer, 'MANDATORY_UFS' => CTasksRarelyTools::isMandatoryUserFieldExists() ? 'Y' : 'N'), 'STYLES' => array('/bitrix/js/tasks/css/tasks.css'), 'SCRIPTS' => array('CJSTask', 'taskQuickPopups', 'tasks_planner_handler', '/bitrix/js/tasks/task-iframe-popup.js'));
return $arResult;
}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:55,代码来源:taskplannermaintance.php
示例8: initJs
static function initJs()
{
static $done = false;
if (!$done) {
$done = true;
\CJSCore::RegisterExt('input', array('js' => '/bitrix/js/sale/input.js', 'lang' => '/bitrix/modules/sale/lang/' . LANGUAGE_ID . '/lib/internals/input.php'));
\CJSCore::Init(array('input'));
print '<div style="display:none">';
$GLOBALS['APPLICATION']->IncludeComponent("bitrix:sale.location.selector." . \Bitrix\Sale\Location\Admin\LocationHelper::getWidgetAppearance(), "", array("ID" => '', "CODE" => '', "INPUT_NAME" => 'SALE_LOCATION_SELECTOR_RESOURCES', "PROVIDE_LINK_BY" => 'code', "FILTER_BY_SITE" => 'Y', "SHOW_DEFAULT_LOCATIONS" => 'Y', "SEARCH_BY_PRIMARY" => 'Y', "JS_CONTROL_GLOBAL_ID" => 'SALE_LOCATION_SELECTOR_RESOURCES', "USE_JS_SPAWN" => 'Y'), false, array('HIDE_ICONS' => 'Y'));
print '</div>';
}
}
开发者ID:webgksupport,项目名称:alpina,代码行数:12,代码来源:input.php
示例9: executeComponent
/**
* @return bool
*/
public function executeComponent()
{
if (!CModule::IncludeModule('pull')) {
return false;
}
global $USER;
$this->arResult['userId'] = $USER->getId();
$this->arResult['signalingLink'] = $this->getPath() . '/call.ajax.php';
CJSCore::RegisterExt('pullDemoWebrtc', array('js' => $this->getPath() . '/demo_webrtc.js', 'lang' => $this->getPath() . '/lang/' . LANGUAGE_ID . '/js_demo_webrtc.php', 'rel' => array('webrtc')));
CJSCore::Init('pullDemoWebrtc');
$this->includeComponentTemplate();
return true;
}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:16,代码来源:class.php
示例10: setEnable
/**
* Sets isEnable property value
* @param bool $isEnable
*/
public static function setEnable($isEnable = true)
{
if ($isEnable && !self::$isEnable) {
self::$onBeforeHandleKey = AddEventHandler("main", "OnBeforeEndBufferContent", array(__CLASS__, "OnBeforeEndBufferContent"));
self::$onHandleKey = AddEventHandler("main", "OnEndBufferContent", array(__CLASS__, "OnEndBufferContent"));
self::$isEnable = true;
\CJSCore::init(array("fc"), false);
$actionType = \Bitrix\Main\Context::getCurrent()->getServer()->get("HTTP_BX_ACTION_TYPE");
if ($actionType == "get_dynamic") {
//Is it the background request?
self::$isBackgroundRequest = true;
}
} elseif (!$isEnable && self::$isEnable) {
if (self::$onBeforeHandleKey >= 0) {
RemoveEventHandler("main", "OnBeforeEndBufferContent", self::$onBeforeHandleKey);
}
if (self::$onBeforeHandleKey >= 0) {
RemoveEventHandler("main", "OnEndBufferContent", self::$onHandleKey);
}
self::$isEnable = false;
}
}
开发者ID:andy-profi,项目名称:bxApiDocs,代码行数:26,代码来源:framecache.php
示例11: GetPropertyFieldHtml
function GetPropertyFieldHtml($arProperty, $value, $strHTMLControlName)
{
$tableID = md5($strHTMLControlName['VALUE']);
$id = $arProperty['ID'];
CJSCore::Init('jquery');
global $APPLICATION;
$APPLICATION->AddHeadScript('https://cdnjs.cloudflare.com/ajax/libs/tinyColorPicker/1.1.0/jqColorPicker.min.js');
ob_start();
?>
<script>$(function () {
$('#<?php
echo $tableID;
?>
').colorPicker({
opacity: false, renderCallback: function ($elm, toggled) {
if ($elm.val()) {
$elm.val('#' + this.color.colors.HEX);
}
}
});
})</script>
<input type="text" name="<?php
echo $strHTMLControlName['VALUE'];
?>
"
value="<?php
echo $value['VALUE'];
?>
"
id="<?php
echo $tableID;
?>
">
<?php
$return = ob_get_contents();
ob_end_clean();
return $return;
}
开发者ID:safindr,项目名称:snippets,代码行数:39,代码来源:customColorProp.php
示例12: getScripts
/**
* @param Order $order
* @param $formId
* @return string
*/
public static function getScripts(Order $order, $formId)
{
Asset::getInstance()->addJs("/bitrix/js/sale/admin/order_edit.js");
Asset::getInstance()->addJs("/bitrix/js/sale/admin/order_ajaxer.js");
$currencyId = $order->getCurrency();
$currencies = array();
if (Loader::includeModule('currency')) {
\CJSCore::Init(array('currency'));
$currencyFormat = \CCurrencyLang::getFormatDescription($currencyId);
$currencies = array(array('CURRENCY' => $currencyId, 'FORMAT' => array('FORMAT_STRING' => $currencyFormat['FORMAT_STRING'], 'DEC_POINT' => $currencyFormat['DEC_POINT'], 'THOUSANDS_SEP' => $currencyFormat['THOUSANDS_SEP'], 'DECIMALS' => $currencyFormat['DECIMALS'], 'THOUSANDS_VARIANT' => $currencyFormat['THOUSANDS_VARIANT'], 'HIDE_ZERO' => "N")));
}
$curFormat = \CCurrencyLang::getCurrencyFormat($currencyId);
$currencyLang = trim(str_replace("#", '', $curFormat["FORMAT_STRING"]));
$langPhrases = array("SALE_ORDEREDIT_DISCOUNT_UNKNOWN", "SALE_ORDEREDIT_REFRESHING_DATA", "SALE_ORDEREDIT_FIX", "SALE_ORDEREDIT_UNFIX");
$result = '
<script type="text/javascript">
BX.ready(function(){
BX.Sale.Admin.OrderEditPage.orderId = "' . $order->getId() . '";
BX.Sale.Admin.OrderEditPage.siteId = "' . $order->getSiteId() . '";
BX.Sale.Admin.OrderEditPage.languageId = "' . LANGUAGE_ID . '";
BX.Sale.Admin.OrderEditPage.formId = "' . $formId . '_form";
BX.Sale.Admin.OrderEditPage.adminTabControlId = "' . $formId . '";
' . (!empty($currencies) ? 'BX.Currency.setCurrencies(' . \CUtil::PhpToJSObject($currencies, false, true, true) . ');' : '') . 'BX.Sale.Admin.OrderEditPage.currency = "' . $currencyId . '";
BX.Sale.Admin.OrderEditPage.currencyLang = "' . \CUtil::JSEscape($currencyLang) . '";';
if ($formId == "sale_order_create") {
$result .= '
BX.Sale.Admin.OrderEditPage.registerFieldsUpdaters(BX.Sale.Admin.OrderPayment.prototype.getCreateOrderFieldsUpdaters());';
}
foreach ($langPhrases as $phrase) {
$result .= ' BX.message({' . $phrase . ': "' . \CUtil::JSEscape(Loc::getMessage($phrase)) . '"});';
}
$result .= '});
</script>
';
return $result;
}
开发者ID:webgksupport,项目名称:alpina,代码行数:41,代码来源:orderedit.php
示例13: foreach
print "<hr /><pre>";
foreach ($args as $arg) {
print_r($arg);
}
print "</pre>";
}
}
if ($_GET["date_from"] || $_GET["date_to"]) {
$date_from = $_GET["date_from"];
$date_to = $_GET["date_to"];
} else {
$date_from = date('d.m.Y', time() - 3600 * 24 * 10);
$date_to = date('d.m.Y', time());
}
$APPLICATION->ShowHead();
CJSCore::Init("jquery");
$APPLICATION->ShowPanel();
$APPLICATION->SetTitle("Статистика приглашений детально");
$groupObj = CGroup::GetList();
$groups = array();
while ($group = $groupObj->Fetch()) {
if ($group["ID"] == 8 || $group["ID"] == 9) {
//Усилители / Сотрудники
$groups[$group["ID"]] = $group["NAME"];
}
}
$arFilter = array("DATE_REGISTER_1" => $date_from, "DATE_REGISTER_2" => $date_to);
$usersObj = CUser::GetList($sort = "id", $direct = "asc", $arFilter, array("SELECT" => array("UF_*"), "FIELDS" => array("*")));
$counter = array();
while ($user = $usersObj->Fetch()) {
if ($user["UF_USER_PARENT"]) {
开发者ID:dayAlone,项目名称:MyQube,代码行数:31,代码来源:stats_detail.php
示例14: array
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
$APPLICATION->SetAdditionalCSS("/bitrix/components/bitrix/voximplant.main/templates/.default/telephony.css");
CJSCore::RegisterExt('voximplant_config_rent', array('js' => '/bitrix/components/bitrix/voximplant.config.rent/templates/.default/template.js', 'lang' => '/bitrix/components/bitrix/voximplant.config.rent/templates/.default/lang/' . LANGUAGE_ID . '/template.php'));
CJSCore::Init(array('voximplant_config_rent'));
if (empty($arResult['LIST_RENT_NUMBERS'])) {
?>
<div class="tel-set-text-block">
<?php
echo GetMessage('VI_CONFIG_RENT_ADD_DESC_2');
?>
<div class="tel-set-text-block-price-include">
<?php
echo GetMessage('VI_CONFIG_RENT_INCLUDE_2');
?>
</div>
</div>
<div class="tel-set-inp-add-new" style="padding-left: 6px">
<a class="webform-button webform-button-create" href="#rent" id="vi_rent_options"><span class="webform-button-left"></span><span class="webform-button-text"><?php
echo GetMessage('VI_CONFIG_RENT_FIRST');
?>
</span><span class="webform-button-right"></span></a>
</div>
<?php
} else {
?>
<div class="tel-set-text-block" id="phone-confing-title"><strong><?php
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:template.php
示例15: ShowError
<?php
if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) {
die;
}
if (!CModule::IncludeModule('mobileapp')) {
ShowError(GetMessage('MOBILEAPP_NOT_INSTALLED'));
return;
}
$menuBuildParams = array('MENU_FILE' => $arParams['MENU_FILE_PATH'], 'EVENT_NAME' => $arParams['BUILD_MENU_EVENT_NAME'], 'MOBILE_APP_INDEX_PAGE' => MOBILE_APP_ADMIN_PATH);
$arResult['MENU'] = CAdminMobileMenu::buildMenu($menuBuildParams);
if (!is_array($arResult['MENU']) || empty($arResult['MENU'])) {
return;
}
$arResult['MENU_TITLE'] = $arParams['MENU_TITLE'];
if (isset($arParams['SYNC_REQUEST_PATH'])) {
$arResult['LOGOUT_REQUEST_URL'] = $arParams['SYNC_REQUEST_PATH'] . '?mobile_action=logout';
} else {
$arResult['SYNC_REQUEST_PATH'] = false;
}
CModule::IncludeModule('pull');
CJSCore::Init(array('pull'));
$this->IncludeComponentTemplate();
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:23,代码来源:component.php
示例16: array
BX(prefix+'_'+i+'_0_'+r).style.display = 'none';
if(BX(prefix+'_'+i+'_1_'+r))
{
BX(prefix+'_'+i+'_1_'+r).style.display = 'none';
}
}
}
</script>
<?
if($bShowStats)
{
$tabControl->BeginNextTab();
CJSCore::Init(array('amcharts_serial'));
$dateStart = new Main\Type\Date();
$dateStart->add("-".Engine\YandexDirectLive::MAX_STAT_DAYS_DELTA." days");
$dateFinish = new Main\Type\Date();
$statsData = Adv\YandexStatTable::getBannerStat(
$banner['ID'],
$dateStart,
$dateFinish
);
$gaps = Adv\YandexStatTable::getMissedPeriods($statsData, $dateStart, $dateFinish);
$graphData = array();
开发者ID:nycmic,项目名称:bittest,代码行数:31,代码来源:seo_search_yandex_direct_banner_edit.php
示例17: strpos
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
CJSCore::Init(array('fx', 'ajax', 'dd'));
$APPLICATION->AddHeadScript('/bitrix/js/main/file_upload_agent.js');
$uid = $arParams['CONTROL_ID'];
$controller = "BX('file-selectdialog-" . $uid . "')";
$controlName = $arParams['INPUT_NAME'];
$controlNameFull = $controlName . ($arParams['MULTIPLE'] == 'Y' ? '[]' : '');
$arValue = $arResult['FILES'];
$addClass = strpos($_SERVER['HTTP_USER_AGENT'], 'Mac OS') !== false ? 'file-filemacos' : '';
if (!function_exists('mfi_format_line')) {
function mfi_format_line($arValue, $uid, $controlNameFull)
{
$result = '';
if (is_array($arValue) && sizeof($arValue) > 0) {
ob_start();
foreach ($arValue as $arElement) {
$elementID = intval($arElement['ID']);
?>
<tr class="file-inline-file" id="wd-doc<?php
echo $elementID;
?>
">
<td class="files-name">
<span class="files-text">
<span class="f-wrap"><?php
echo htmlspecialcharsEx($arElement['ORIGINAL_NAME']);
?>
开发者ID:rasuldev,项目名称:torino,代码行数:31,代码来源:template.php
示例18: define
/**
* @global CUser $USER
* @global CMain $APPLICATION
*/
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
require_once $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/prolog.php";
define("HELP_FILE", "settings/site_speed.php");
use Bitrix\Main;
use Bitrix\Main\Localization\Loc;
use Bitrix\Main\Analytics;
Loc::loadMessages(__FILE__);
if (!$USER->CanDoOperation("view_other_settings") || !Analytics\SiteSpeed::isLicenseAccepted()) {
$APPLICATION->AuthForm(Loc::getMessage("ACCESS_DENIED"));
}
CJSCore::Init(array("site_speed", "date"));
$APPLICATION->SetAdditionalCSS("/bitrix/panel/main/site_speed.css");
$APPLICATION->SetTitle(Loc::getMessage("MAIN_SITE_SPEED_TITLE"));
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
?>
<div class="site-speed-page">
<?php
$currentHost = preg_replace("/:(80|443)\$/", "", $_SERVER["HTTP_HOST"]);
$currentHost = htmlspecialcharsbx($currentHost);
$currentHostTitle = htmlspecialcharsbx(\CBXPunycode::ToUnicode($currentHost, $errors));
?>
<div class="site-speed-domains">
<span class="site-speed-domains-label"><?php
echo Loc::getMessage("MAIN_SITE_SPEED_DOMAINS_LABEL");
?>
开发者ID:Satariall,项目名称:izurit,代码行数:30,代码来源:site_speed.php
示例19:
}
if (!empty($arResult['ERROR'])) {
echo $arResult['ERROR'];
return false;
}
if (!empty($arResult['FORM_ERROR'])) {
?>
<font color='red'><?php
echo $arResult['FORM_ERROR'];
?>
</font><br/><br/>
<?php
}
$GLOBALS['APPLICATION']->SetAdditionalCSS('/bitrix/js/report/css/report.css');
$GLOBALS['APPLICATION']->AddHeadScript('/bitrix/js/report/construct.js');
CJSCore::Init(array('date', 'access'));
?>
<!-- Redefinition of some styles -->
<style type="text/css">
#sale-report-construct-buttons-block { padding-top: 18px; }
.reports-filter-quan-item {height: 30px;}
.reports-filter-quan-item .reports-checkbox { margin: 0;}
.reports-filter-block { width: 800px; }
.report-filter-calendar { margin-left: 4px; }
.reports-forming-column { height: 38px; padding-top: 0px; }
.reports-add-col-button-down,
.reports-add-col-button-up,
.reports-checkbox { vertical-align: middle; margin-top: 8px; padding: 0;}
/* grouping */
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:template.php
示例20:
return;
endif;
if($arParams["PWD"] == ""):
ShowError(GetMessage('PR_PWD_ERR_PWD'));
return;
endif;
if($arParams["FILE"] == "" OR !file_exists($_SERVER['DOCUMENT_ROOT'].SITE_DIR.$arParams["FILE"])):
ShowError(GetMessage('PR_PWD_ERR_FILE'));
return;
endif;
if($arParams['AJAX'] == 'Y')
{
CJSCore::Init(array("jquery"));
$APPLICATION->AddHeadScript( '/bitrix/components/pr/pwd/script/pr.pwd.js');
}
$PWD = new prPWD;
$arParams["ID"] = md5($arParams["PWD"].$arParams["FILE"]);
$arParams["PWD"] = md5($arParams["PWD"]);
$arResult = $PWD->getResult($arParams);
echo '<div class="pr_pwd">';
if($arResult['status'] === false)
echo '<div class="error">'.$arResult['result'].'</div>';
$this->IncludeComponentTemplate();
开发者ID:ASDAFF,项目名称:bitrix-pr.pwd,代码行数:31,代码来源:component.php
注:本文中的CJSCore类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论