Beispiel #1
0
<?php

if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) {
    die;
}
?>
<div class="bx-vi-phones-title"><?php 
echo GetMessage('VI_PHONES_TITLE');
?>
</div>
<div class="bx-vi-phones-block-1"><?php 
echo GetMessage('VI_PHONES_HELP_1');
?>
</div>
<div class="bx-vi-phones-block-2"><?php 
echo GetMessage('VI_PHONES_HELP_2', array('#LINK_USERS_START#' => '<a href="' . CVoxImplantMain::GetPublicFolder() . 'users.php">', '#LINK_COURSE_1_START#' => '<a href="' . $arResult['LINK_TO_DOC'] . '" target="_blank">', '#LINK_COURSE_2_START#' => '<a href="' . $arResult['LINK_TO_DOC'] . '" target="_blank">', '#LINK_END#' => '</a>', '#IMAGE_CONNECT#' => '<div class="bx-vi-phones-connect bx-vi-phones-connect-' . LANGUAGE_ID . '"></div>', '#IMAGE_CALL_WITHOUT_BROWER#' => '<div class="bx-vi-phones-call-without-browser bx-vi-phones-call-without-browser-' . LANGUAGE_ID . '"></div>'));
?>
</div>
Beispiel #2
0
<?php 
}
?>

<div class="tel-set-main-wrap tel-set-main-wrap-white" id="vi_rent_options_div" style="display: none; margin-top: 15px;">
	<div class="tel-set-inner-wrap">
		<div class="tel-set-select-block" id="rent-select-placeholder">
			<div class="tel-set-item-select-wrap">
				<select class="tel-set-item-select">
					<option style="color: #888888"><?php 
echo GetMessage('VI_CONFIG_RENT_COUNTRY');
?>
</option>
					<option style="color: #888888">...</option>
				</select>
			</div>
		</div>
		<div id="rent-numbers-placeholder"></div>
	</div>
</div>
<script type="text/javascript">
	BX.VoxImplant.rentPhone.init({
		'selectPlaceholder': BX('rent-select-placeholder'),
		'numbersPlaceholder': BX('rent-numbers-placeholder'),
		'location': BX.message('LANGUAGE_ID').toUpperCase(),
		'publicFolder': '<?php 
echo CVoxImplantMain::GetPublicFolder();
?>
'
	})
</script>
Beispiel #3
0
        }
    }
    if ($skipSaving) {
        $error = $viSip->GetError()->msg;
    } else {
        if (($res = Bitrix\Voximplant\ConfigTable::update($arParams["ID"], $arFields)) && $res->isSuccess()) {
            // TODO We should work with other socialnetwork entities
            $toDrop = array_diff($arResult["~QUEUE"], $queue["U"]);
            $toAdd = array_diff($queue["U"], array_keys($arResult["QUEUE"]));
            foreach ($toDrop as $primary => $id) {
                Bitrix\Voximplant\QueueTable::delete($primary);
            }
            foreach ($toAdd as $k) {
                Bitrix\Voximplant\QueueTable::add(array("CONFIG_ID" => $arParams["ID"], "USER_ID" => $k, "STATUS" => "OFFLINE"));
            }
            LocalRedirect(CVoxImplantMain::GetPublicFolder() . 'lines.php?MODE=' . $arResult["ITEM"]["PORTAL_MODE"]);
        }
        $error = $res->getErrorMessages();
    }
    $arResult = array("ERROR" => $error, "ITEM" => array_merge($arResult["ITEM"], $arFields), "QUEUE" => array_flip($queue["U"]), "SIP_CONFIG" => array_merge($arResult["SIP_CONFIG"], $arFieldsSip));
}
foreach (array("MELODY_WELCOME", "MELODY_WAIT", "MELODY_HOLD", "MELODY_VOICEMAIL", "WORKTIME_DAYOFF_MELODY") as $id) {
    if ($arResult["ITEM"][$id] > 0) {
        $res = CFile::GetFileArray($arResult["ITEM"][$id]);
        if ($res) {
            $arResult["ITEM"]["~" . $id] = $res;
        } else {
            $arResult["ITEM"][$id] = 0;
        }
    }
}
Beispiel #4
0
', '<?php 
        echo CUtil::JSEscape($arItem["PHONE_NUMBER"]);
        ?>
