Exemplo n.º 1
0
	public function GetFormHtml($arParams,$onclickJs)
	{
		$mailru_id = self::GetOption("mailru_id");
		$mailru_private_key = self::GetOption("mailru_private_key");

		$aRemove = array("logout", "auth_service_error", "auth_service_id");
		$url_err = $GLOBALS['APPLICATION']->GetCurPageParam('auth_service_id='.self::ID.'&auth_service_error=1', $aRemove);
		$url_ok = $GLOBALS['APPLICATION']->GetCurPageParam('', $aRemove);

		$script = '
<script type="text/javascript" src="//cdn.connect.mail.ru/js/loader.js"></script>
<script type="text/javascript">
if(typeof(mailru) != "undefined"){
BX.ready(function(){mailru.loader.require("api", 
	function() 
	{
		mailru.connect.init(\''.CUtil::JSEscape($mailru_id).'\', \''.CUtil::JSEscape($mailru_private_key).'\');
		mailru.events.listen(mailru.connect.events.login, function(sess){mailru.common.users.getInfo(function(res){BxMailRuAuthInfo(sess, res);});});
	}
);});
}

function BxMailRuAuthInfo(sess, response) 
{
	var url_err = \''.CUtil::JSEscape($url_err).'\';
	if(sess && response && response[0]) 
	{
		var url_post = \''.CUtil::JSEscape($arParams["~AUTH_URL"]).'\';
		var url_ok = \''.CUtil::JSEscape($url_ok).'\';
		var data = {
			"auth_service_id": "'.self::ID.'",
			"mailru_user": response[0],
			"mailru_sess": sess
		};
		BX.ajax.post(url_post, data, function(res){window.location = (res == "OK"? url_ok : url_err);});
	} 
	else 
	{
		window.location = url_err;
	}
}
</script>
';
		CUtil::InitJSCore(array("ajax"));
		$GLOBALS['APPLICATION']->AddHeadString($script, true);
		if($onclickJs) {
			$s = 'mailru.connect.login();';
		} else {
			if($arParams['NO_TEXT'] == 'Y'){
				$s = '<a href="javascript:void(0)" onclick="mailru.connect.login();" class="bx-ss-button mymailru-button"></a>';	
			}else{
				$s = '<a href="javascript:void(0)" onclick="mailru.connect.login();" class="bx-ss-button mymailru-button"></a><span class="bx-spacer"></span><span>'.GetMessage("socserv_mailru_note").'</span>';
			}
			
		}
		return $s;
	}
Exemplo n.º 2
0
 public function GetInfoHTML($params = array())
 {
     $html = '';
     if (is_array($this->_file)) {
         $intWidth = $this->_width;
         $intHeight = $this->_height;
         $img_src = '';
         $divId = '';
         if (isset($params['url_template']) && $intWidth > 0 && $intHeight > 0) {
             $img_src = $this->GetImgSrc(array('url_template' => $params['url_template']));
             if ($img_src) {
                 CUtil::InitJSCore(array("viewer"));
                 self::$_counter++;
                 $divId = 'lists-image-info-' . self::$_counter;
             }
         }
         if ($divId) {
             $html .= '<div id="' . $divId . '">';
         } else {
             $html .= '<div>';
         }
         if (isset($params['view']) && $params['view'] == 'short') {
             $info = $this->_file["FILE_NAME"] . ' (';
             if ($intWidth > 0 && $intHeight > 0) {
                 $info .= $intWidth . 'x' . $intHeight . ', ';
             }
             $info .= CFile::FormatSize($this->_file['FILE_SIZE']) . ')';
             if ($divId) {
                 $html .= GetMessage('FILE_TEXT') . ': <span style="cursor:pointer" data-bx-viewer="image" data-bx-src="' . htmlspecialcharsbx($img_src) . '">' . htmlspecialcharsex($info) . '</span>';
             } else {
                 $html .= GetMessage('FILE_TEXT') . ': ' . htmlspecialcharsex($info);
             }
         } else {
             if ($divId) {
                 $html .= GetMessage('FILE_TEXT') . ': <span style="cursor:pointer" data-bx-viewer="image" data-bx-src="' . htmlspecialcharsbx($img_src) . '">' . htmlspecialcharsex($this->_file["FILE_NAME"]) . '</span>';
             } else {
                 $html .= GetMessage('FILE_TEXT') . ': ' . htmlspecialcharsex($this->_file["FILE_NAME"]);
             }
             if ($intWidth > 0 && $intHeight > 0) {
                 $html .= '<br>' . GetMessage('FILE_WIDTH') . ': ' . $intWidth;
                 $html .= '<br>' . GetMessage('FILE_HEIGHT') . ': ' . $intHeight;
             }
             $html .= '<br>' . GetMessage('FILE_SIZE') . ': ' . CFile::FormatSize($this->_file['FILE_SIZE']);
         }
         if ($divId) {
             $html .= '</div><script>BX.ready(function(){BX.viewElementBind("' . $divId . '");});</script>';
         } else {
             $html .= '</div>';
         }
     }
     return $html;
 }
Exemplo n.º 3
0
    function ShowStep()
    {
        $this->content = '';
        CUtil::InitJSCore();
        $this->content .= <<<EOT
<script type="text/javascript">
function checkZIP()
{
\tvar obCSVFileRus = BX('loc_ussr');
\tvar obCSVFileNone = BX('none');
\tvar obZIPFile = BX('load_zip');
\tvar obOwnFile = BX('ffile');

\tif (obCSVFileRus && obCSVFileNone && obZIPFile && obOwnFile)
\t{
\t\tif (obCSVFileRus.checked || obCSVFileNone.checked || obOwnFile.checked)
\t\t\tobZIPFile.disabled = false;
\t\telse
\t\t{
\t\t\tobZIPFile.disabled = true;
\t\t\tobZIPFile.checked = false;
\t\t}

\t\tif(obOwnFile.checked)
\t\t\tBX.show(BX('fileupload'));
\t\telse
\t\t\tBX.hide(BX('fileupload'));
\t}
}

</script>
EOT;
        $this->content .= "<b>" . GetMessage('WSL_STEP2_GFILE_TITLE') . "</b><p>";
        $this->content .= $this->ShowRadioField("locations_csv", "loc_ussr.csv", array("onchange" => "checkZIP()", "id" => "loc_ussr", "checked" => "checked")) . " <label for=\"loc_ussr\">" . GetMessage('WSL_STEP2_GFILE_USSR') . "</label><br />";
        $this->content .= $this->ShowRadioField("locations_csv", "loc_ua.csv", array("onchange" => "checkZIP()", "id" => "loc_ua")) . " <label for=\"loc_ua\">" . GetMessage('WSL_STEP2_GFILE_UA') . "</label><br />";
        $this->content .= $this->ShowRadioField("locations_csv", "loc_kz.csv", array("onchange" => "checkZIP()", "id" => "loc_kz")) . " <label for=\"loc_kz\">" . GetMessage('WSL_STEP2_GFILE_KZ') . "</label><br />";
        $this->content .= $this->ShowRadioField("locations_csv", "loc_usa.csv", array("onchange" => "checkZIP()", "id" => "loc_usa")) . " <label for=\"loc_usa\">" . GetMessage('WSL_STEP2_GFILE_USA') . "</label><br />";
        $this->content .= $this->ShowRadioField("locations_csv", "loc_cntr.csv", array("onchange" => "checkZIP()", "id" => "loc_cntr")) . " <label for=\"loc_cntr\">" . GetMessage('WSL_STEP2_GFILE_CNTR') . "</label><br />";
        $this->content .= $this->ShowRadioField("locations_csv", "locations.csv", array("onchange" => "checkZIP()", "id" => "ffile")) . " <label for=\"ffile\">" . GetMessage('WSL_STEP2_GFILE_FILE') . "</label><br />" . "<span style=\"display:none;\" id=\"fileupload\">" . "<input type=\"file\" name=\"FILE_IMPORT_UPLOAD\" value=\"\"><br />" . "</span>";
        $this->content .= $this->ShowRadioField("locations_csv", "", array("onchange" => "checkZIP()", "id" => "none")) . " <label for=\"none\">" . GetMessage('WSL_STEP2_GFILE_NONE') . "</label>";
        $this->content .= "</p><p>";
        $this->content .= $this->ShowCheckboxField("load_zip", 'Y', array("id" => "load_zip")) . " <label for=\"load_zip\">" . GetMessage('WSL_STEP2_GFILE_ZIP') . "</label>";
        $this->content .= "</p><p><b>" . GetMessage('WSL_STEP2_GSYNC_TITLE') . "</b></p><p>";
        $this->content .= $this->ShowRadioField("sync", 'Y', array("id" => "sync_Y", "checked" => "checked")) . " <label for=\"sync_Y\">" . GetMessage('WSL_STEP2_GSYNC_Y') . "</label><br />";
        $this->content .= $this->ShowRadioField("sync", 'N', array("id" => "sync_N")) . " <label for=\"sync_N\">" . GetMessage('WSL_STEP2_GSYNC_N') . "</label><br />";
        $this->content .= "</p>";
        $this->content .= '<small>' . GetMessage('WSL_STEP2_GSYNC_HINT') . '</small>';
    }
Exemplo n.º 4
0
 /**
  * @param $params array Display parameters.
  * 	<ul>
  * 	<li>max_size - maximum file size to display IMG tag (default 100K).
  * 	<li>max_width - width to scale image to (default 150).
  * 	<li>max_height - height to scale image to (default 150).
  * 	<li>url_template - template for image path builder (default '').
  * 	<li>show_input - if set to true file control will be displayed.
  * 	<li>show_info - if set to true file information will be displayed.
  * 	<li>download_text - text to be shown on download link.
  * 	</ul>
  * @return string Html to display.
  */
 function GetHTML($params)
 {
     $html = '';
     $max_size = 102400;
     $max_width = 150;
     $max_height = 150;
     $url_template = '';
     $show_input = true;
     $show_info = true;
     if (is_array($params)) {
         if (isset($params['max_size'])) {
             $max_size = intval($params['max_size']);
         }
         if (isset($params['max_width'])) {
             $max_width = intval($params['max_width']);
         }
         if (isset($params['max_height'])) {
             $max_height = intval($params['max_height']);
         }
         if (isset($params['url_template'])) {
             $url_template = $params['url_template'];
         }
         if (isset($params['show_input'])) {
             $show_input = (bool) $params['show_input'];
         }
         if (isset($params['show_info'])) {
             $show_info = (bool) $params['show_info'];
         }
     }
     if ($show_input) {
         $html .= $this->_ob_file->GetInputHTML(array('show_info' => true, 'url_template' => $url_template, 'input_name' => $this->_input_name));
     } elseif ($show_info) {
         $html .= $this->_ob_file->GetInfoHTML(array('url_template' => $url_template));
     }
     if ($this->_ob_file->IsImage() && $this->_ob_file->GetSize() < $max_size) {
         $img_src = $this->_ob_file->GetImgSrc(array('url_template' => $url_template));
         CUtil::InitJSCore(array("viewer"));
         self::$_counter++;
         $divId = 'lists-image-' . self::$_counter;
         $html .= '<div id="' . $divId . '">';
         $html .= $this->_ob_file->GetImgHtml(array('url_template' => $url_template, 'max_width' => $max_width, 'max_height' => $max_height, 'html_attributes' => array('border' => '0', 'data-bx-image' => $img_src)));
         $html .= '</div><script>BX.ready(function(){BX.viewElementBind("' . $divId . '");});</script>';
     }
     $html .= $this->_ob_file->GetLinkHtml(array('url_template' => $url_template, 'download_text' => $params['download_text']));
     return $html;
 }
Exemplo n.º 5
0
}
if (!empty($arParams['ELEMENT_NAME']) && ($arResult['ELEMENT'] = CWiki::GetElementByName($arParams['ELEMENT_NAME'], $arFilter, $arParams)) != false) {
    $arParams['ELEMENT_ID'] = $arResult['ELEMENT']['ID'];
    if ($arResult['WIKI_oper'] != 'delete') {
        if ($arResult['ELEMENT']['ACTIVE'] == 'N') {
            $arResult['WIKI_oper'] = 'add';
        } else {
            if ($arResult['WIKI_oper'] == 'add') {
                $bNotPage = false;
            }
        }
    }
} elseif ($arResult['WIKI_oper'] != 'delete') {
    $arResult['WIKI_oper'] = 'add';
}
CUtil::InitJSCore(array('window', 'ajax'));
if ((empty($arResult['ELEMENT']) || !$bNotPage) && $arResult['WIKI_oper'] != "delete" && $arResult['WIKI_oper'] != "rename" && $arResult['WIKI_oper'] != "rename_it") {
    if ($arResult['WIKI_oper'] == 'add') {
        // Check name
        if (!$bNotPage) {
            $i = 2;
            $strName = $arParams['ELEMENT_NAME'] . " ({$i})";
            while (CWiki::GetElementByName($strName, $arFilter) !== false) {
                $i++;
                $strName = $arParams['ELEMENT_NAME'] . " ({$i})";
            }
            $arParams['ELEMENT_NAME'] = $strName;
            $sPageName .= " ({$i})";
        }
        // Create a temporary item
        $sPageDecoded = CWikiUtils::htmlspecialcharsback(htmlspecialcharsbx($sPageName), false);
Exemplo n.º 6
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!$this->__component->__parent || empty($this->__component->__parent->__name) || $this->__component->__parent->__name != "bitrix:blog") {
    $GLOBALS['APPLICATION']->SetAdditionalCSS('/bitrix/components/bitrix/blog/templates/.default/style.css');
    $GLOBALS['APPLICATION']->SetAdditionalCSS('/bitrix/components/bitrix/blog/templates/.default/themes/blue/style.css');
}
CUtil::InitJSCore(array("image"));
?>
<div id="blog-moderation-content">
<?php 
if (!empty($arResult["OK_MESSAGE"])) {
    ?>
	<div class="blog-notes">
		<div class="blog-note-text">
			<ul>
				<?php 
    foreach ($arResult["OK_MESSAGE"] as $v) {
        ?>
					<li><?php 
        echo $v;
        ?>
</li>
					<?php 
    }
    ?>
			</ul>
		</div>
	</div>
Exemplo n.º 7
0
<?php

if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) {
    die;
}
global $APPLICATION;
CUtil::InitJSCore(array("amcharts", "amcharts_funnel", "amcharts_serial"));
$quid = $arResult['GUID'];
$prefix = strtolower($quid);
$settings = $arResult['SETTINGS'];
$height = $arResult['HEIGHT'];
$layout = $arResult['LAYOUT'];
$containerID = "{$prefix}_container";
?>
<div class="crm-widget-container" id="<?php 
echo htmlspecialcharsbx($containerID);
?>
"></div>
<script type="text/javascript">
	BX.ready(
		function()
		{
			BX.CrmWidget.messages =
			{
				"legend" : "<?php 
echo GetMessageJS("CRM_WGT_RATING_LEGEND");
?>
",
				"nomineeRatingPosition" : "<?php 
echo GetMessageJS("CRM_WGT_RATING_NOMINEE_POSITION");
?>
Exemplo n.º 8
0
',
		SGMSubscribeButtonHintOff: '<?php 
    echo GetMessageJS("SONET_SGM_T_NOTIFY_HINT_OFF");
    ?>
',
		SGMSubscribeButtonTitleOn: '<?php 
    echo GetMessageJS("SONET_SGM_T_NOTIFY_TITLE_ON");
    ?>
',
		SGMSubscribeButtonTitleOff: '<?php 
    echo GetMessageJS("SONET_SGM_T_NOTIFY_TITLE_OFF");
    ?>
'
	});
	</script><?php 
    CUtil::InitJSCore(array("ajax", "popup"));
    $GLOBALS["APPLICATION"]->AddHeadScript("/bitrix/components/bitrix/socialnetwork.group_menu/templates/.default/script.js");
    $GLOBALS["APPLICATION"]->SetAdditionalCSS("/bitrix/components/bitrix/socialnetwork.group_menu/templates/.default/style.css");
    if (strpos(SITE_TEMPLATE_ID, "stretchy") === 0 || strpos(SITE_TEMPLATE_ID, "taby") === 0) {
        $this->SetViewTarget("sidebar", 5);
        ?>
<style>
			#sidebar { position: relative; }
			#sidebar .content-title { padding-right: 23px; }
		</style>
		<a id="group_menu_subscribe_button" class="profile-menu-notify-btn<?php 
        echo $arReturnGroupMenu["IS_SUBSCRIBED"] ? " profile-menu-notify-btn-active" : "";
        ?>
" title="<?php 
        echo GetMessage("SONET_SGM_T_NOTIFY_TITLE_" . ($arReturnGroupMenu["IS_SUBSCRIBED"] ? "ON" : "OFF"));
        ?>
Exemplo n.º 9
0
                    $arGadget["USERDATA"] = $arUserOptions["GADGETS"][$gdid]["USERDATA"];
                }
                $arGadget["CONTENT"] = BXGadget::GetGadgetContent($arGadget, $arParams);
                $arResult["GADGETS"][$gadgetUserSettings["COLUMN"]][$gadgetUserSettings["ROW"]] = $arGadget;
                if ($arGadget["FORCE_REDIRECT"]) {
                    $bForceRedirect = true;
                }
            } else {
                unset($arUserOptions["GADGETS"][$gdid]);
            }
        }
    }
    for ($i = 0; $i < $arResult["COLS"]; $i++) {
        ksort($arResult["GADGETS"][$i], SORT_NUMERIC);
    }
    $arResult["GADGETS_LIST"] = array_unique($arResult["GADGETS_LIST"]);
    if ($bForceRedirect) {
        if ($arParams["MULTIPLE"] == "Y") {
            $arUserOptionsTmp[$arParams["DESKTOP_PAGE"]] = $arUserOptions;
            $arUserOptions = $arUserOptionsTmp;
        }
        CUserOptions::SetOption("intranet", "~gadgets_" . $arParams["ID"], $arUserOptions, false, $user_option_id);
        LocalRedirect($APPLICATION->GetCurPageParam($arParams["MULTIPLE"] == "Y" ? "dt_page=" . $arParams["DESKTOP_PAGE"] : "", array("dt_page")));
    }
}
$APPLICATION->AddHeadScript('/bitrix/js/main/utils.js');
$APPLICATION->AddHeadScript('/bitrix/js/main/popup_menu.js');
$APPLICATION->AddHeadScript('/bitrix/js/main/ajax.js');
$APPLICATION->SetAdditionalCSS('/bitrix/themes/.default/pubstyles.css');
CUtil::InitJSCore(array("ajax"));
$this->IncludeComponentTemplate();
Exemplo n.º 10
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
CUtil::InitJSCore(array('ajax'));
// ************************* Input params***************************************************************
$tplID = 'COMMENT_' . $arParams["ENTITY_TYPE"] . '_';
if (LANGUAGE_ID == 'ru') {
    $path = str_replace(array("\\", "//"), "/", __DIR__ . "/ru/script.php");
    include $path;
}
?>
<div class="feed-wrap">
<div class="feed-comments-block">
	<a name="comments"></a>
