public static function AddByChannel($channelId, $arParams = array()) { global $DB; if (!is_array($channelId)) { $channelId = array($channelId); } if (strlen($arParams['module_id']) > 0 || strlen($arParams['command']) > 0) { $arData = array('module_id' => $arParams['module_id'], 'command' => $arParams['command'], 'params' => is_array($arParams['params']) ? $arParams['params'] : array()); if (CPullOptions::GetQueueServerStatus()) { $command = array('MESSAGE' => array($arData), 'ERROR' => ''); if (!is_array($channelId) && CPullOptions::GetQueueServerVersion() == 1) { $command['CHANNEL_ID'] = $channelId; } $message = CUtil::PhpToJsObject($command); if (!defined('BX_UTF') || !BX_UTF) { $message = $GLOBALS['APPLICATION']->ConvertCharset($message, SITE_CHARSET, 'utf-8'); } $res = CPullChannel::Send($channelId, str_replace("\n", " ", $message)); $result = $res ? true : false; } else { foreach ($channelId as $channel) { $arParams = array('CHANNEL_ID' => $channel, 'MESSAGE' => str_replace("\n", " ", serialize($arData)), '~DATE_CREATE' => $DB->CurrentTimeFunction()); $res = IntVal($DB->Add("b_pull_stack", $arParams, array("MESSAGE"))); $result = $res ? true : false; } } if (isset($arParams['push_text']) && strlen($arParams['push_text']) > 0 && isset($arParams['push_user']) && intval($arParams['push_user']) > 0) { $CPushManager = new CPushManager(); $CPushManager->AddQueue(array('USER_ID' => $arParams['push_user'], 'MESSAGE' => str_replace("\n", " ", $arParams['push_text']), 'PARAMS' => $arParams['push_params'], 'BADGE' => isset($arParams['push_badge']) ? intval($arParams['push_badge']) : '', 'TAG' => isset($arParams['push_tag']) ? $arParams['push_tag'] : '', 'SUB_TAG' => isset($arParams['push_sub_tag']) ? $arParams['push_sub_tag'] : '', 'APP_ID' => isset($arParams['push_app_id']) ? $arParams['push_app_id'] : '')); } return $result; } return false; }
public static function AddByChannel($channelId, $arParams = array()) { global $DB; if (!is_array($channelId)) { $channelId = array($channelId); } $result = false; if (strlen($arParams['module_id']) > 0 || strlen($arParams['command']) > 0) { $arData = array('module_id' => $arParams['module_id'], 'command' => $arParams['command'], 'params' => is_array($arParams['params']) ? $arParams['params'] : array()); if (CPullOptions::GetQueueServerStatus()) { $command = array('SERVER_TIME_WEB' => time(), 'SERVER_NAME' => COption::GetOptionString('main', 'server_name', $_SERVER['SERVER_NAME']), 'MESSAGE' => array($arData), 'ERROR' => ''); if (!is_array($channelId) && CPullOptions::GetQueueServerVersion() == 1) { $command['CHANNEL_ID'] = $channelId; } $message = CUtil::PhpToJsObject($command); if (!defined('BX_UTF') || !BX_UTF) { $message = $GLOBALS['APPLICATION']->ConvertCharset($message, SITE_CHARSET, 'utf-8'); } $options = isset($arParams['expiry']) ? array('expiry' => intval($arParams['expiry'])) : array(); $res = CPullChannel::Send($channelId, str_replace("\n", " ", $message), $options); $result = $res ? true : false; } else { foreach ($channelId as $channel) { $arParams = array('CHANNEL_ID' => $channel, 'MESSAGE' => str_replace("\n", " ", serialize($arData)), '~DATE_CREATE' => $DB->CurrentTimeFunction()); $res = IntVal($DB->Add("b_pull_stack", $arParams, array("MESSAGE"))); $result = $res ? true : false; } } return $result; } return false; }
function __GetSubmenu($menu) { global $aUserOpt, $bSkipRecent; $aPopup = array(); if (is_array($menu)) { foreach($menu as $item) { if(!is_array($item)) continue; $aItem = array( "TEXT"=>$item["text"], "TITLE"=>($aUserOpt['start_menu_title'] <> 'N'? $item["title"] : ''), "ICON"=>$item["icon"], ); if($item["url"] <> "") { $link = htmlspecialcharsback($item["url"]); if(strpos($link, "/bitrix/admin/") !== 0) $link = "/bitrix/admin/".$link; if ($_REQUEST['back_url_pub']) $link .= (strpos($link, '?') > 0 ? '&' : '?')."back_url_pub=".urlencode($_REQUEST["back_url_pub"]); $aItem['LINK'] = $link; if (!$bSkipRecent) $aItem['ONCLICK'] = 'BX.admin.startMenuRecent('.CUtil::PhpToJsObject($aItem).')'; } if(is_array($item["items"]) && count($item["items"])>0) { $aItem["MENU"] = __GetSubmenu($item["items"]); if($item["url"] <> "" && $aUserOpt['start_menu_title'] <> 'N') $aItem["TITLE"] .= ' '.GetMessage("get_start_menu_dbl"); } elseif($item["dynamic"] == true) { $aItem["MENU_URL"] = '/bitrix/admin/get_start_menu.php?mode=dynamic&lang='.LANGUAGE_ID.'&admin_mnu_module_id='.urlencode($item['module_id']).'&admin_mnu_menu_id='.urlencode($item['items_id']).($bSkipRecent?'&skip_recent=Y':'').($_REQUEST["back_url_pub"]<>''? '&back_url_pub='.urlencode($_REQUEST["back_url_pub"]):'').'&'.bitrix_sessid_get(); $aItem['MENU_PRELOAD'] = false; if($item["url"] <> "" && $aUserOpt['start_menu_title'] <> 'N') $aItem["TITLE"] .= ' '.GetMessage("get_start_menu_dbl"); } $aPopup[] = $aItem; } } return $aPopup; }
public static function AddByChannel($channelId, $arParams = Array()) { global $DB; if (strlen($arParams['module_id']) > 0 || strlen($arParams['command']) > 0) { $arData = Array( 'module_id' => $arParams['module_id'], 'command' => $arParams['command'], 'params' => is_array($arParams['params'])? $arParams['params']: Array(), ); if (CPullOptions::GetNginxStatus()) { $message = CUtil::PhpToJsObject(Array('CHANNEL_ID' => $channelId, 'MESSAGE' => Array($arData), 'ERROR' => '')); if (!defined('BX_UTF') || !BX_UTF) $message = $GLOBALS['APPLICATION']->ConvertCharset($message, SITE_CHARSET,'utf-8'); $result = CPullChannel::Send($channelId, str_replace("\n", " ", $message)); } else { $arParams = Array( 'CHANNEL_ID' => $channelId, 'MESSAGE' => str_replace("\n", " ", serialize($arData)), '~DATE_CREATE' => $DB->CurrentTimeFunction(), ); $id = IntVal($DB->Add("b_pull_stack", $arParams, Array("MESSAGE"))); $result = $id? '{"channel": "'.$channelId.'", "id": "'.$id.'"}': false; } if (isset($arParams['push_text']) && strlen($arParams['push_text'])>0 && isset($arParams['push_user']) && intval($arParams['push_user'])>0) { $CPushManager = new CPushManager(); $CPushManager->AddQueue(Array( 'USER_ID' => $arParams['push_user'], 'MESSAGE' => str_replace("\n", " ", $arParams['push_text']), 'PARAMS' => $arParams['push_params'], 'BADGE' => isset($arParams['push_badge'])? intval($arParams['push_badge']): '', 'TAG' => isset($arParams['push_tag'])? $arParams['push_tag']: '', 'SUB_TAG' => isset($arParams['push_sub_tag'])? $arParams['push_sub_tag']: '', 'APP_ID' => isset($arParams['push_app_id'])? $arParams['push_app_id']: '', )); } return $result; } return false; }
public static function Add($userId) { global $DB, $APPLICATION; $channelId = md5(uniqid() . $_SERVER["REMOTE_ADDR"] . $_SERVER["SERVER_NAME"] . (is_object($APPLICATION) ? $APPLICATION->GetServerUniqID() : '')); $arParams = array('USER_ID' => intval($userId), 'CHANNEL_ID' => $channelId, 'LAST_ID' => 0, '~DATE_CREATE' => $DB->CurrentTimeFunction()); $result = IntVal($DB->Add("b_pull_channel", $arParams, array())); if (CPullOptions::GetNginxStatus()) { $result = false; $arData = array('module_id' => 'pull', 'command' => 'open', 'params' => array()); $CHTTP = new CHTTP(); $CHTTP->http_timeout = 10; if ($CHTTP->HTTPQuery('POST', CPullOptions::GetPublishUrl($channelId), CUtil::PhpToJsObject(array('MESSAGE' => array($arData), 'ERROR' => '')))) { $result = $CHTTP->result; } } return $result ? $channelId : false; }
public static function AddByChannel($channelId, $arMessage) { global $DB; if (strlen($arMessage['module_id']) <= 0 || strlen($arMessage['command']) <= 0) { return false; } $arData = array('module_id' => $arMessage['module_id'], 'command' => $arMessage['command'], 'params' => is_array($arMessage['params']) ? $arMessage['params'] : array()); if (CPullOptions::GetNginxStatus()) { $CHTTP = new CHTTP(); $CHTTP->http_timeout = 10; if ($CHTTP->HTTPQuery('POST', CPullOptions::GetPublishUrl($channelId), str_replace("\n", " ", CUtil::PhpToJsObject(array('CHANNEL_ID' => $channelId, 'MESSAGE' => array($arData), 'ERROR' => ''))))) { $result = $CHTTP->result; } } else { $arParams = array('CHANNEL_ID' => $channelId, 'MESSAGE' => str_replace("\n", " ", serialize($arData)), '~DATE_CREATE' => $DB->CurrentTimeFunction()); $id = IntVal($DB->Add("b_pull_stack", $arParams, array("MESSAGE"))); $result = $id ? '{"channel": "' . $channelId . '", "id": "' . $id . '"}' : false; } if (isset($arMessage['push_text']) && strlen($arMessage['push_text']) > 0 && isset($arMessage['push_user']) && intval($arMessage['push_user']) > 0) { $CPushManager = new CPushManager(); $CPushManager->AddQueue(array('USER_ID' => $arMessage['push_user'], 'MESSAGE' => str_replace("\n", " ", $arMessage['push_text']), 'PARAMS' => $arMessage['push_params'], 'TAG' => isset($arMessage['push_tag']) ? $arMessage['push_tag'] : '')); } return $result; }
oEngine.loggedInUserId = <?php echo (int) $loggedInUserId; ?> ; oEngine.formattedGroupsNames = {}; // cache of groups names oEngine.formattedUserNames = {}; // cache of user names oEngine.formattedUserNames['u' + <?php echo (int) $loggedInUserId; ?> ] = '<?php echo CUtil::JSEscape($loggedInUserFormattedName); ?> '; oEngine.manifest = <?php echo CUtil::PhpToJsObject(CTaskFilterCtrl::getManifest()); ?> ; oEngine.objForm = BX.Tasks.lwPopup.registerForm({ callbacks: { onAfterPopupCreated : function(){}, onBeforePopupShow : function(){}, onAfterPopupShow : function(){}, onAfterEditorInited : function(){}, onPopupClose : (function(objEngine){ return function(){ if (objEngine.renderer.bFormShowed) objEngine.renderer.bFormShowed = false; } })(oEngine)
><span class="tm-dashboard-bell"></span><span class="tm-dashboard-text" data-role="event_time"><?php echo $arResult['START_INFO']['PLANNER']['EVENT_TIME']; ?> </span></span><span class="tm-dashboard-clock"></span><span class="tm-dashboard-text"><span data-role="clock"></span><span class="tm-dashboard-subtext" data-role="state"></span></span><span data-role="tasks"<?php echo $arResult['START_INFO']['PLANNER']['TASKS_COUNT'] <= 0 ? ' style="display: none;"' : ''; ?> ><span class="tm-dashboard-flag"></span><span class="tm-dashboard-text" data-role="tasks_counter"><?php echo $arResult['START_INFO']['PLANNER']['TASKS_COUNT']; ?> </span></span></span></span> <script type="text/javascript"> new JCTimeManTpl('bx_tm'); BX.timeman('bx_tm', <?php echo CUtil::PhpToJsObject($arResult['START_INFO']); ?> , '<?php echo SITE_ID; ?> '); BX.ready(function(){BXTIMEMAN.ShowFormWeekly(<?php echo CUtil::PhpToJsObject($arResult['WORK_REPORT']); ?> );}); </script> <?php if ($arResult['TASKS_ENABLED']) { $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")); } ?>
} /**************************************************************************/ break; } if (!$res) { if ($ex = $APPLICATION->GetException()) { $error = "{error: '" . CUtil::JSEscape($ex->GetString()) . "', error_id:'" . CUtil::JSEscape($ex->GetId()) . "'}"; } } $APPLICATION->RestartBuffer(); if ($error) { echo $error; } elseif ($bReturnRes) { echo CUtil::PhpToJsObject($res); } else { $info = CTimeMan::GetRuntimeInfo(true); $info['PLANNER'] = $info['PLANNER']['DATA']; $arReport = $obUser->SetReport('', 0, $info['ID']); if (is_array($arReport)) { $info['REPORT'] = $arReport['REPORT']; $info['REPORT_TS'] = MakeTimeStamp($arReport['TIMESTAMP_X']); } echo CUtil::PhpToJsObject($info); } } } } } else { echo GetMessage('main_include_decode_pass_sess'); } //require($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/include/epilog_after.php");
return; } var arObjects = {PLACEMARKS:[],POLYLINES:[]}; <? if (is_array($arResult['POSITION']['PLACEMARKS']) && ($cnt = count($arResult['POSITION']['PLACEMARKS']))): for($i = 0; $i < $cnt; $i++): ?> arObjects.PLACEMARKS[arObjects.PLACEMARKS.length] = FX_YMapAddPlacemark(map, <?echo CUtil::PhpToJsObject($arResult['POSITION']['PLACEMARKS'][$i])?>); <? endfor; endif; if (is_array($arResult['POSITION']['POLYLINES']) && ($cnt = count($arResult['POSITION']['POLYLINES']))): for($i = 0; $i < $cnt; $i++): ?> arObjects.POLYLINES[arObjects.POLYLINES.length] = FX_YMapAddPolyline(map, <?echo CUtil::PhpToJsObject($arResult['POSITION']['POLYLINES'][$i])?>); <? endfor; endif; if ($arParams['ONMAPREADY']): ?> if (window.<?echo $arParams['ONMAPREADY']?>) { window.<?echo $arParams['ONMAPREADY']?>(map, arObjects); } <? endif; ?> } </script>
function Show() { if(empty($this->items)) return null; $chainScripts = ''; ?> <div class="adm-navchain"<?php echo ($this->id ? ' id="' . $this->id . '"' : '') . ($this->bVisible == false ? ' style="display:none;"' : ''); ?> > <? $last_item = null; $cnt = count($this->items)-1; foreach($this->items as $n => $item) { $openerUrl = '/freetrix/admin/get_start_menu.php?skip_recent=Y&lang='.LANGUAGE_ID.($item['ID'] ? '&mode=chain&admin_mnu_menu_id='.urlencode($item['ID']) : ''); $className = !empty($item['CLASS'])?' '.htmlspecialcharsbx($item['CLASS']):''; if (!empty($item['LINK'])) { echo '<a class="adm-navchain-item" href="'.$item["LINK"].'"'.(!empty($item["ONCLICK"])? ' onclick="'.$item["ONCLICK"].'"':'').'><span class="adm-navchain-item-text'.$className.'">'.$item["TEXT"].'</span></a>'; } elseif (!empty($item['ID'])) { echo '<a href="javascript:void(0)" class="adm-navchain-item" id="bx_admin_chain_item_'.$item['ID'].'"><span class="adm-navchain-item-text'.$className.'">'.$item["TEXT"].'</span></a>'; $chainScripts .= 'new BX.COpener('.CUtil::PhpToJsObject(array( 'DIV' => 'bx_admin_chain_item_'.$item['ID'], 'ACTIVE_CLASS' => 'adm-navchain-item-active', 'MENU_URL' => $openerUrl )).');'; } else { echo '<span class="adm-navchain-item adm-navchain-item-empty'.$className.'"><span class="adm-navchain-item-text">'.$item["TEXT"].'</span></span>'; } if ($n < $cnt) { if($item['ID'] || ($n==0 && $this->id == 'main_navchain')) { echo '<span class="adm-navchain-item" id="bx_admin_chain_delimiter_'.$item['ID'].'"><span class="adm-navchain-delimiter"></span></span>'; $chainScripts .= 'new BX.COpener('.CUtil::PhpToJsObject(array( 'DIV' => 'bx_admin_chain_delimiter_'.$item['ID'], 'ACTIVE_CLASS' => 'adm-navchain-item-active', 'MENU_URL' => $openerUrl )).');'; } else { echo '<span class="adm-navchain-delimiter"></span>'; } } $last_item = $item; } ?> </div> <? if ($chainScripts != '') { ?> <script type="text/javascript"><?php echo $chainScripts; ?> </script> <? } return $last_item; }
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) { die; } /******************************************************************** Input params ********************************************************************/ /************** URL ************************************************/ $URL_NAME_DEFAULT = array("USER" => "/company/personal/user/#USER_ID#/"); foreach ($URL_NAME_DEFAULT as $URL => $URL_VALUE) { $arParams["~PATH_TO_" . $URL] = !!$arParams["~PATH_TO_" . $URL] ? $arParams["PATH_TO_" . $URL] : $URL_VALUE; $arParams["PATH_TO_" . $URL] = htmlspecialcharsbx($arParams["~PATH_TO_" . $URL]); } /************** ADDITIONAL *****************************************/ $arParams["NAME_TEMPLATE"] = !empty($arParams["NAME_TEMPLATE"]) ? $arParams["NAME_TEMPLATE"] : CSite::GetNameFormat(); /******************************************************************** /Input params ********************************************************************/ if ($_REQUEST["VOTE_ID"] == $arParams["VOTE_ID"] && $_REQUEST["AJAX_RESULT"] == "Y" && check_bitrix_sessid()) { $res = array("LAST_VOTE" => $arResult["LAST_VOTE"], "QUESTIONS" => array()); foreach ($arResult["QUESTIONS"] as $arQuestion) { $res["QUESTIONS"][$arQuestion["ID"]] = array(); foreach ($arQuestion["ANSWERS"] as $arAnswer) { $res["QUESTIONS"][$arQuestion["ID"]][$arAnswer["ID"]] = array("USERS" => $arAnswer["USERS"], "COUNTER" => $arAnswer["COUNTER"], "PERCENT" => $arAnswer["PERCENT"], "BAR_PERCENT" => $arAnswer["BAR_PERCENT"]); } } while (@ob_end_clean()) { } Header('Content-Type: application/x-javascript; charset=' . LANG_CHARSET); echo CUtil::PhpToJsObject($res); die; }
$result["PACKS_COUNT"] = $calcResult->getPacksCount(); } if ($calcResult->isSuccess() && CModule::IncludeModule('currency')) { $result["VALUE_FORMATTED"] = CurrencyFormat($calcResult->getPrice(), $arParams["CURRENCY"]); } elseif ($calcResult->isNextStep() && strlen($calcResult->getTmpData()) > 0) { $result["TEMP"] = CUtil::JSEscape($calcResult->getTmpData()); } $arResult["RESULT"] = $result; } else { $arParams["STEP"] = 0; $arResult["B_ADMIN"] = defined("ADMIN_SECTION") && ADMIN_SECTION === true ? "Y" : "N"; if ($arResult["B_ADMIN"] != "Y") { $folderPath = ""; IncludeAJAX(); if ($this->InitComponentTemplate()) { $template = $this->GetTemplate(); if ($template) { $folderPath = $template->GetFolder(); } } if (strlen($folderPath) <= 0) { $folderPath = $this->GetPath() . '/templates/' . (strlen($componentTemplate) > 0 ? $componentTemplate : '.default'); } $APPLICATION->AddHeadScript($folderPath . '/proceed.js'); } elseif ($arParams["STEP"] == 0) { $arResult["PATH"] = $this->GetPath() . '/templates/' . (strlen($componentTemplate) > 0 ? $componentTemplate : '.default') . '/'; } } $arTmpParams = array("STEP" => intval($arParams["STEP"]) + 1, "DELIVERY_ID" => $arParams["DELIVERY_ID"], "DELIVERY" => $arParams["DELIVERY"], "PROFILE" => $arParams["PROFILE"], "WEIGHT" => doubleval($arParams["ORDER_WEIGHT"]), "PRICE" => doubleval($arParams["ORDER_PRICE"]), "LOCATION" => intval($arParams["LOCATION_TO"]), "LOCATION_ZIP" => $arParams['LOCATION_ZIP'], "CURRENCY" => $arParams["CURRENCY"], "INPUT_NAME" => $arParams["INPUT_NAME"], "TEMP" => $arParams["~TEMP"], "ITEMS" => $arParams["ITEMS"], "EXTRA_PARAMS_CALLBACK" => $arParams["EXTRA_PARAMS_CALLBACK"], "ORDER_DATA" => $arParams["ORDER_DATA"]); $arResult["JS_PARAMS"] = CUtil::PhpToJsObject($arTmpParams); $this->IncludeComponentTemplate();
} else { if ($_POST['COMMAND'] == 'cancelTransfer') { $_POST['PARAMS'] = CUtil::JsObjectToPhp($_POST['PARAMS']); CVoxImplantTransfer::Cancel($_POST['PARAMS']['CALL_ID']); } else { if ($_POST['COMMAND'] == 'timeoutTransfer') { $_POST['PARAMS'] = CUtil::JsObjectToPhp($_POST['PARAMS']); CVoxImplantTransfer::Timeout($_POST['PARAMS']['CALL_ID']); } } } } } } } } } } } } } } } } } } } } else { echo CUtil::PhpToJsObject(array('BITRIX_SESSID' => bitrix_sessid(), 'ERROR' => 'SESSION_ERROR')); } }
echo $win_id; ?> '));"> </td> <td width="0%"><a class="close" href="javascript:document.getElementById('<?php echo $win_id; ?> ').__object.CloseDialog();" title="<?php echo GetMessage("CT_BMTS_WINDOW_CLOSE"); ?> "></a></td> </tr> </table> </div> <script> var current_selected = <?php echo CUtil::PhpToJsObject(array_values($arValues)); ?> ; </script> <div class="content" id="_f_popup_content" style="height: 400px; overflow-x: hidden; oveflow-y: auto; padding: 0px;"><input id="bx_emp_search_control" type="text" style="width: 99.99%" value="" autocomplete="off" /> <script> document.getElementById('<?php echo $win_id; ?> ').__object.InitControl('bx_emp_search_control'); </script> <div class="mts-section-list" id="mts_search_layout"> <?php function EmployeeDrawStructure($arStructure, $arSections, $key, $win_id)
function __GetEditAreas() { $res = '<script type="text/javascript">'; $res_ready = ''; foreach ($this->arEditAreas as $areaId => $arIcons) { $arJSIcons = array(); foreach ($arIcons as $arIcon) { $arJSIcons[] = CEditArea::GetJSIcon($arIcon); } $arJSParams = array('parent' => $areaId, 'menu' => $arJSIcons); $res_ready .= '(new BX.CMenuOpener(' . CUtil::PhpToJsObject($arJSParams) . ')).Show();' . "\r\n"; $res_ready .= 'BX.admin.setComponentBorder(\'' . CUtil::JSEscape($areaId) . '\');' . "\r\n"; } $res .= 'if(window.BX)BX.ready(function(){' . $res_ready . '});'; $res .= '</script>'; echo $res; }
function fGetFormatedProduct($USER_ID, $LID, $arData, $currency, $type = '') { global $crmMode; $result = ""; $arSet = array(); if (!is_array($arData["ITEMS"]) || count($arData["ITEMS"]) <= 0) return $result; $result = "<table width=\"100%\">"; if (CModule::IncludeModule('catalog') && CModule::IncludeModule('iblock')) { $arProductId = array(); $arDataTab = array(); $arSkuParentChildren = array(); $arSkuParentId = array(); $arSkuParent = array(); foreach ($arData["ITEMS"] as $item) { if (!empty($item["CURRENCY"]) && $item["CURRENCY"] != $currency) { if (floatval($item["PRICE"]) > 0) $item["PRICE"] = CCurrencyRates::ConvertCurrency($item["PRICE"], $item["CURRENCY"], $currency); if (floatval($item["DISCOUNT_PRICE"]) > 0) $item["DISCOUNT_PRICE"] = CCurrencyRates::ConvertCurrency($item["DISCOUNT_PRICE"], $item["CURRENCY"], $currency); $item["CURRENCY"] = $currency; } /** @var $productProvider IBXSaleProductProvider */ if ($productProvider = CSaleBasket::GetProductProvider($item)) { if (method_exists($productProvider, "GetSetItems")) { $itemInfo = (isset($item['ID']) ? array('BASKET_ID' => $item['ID']) : array()); $arSets = $productProvider::GetSetItems($item["PRODUCT_ID"], CSaleBasket::TYPE_SET, $itemInfo); unset($itemInfo); if (is_array($arSets)) { foreach ($arSets as $arSetData) { foreach ($arSetData["ITEMS"] as $setItem) { $setItem["FUSER_ID"] = $item["FUSER_ID"]; $setItem["LID"] = $item["LID"]; $setItem["MODULE"] = $item["MODULE"]; $setItem["PRODUCT_PROVIDER_CLASS"] = $productProvider; $setItem["SET_PARENT_ID"] = $item["ID"]; $arSet[$item["PRODUCT_ID"]][] = $setItem; } } } } } if ($item["MODULE"] == "catalog") { $arProductId[$item["PRODUCT_ID"]] = $item["PRODUCT_ID"]; $arDataTab[$item["PRODUCT_ID"]] = $item; $arParent = CCatalogSku::GetProductInfo($item["PRODUCT_ID"]); if ($arParent) { $arSkuParentChildren[$item["PRODUCT_ID"]] = $arParent["ID"]; $arSkuParentId[$arParent["ID"]] = $arParent["ID"]; } } } if(!empty($arSkuParentId)) { $res = CIBlockElement::GetList(array(), array("ID" => $arSkuParentId), false, false, array("ID", "IBLOCK_ID", "IBLOCK_SECTION_ID", "PREVIEW_PICTURE", "DETAIL_PICTURE", "NAME", "DETAIL_PAGE_URL")); while ($arItems = $res->GetNext()) $arSkuParent[$arItems["ID"]] = $arItems; } if(!empty($arProductId)) { $dbProduct = CIBlockElement::GetList(array(), array("ID" => $arProductId), false, false, array('ID', 'IBLOCK_ID', 'IBLOCK_SECTION_ID', 'DETAIL_PICTURE', 'PREVIEW_PICTURE', 'IBLOCK_TYPE_ID')); while($arProduct = $dbProduct->Fetch()) { $imgCode = 0; $arImgProduct = false; $arFile = false; $imgUrl = ''; $imgProduct = ''; $arDataTab[$arProduct['ID']]['IBLOCK_ID'] = $arProduct['IBLOCK_ID']; $arDataTab[$arProduct['ID']]['IBLOCK_SECTION_ID'] = $arProduct['IBLOCK_SECTION_ID']; $arDataTab[$arProduct['ID']]['DETAIL_PICTURE'] = $arProduct['DETAIL_PICTURE']; $arDataTab[$arProduct['ID']]['PREVIEW_PICTURE'] = $arProduct['PREVIEW_PICTURE']; $arDataTab[$arProduct['ID']]['IBLOCK_TYPE_ID'] = $arProduct['IBLOCK_TYPE_ID']; $item = $arDataTab[$arProduct['ID']]; if ($item["PREVIEW_PICTURE"] == "" && $item["DETAIL_PICTURE"] == "" && is_set($arSkuParentChildren[$item["PRODUCT_ID"]])) { $idTmp = $arSkuParentChildren[$item["PRODUCT_ID"]]; $item["DETAIL_PICTURE"] = $arSkuParent[$idTmp]["DETAIL_PICTURE"]; $item["PREVIEW_PICTURE"] = $arSkuParent[$idTmp]["PREVIEW_PICTURE"]; } if ($item["DETAIL_PICTURE"] > 0) $imgCode = $item["DETAIL_PICTURE"]; elseif ($item["PREVIEW_PICTURE"] > 0) $imgCode = $item["PREVIEW_PICTURE"]; $arSkuProperty = CSaleProduct::GetProductSkuProps($item["PRODUCT_ID"], $item["IBLOCK_ID"]); $item["NAME"] = htmlspecialcharsex($item["NAME"]); $item["EDIT_PAGE_URL"] = htmlspecialcharsex($item["EDIT_PAGE_URL"]); $item["CURRENCY"] = htmlspecialcharsex($item["CURRENCY"]); if ($imgCode > 0) { $arFile = CFile::GetFileArray($imgCode); $arImgProduct = CFile::ResizeImageGet($arFile, array('width'=>80, 'height'=>80), BX_RESIZE_IMAGE_PROPORTIONAL, false, false); } if (is_array($arImgProduct)) { $imgUrl = $arImgProduct["src"]; $imgProduct = "<a href=\"".$item["EDIT_PAGE_URL"]."\" target=\"_blank\"><img src=\"".$imgUrl."\" alt=\"\" title=\"".$item["NAME"]."\" ></a>"; } else $imgProduct = "<div class='no_foto'>".GetMessage('NO_FOTO')."</div>"; $arCurFormat = CCurrencyLang::GetCurrencyFormat($item["CURRENCY"]); $priceValutaFormat = str_replace("#", '', $arCurFormat["FORMAT_STRING"]); $currentTotalPrice = ($item["PRICE"] + $item["DISCOUNT_PRICE"]); $discountPercent = 0; if ($item["DISCOUNT_PRICE"] > 0) $discountPercent = intval(($item["DISCOUNT_PRICE"] * 100) / $currentTotalPrice); $arProduct = CCatalogProduct::GetByID($item["PRODUCT_ID"]); $balance = floatval($arProduct["QUANTITY"]); $result .= "<tr id='more_".$type."_".$item["ID"]."'> <td class=\"tab_img\" >".$imgProduct."</td> <td class=\"tab_text\"> <div class=\"order_name\"><a href=\"".$item["EDIT_PAGE_URL"]."\" target=\"_blank\" title=\"".$item["NAME"]."\">".$item["NAME"]."</a></div> <div class=\"order_price\"> ".GetMessage('NEWO_SUBTAB_PRICE').": <b>".SaleFormatCurrency($item["PRICE"], $currency)."</b>"; if (!empty($arSet) && array_key_exists($arProduct["ID"], $arSet)) // show/hide set item link { $result .= '<br/> <div> <a id="set_toggle_link_b'.$arProduct["ID"].'" href="javascript:void(0);" class="dashed-link show-set-link" title="'.GetMessage("SOE_SHOW_SET").'" onclick="fToggleSetItems(\'b'.$arProduct["ID"].'\');">'.GetMessage("SOE_SHOW_SET").'</a> </div>'; } $result .= "</div>"; $arResult = CSaleProduct::GetProductSku($USER_ID, $LID, $item["PRODUCT_ID"], $item["NAME"], $currency, $arProduct); if (count($arResult["SKU_ELEMENTS"]) > 0) { foreach ($arResult["SKU_ELEMENTS"] as $key => $val) { $arTmp = array(); foreach ($val as $k => $v) { if (is_numeric($k)) { $arTmp[$arResult["SKU_PROPERTIES"][$k]["NAME"]] = $v; } } $arResult["SKU_ELEMENTS"][$key]["SKU_PROPS"] = CUtil::PhpToJSObject($arTmp); } } $arResult["POPUP_MESSAGE"] = array( "PRODUCT_ADD" => GetMessage('NEWO_POPUP_TO_BASKET'), "PRODUCT_ORDER" => GetMessage('NEWO_POPUP_TO_ORDER'), "PRODUCT_NOT_ADD" => GetMessage('NEWO_POPUP_DONT_CAN_BUY'), "PRODUCT_PRICE_FROM" => GetMessage('NEWO_POPUP_FROM') ); if (count($arResult["SKU_ELEMENTS"]) <= 0) $result .= "<a href=\"javascript:void(0);\" class=\"get_new_order\" onClick=\"fAddToBasketMoreProduct('".$type."', ".$item["PRODUCT_ID"].");return false;\"><span></span>".GetMessage('NEWO_SUBTAB_ADD_BASKET')."</a><br>"; else $result .= "<a href=\"javascript:void(0);\" class=\"get_new_order\" onClick=\"fAddToBasketMoreProductSku(".CUtil::PhpToJsObject($arResult['SKU_ELEMENTS']).", ".CUtil::PhpToJsObject($arResult['SKU_PROPERTIES']).", 'basket', ".CUtil::PhpToJsObject($arResult["POPUP_MESSAGE"]).");\"><span></span>".GetMessage('NEWO_SUBTAB_ADD_BASKET')."</a><br>"; if (!$crmMode) { if (count($arResult["SKU_ELEMENTS"]) > 0) { $result .= "<a href=\"javascript:void(0);\" class=\"get_new_order\" onClick=\"fAddToBasketMoreProductSku(".CUtil::PhpToJsObject($arResult['SKU_ELEMENTS']).", ".CUtil::PhpToJsObject($arResult['SKU_PROPERTIES']).", 'neworder', ".CUtil::PhpToJsObject($arResult["POPUP_MESSAGE"]).");\"><span></span>".GetMessage('NEWO_SUBTAB_ADD_ORDER')."</a>"; } else { $cntProd = (floatval($item["QUANTITY"]) > 0) ? floatval($item["QUANTITY"]) : 1; $url = "/bitrix/admin/sale_order_new.php?lang=".LANGUAGE_ID."&user_id=".$USER_ID."&LID=".$LID."&product[".$item["PRODUCT_ID"]."]=".$cntProd; $result .= "<a href=\"".$url."\" target=\"_blank\" class=\"get_new_order\"><span></span>".GetMessage('NEWO_SUBTAB_ADD_ORDER')."</a>"; } } $result .= "</td></tr>"; // show set items if (!empty($arSet) && array_key_exists($arProduct["ID"], $arSet)) { foreach ($arSet[$arProduct["ID"]] as $set) { $editUrl = CIBlock::GetAdminElementEditLink($set["IBLOCK_ID"], $set["ITEM_ID"], array( "find_section_section" => $set["IBLOCK_SECTION_ID"], 'WF' => 'Y', )); if ($set["PREVIEW_PICTURE"] > 0) $imgCode = $set["PREVIEW_PICTURE"]; elseif ($set["DETAIL_PICTURE"] > 0) $imgCode = $set["DETAIL_PICTURE"]; if ($imgCode > 0) { $arFile = CFile::GetFileArray($imgCode); $arImgProduct = CFile::ResizeImageGet($arFile, array('width'=>80, 'height'=>80), BX_RESIZE_IMAGE_PROPORTIONAL, false, false); if (is_array($arImgProduct)) { $imgUrl = $arImgProduct["src"]; $img = '<a href="'.$editUrl.'" target="_blank"><img src="'.$arImgProduct["src"].'" alt="" title="'.$set["NAME"].'" ></a>'; } } else $img = '<div class="no_foto">'.GetMessage('SOD_NO_FOTO')."</div>"; $result .= ' <tr style="display:none" class="set_item_b'.$arProduct["ID"].'"> <td class="tab_img">'.$img.'</td> <td class="tab_text"> <div class="order_name"> <a href="'.$editUrl.'" style="font-style:italic" target="_blank" title="'.$set["NAME"].'">'.$set["NAME"].'</a> </div> <div class="order_price">'.GetMessage('NEWO_SUBTAB_PRICE').': <b>'.SaleFormatCurrency($set["PRICE"], $currency).'</b></div> </td> </tr>'; } } }//end foreach } }//end if if ($arData["CNT"] > 2 && $arData["CNT"] != count($arData["ITEMS"])) { $result .= "<tr><td colspan='2' align='right' class=\"more_product\">"; if ($type == "basket") $result .= "<a href='javascript:void(0);' onClick='fGetMoreBasket(\"Y\");' class=\"get_more\">".GetMessage('NEWO_SUBTAB_MORE')."<span></span></a>"; elseif ($type == "viewed") $result .= "<a href='javascript:void(0);' onClick='fGetMoreViewed(\"Y\");' class=\"get_more\">".GetMessage('NEWO_SUBTAB_MORE')."<span></span></a>"; else $result .= "<a href='javascript:void(0);' onClick='fGetMoreRecom();' class=\"get_more\">".GetMessage('NEWO_SUBTAB_MORE')."<span></span></a>"; $result .= "</td></tr>"; } $result .= "</table>"; return $result; }
?> ;<?php if ($arParams["SHOW_SETTINGS"] == true) { ?> bxForm_<?php echo $arParams["FORM_ID"]; ?> .oTabsMeta = <?php echo CUtil::PhpToJsObject($arResult["TABS_META"]); ?> ; bxForm_<?php echo $arParams["FORM_ID"]; ?> .oFields = <?php echo CUtil::PhpToJsObject($arResult["AVAILABLE_FIELDS"]); ?> ;<?php } ?> bxForm_<?php echo $arParams["FORM_ID"]; ?> .settingsMenu = [];<?php if ($arParams["SHOW_SETTINGS"] == true) { ?> bxForm_<?php echo $arParams["FORM_ID"]; ?> .settingsMenu.push({'TEXT': '<?php echo CUtil::JSEscape(GetMessage("intarface_form_mnu_settings"));
while ($arRes = $obRes->Fetch()) { if (isset($leadIndex[$arRes['ELEMENT_ID']]) && ($arRes['TYPE_ID'] === 'PHONE' || $arRes['TYPE_ID'] === 'EMAIL')) { $item =& $leadIndex[$arRes['ELEMENT_ID']]; if (!is_array($item['advancedInfo'])) { $item['advancedInfo'] = array(); } if (!is_array($item['advancedInfo']['multiFields'])) { $item['advancedInfo']['multiFields'] = array(); } $item['advancedInfo']['multiFields'][] = array('ID' => $arRes['ID'], 'TYPE_ID' => $arRes['TYPE_ID'], 'VALUE_TYPE' => $arRes['VALUE_TYPE'], 'VALUE' => $arRes['VALUE']); unset($item); } } unset($leadIndex); Header('Content-Type: application/x-javascript; charset=' . LANG_CHARSET); echo CUtil::PhpToJsObject($arData); die; } elseif ($action === 'SAVE_PROGRESS') { $ID = isset($_REQUEST['ID']) ? intval($_REQUEST['ID']) : 0; $typeName = isset($_REQUEST['TYPE']) ? $_REQUEST['TYPE'] : ''; $statusID = isset($_REQUEST['VALUE']) ? $_REQUEST['VALUE'] : ''; $targetTypeName = CCrmOwnerType::ResolveName(CCrmOwnerType::Lead); if ($statusID === '' || $ID <= 0 || $typeName !== $targetTypeName) { $APPLICATION->RestartBuffer(); echo CUtil::PhpToJSObject(array('ERROR' => 'Invalid data!')); die; } $entityAttrs = $userPerms->GetEntityAttr($targetTypeName, array($ID)); if (!$userPerms->CheckEnityAccess($targetTypeName, 'WRITE', $entityAttrs[$ID])) { $APPLICATION->RestartBuffer(); echo CUtil::PhpToJSObject(array('ERROR' => 'Access denied!'));
define("STOP_STATISTICS", true); require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php"; require_once "functions.php"; CModule::IncludeModule('socialnetwork'); if (!$USER->IsAuthorized()) { die; } $SITE_ID = isset($_GET["SITE_ID"]) ? $_GET["SITE_ID"] : SITE_ID; if ($_REQUEST["mode"] == "search") { CUtil::decodeURIComponent($_GET); $APPLICATION->RestartBuffer(); CSocNetTools::InitGlobalExtranetArrays($SITE_ID); $arFilter = array("SITE_ID" => $SITE_ID, "%NAME" => $_GET["query"]); if (!CSocNetUser::IsCurrentUserModuleAdmin($SITE_ID)) { $arFilter["CHECK_PERMISSIONS"] = $USER->GetID(); } $rsGroups = CSocNetGroup::GetList(array("NAME" => "ASC"), $arFilter); $arGroups = array(); while ($arGroup = $rsGroups->Fetch()) { if (isset($GLOBALS["arExtranetGroupID"]) && is_array($GLOBALS["arExtranetGroupID"]) && in_array($arGroup["ID"], $GLOBALS["arExtranetGroupID"])) { $arGroup["IS_EXTRANET"] = "Y"; } $arGroups[] = group2JSItem($arGroup); } if (isset($_REQUEST["features_perms"]) && sizeof($_REQUEST["features_perms"]) == 2) { filterByFeaturePerms($arGroups, $_REQUEST["features_perms"]); } Header('Content-Type: application/x-javascript; charset=' . LANG_CHARSET); echo CUtil::PhpToJsObject($arGroups); die; }
public static function OnEpilog() { if (!defined('BX_PULL_SKIP_INIT') && !(isset($_REQUEST['AJAX_CALL']) && $_REQUEST['AJAX_CALL'] == 'Y') && $GLOBALS['USER'] && intval($GLOBALS['USER']->GetID()) > 0 && CModule::IncludeModule('pull')) { define("BX_PULL_SKIP_INIT", true); if (CPullOptions::CheckNeedRun()) { CJSCore::Init(array('pull')); $pullConfig = CPullChannel::GetConfig($GLOBALS['USER']->GetID()); global $APPLICATION; $APPLICATION->AddAdditionalJS('<script type="text/javascript">BX.bind(window, "load", function() { BX.PULL.start(' . (empty($pullConfig) ? '' : CUtil::PhpToJsObject($pullConfig)) . '); });</script>'); /* if(!defined("BX_DESKTOP") && !defined("BX_MOBILE") && !defined("ADMIN_SECTION") && !IsModuleInstalled('b24network') && IsModuleInstalled('bitrix24') && (COption::GetOptionString('bitrix24', 'network', 'N') == 'Y')) { CJSCore::Init(array('npull')); $APPLICATION->AddAdditionalJS('<script type="text/javascript">BX.bind(window, "load", function() { BX.NPULL.start(); });</script>'); } */ } } }
} if ($arRes = $dbRes->Fetch()) { $arResult[] = array('ID' => $arRes['ID'], 'NAME' => str_replace($arBanSym, $arRepSym, $arRes['NAME']), 'READY' => 'Y'); Header('Content-Type: application/x-javascript; charset=' . LANG_CHARSET); echo CUtil::PhpToJsObject($arResult); die; } } elseif (strlen($matches[1]) > 0) { $search = $matches[1]; } } if ($bSection) { $dbRes = CIBlockSection::GetList(array(), array("IBLOCK_ID" => $arIBlock["ID"], "%NAME" => $search, "CHECK_PERMISSIONS" => "Y", "MIN_PERMISSION" => "R"), false, array("ID", "NAME")); $i = 0; while ($arRes = $dbRes->Fetch()) { $arResult[] = array('ID' => $arRes['ID'], 'NAME' => str_replace($arBanSym, $arRepSym, $arRes['NAME'])); $i++; if (20 < $i) { break; } } } else { $dbRes = CIBlockElement::GetList(array(), array("IBLOCK_ID" => $arIBlock["ID"], "%NAME" => $search, "CHECK_PERMISSIONS" => "Y", "MIN_PERMISSION" => "R"), false, array("nTopCount" => 20), array("ID", "NAME")); while ($arRes = $dbRes->Fetch()) { $arResult[] = array('ID' => $arRes['ID'], 'NAME' => str_replace($arBanSym, $arRepSym, $arRes['NAME'])); } } Header('Content-Type: application/x-javascript; charset=' . LANG_CHARSET); echo CUtil::PhpToJsObject($arResult); die; }
if (0 >= $arProperty['MULTIPLE_CNT']) { $arProperty['MULTIPLE_CNT'] = DEF_LIST_VALUE_COUNT; } $arProperty['WITH_DESCRIPTION'] = 'Y' == $arProperty['WITH_DESCRIPTION'] ? 'Y' : 'N'; if (!empty($arListValues)) { $arProperty["VALUES"] = $arListValues; } $arHidden = array(); foreach ($arHiddenPropFields as &$strPropField) { if (isset($arProperty[$strPropField])) { $arHidden[$strPropField] = $arProperty[$strPropField]; unset($arProperty[$strPropField]); } } $arProperty['PROPINFO'] = base64_encode(serialize($arHidden)); $strResult = CUtil::PhpToJsObject($arProperty); ?> <script type="text/javascript"> arResult = <?php echo $strResult; ?> ; if (top.<?php echo $strReceiver; ?> ) { top.<?php echo $strReceiver; ?> .SetPropInfo('<?php
", START_DEPARTMENT:"<?php echo $arResult["DEPARTMENT_ID"]; ?> ", DATESELECTOR: 'bx_tm_report_dateselector', MONTHS: [<?php for ($i = 1; $i < 13; $i++) { echo $i == 1 ? '' : ',', "'", CUtil::JSEscape(GetMessage('TMR_MONTH_' . $i)), "'"; } ?> ], DAYS: [<?php for ($i = 1; $i < 8; $i++) { echo $i == 1 ? '' : ',', "'", CUtil::JSEscape(GetMessage('TMR_DAY_' . $i)), "'"; } ?> ], LANG: <?php echo CUtil::PhpToJsObject($arMess); ?> , SITE_ID: '<?php echo SITE_ID; ?> ' })</script> <div style="clear: both;"></div>
$listData[$list['ID']]['NAME'] = $list['NAME']; } else { $listData[$list['ID']]['NAME'] = $shortName . '...'; } $listData[$list['ID']]['DESCRIPTION'] = $list['DESCRIPTION']; $listData[$list['ID']]['CODE'] = $list['CODE']; if ($list['PICTURE'] > 0) { $imageFile = CFile::GetFileArray($list['PICTURE']); if ($imageFile !== false) { $listData[$list['ID']]['PICTURE'] = '<img src="' . $imageFile["SRC"] . '" width="36" height="30" border="0" />'; $listData[$list['ID']]['PICTURE_SMALL'] = '<img src="' . $imageFile["SRC"] . '" width="19" height="16" border="0" />'; } } else { $listData[$list['ID']]['PICTURE'] = "<img src=\"/bitrix/images/lists/default.png\" width=\"36\" height=\"30\" border=\"0\" />"; $listData[$list['ID']]['PICTURE_SMALL'] = "<img src=\"/bitrix/images/lists/default.png\" width=\"19\" height=\"16\" border=\"0\" />"; } } } $listData = array_values($listData); echo CUtil::PhpToJsObject(array('success' => true, 'lists' => $listData, 'permissions' => $permissions, 'admin' => $admin)); } else { echo CUtil::PhpToJsObject(array('success' => false, 'error' => 'Lists module not installed!')); } } else { echo CUtil::PhpToJsObject(array('ERROR' => 'UNKNOWN_ERROR')); } } } else { echo CUtil::PhpToJsObject(array('ERROR' => 'SESSION_ERROR')); } require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_after.php";
if (!isset($prop['JS_FILE']) || !isset($prop['JS_EVENT'])) { break; } $data = isset($prop['JS_DATA']) ? $prop['JS_DATA'] : ''; $res .= '<input id="__FD_PARAM_' . $ID . '" name="' . $ID . '" value="' . htmlspecialcharsbx($val) . '" type="hidden">'; $res .= '<script type="text/javascript" src="' . $prop['JS_FILE'] . '?v=' . @filemtime($_SERVER['DOCUMENT_ROOT'] . $prop['JS_FILE']) . '"></script>'; $res .= ' <script> setTimeout( function(){ var oInput = document.getElementById("__FD_PARAM_' . $ID . '"); if (!oInput) return; var cell = oInput.parentNode; var arProps = { popertyID : "' . $ID . '", propertyParams: ' . CUtil::PhpToJsObject($prop) . ', getElements : window.getCompParamvals, oInput : oInput, oCont : cell, data : \'' . CUtil::JSEscape($data) . '\' }; if (window.' . $prop['JS_EVENT'] . ') window.' . $prop['JS_EVENT'] . '(arProps); }, 50 ); </script>'; } else { $res .= '<input name="' . $ID . '" size=' . $prop["COLS"] . ' value="' . htmlspecialcharsbx($val) . '" type="text">'; } }
} } foreach ($arSections as $key=>$arFields) { $arStats = $checklist->GetSectionStat($key); $arStates["SECTIONS"][] = Array( "ID" => $key, "CHECKED" => $arStats["CHECKED"], "TOTAL" => $arStats["TOTAL"], "PARENT" => $arFields["PARENT"], "CHECK" => $arStats["CHECK"], "FAILED"=> $arStats["FAILED"] ); } $arStates = CUtil::PhpToJsObject($arStates); ///////////////////////////////////////////////////////// //////////////////////END_PREPARE//////////////////////// ///////////////////////////////////////////////////////// ?> <div class="checklist-wrapper"> <div class="checklist-top-info"> <div class="checklist-top-info-right-wrap"> <span class="checklist-top-info-left"> <span class="checklist-top-info-left-item"><?php echo GetMessage("CL_TEST_TOTAL"); ?>
echo CUtil::JSEscape($arParams['~INPUT_NAME']); ?> ', <?php if ($arParams['INPUT_NAME_SUSPICIOUS']) { ?> 'INPUT_NAME_SUSPICIOUS': '<?php echo CUtil::JSEscape($arParams['INPUT_NAME_SUSPICIOUS']); ?> ', <?php } ?> 'PROACTIVE': 'MESSAGE', 'VALUE': <?php echo CUtil::PhpToJsObject($INPUT_VALUE); ?> , 'VISUAL': { 'ID': '<?php echo $textarea_id; ?> ', 'MAX_HEIGHT': <?php echo $arParams['MAX_HEIGHT']; ?> , 'MIN_HEIGHT': <?php echo $arParams['MIN_HEIGHT']; ?> ,
} echo $htmlMenu; ?> </div> <script type="text/javascript"> document.addEventListener("DOMContentLoaded", function() { Menu.init({ currentItem: null, ajaxUrl: "<?php echo $arResult["AJAX_URL"]; ?> ", pushParams: <?php echo CUtil::PhpToJsObject($arPushParams); ?> }); }, false); <?php if ($arResult['LOGOUT_REQUEST_URL']) { ?> Menu.logOut = function() { if(app.enableInVersion(2)) { app.asyncRequest({ url:"<?php echo $arResult['LOGOUT_REQUEST_URL'];
onmouseover="fMouseOver(this);" onmouseout="fMouseOut(this);"> <td class="action"> <? if (!CSaleBasketHelper::isSetItem($val)): $arActions = array(); if (!CSaleBasketHelper::isSetParent($val)) $arActions[] = array("ICON"=>"view", "TEXT"=>GetMessage("SOE_JS_EDIT"), "ACTION"=>"ShowProductEdit(".$val["ID"].");", "DEFAULT"=>true); $arActions[] = array("ICON"=>"delete", "TEXT"=>GetMessage("SOE_JS_DEL_WITHOUT_DISCOUNT"), "ACTION"=>"DeleteProduct(this, ".$val["ID"].", false);fEnableSub();"); $arActions[] = array("ICON"=>"delete", "TEXT"=>GetMessage("SOE_JS_DEL_WITH_DISCOUNT"), "ACTION"=>"DeleteProduct(this, ".$val["ID"].", true);fEnableSub();"); $productNumber++; ?> <div class="adm-list-table-popup" onClick="this.blur();BX.adminList.ShowMenu(this, <?php echo CUtil::PhpToJsObject($arActions); ?> );"></div> <? endif; ?> </td> <? $arShownColumns = array(); foreach ($arUserColumns as $columnCode => $columnName) { // either show column or make it hidden (for ajax manipulations later) if (($columnCode == "COLUMN_NUMBER") || (!array_key_exists("COLUMN_NUMBER", $arUserColumns) && !in_array("COLUMN_NUMBER", $arShownColumns))) {