', this.parentNode);"></span>
			</div>
		<?php 
    }
    ?>
	<?php 
}
?>
	</div>

	<div class="tel-set-item-alert" style="margin-top: 25px">
		<?php 
echo GetMessage('BLACKLIST_ABOUT_2', array('#LINK#' => '<a href="' . CVoxImplantMain::GetPublicFolder() . 'detail.php?CODE=423">' . GetMessage('BLACKLIST_ABOUT_LINK') . '</a>'));
?>
	</div>
</div>

<script>
	BX.message({
		BLACKLIST_DELETE_ERROR: '<?php 
echo GetMessageJS('BLACKLIST_DELETE_ERROR');
?>
',
		BLACKLIST_DELETE_CONFIRM : '<?php 
echo GetMessageJS("BLACKLIST_DELETE_CONFIRM");
?>
'
	});
Beispiel #5
0
			</tr>
		</table>', 'UF_PHONE_INNER' => '<span id="innerphone_' . $user['ID'] . '">' . $user["UF_PHONE_INNER"] . '</span>', 'UF_VI_BACKPHONE' => '<span id="backphone_' . $user['ID'] . '">' . (array_key_exists($user["UF_VI_BACKPHONE"], $numbers) ? $numbers[$user["UF_VI_BACKPHONE"]] : GetMessage('VI_NUMBERS_DEFAULT')) . '</span>' . '<span id="backphone_' . $user['ID'] . '_value" style="display:none;">' . $user["UF_VI_BACKPHONE"] . '</span>');
    $arCols['UF_VI_PHONE'] = '<span id="vi_phone_' . $user['ID'] . '"' . ($user["UF_VI_PHONE"] == "Y" ? ' class="bx-vi-phone-enable"' : '') . '>' . ($user["UF_VI_PHONE"] == "Y" ? GetMessage('VI_NUMBERS_PHONE_DEVICE_ENABLE') : GetMessage('VI_NUMBERS_PHONE_DEVICE_DISABLE')) . '</span>' . '<span style="display:none" id="vi_phone_enable_' . $user['ID'] . '">' . ($user["UF_VI_PHONE"] == "Y" ? 'Y' : 'N') . '</span>';
    $arCols['EDIT'] = '<span id="create_' . $user['ID'] . '">' . '<a href="#" onclick="BX.Voximplant.Numbers.edit(' . $user['ID'] . '); return false; ">' . GetMessage('VI_NUMBERS_EDIT') . '</a>' . '</span>';
    $arRows[$user['ID']] = array('data' => $user, 'columns' => $arCols);
}
$arResult['ROWS'] = $arRows;
$arHeaders = array(array('id' => 'NAME', 'name' => GetMessage('VI_NUMBERS_GRID_NAME'), 'sort' => 'name', 'default' => true, 'editable' => false), array('id' => 'UF_PHONE_INNER', 'name' => GetMessage('VI_NUMBERS_GRID_CODE'), 'default' => true, 'editable' => false), array('id' => 'UF_VI_BACKPHONE', 'name' => GetMessage('VI_NUMBERS_GRID_PHONE'), 'default' => true, 'editable' => false));
$arHeaders[] = array('id' => 'UF_VI_PHONE', 'name' => GetMessage('VI_NUMBERS_GRID_PHONE_DEVICE'), 'default' => true, 'editable' => false);
$arHeaders[] = array('id' => 'EDIT', 'name' => '', 'default' => true, 'editable' => false);
$APPLICATION->IncludeComponent('bitrix:main.interface.grid', '', array('GRID_ID' => $arResult['GRID_ID'], 'HEADERS' => $arHeaders, 'ROWS' => $arResult['ROWS'], 'NAV_OBJECT' => $arResult['NAV_OBJECT']));
?>
<div style="padding-top: 30px;">
	<div class="tel-set-item-alert">
		<?php 
echo GetMessage('VI_CONFIG_NOTICE_2', array('#LINK#' => '<a href="' . CVoxImplantMain::GetPublicFolder() . 'configs.php">' . GetMessage('VI_CONFIG_PAGE_CONFIGS') . '</a>'));
?>
	</div>
