bxplc_call_card.php 2.57 KB
Newer Older
Kulya's avatar
Kulya committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
<head>
<script src="//api.bitrix24.com/api/v1/"></script>
</head>
<?php
echo (!empty($arResult["header"])) ? $arResult["header"] : 'Дополнительная информация';

if( !empty($arResult["body"]) ){
	echo $arResult["body"]; 
} 
/*
0: "CRM_LEAD_LIST_MENU"
1: "CRM_DEAL_LIST_MENU"
2: "CRM_INVOICE_LIST_MENU"
3: "CRM_QUOTE_LIST_MENU"
4: "CRM_CONTACT_LIST_MENU"
5: "CRM_COMPANY_LIST_MENU"
6: "CRM_ACTIVITY_LIST_MENU"
7: "CRM_ANALYTICS_MENU"
8: "CRM_LEAD_DETAIL_TAB"
9: "CRM_DEAL_DETAIL_TAB"
10: "CRM_CONTACT_DETAIL_TAB"
11: "CRM_COMPANY_DETAIL_TAB"
12: "CRM_ORDER_DETAIL_TAB"
13: "CRM_LEAD_DETAIL_ACTIVITY"
14: "CRM_DEAL_DETAIL_ACTIVITY"
15: "CRM_CONTACT_DETAIL_ACTIVITY"
16: "CRM_COMPANY_DETAIL_ACTIVITY"
17: "CRM_ORDER_DETAIL_ACTIVITY"
18: "CRM_LEAD_DETAIL_TOOLBAR"
19: "CRM_DEAL_DETAIL_TOOLBAR"
20: "CRM_CONTACT_DETAIL_TOOLBAR"
21: "CRM_COMPANY_DETAIL_TOOLBAR"
22: "CRM_REQUISITE_EDIT_FORM"
23: "1C_PAGE"
24: "CRM_DETAIL_SEARCH"
25: "CRM_DEAL_LIST_TOOLBAR"
26: "CRM_LEAD_LIST_TOOLBAR"
27: "CRM_CONTACT_LIST_TOOLBAR"
28: "CRM_COMPANY_LIST_TOOLBAR"
29: "CRM_INVOICE_LIST_TOOLBAR"
30: "CRM_QUOTE_LIST_TOOLBAR"
31: "CRM_ORDER_LIST_TOOLBAR"
32: "CRM_INVOICE_DETAIL_TOOLBAR"
33: "CRM_QUOTE_DETAIL_TOOLBAR"
34: "CRM_DEAL_DOCUMENTGENERATOR_BUTTON"
35: "CRM_LEAD_DOCUMENTGENERATOR_BUTTON"
36: "CRM_CONTACT_DOCUMENTGENERATOR_BUTTON"
37: "CRM_COMPANY_DOCUMENTGENERATOR_BUTTON"
38: "CRM_INVOICE_DOCUMENTGENERATOR_BUTTON"
39: "CRM_QUOTE_DOCUMENTGENERATOR_BUTTON"
40: "CRM_DEAL_ACTIVITY_TIMELINE_MENU"
41: "CRM_LEAD_ACTIVITY_TIMELINE_MENU"
42: "CRM_LEAD_ROBOT_DESIGNER_TOOLBAR"
43: "CRM_DEAL_ROBOT_DESIGNER_TOOLBAR"
44: "CRM_ANALYTICS_TOOLBAR"
45: "CRM_FUNNELS_TOOLBAR"
46: "CALL_CARD"
47: "TELEPHONY_ANALYTICS_MENU"
48: "SETTING_CONNECTOR"
49: "CONTACT_CENTER"
50: "USER_PROFILE_MENU"
51: "USER_PROFILE_TOOLBAR"
52: "CALENDAR_GRIDVIEW"
53: "SONET_GROUP_TOOLBAR"
54: "SONET_GROUP_DETAIL_TAB"
55: "TASK_USER_LIST_TOOLBAR"
56: "TASK_GROUP_LIST_TOOLBAR"
57: "TASK_ROBOT_DESIGNER_TOOLBAR"
58: "TASK_TOP_MENU"
59: "TASK_LIST_CONTEXT_MENU"
60: "TASK_VIEW_MODE"
61: "TASK_VIEW_TAB"
62: "TASK_VIEW_SIDEBAR"
63: "TASK_VIEW_TOP_PANEL"
64: "TASK_VIEW_MENU_ADD"
65: "REST_APP_URI"	
*/
?>
<script>
BX24.init(function(){
	console.log('Инициализация завершена!', BX24.isAdmin());
	
	BX24.placement.call('getStatus', {}, function (result) {
		console.log('getStatus',result);
	});

	BX24.placement.bindEvent("CallCard::EntityChanged", function (fvar, svar, tvar) {
	   console.log("Entity Change:",fvar, svar, tvar);
	});	
});
</script>