This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
CModule::IncludeModule('crm'); | |
CModule::IncludeModule('gpw.1cdb'); | |
CModule::IncludeModule('gpw.payments'); | |
require_once($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/classes/general/csv_data.php"); | |
$csvFile = new CCSVData('R', true); | |
$csvFile->LoadFile($_SERVER['DOCUMENT_ROOT'] . '/testing/file.csv'); | |
$csvFile->SetDelimiter(';'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
require_once($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php"); | |
require_once($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/mail/prolog.php"); | |
$APPLICATION->SetTitle("Тестирование"); | |
CModule::IncludeModule("mail"); | |
$mailboxID = 13; | |
$sql = "SELECT COUNT(*) as CNT FROM b_mail_message WHERE MAILBOX_ID = {$mailboxID}"; | |
$res = $DB->Query($sql); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
define('STOP_STATISTICS', true); | |
define('BX_SECURITY_SHOW_MESSAGE', true); | |
require_once($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php'); | |
use Bitrix\Disk\Configuration; | |
use Bitrix\Disk\Driver; | |
use Bitrix\Disk\ExternalLink; | |
use Bitrix\Disk\File; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$iUserID = CBPHelper::StripUserPrefix("{=Document:CREATED_BY}"); | |
$arAbsenceDates = \CIntranetUtils::GetAbsenceData( | |
array( | |
'USERS' => array($iUserID), | |
'DATE_START' => '01.01.' . date('Y'), | |
'DATE_FINISH' => ConvertTimeStamp(false, 'SHORT'), | |
'PER_USER' => false | |
), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/header.php"); | |
$APPLICATION->SetTitle("Описание"); | |
require $_SERVER['DOCUMENT_ROOT'] . '/bitrix/php_interface/include/phpexcel/vendor/autoload.php'; | |
$strFileDir = $_SERVER['DOCUMENT_ROOT'] . '/testing/excel/'; | |
$arFiles = array_diff(scandir($strFileDir), array('..', '.')); | |
foreach ($arFiles as $key => $strFileName) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
define('STOP_STATISTICS', true); | |
define('BX_SECURITY_SHOW_MESSAGE', true); | |
require_once($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php'); | |
use Bitrix\Disk\Configuration; | |
use Bitrix\Disk\Driver; | |
use Bitrix\Disk\ExternalLink; | |
use Bitrix\Disk\File; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BX.addCustomEvent("onPopupShow", function(e){console.log(e, this)}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
define('STOP_STATISTICS', true); | |
define('BX_SECURITY_SHOW_MESSAGE', true); | |
define("NOT_CHECK_PERMISSIONS", true); | |
$_SERVER['DOCUMENT_ROOT'] = '/home/bitrix/www'; | |
require_once($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php'); | |
use Bitrix\Crm\CompanyTable; | |
use Bitrix\Disk\Configuration; | |
use Bitrix\Disk\Driver; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
//CSS | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Bitrix\Main\Page\Asset; | |
Asset::getInstance()->addJs(SITE_TEMPLATE_PATH . "/js/fix.js"); | |
Asset::getInstance()->addCss(SITE_TEMPLATE_PATH . "/styles/fix.css"); | |
Asset::getInstance()->addString("<link href='http://fonts.googleapis.com/css?family=PT+Sans:400&subset=cyrillic' rel='stylesheet' type='text/css'>"); |
OlderNewer