<?php 
// *************************/Input params***************************************************************
if (!empty($arResult["MESSAGES"])) {
    $arResult["NAV_STRING"] = GetPagePath(false, false);
    if ($arResult["NAV_RESULT"]) {
        $strNavQueryString = htmlspecialcharsbx(DeleteParam(array("PAGEN_" . $arResult["NAV_RESULT"]->NavNum, "SIZEN_" . $arResult["NAV_RESULT"]->NavNum, "SHOWALL_" . $arResult["NAV_RESULT"]->NavNum, "MID", "result", "PHPSESSID", "clear_cache")));
        if (!!$strNavQueryString) {
            $arResult["NAV_STRING"] .= "?" . $strNavQueryString;
        }
    }
    foreach ($arResult["MESSAGES"] as $res) {
        foreach (GetModuleEvents('forum', 'OnCommentDisplay', true) as $arEvent) {
            $arExt = ExecuteModuleEventEx($arEvent, array($res));
            if ($arExt !== null) {
                foreach ($arExt as $arTpl) {
Exemplo n.º 11
0
        LocalRedirect($arParams["LIST_URL"]);
    } else {
        echo GetMessage("BCLMME_NO_DATA");
        return;
    }
}
if (!CModule::IncludeModule('bitrixcloud')) {
    ShowError(GetMessage("BCLMME_BC_NOT_INSTALLED"));
    return;
}
if (!CModule::IncludeModule('mobileapp')) {
    ShowError(GetMessage("BCLMME_MA_NOT_INSTALLED"));
    return;
}
CJSCore::Init('ajax');
CUtil::InitJSCore(array("mobile_monitoring"));
$monitoring = CBitrixCloudMonitoring::getInstance();
if (isset($arResult["ACTION"])) {
    switch ($arResult["ACTION"]) {
        case 'add':
            $arResult["DOMAIN_PARAMS"] = array("DOMAIN" => $arResult["DOMAIN"], "IS_HTTPS" => "N", "LANG" => LANGUAGE_ID, "EMAILS" => array(COption::GetOptionString("main", "email_from", "")), "TESTS" => array("test_lic", "test_domain_registration", "test_http_response_time"));
            break;
        case 'update':
            try {
                $result = $monitoring->startMonitoring($arResult["DOMAIN"], $_REQUEST["IS_HTTPS"] === "Y", $_REQUEST["LANG"], $_REQUEST["EMAILS"], $_REQUEST["TESTS"]);
                if ($result != "") {
                    ShowError($result);
                    return;
                }
                LocalRedirect($arParams["LIST_URL"]);
            } catch (Exception $e) {
Exemplo n.º 12
0
?>
</form>

<?php 
$tabControl->Begin();
foreach ($aTabs as $aTab) {
    $tabControl->BeginNextTab();
    echo '<tr><td class="ignore_edit_table">';
    $aTables[$aTab['DIV']]->DisplayList();
    echo '</td></tr>';
}
$tabControl->End();
?>
</div>

<?CUtil::InitJSCore(array('window'));?>
<script type="text/javascript">
if( typeof jQuery !== 'undefined' ){
	jQuery('table.edit-form').removeClass('edit-form');
	jQuery('table.edit-table').removeClass('edit-table');
	jQuery('.edit-tab').removeClass('edit-tab');
	$('.gem_action').not('input[name=upload]').live( 'click', function(){
		$('<form method="post" action=""></form>')
			.append($(this).parents('.gem_form').find('input'))
			.append( '<input type="hidden" name="'+$(this).attr('name')+'" />' )
			.appendTo('body')
			.submit();
		return false;
	} )
	$('form input[name=upload]').live( 'click', function(){
		var Dialog = new BX.CDialog({
Exemplo n.º 13
0
if (empty($arIBLOCK['BIZPROC']) || $arIBLOCK['BIZPROC'] != 'Y') {
    ShowError(GetMessage('WIKI_NOT_CHANGE_BIZPROC'));
    return;
}
//converts the old type of document to a new
if (COption::GetOptionString('wiki', 'convert_history_' . $arParams['IBLOCK_ID'], 'N') == 'N') {
    $arFilter = array('IBLOCK_ID' => $arParams['IBLOCK_ID'], 'CHECK_PERMISSIONS' => 'N', 'ACTIVE' => 'Y');
    $rsElement = CIBlockElement::GetList(array(), $arFilter, false, false, array());
    while ($arElement = $rsElement->GetNext()) {
        CBPHistoryService::MergeHistory(array('iblock', 'CWikiDocument', $arElement['ID']), array('iblock', 'CIBlockDocument', $arElement['ID']));
    }
    COption::SetOptionString('wiki', 'convert_history_' . $arParams['IBLOCK_ID'], 'Y');
    LocalRedirect(CHTTP::urlAddParams(CComponentEngine::MakePathFromTemplate($arParams['PATH_TO_HISTORY'], array('wiki_name' => $arParams['ELEMENT_NAME'], 'group_id' => CWikiSocnet::$iSocNetId)), $arParams['IN_COMPLEX'] == 'Y' && $arParams['SEF_MODE'] == 'N' ? array($arParams['OPER_VAR'] => 'history') : array()));
    return;
}
CUtil::InitJSCore(array("ajax", "tooltip"));
//http://jabber.bx/view.php?id=30695
if ($this->StartResultCache(false, array($USER->GetGroups(), $arNavigation, $arCache), false)) {
    $arResult['USE_REVIEW'] = $arParams['USE_REVIEW'];
    $arResult['ELEMENT'] = array();
    $arParams['ELEMENT_NAME'] = urldecode($arParams['ELEMENT_NAME']);
    $arFilter = array('IBLOCK_ID' => $arParams['IBLOCK_ID'], 'CHECK_PERMISSIONS' => 'N', 'ACTIVE' => 'Y');
    if (empty($arParams['ELEMENT_NAME'])) {
        $arParams['ELEMENT_NAME'] = CWiki::GetDefaultPage($arParams['IBLOCK_ID']);
    }
    if (!empty($arParams['ELEMENT_NAME']) && ($arResult['ELEMENT'] = CWiki::GetElementByName($arParams['ELEMENT_NAME'], $arFilter)) != false) {
        $arParams['ELEMENT_ID'] = $arResult['ELEMENT']['ID'];
    } else {
        $this->AbortResultCache();
        return;
    }
Exemplo n.º 14
0
<?
if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
CUtil::InitJSCore(array('popup'));

CPageOption::SetOptionString("main", "nav_page_in_session", "N");

/*************************************************************************
	Processing of received parameters
*************************************************************************/
if(!isset($arParams["CACHE_TIME"]))
	$arParams["CACHE_TIME"] = 36000000;

$arParams["IBLOCK_TYPE"] = trim($arParams["IBLOCK_TYPE"]);
/** experemental, need test **/
if( $arParams["MODE"] != 'MULTI' )
    $arParams["IBLOCK_ID"] = intval($arParams["IBLOCK_ID"]);
    

$arParams["SECTION_ID"] = intval($arParams["~SECTION_ID"]);
if($arParams["SECTION_ID"] > 0 && $arParams["SECTION_ID"]."" != $arParams["~SECTION_ID"])
{
	ShowError(GetMessage("CATALOG_SECTION_NOT_FOUND"));
	@define("ERROR_404", "Y");
	if($arParams["SET_STATUS_404"]==="Y")
		CHTTP::SetStatus("404 Not Found");
	return;
}

if (!in_array($arParams["INCLUDE_SUBSECTIONS"], array('Y', 'A', 'N')))
	$arParams["INCLUDE_SUBSECTIONS"] = 'Y';
$arParams["SHOW_ALL_WO_SECTION"] = $arParams["SHOW_ALL_WO_SECTION"]==="Y";
Exemplo n.º 15
0
 */
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
CModule::IncludeModule("mobileapp");
\Bitrix\Main\Localization\Loc::loadMessages(__FILE__);
$APPLICATION->SetTitle(GetMessage("MOBILEAPP_APP_DESIGNER_TITLE"));
if (!$USER->isAdmin()) {
    $APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
$ieVersion = IsIE();
if (IsIE() !== false && IsIE() < 9) {
    CAdminMessage::ShowMessage(array("TYPE" => "ERROR", "MESSAGE" => GetMessage("MOBILEAPP_WRONG_BROWSER"), "DETAILS" => GetMessage("MOBILEAPP_WRONG_BROWSER_DETAIL"), "HTML" => true));
    require $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/include/epilog_admin.php";
    return;
}
CUtil::InitJSCore(array('ajax', 'window', "popup", "mdesigner"));
$action = $_REQUEST["action"];
$templates = $_REQUEST["action"];
function __DSGetInitData()
{
    $map = new \Bitrix\MobileApp\Designer\ConfigMap();
    $params = $map->getParamsByGroups();
    $groups = array_keys($params);
    $tmpLangs = array_change_key_case($map->getLangMessages(), CASE_LOWER);
    $langs = array();
    foreach ($tmpLangs as $k => $v) {
        $langs[str_replace("_", "/", $k)] = $v;
    }
    $result = \Bitrix\Mobileapp\Designer\AppTable::getList(array("select" => array("CODE", "FOLDER", "DESCRIPTION", "SHORT_NAME", "NAME", "CONFIG.PLATFORM", "CONFIG.PARAMS")));
    $fetchedApps = $result->fetchAll();
    $apps = array();
Exemplo n.º 16
0
            $arParams["CALENDAR_GROUP_IBLOCK_ID"] = $arCalendarSection["IBLOCK_ID"];
        }
    }
} elseif (strPos($componentPage, "user_forum") !== false || strPos($componentPage, "group_forum") !== false || $componentPage == "user" || $componentPage == "group" || $componentPage == "index") {
    $path = str_replace(array("\\", "//"), "/", dirname(__FILE__) . "/include/forum.php");
    if (!file_exists($path)) {
        $arParams["ERROR_MESSAGE"] = "Forum file is not exist.";
        $res = 0;
    } else {
        $res = (include_once $path);
    }
    $arParams["FATAL_ERROR"] = $res <= 0 ? "Y" : "N";
} elseif (strPos($componentPage, "user_content_search") !== false || strPos($componentPage, "group_content_search") !== false) {
    $path = str_replace(array("\\", "//"), "/", dirname(__FILE__) . "/include/search.php");
    if (!file_exists($path)) {
        $arParams["ERROR_MESSAGE"] = "Content search file is not exist.";
        $res = 0;
    } else {
        $res = (include_once $path);
    }
    $arParams["FATAL_ERROR"] = $res <= 0 ? "Y" : "N";
}
/********************************************************************
				/Content search
********************************************************************/
CUtil::InitJSCore(array("window", "ajax"));
$this->IncludeComponentTemplate($componentPage, array_key_exists($componentPage, $arCustomPagesPath) ? $arCustomPagesPath[$componentPage] : "");
//top panel button to reindex
if ($GLOBALS['USER']->IsAdmin()) {
    $GLOBALS['APPLICATION']->AddPanelButton(array("HREF" => $arResult["PATH_TO_GROUP_REINDEX"], "ICON" => "bx-panel-reindex-icon", "ALT" => GetMessage('SONET_PANEL_REINDEX_TITLE'), "TEXT" => GetMessage('SONET_PANEL_REINDEX'), "MAIN_SORT" => "1000", "SORT" => 100));
}
Exemplo n.º 17
0
$userID = CCrmSecurityHelper::GetCurrentUserID();
$isAdmin = CCrmPerms::IsAdmin();
$arResult['CURRENT_USER_ID'] = CCrmSecurityHelper::GetCurrentUserID();
$arParams['PATH_TO_CONTACT_LIST'] = CrmCheckPath('PATH_TO_CONTACT_LIST', $arParams['PATH_TO_CONTACT_LIST'], $APPLICATION->GetCurPage());
$arParams['PATH_TO_CONTACT_SHOW'] = CrmCheckPath('PATH_TO_CONTACT_SHOW', $arParams['PATH_TO_CONTACT_SHOW'], $APPLICATION->GetCurPage() . '?contact_id=#contact_id#&show');
$arParams['PATH_TO_CONTACT_EDIT'] = CrmCheckPath('PATH_TO_CONTACT_EDIT', $arParams['PATH_TO_CONTACT_EDIT'], $APPLICATION->GetCurPage() . '?contact_id=#contact_id#&edit');
$arParams['PATH_TO_COMPANY_SHOW'] = CrmCheckPath('PATH_TO_COMPANY_SHOW', $arParams['PATH_TO_COMPANY_SHOW'], $APPLICATION->GetCurPage() . '?company_id=#company_id#&show');
$arParams['PATH_TO_DEAL_EDIT'] = CrmCheckPath('PATH_TO_DEAL_EDIT', $arParams['PATH_TO_DEAL_EDIT'], $APPLICATION->GetCurPage() . '?deal_id=#deal_id#&edit');
$arParams['PATH_TO_QUOTE_EDIT'] = CrmCheckPath('PATH_TO_QUOTE_EDIT', $arParams['PATH_TO_QUOTE_EDIT'], $APPLICATION->GetCurPage() . '?quote_id=#quote_id#&edit');
$arParams['PATH_TO_INVOICE_EDIT'] = CrmCheckPath('PATH_TO_INVOICE_EDIT', $arParams['PATH_TO_INVOICE_EDIT'], $APPLICATION->GetCurPage() . '?invoice_id=#invoice_id#&edit');
$arParams['PATH_TO_USER_PROFILE'] = CrmCheckPath('PATH_TO_USER_PROFILE', $arParams['PATH_TO_USER_PROFILE'], '/company/personal/user/#user_id#/');
$arParams['PATH_TO_USER_BP'] = CrmCheckPath('PATH_TO_USER_BP', $arParams['PATH_TO_USER_BP'], '/company/personal/bizproc/');
$arParams['NAME_TEMPLATE'] = empty($arParams['NAME_TEMPLATE']) ? CSite::GetNameFormat(false) : str_replace(array("#NOBR#", "#/NOBR#"), array("", ""), $arParams["NAME_TEMPLATE"]);
$arResult['IS_AJAX_CALL'] = isset($_REQUEST['bxajaxid']) || isset($_REQUEST['AJAX_CALL']);
$arResult['SESSION_ID'] = bitrix_sessid();
CUtil::InitJSCore(array('ajax', 'tooltip'));
$arResult['GADGET'] = 'N';
if (isset($arParams['GADGET_ID']) && strlen($arParams['GADGET_ID']) > 0) {
    $arResult['GADGET'] = 'Y';
    $arResult['GADGET_ID'] = $arParams['GADGET_ID'];
}
$arFilter = $arSort = array();
$bInternal = false;
$arResult['FORM_ID'] = isset($arParams['FORM_ID']) ? $arParams['FORM_ID'] : '';
$arResult['TAB_ID'] = isset($arParams['TAB_ID']) ? $arParams['TAB_ID'] : '';
if (!empty($arParams['INTERNAL_FILTER']) || $arResult['GADGET'] == 'Y') {
    $bInternal = true;
}
$arResult['INTERNAL'] = $bInternal;
if (!empty($arParams['INTERNAL_FILTER']) && is_array($arParams['INTERNAL_FILTER'])) {
    if (empty($arParams['GRID_ID_SUFFIX'])) {
Exemplo n.º 18
0
    public static function ShowDialogScript($arConfig = array())
    {
        global $USER;
        CUtil::InitJSCore(array('ajax'));
        $strWarn = '';
        $arConfig['bReadOnly'] = false;
        $arConfig['lang'] = LANGUAGE_ID;
        $event = '';
        if (isset($arConfig['event'])) {
            $event = preg_replace("/[^a-zA-Z0-9_]/i", "", $arConfig['event']);
        }
        if (strlen($event) <= 0) {
            $strWarn .= GetMessage('ML_BAD_EVENT') . '. ';
        }
        $resultDest = "";
        $bDest = is_array($arConfig['arResultDest']);
        if ($bDest) {
            if (isset($arConfig['arResultDest']["FUNCTION_NAME"])) {
                $arConfig['arResultDest']["FUNCTION_NAME"] = preg_replace("/[^a-zA-Z0-9_]/i", "", $arConfig['arResultDest']["FUNCTION_NAME"]);
                $bDest = strlen($arConfig['arResultDest']["FUNCTION_NAME"]) > 0;
                $resultDest = "FUNCTION";
            } elseif (isset($arConfig['arResultDest']["FORM_NAME"], $arConfig['arResultDest']["FORM_ELEMENT_NAME"])) {
                $arConfig['arResultDest']["FORM_NAME"] = preg_replace("/[^a-zA-Z0-9_]/i", "", $arConfig['arResultDest']["FORM_NAME"]);
                $arConfig['arResultDest']["FORM_ELEMENT_NAME"] = preg_replace("/[^a-zA-Z0-9_]/i", "", $arConfig['arResultDest']["FORM_ELEMENT_NAME"]);
                $bDest = strlen($arConfig['arResultDest']["FORM_NAME"]) > 0 && strlen($arConfig['arResultDest']["FORM_ELEMENT_NAME"]) > 0;
                $resultDest = "FORM";
            } elseif (isset($arConfig['arResultDest']["ELEMENT_ID"])) {
                $arConfig['arResultDest']["ELEMENT_ID"] = preg_replace("/[^a-zA-Z0-9_]/i", "", $arConfig['arResultDest']["ELEMENT_ID"]);
                $bDest = strlen($arConfig['arResultDest']["ELEMENT_ID"]) > 0;
                $resultDest = "ID";
            } else {
                $bDest = false;
            }
        }
        if (!$bDest) {
            $strWarn .= GetMessage('ML_BAD_RETURN') . '. ';
        }
        if (strlen($strWarn) <= 0) {
            ?>
			<script>
			if (!window.BX && top.BX)
				window.BX = top.BX;

			<?php 
            CMedialib::AppendLangMessages();
            ?>
			window.<?php 
            echo $arConfig['event'];
            ?>
 = function(bLoadJS)
			{
				if (window.oBXMedialib && window.oBXMedialib.bOpened)
					return false;

				<?php 
            if (!CMedialib::CanDoOperation('medialib_view_collection', 0)) {
                ?>
					return alert(ML_MESS.AccessDenied);
				<?php 
            } else {
                ?>

				if (!window.BXMediaLib)
				{
					if (bLoadJS !== false)
					{
						// Append CSS
						BX.loadCSS("/bitrix/js/fileman/medialib/medialib.css");

						var arJS = [];
						if (!window.jsAjaxUtil)
							arJS.push("/bitrix/js/main/ajax.js?v=<?php 
                echo filemtime($_SERVER["DOCUMENT_ROOT"] . '/bitrix/js/main/ajax.js');
                ?>
");
						if (!window.jsUtils)
							arJS.push("/bitrix/js/main/utils.js?v=<?php 
                echo filemtime($_SERVER["DOCUMENT_ROOT"] . '/bitrix/js/main/utils.js');
                ?>
");
						if (!window.CHttpRequest)
							arJS.push("/bitrix/js/main/admin_tools.js?v=<?php 
                echo filemtime($_SERVER["DOCUMENT_ROOT"] . '/bitrix/js/main/admin_tools.js');
                ?>
");

						arJS.push("/bitrix/js/fileman/medialib/common.js?v=<?php 
                echo filemtime($_SERVER["DOCUMENT_ROOT"] . '/bitrix/js/fileman/medialib/common.js');
                ?>
");
						arJS.push("/bitrix/js/fileman/medialib/core.js?v=<?php 
                echo filemtime($_SERVER["DOCUMENT_ROOT"] . '/bitrix/js/fileman/medialib/core.js');
                ?>
");
						BX.loadScript(arJS);
					}
					return setTimeout(function(){<?php 
                echo $arConfig['event'];
                ?>
(false)}, 50);
				}

				<?php 
                CMedialib::ShowJS();
                ?>
				<?php 
                $arSet = explode(',', CUserOptions::GetOption("fileman", "medialib_user_set", '600,450,0'));
                $width = $arSet[0] ? intVal($arSet[0]) : 600;
                $height = $arSet[1] ? intVal($arSet[1]) : 450;
                $coll_id = $arSet[2] ? intVal($arSet[2]) : 0;
                ?>
				window._mlUserSettings = window._mlUserSettings || {width: <?php 
                echo $width;
                ?>
, height: <?php 
                echo $height;
                ?>
, coll_id: <?php 
                echo $coll_id;
                ?>
}

				var oConfig =
				{
					sessid: "<?php 
                echo bitrix_sessid();
                ?>
",
					thumbWidth : <?php 
                echo COption::GetOptionInt('fileman', "ml_thumb_width", 140);
                ?>
,
					thumbHeight : <?php 
                echo COption::GetOptionInt('fileman', "ml_thumb_height", 105);
                ?>
,
					userSettings : window._mlUserSettings,
					resType: "<?php 
                echo $resultDest;
                ?>
",
					Types : <?php 
                echo CUtil::PhpToJSObject(CMedialib::GetTypes($arConfig['types']));
                ?>
,
					arResultDest : <?php 
                echo CUtil::PhpToJSObject($arConfig['arResultDest']);
                ?>
,
					rootAccess: {
						new_col: '<?php 
                echo CMedialib::CanDoOperation('medialib_new_collection', 0);
                ?>
',
						edit: '<?php 
                echo CMedialib::CanDoOperation('medialib_edit_collection', 0);
                ?>
',
						del: '<?php 
                echo CMedialib::CanDoOperation('medialib_del_collection', 0);
                ?>
',
						new_item: '<?php 
                echo CMedialib::CanDoOperation('medialib_new_item', 0);
                ?>
',
						edit_item: '<?php 
                echo CMedialib::CanDoOperation('medialib_edit_item', 0);
                ?>
',
						del_item: '<?php 
                echo CMedialib::CanDoOperation('medialib_del_item', 0);
                ?>
',
						access: '<?php 
                echo CMedialib::CanDoOperation('medialib_access', 0);
                ?>
'
					},
					bCanUpload: <?php 
                echo $USER->CanDoOperation('fileman_upload_files') ? 'true' : 'false';
                ?>
,
					bCanViewStructure: <?php 
                echo $USER->CanDoOperation('fileman_view_file_structure') ? 'true' : 'false';
                ?>
,
					strExt : "<?php 
                echo CUtil::JSEscape(CMedialib::GetMediaExtentions());
                ?>
",
					lang : "<?php 
                echo $arConfig['lang'];
                ?>
",
					description_id : '<?php 
                echo CUtil::JSEscape($arConfig['description_id']);
                ?>
'
				};

				window.oBXMedialib = new BXMediaLib(oConfig);
				oBXMedialib.Open();
				<?php 
            }
            ?>
			};
			</script>
			<?php 
        } else {
            echo '<font color="#FF0000">' . htmlspecialcharsbx($strWarn) . '</font>';
        }
    }
Exemplo n.º 19
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
include_once $_SERVER["DOCUMENT_ROOT"] . $templateFolder . "/functions.php";
include_once $_SERVER["DOCUMENT_ROOT"] . $templateFolder . "/message.php";
include $_SERVER["DOCUMENT_ROOT"] . $templateFolder . "/file.php";
$array = (!empty($arParams["DESTINATION"]) || in_array("MentionUser", $arParams["BUTTONS"])) && IsModuleInstalled("socialnetwork") ? array('socnetlogdest') : array();
$array[] = "fx";
CUtil::InitJSCore($array);
$arButtonsHTML = array();
foreach ($arParams["BUTTONS"] as $val) {
    switch ($val) {
        case "CreateLink":
            $arButtonsHTML[] = '<span class="feed-add-post-form-but-cnt" id="bx-b-link-' . $arParams["FORM_ID"] . '"></span>';
            break;
        case "UploadImage":
        case "UploadFile":
            $arButtonsHTML["Upload"] = '<span class="feed-add-post-form-but feed-add-file" id="bx-b-uploadfile-' . $arParams["FORM_ID"] . '" ' . 'title="' . GetMessage('MPF_FILE_TITLE') . '"></span>';
            break;
        case "InputVideo":
            $arButtonsHTML[] = '<span class="feed-add-post-form-but-cnt" id="bx-b-video-' . $arParams["FORM_ID"] . '"></span>';
            break;
        case "InputTag":
            $arButtonsHTML[] = '<span class="feed-add-post-form-but feed-add-tag" id="bx-b-tag-input-' . $arParams["FORM_ID"] . '" ' . 'title="' . GetMessage("MPF_TAG_TITLE") . '"></span>';
            break;
        case "MentionUser":
            $arButtonsHTML[] = '<span class="feed-add-post-form-but feed-add-mention" id="bx-b-mention-' . $arParams["FORM_ID"] . '" ' . 'title="' . GetMessage("MPF_MENTION_TITLE") . '"></span>';
            break;
        case "Quote":
Exemplo n.º 20
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
$APPLICATION->SetPageProperty("BodyClass", "calendar-event-page");
CUtil::InitJSCore(array('ajax', 'date'));
?>

<script>
var
	userId = parseInt(<?php 
echo $arResult['USER_ID'];
?>
),
	eventId = parseInt('<?php 
echo $arResult['EVENT']['ID'];
?>
'),
	version = parseInt('<?php 
echo $arResult['EVENT']['VERSION'];
?>
');

app.pullDown({
	enable: true,
	pulltext: '<?php 
echo GetMessage('PULL_TEXT');
?>
',
	downtext: '<?php 
Exemplo n.º 21
0
        $cache->EndDataCache(array("ELEMENTS_CNT" => $arResult["ELEMENTS_CNT"], "ALL_ELEMENTS_CNT" => $arResult["ALL_ELEMENTS_CNT"], "ELEMENTS_LIST" => $arResult["ELEMENTS_LIST"], "ELEMENTS_LIST_JS" => $arResult["ELEMENTS_LIST_JS"], "MORE_PHOTO_NAV" => $arResult["MORE_PHOTO_NAV"], "NAV_RESULT_NavPageSize" => $arResult["NAV_RESULT_NavPageSize"], "NAV_RESULT_NavNum" => $arResult["NAV_RESULT_NavNum"], "NAV_RESULT_NavPageNomer" => $arResult["NAV_RESULT_NavPageNomer"], "NAV_RESULT_NavPageCount" => $arResult["NAV_RESULT_NavPageCount"], "MIN_ID" => $arResult["MIN_ID"]));
    }
} else {
    $GLOBALS['NavNum'] = intVal($GLOBALS['NavNum']) + 1;
}
if ($arResult["ELEMENTS_CNT"] <= 1) {
    $arParams['DRAG_SORT'] = "N";
}
/************** URL ************************************************/
/********************************************************************
				/Data
********************************************************************/
if ($arParams["JUST_RETURN_DATA_JS"] == "Y") {
    return $arResult["ELEMENTS_LIST_JS"];
}
CUtil::InitJSCore(array('window', 'ajax', 'tooltip', 'popup'));
unset($arParams["PICTURES"]["standart"]);
$arParams["DETAIL_ITEM_URL"] = CComponentEngine::MakePathFromTemplate($arParams["~DETAIL_URL"], array("USER_ID" => $arGallery["CREATED_BY"], "user_id" => $arGallery["CREATED_BY"], "GROUP_ID" => $arGallery["SOCNET_GROUP_ID"], "group_id" => $arGallery["SOCNET_GROUP_ID"]));
$arParams["ALBUM_URL"] = CComponentEngine::MakePathFromTemplate($arParams["~SECTION_URL"], array("USER_ID" => $arGallery["CREATED_BY"], "user_id" => $arGallery["CREATED_BY"], "GROUP_ID" => $arGallery["SOCNET_GROUP_ID"], "group_id" => $arGallery["SOCNET_GROUP_ID"]));
$arResult["CHECK_PARAMS"] = array("CUR_USER_ID" => $USER->GetId(), "USE_COMMENTS" => $arParams["USE_COMMENTS"], "PERMISSION" => $arParams["PERMISSION"], "USE_RATING" => $arParams["USE_RATING"], "IBLOCK_TYPE" => $arParams["IBLOCK_TYPE"], "IBLOCK_ID" => $arParams["IBLOCK_ID"], "READ_ONLY" => $arParams["READ_ONLY"]);
$arResult["REQ_PARAMS"] = array("DISPLAY_AS_RATING" => $arParams["DISPLAY_AS_RATING"], "SECTION_ID" => $arParams["SECTION_ID"], "PATH_TO_USER" => $arParams["PATH_TO_USER"], "MAX_VOTE" => $arParams["MAX_VOTE"], "VOTE_NAMES" => $arParams["VOTE_NAMES"], "CACHE_TYPE" => $arParams["CACHE_TYPE"], "CACHE_TIME" => $arParams["CACHE_TIME"]);
$arResult["SIGN"] = CPGalleryInterface::GetSign($arResult["CHECK_PARAMS"]);
$this->IncludeComponentTemplate();
/********************************************************************
				Standart
********************************************************************/
/************** Title **********************************************/
if ($arParams["SET_TITLE"] == "Y") {
    $APPLICATION->SetTitle(GetMessage("P_LIST_PHOTO"));
}
/************** Returns ********************************************/
Exemplo n.º 22
0
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
CUtil::InitJSCore(array('translit', 'autosave'));
$postMessageTabIndex = $tabIndex = $arParams["tabIndex"];
$fileControlId = 'forumfiles'.$arParams["FORUM"]["ID"];
?>
<script type="text/javascript">
BX.message({
	no_topic_name : '<?php 
echo GetMessageJS("JERROR_NO_TOPIC_NAME");
?>
',
	no_message : '<?php 
echo GetMessageJS("JERROR_NO_MESSAGE");
?>
',
	max_len : '<?php 
echo GetMessageJS("JERROR_MAX_LEN");
?>
',
	author : ' <?php 
echo GetMessageJS("JQOUTE_AUTHOR_WRITES");
?>
:\n',
	vote_drop_answer_confirm : '<?php 
echo GetMessageJS("F_VOTE_DROP_ANSWER_CONFIRM");
?>
',
	vote_drop_question_confirm : '<?php 
echo GetMessageJS("F_VOTE_DROP_QUESTION_CONFIRM");
?>
',
Exemplo n.º 23
0
    function GetLayout()
    {
        $wizard = $this->GetWizard();
        $formName = htmlspecialcharsbx($wizard->GetFormName());
        CUtil::InitJSCore(array("ajax"));
        $adminScript = CAdminPage::ShowScript();
        $charset = LANG_CHARSET;
        $wizardName = htmlspecialcharsEx($wizard->GetWizardName());
        $nextButtonID = htmlspecialcharsbx($wizard->GetNextButtonID());
        $prevButtonID = htmlspecialcharsbx($wizard->GetPrevButtonID());
        $cancelButtonID = htmlspecialcharsbx($wizard->GetCancelButtonID());
        $finishButtonID = htmlspecialcharsbx($wizard->GetFinishButtonID());
        IncludeAJAX();
        $ajaxScripts = $GLOBALS["APPLICATION"]->GetHeadStrings();
        $ajaxScripts .= $GLOBALS["APPLICATION"]->GetHeadScripts();
        $obStep = $wizard->GetCurrentStep();
        $arErrors = $obStep->GetErrors();
        $strError = $strJsError = "";
        if (count($arErrors) > 0) {
            foreach ($arErrors as $arError) {
                $strError .= $arError[0] . "<br />";
                if ($arError[1] !== false) {
                    $strJsError .= ($strJsError != "" ? ", " : "") . "{'name':'" . CUtil::addslashes($wizard->GetRealName($arError[1])) . "', 'title':'" . CUtil::addslashes(htmlspecialcharsback($arError[0])) . "'}";
                }
            }
            if (strlen($strError) > 0) {
                $strError = '<div id="step_error">' . $strError . "</div>";
            }
            $strJsError = '
			<script type="text/javascript">
				ShowWarnings([' . $strJsError . ']);
			</script>';
        }
        $stepTitle = $obStep->GetTitle();
        $stepSubTitle = $obStep->GetSubTitle();
        $autoSubmit = "";
        if ($obStep->IsAutoSubmit()) {
            $autoSubmit = 'setTimeout("AutoSubmit();", 500);';
        }
        $alertText = GetMessageJS("MAIN_WIZARD_WANT_TO_CANCEL");
        $loadingText = GetMessageJS("MAIN_WIZARD_WAIT_WINDOW_TEXT");
        $package = $wizard->GetPackage();
        return <<<HTML
<!DOCTYPE html>
<html id="bx-admin-prefix">
<head>
\t<head>
\t\t<title>{$wizardName}</title>
\t\t<meta http-equiv="X-UA-Compatible" content="IE=edge">
\t\t<meta http-equiv="Content-Type" content="text/html; charset={$charset}">
\t\t{$ajaxScripts}
\t\t<style type="text/css">
\t\t\tbody
\t\t\t{
\t\t\t\tmargin:0;
\t\t\t\tpadding:0;
\t\t\t\tfont-size: 13px;
\t\t\t\tfont-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
\t\t\t}
\t\t\ttable {font-size:100%;}
\t\t\tform {margin:0; padding:0; }

\t\t\ta {
\t\t\t\tcolor: #2675D7;
\t\t\t\ttext-decoration: underline;
\t\t\t}


\t\t\t.step-content {
\t\t\t\tborder: solid 1px #DCE7ED;
\t\t\t\tbackground-color: #F5F9F9;
\t\t\t\theight: 347px;
\t\t\t\toverflow: auto;
\t\t\t}

\t\t\t.step-header {
\t\t\t\tborder-bottom: 1px solid #DCE7ED;
\t\t\t\tfont-size: 12px;
\t\t\t\tpadding: 6px 30px 9px 9px;
\t\t\t\tmargin-bottom: 12px;
\t\t\t}

\t\t\t.step-title { font-size: 16px; }
\t\t\t.step-subtitle { font-size: 13px; }

\t\t\t.step-body {
\t\t\t\tpadding: 0 10px;
\t\t\t}

\t\t\t.step-buttons
\t\t\t{
\t\t\t\tpadding-top: 12px;
\t\t\t\tpadding-left: 2px;
\t\t\t}

\t\t\t.step-buttons input {
\t\t\t\t-webkit-border-radius: 4px;
\t\t\t\tborder-radius: 4px;
\t\t\t\tborder:none;
\t\t\t\tborder-top:1px solid #fff;
\t\t\t\t-webkit-box-shadow: 0 0 1px rgba(0,0,0,.11), 0 1px 1px rgba(0,0,0,.3), inset 0 1px #fff, inset 0 0 1px rgba(255,255,255,.5);
\t\t\t\tbox-shadow: 0 0 1px rgba(0,0,0,.3), 0 1px 1px rgba(0,0,0,.3), inset 0 1px #fff, inset 0 0 1px rgba(255,255,255,.5);
\t\t\t\tbackground-image: -webkit-linear-gradient(bottom, #d7e3e7, #fff)!important;
\t\t\t\tbackground-image: -moz-linear-gradient(bottom, #d7e3e7, #fff)!important;
\t\t\t\tbackground-image: -ms-linear-gradient(bottom, #d7e3e7, #fff)!important;
\t\t\t\tbackground-image: -o-linear-gradient(bottom, #d7e3e7, #fff)!important;
\t\t\t\tbackground-image: linear-gradient(bottom, #d7e3e7, #fff)!important;
\t\t\t\tcolor:#3f4b54;
\t\t\t\tcursor:pointer;
\t\t\t\tdisplay:inline-block;
\t\t\t\tfont-family:"Helvetica Neue",Helvetica,Arial,sans-serif;
\t\t\t\tfont-weight:bold;
\t\t\t\tfont-size:13px;
\t\t\t\theight: 29px;
\t\t\t\ttext-shadow:0 1px rgba(255,255,255,0.7);
\t\t\t\ttext-decoration:none;
\t\t\t\tposition:relative;
\t\t\t\tvertical-align:middle;
\t\t\t\t-webkit-font-smoothing: antialiased;
\t\t\t\tpadding: 0 13px 2px;
\t\t\t\tmargin-right: 3px;
\t\t\t}

\t\t\t.step-buttons input:hover {
\t\t\t\ttext-decoration: none;
\t\t\t\tbackground:#f3f6f7!important;
\t\t\t\tbackground-image: -webkit-linear-gradient(top, #f8f8f9, #f2f6f8)!important;
\t\t\t\tbackground-image: -moz-linear-gradient(top, #f8f8f9, #f2f6f8)!important;
\t\t\t\tbackground-image: -ms-linear-gradient(top, #f8f8f9, #f2f6f8)!important;
\t\t\t\tbackground-image: -o-linear-gradient(top, #f8f8f9, #f2f6f8)!important;
\t\t\t\tbackground-image: linear-gradient(top, #f8f8f9, #f2f6f8)!important;
\t\t\t}

\t\t\t.step-buttons input:active {
\t\t\t\t-webkit-border-radius: 4px;
\t\t\t\tborder-radius: 4px;
\t\t\t\tbackground-color: #b7c4c9!important;
\t\t\t\t-webkit-box-shadow: inset 0 1px 1px 1px rgba(103,109,123,.78);
\t\t\t\tbox-shadow: inset 0 1px 1px 1px rgba(103,109,123,.78);
\t\t\t\tbackground-image: -webkit-linear-gradient(top, rgba(179,194,200,.96), rgba(202,215,219,.96))!important;
\t\t\t\tbackground-image: -moz-linear-gradient(top, rgba(179,194,200,.96), rgba(202,215,219,.96))!important;
\t\t\t\tbackground-image: -ms-linear-gradient(top, rgba(179,194,200,.96), rgba(202,215,219,.96))!important;
\t\t\t\tbackground-image: -o-linear-gradient(top, rgba(179,194,200,.96), rgba(202,215,219,.96))!important;
\t\t\t\tbackground-image: linear-gradient(top, rgba(179,194,200,.96), rgba(202,215,219,.96))!important;
\t\t\t\tborder-top:transparent;
\t\t\t\theight: 29px;
\t\t\t\toutline:none;
\t\t\t\tpadding:2px 13px 1px;
\t\t\t}

\t\t\t.bx-ie8 .step-buttons input,
\t\t\t.bx-ie9 .step-buttons input {
\t\t\t\tborder-radius:4px;
\t\t\t\tbackground:url("/bitrix/panel/main/images/bx-admin-sprite-small-1.png") repeat-x 0 -3554px;
\t\t\t\tbox-shadow:0 0 0 1px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.5), 0 1px 0 #FFFFFF inset, 0 0 1px rgba(255, 255, 255, 0.5) inset !important;
\t\t\t\tline-height:16px;
\t\t\t\theight:31px!important;
\t\t\t\tpadding-top:6px!important;
\t\t\t\tpadding-bottom:6px!important;
\t\t\t\tmargin-right: 3px !important;
\t\t\t}

\t\t\t.bx-ie8 .step-buttons input {border:1px solid #959c9d !important;}

\t\t\t#step_error
\t\t\t{
\t\t\t\tcolor:red;
\t\t\t\tpadding:0 0 12px 0;
\t\t\t}

\t\t\t#hidden-layer
\t\t\t{
\t\t\t\tbackground:#F8F9FC none repeat scroll 0%;
\t\t\t\theight:100%;
\t\t\t\tleft:0pt;
\t\t\t\topacity:0.01;
\t\t\t\tfilter:alpha(opacity=1);
\t\t\t\t-moz-opacity:0.01;
\t\t\t\tposition:absolute;
\t\t\t\ttop:0pt;
\t\t\t\twidth:100%;
\t\t\t\tz-index:10001;
\t\t\t}

\t\t\t/*Data table*/
\t\t\ttable.wizard-data-table { border:1px solid #B2C4DD; border-collapse:collapse;}
\t\t\ttable.wizard-data-table td { border:1px solid #B2C4DD; background-color:#FFFFFF; padding:3px 5px; }
\t\t\ttable.wizard-data-table thead td, table.wizard-data-table th {
\t\t\t\tbackground-color:#E4EDF5;
\t\t\t\tfont-weight:normal;
\t\t\t\tbackground-image:none;
\t\t\t\tborder:1px solid #B2C4DD;
\t\t\t\tpadding:4px;
\t\t\t}
\t\t\ttable.wizard-data-table tbody td { background-color:#FFF; background-image:none; }
\t\t\ttable.wizard-data-table tfoot td { background-color:#F2F5F9; padding:4px; }

\t\t\t.wizard-note-box { background:#FEFDEA; padding:7px; border:1px solid #D7D6BA; }
\t\t\t.wizard-required { color:red; }

\t\t\t.bx-session-message { display: none !important;}

\t\t</style>

\t\t{$adminScript}

\t\t<script type="text/javascript">

\t\t\ttop.BX.message({"ADMIN_WIZARD_EXIT_ALERT" : "{$alertText}"});

\t\t\tfunction OnLoad()
\t\t\t{
\t\t\t\tvar dialog = top.BX.WindowManager.Get();
\t\t\t\tif (dialog)
\t\t\t\t\tdialog.SetTitle('{$wizardName}');

\t\t\t\tvar form = document.forms["{$formName}"];

\t\t\t\tif (form)
\t\t\t\t\tform.onsubmit = OnFormSubmit;

\t\t\t\tvar cancelButton = document.forms["{$formName}"].elements["{$cancelButtonID}"];
\t\t\t\tvar nextButton = document.forms["{$formName}"].elements["{$nextButtonID}"];
\t\t\t\tvar prevButton = document.forms["{$formName}"].elements["{$prevButtonID}"];
\t\t\t\tvar finishButton = document.forms["{$formName}"].elements["{$finishButtonID}"];

\t\t\t\tif (cancelButton && !nextButton && !prevButton && !finishButton)
\t\t\t\t{
\t\t\t\t\ttop.WizardWindow.isClosed = true;
\t\t\t\t\tcancelButton.onclick = CloseWindow;
\t\t\t\t}
\t\t\t\telse if(cancelButton)
\t\t\t\t{
\t\t\t\t\tcancelButton.onclick = ConfirmCancel;
\t\t\t\t}

\t\t\t\t{$autoSubmit}
\t\t\t}

\t\t\tfunction OnFormSubmit()
\t\t\t{
\t\t\t\tvar div = document.body.appendChild(document.createElement("DIV"));
\t\t\t\tdiv.id = "hidden-layer";
\t\t\t}

\t\t\tfunction AutoSubmit()
\t\t\t{
\t\t\t\tvar nextButton = document.forms["{$formName}"].elements["{$nextButtonID}"];
\t\t\t\tif (nextButton)
\t\t\t\t{
\t\t\t\t\tvar wizard = top.WizardWindow;
\t\t\t\t\tif (wizard)
\t\t\t\t\t{
\t\t\t\t\t\twizard.messLoading = "{$loadingText}";
\t\t\t\t\t\twizard.ShowWaitWindow();
\t\t\t\t\t}

\t\t\t\t\tnextButton.click();
\t\t\t\t\tnextButton.disabled=true;
\t\t\t\t}
\t\t\t}

\t\t\tfunction ConfirmCancel()
\t\t\t{
\t\t\t\treturn (confirm("{$alertText}"));
\t\t\t}

\t\t\tfunction ShowWarnings(warnings)
\t\t\t{
\t\t\t\tvar form = document.forms["{$formName}"];
\t\t\t\tif(!form)
\t\t\t\t\treturn;

\t\t\t\tfor(var i in warnings)
\t\t\t\t{
\t\t\t\t\tvar e = form.elements[warnings[i]["name"]];
\t\t\t\t\tif(!e)
\t\t\t\t\t\tcontinue;

\t\t\t\t\tvar type = (e.type? e.type.toLowerCase():"");
\t\t\t\t\tvar bBefore = false;
\t\t\t\t\tif(e.length > 1 && type != "select-one" && type != "select-multiple")
\t\t\t\t\t{
\t\t\t\t\t\te = e[0];
\t\t\t\t\t\tbBefore = true;
\t\t\t\t\t}
\t\t\t\t\tif(type == "textarea" || type == "select-multiple")
\t\t\t\t\t\tbBefore = true;

\t\t\t\t\tvar td = e.parentNode;
\t\t\t\t\tvar img;
\t\t\t\t\tif(bBefore)
\t\t\t\t\t{
\t\t\t\t\t\timg = td.insertBefore(new Image(), e);
\t\t\t\t\t\ttd.insertBefore(document.createElement("BR"), e);
\t\t\t\t\t}
\t\t\t\t\telse
\t\t\t\t\t{
\t\t\t\t\t\timg = td.insertBefore(new Image(), e.nextSibling);
\t\t\t\t\t\timg.hspace = 2;
\t\t\t\t\t\timg.vspace = 2;
\t\t\t\t\t\timg.style.verticalAlign = "bottom";
\t\t\t\t\t}
\t\t\t\t\timg.src = "/bitrix/themes/"+phpVars.ADMIN_THEME_ID+"/images/icon_warn.gif";
\t\t\t\t\timg.title = warnings[i]["title"];
\t\t\t\t}
\t\t\t}

\t\t\tdocument.onkeydown = EnterKeyPress;

\t\t\tfunction EnterKeyPress(event)
\t\t\t{

\t\t\t\tevent = event || window.event;

\t\t\t\tif (!event.ctrlKey)
\t\t\t\t\treturn;

\t\t\t\tvar key = (event.keyCode ? event.keyCode : (event.which ? event.which : null) );

\t\t\t\tif (!key)
\t\t\t\t\treturn;

\t\t\t\tif (key == 13 || key == 39)
\t\t\t\t{
\t\t\t\t\tvar nextButton = document.forms["{$formName}"].elements["{$nextButtonID}"];
\t\t\t\t\tif (nextButton)
\t\t\t\t\t\tnextButton.click();
\t\t\t\t}
\t\t\t\telse if (key == 37)
\t\t\t\t{
\t\t\t\t\tvar prevButton = document.forms["{$formName}"].elements["{$prevButtonID}"];
\t\t\t\t\tif (prevButton)
\t\t\t\t\t\tprevButton.click();
\t\t\t\t}
\t\t\t}

\t\t\tfunction CloseWindow()
\t\t\t{
\t\t\t\tif (self.parent.window.WizardWindow)
\t\t\t\t\tself.parent.window.WizardWindow.Close();
\t\t\t}

\t\t</script>

\t</head>

\t<body onload="OnLoad();">

\t\t{#FORM_START#}
\t\t<div class="step-content">
\t\t\t<div class="step-header">
\t\t\t\t<div class="step-title">{$stepTitle}</div>
\t\t\t\t<div class="step-subtitle">{$stepSubTitle}</div>
\t\t\t</div>
\t\t\t<div class="step-body">
\t\t\t\t{$strError}
\t\t\t\t{#CONTENT#}
\t\t\t</div>

\t\t</div>
\t\t<div class="step-buttons">{#BUTTONS#}</div>
\t\t{#FORM_END#}
\t\t{$strJsError}

\t</body>
</html>
HTML;
    }
Exemplo n.º 24
0
	function Show($arParams)
	{
		CUtil::InitJSCore(array('window', 'ajax', 'fx'));
		$this->InitLangMess();
		$arParams = $this->Init($arParams);

		// Display all DOM elements, dialogs
		$this->BuildSceleton($this->display);
		$this->Run($this->display);

		if ($arParams["initConponentParams"])
		{
			CComponentParamsManager::Init(array(
				'requestUrl' => '/bitrix/admin/fileman_component_params.php'
			));
		}
	}
Exemplo n.º 25
0
if(!defined('NOT_CHECK_PERMISSIONS') || NOT_CHECK_PERMISSIONS !== true)
{
	if (!$USER->CanDoOperation('view_other_settings'))
		$APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
}

require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/classes/general/checklist.php");
IncludeModuleLangFile(__FILE__);
$APPLICATION->AddHeadString(
	'<link type="text/css" rel="stylesheet" href="/bitrix/themes/.default/check-list-style.css">'
);
$APPLICATION->SetTitle(GetMessage("CL_TITLE_CHECKLIST"));
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");

CUtil::InitJSCore(Array('ajax','window','popup','fx'));
$arStates = array();

$showHiddenReports =  CUserOptions::GetOption("checklist","show_hidden","N",false);
if (($res = CCheckListResult::GetList(Array(),Array("REPORT"=>"N"))->Fetch())||($_POST["bx_start_test"] == "Y") || $_REQUEST["ACTION"])
{
	?><div class="checklist-body-1024"><?

	if (isset($_REQUEST['report_id']))
	{
		$checklist = new CCheckList($_REQUEST['report_id']);
	}
	else
		$checklist = new CCheckList();

	$isFisrtTime = CUserOptions::GetOption("checklist","autotest_start","N",false);
Exemplo n.º 26
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
CUtil::InitJSCore("ajax");
?>
<script type="text/javascript">

BX.message({
	sonetUSIInputID: '<?php 
echo CUtil::JSEscape($arResult["ID"]);
?>
'
});
			
if (typeof oObject != "object")
	window.oObject = {};

function SonetTTTButtonPress(oObj)
{
	window.oObject[oObj.id].oObj.value = '';
	window.oObject[oObj.id].bHint = false;
	if (window.oObject[oObj.id])
		window.oObject[oObj.id].Send('');
}

function SonetSearchButtonClick_<?php 
echo $arResult["ID"];
?>
()
Exemplo n.º 27
0
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/sale/lib/helpers/admin/orderedit.php";
$allowedStatusesView = array();
//load order
if (!empty($_REQUEST["ID"]) && intval($_REQUEST["ID"]) > 0) {
    $saleOrder = Bitrix\Sale\Order::load($_REQUEST["ID"]);
}
if ($saleOrder) {
    $allowedStatusesView = \Bitrix\Sale\OrderStatus::getStatusesUserCanDoOperations($USER->GetID(), array('view'));
}
if (!$saleOrder || !in_array($saleOrder->getField("STATUS_ID"), $allowedStatusesView)) {
    LocalRedirect("/bitrix/admin/sale_order.php?lang=" . LANGUAGE_ID . GetFilterParams("filter_", false));
}
$ID = intval($_REQUEST["ID"]);
/** @var Bitrix\Sale\Order $saleOrder */
Admin\OrderEdit::initCouponsData($saleOrder->getUserId(), $ID);
CUtil::InitJSCore();
$APPLICATION->SetTitle(Loc::getMessage("SALE_OVIEW_TITLE", array("#ID#" => $saleOrder->getId(), "#NUM#" => strlen($saleOrder->getField('ACCOUNT_NUMBER')) > 0 ? $saleOrder->getField('ACCOUNT_NUMBER') : $saleOrder->getId(), "#DATE#" => $saleOrder->getDateInsert()->toString())));
\Bitrix\Main\Page\Asset::getInstance()->addJs("/bitrix/js/sale/admin/order_edit.js");
ob_start();
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/sale/admin/order_history.php";
$historyContent = ob_get_contents();
ob_end_clean();
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
/* context menu */
$aMenu = array();
$aMenu[] = array("ICON" => "btn_list", "TEXT" => Loc::getMessage("SALE_OVIEW_TO_LIST"), "TITLE" => Loc::getMessage("SALE_OVIEW_TO_LIST_TITLE"), "LINK" => "/bitrix/admin/sale_order.php?lang=" . LANGUAGE_ID . GetFilterParams("filter_"));
$aMenu[] = array("TEXT" => Loc::getMessage("SALE_OVIEW_TO_EDIT"), "TITLE" => Loc::getMessage("SALE_OVIEW_TO_EDIT_TITLE"), "LINK" => "/bitrix/admin/sale_order_edit.php?ID=" . $ID . "&lang=" . LANGUAGE_ID . GetFilterParams("filter_"));
$arSysLangs = array();
$db_lang = CLangAdmin::GetList($b = "sort", $o = "asc", array("ACTIVE" => "Y"));
while ($arLang = $db_lang->Fetch()) {
    $arSysLangs[] = $arLang["LID"];
Exemplo n.º 28
0
 function SetEditArea($areaId, $arIcons)
 {
     if (!$this->bEditAreas) {
         CUtil::InitJSCore(array('admin'));
         AddEventHandler("main", "OnEpilog", array($this, '__GetEditAreas'));
         $this->bEditAreas = true;
     }
     if (!isset($this->arEditAreas[$areaId])) {
         $this->arEditAreas[$areaId] = array();
     }
     $this->arEditAreas[$areaId] = array_merge($this->arEditAreas[$areaId], $arIcons);
 }
Exemplo n.º 29
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if ($arResult["NEED_AUTH"] == "Y") {
    $APPLICATION->AuthForm("");
} elseif (strlen($arResult["FatalError"]) > 0) {
    ?>
<span class='errortext'><?php 
    echo $arResult["FatalError"];
    ?>
</span><br /><br /><?php 
} else {
    CUtil::InitJSCore(array("tooltip", "popup"));
    if (strlen($arResult["ErrorMessage"]) > 0) {
        ?>
<span class='errortext'><?php 
        echo $arResult["ErrorMessage"];
        ?>
</span><br /><br /><?php 
    }
    if (strlen($arResult["InfoMessage"]) > 0) {
        ?>
<span class='infotext'><?php 
        echo $arResult["InfoMessage"];
        ?>
</span><br /><?php 
    }
    ?>
	<script type="text/javascript">
Exemplo n.º 30
0
<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
CUtil::InitJSCore(array('taskQuickPopups'));
$loggedInUserId = (int) $GLOBALS['USER']->GetID();
$loggedInUserFormattedName = '';
$rsUser = CUser::GetList($by = 'ID', $order = 'ASC', array('ID' => $loggedInUserId), array('FIELDS' => array('NAME', 'LAST_NAME', 'SECOND_NAME', 'LOGIN')));
if ($arUser = $rsUser->Fetch()) {
    $loggedInUserFormattedName = CUser::FormatName(CSite::GetNameFormat(false), array('NAME' => $arUser['NAME'], 'LAST_NAME' => $arUser['LAST_NAME'], 'SECOND_NAME' => $arUser['SECOND_NAME'], 'LOGIN' => $arUser['LOGIN']), $bUseLogin = true, $bHtmlSpecialChars = false);
}
ob_start();
?>
	<div class="task-filter-popup" id="task-filter-popup" style="display: block;">
		<div class="task-filter-popup-header">
			<div class="task-filter-popup-name"><?php 
echo GetMessage('TASKS_FILTERV2_CONSTRUCTOR_FILTER_TITLE');
?>
</div>
			<div class="task-filter-popup-inp-wrap">
				<input type="text" value="" id="tasks-filter-name" class="task-filter-popup-inp"
					onkeyup="BX.Tasks.filterV2.engine.setFilterName({},this.value,{renderer : {skipRender: true}});"
					onchange="BX.Tasks.filterV2.engine.setFilterName({},this.value,{renderer : {skipRender: true}});">
			</div>
		</div>
		<div id="task-filter-popup-root-level" class="task-filter-popup-items-wrap task-filter-and"></div>
	</div>
<?php 
$html = ob_get_clean();
$href = '';