本文整理汇总了PHP中CUtil::PhpToJsObject方法的典型用法代码示例。如果您正苦于以下问题:PHP CUtil::PhpToJsObject方法的具体用法?PHP CUtil::PhpToJsObject怎么用?PHP CUtil::PhpToJsObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CUtil
的用法示例。
在下文中一共展示了CUtil::PhpToJsObject方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: AddByChannel
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;
}
示例2: AddByChannel
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;
}
示例3: __GetSubmenu
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;
}
示例4: AddByChannel
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;
}
示例5: Add
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;
}
示例6: AddByChannel
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;
}
示例7: echo
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)
示例8: JCTimeManTpl
><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"));
}
?>
示例9: elseif
}
/**************************************************************************/
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");
示例10: FX_YMapAddPlacemark
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>
示例11: Show
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;
}
示例12: array
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;
}
示例13: CurrencyFormat
$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();
示例14: bitrix_sessid
} 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'));
}
}
示例15: GetMessage
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)