</div>
<script type="text/javascript">
BX.message({
	VI_NUMBERS_CREATE_TITLE : '<?php 
echo GetMessageJS("VI_NUMBERS_CREATE_TITLE");
?>
',
	VI_NUMBERS_ERR_AJAX : '<?php 
echo GetMessageJS("VI_NUMBERS_ERR_AJAX");
?>
',
	VI_NUMBERS_GRID_CODE : '<?php 
echo GetMessageJS("VI_NUMBERS_GRID_CODE");
Beispiel #6
0
    die;
}
$APPLICATION->SetAdditionalCSS("/bitrix/components/bitrix/voximplant.main/templates/.default/telephony.css");
/*$APPLICATION->IncludeComponent(
	'bitrix:main.interface.filter',
	'',
	array(
		'GRID_ID'=>$arResult["GRID_ID"],
		'FILTER'=> $arResult["FILTER"],
		//"FILTER_PRESETS"=>$arParams["~FILTER_PRESETS"],
		'FILTER_ROWS'=>array("PHONE_NUMBER"=>1, "CALL_DURATION" => 1, "CALL_START_DATE" => 1),//$arParams['~FILTER_ROWS'],
		//'FILTER_FIELDS'=>$arResult["FILTER"],
		//'OPTIONS'=>$arParams['~OPTIONS'],
		//'FILTER_INFO'=>$arResult['FILTER_INFO'],
		//'RENDER_FILTER_INTO_VIEW'=>isset($arParams['~RENDER_FILTER_INTO_VIEW']) ? $arParams['~RENDER_FILTER_INTO_VIEW'] : '',
		//'HIDE_FILTER'=>"Y"//isset($arParams['~HIDE_FILTER']) ? $arParams['~HIDE_FILTER'] : false
	),
	$component,
	array('HIDE_ICONS'=>true)
);*/
$buttons = array(array("TEXT" => GetMessage("TEL_STAT_BACK"), "TITLE" => GetMessage("TEL_STAT_BACK_TITLE"), "LINK" => CVoxImplantMain::GetPublicFolder(), "ICON" => "go-back"));
if ($_GET['USER_ID'] || $_GET['CODE']) {
    $buttons[] = array("TEXT" => GetMessage("TEL_STAT_FILTER_CANCEL"), "TITLE" => GetMessage("TEL_STAT_FILTER_CANCEL_TITLE"), "LINK" => CVoxImplantMain::GetPublicFolder() . 'detail.php', "ICON" => "btn-unlock");
}
$APPLICATION->IncludeComponent("bitrix:main.interface.toolbar", "", array("BUTTONS" => $buttons), $component);
?>
<div class="tel-stat-grid-wrap">
<?php 
$APPLICATION->IncludeComponent("bitrix:main.interface.grid", "", array("GRID_ID" => $arResult["GRID_ID"], "HEADERS" => $arResult["HEADERS"], "ROWS" => $arResult["ELEMENTS_ROWS"], "NAV_OBJECT" => $arResult["NAV_OBJECT"], "FOOTER" => array(array("title" => GetMessage("CT_BLL_SELECTED"), "value" => $arResult["ROWS_COUNT"])), "AJAX_MODE" => "Y"), $component, array("HIDE_ICONS" => "Y"));
?>
</div>
Beispiel #7
0
>
				<div class="tel-set-inner">
					<?php 
$APPLICATION->IncludeComponent("bitrix:voximplant.config.sip", "", array());
?>
				</div>
			</div>
			<div id="tel-set-corner" class="tel-set-corner"></div>
		</div>
	</div>
</div>

<div class="tel-set-phone-numbers">
	<div class="tel-set-item-alert">
		<?php 
echo GetMessage('VI_CONFIG_NOTICE_NEW', array('#LINK_CONFIG#' => '<a href="' . CVoxImplantMain::GetPublicFolder() . 'configs.php">' . GetMessage('VI_CONFIG_PAGE_CONFIG') . '</a>', '#LINK_USERS#' => '<a href="' . CVoxImplantMain::GetPublicFolder() . 'users.php">' . GetMessage('VI_CONFIG_PAGE_CONFIG_USERS') . '</a>'));
?>
	</div>
</div>

<script type="text/javascript">
	var setPost = {
		corner : BX('tel-set-corner'),
		anim_block : null,
		btn : null,
		wrap_block : BX('tel-set-block'),
		block_list : null,
		table : BX('tel-block-table'),
		active_cell_num : null,
		over_cell_num : null,