Commit 610aa5ff authored by Brotiger's avatar Brotiger

blank

parents
<?php if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
$arComponentDescription = array(
"NAME" => "Блок отчета по звонкам",
"DESCRIPTION" => "Компонент для вывода отчета по звонкам",
"PATH" => array(
"ID" => "ВЭП"
)
);
\ No newline at end of file
<?php if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die(); ?>
\ No newline at end of file
<?php if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();
$this->includeComponentTemplate();
\ No newline at end of file
<?php
use Bitrix\Main\Localization\Loc;
Loc::LoadMessages(__FILE__);
if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
global $APPLICATION;
if(CModule::includeModule("zk.tribunaldoc")):
?>
<div>
VEP
</div>
<?php
endif;
?>
\ No newline at end of file
<?php
?>
\ No newline at end of file
<?php if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die();
$arComponentDescription = array(
"NAME" => "Блок отчета по звонкам",
"DESCRIPTION" => "Компонент для вывода отчета по звонкам",
"PATH" => array(
"ID" => "ВЭП"
)
);
\ No newline at end of file
<?php if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die(); ?>
\ No newline at end of file
<?php if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die();
$this->includeComponentTemplate();
\ No newline at end of file
<?php
use Bitrix\Main\Localization\Loc;
use Bitrix\Main\ModuleManager;
use Bitrix\Main\Config\Option;
use Bitrix\Main\EventManager;
use Bitrix\Main\Application;
use Bitrix\Main\IO\Directory;
Loc::loadMessages(__FILE__);
class zk_vep extends CModule{
public function __construct(){
if(file_exists(__DIR__."/version.php")){
$arModuleVersion = array();
include_once(__DIR__."/version.php");
$this->MODULE_ID = str_replace("_", ".", get_class($this));
$this->MODULE_VERSION = $arModuleVersion["VERSION"];
$this->MODULE_VERSION_DATE = $arModuleVersion["VERSION_DATE"];
$this->MODULE_NAME = Loc::getMessage("ZK_VEP_MODULE_NAME");
$this->MODULE_DESCRIPTION = Loc::getMessage("ZK_VEP_MODULE_DESCRIPTION");
$this->PARTNER_NAME = Loc::getMessage("ZK_VEP_PARTNER_NAME");
$this->PARTNER_URI = Loc::getMessage("ZK_VEP_PARTNER_URI");
return false;
}
}
public function DoInstall(){
global $APPLICATION;
if(CheckVersion(ModuleManager::getVersion("main"), "14.00.00")){
$this->InstallFiles();;
ModuleManager::registerModule($this->MODULE_ID);
}else{
$APPLICATION->ThrowException(
Loc::getMessage("ZK_VEP_BITRIX_VERSION_ERROR")
);
}
$APPLICATION->IncludeAdminFile(
Loc::getMessage("ZK_VEP_INSTALL_TITLE")." \"".Loc::getMessage("ZK_VEP_MODULE_NAME")."\"",__DIR__."/step.php"
);
return false;
}
public function InstallFiles(){
$result = CopyDirFiles($_SERVER["DOCUMENT_ROOT"]."/local/modules/".$this->MODULE_ID."/install/components", $_SERVER["DOCUMENT_ROOT"]."/local/components", true, true);
return !$result;
}
public function DoUninstall(){
global $APPLICATION;
$this->UnInstallFiles();
ModuleManager::unRegisterModule($this->MODULE_ID);
$APPLICATION->IncludeAdminFile(
Loc::getMessage("ZK_VEP_UNINSTALL_TITLE")." \"".Loc::getMessage("ZK_VEP_MODULE_NAME")."\"",__DIR__."/unstep.php"
);
return false;
}
public function UnInstallFiles(){
$dirName = str_replace(".", "/", $this->MODULE_ID);
DeleteDirFilesEx("/local/components/".$dirName);
return false;
}
}
?>
\ No newline at end of file
<?php
use Bitrix\Main\Localization\Loc;
Loc::LoadMessages(__FILE__);
if(!check_bitrix_sessid()){
return;
}
if($errorException = $APPLICATION->GetException()){
echo(CAdminMessage::ShowMessage($errorException->GetString()));
}else{
echo(CAdminMessage::ShowNote(Loc::getMessage("ZK_VEP_STEP_BEFORE"). " ".Loc::getMessage("ZK_VEP_STEP_AFTER")));
}
?>
<form action="<?php echo($APPLICATION->GetCurPage()); ?>">
<input type="hidden" name="lang" value="<?php echo(LANG); ?>" />
<input type="submit" value="<?php echo(Loc::getMessage("ZK_VEP_STEP_SUBMIT_BACK")); ?>">
</form>
\ No newline at end of file
<?php
use Bitrix\Main\Localization\Loc;
Loc::loadMessages(__FILE__);
if(!check_bitrix_sessid()){
return;
}
echo(CAdminMessage::ShowNote(Loc::getMessage("ZK_VEP_UNSTEP_BEFORE")." ".Loc::getMessage("ZK_VEP_UNSTEP_AFTER")));
?>
<form action="<?php echo($APPLICATION->GetCurPage()); ?>">
<input type="hidden" name="lang" value="<?php echo(LANG); ?>">
<input type="submit" value="<?php echo(Loc::getMessage("ZK_VEP_UNSTEP_SUBMIT_BACK")); ?>">
</form>
\ No newline at end of file
<?php
$arModuleVersion = array(
"VERSION" => "1.0.0",
"VERSION_DATE" => "0000-00-00 00:00:00"
);
?>
\ No newline at end of file
<?php
$MESS["ZK_VEP_MODULE_NAME"] = "Отчеты по звонкам";
$MESS["ZK_VEP_MODULE_DESCRIPTION"] = "Добавляет возможность получения сведений о истории звонков в портале";
$MESS["ZK_VEP_PARTNER_NAME"] = "Дмитрий Берестнев";
$MESS["ZK_VEP_PARTNER_URI"] = "https://vk.com/brotiger63";
$MESS["ZK_VEP_BITRIX_VERSION_ERROR"] = "Версия главного модуля ниже 14";
$MESS["ZK_VEP_INSTALL_TITLE"] = "Установка модуля";
$MESS["ZK_VEP_UNINSTALL_TITLE"] = "Деинсталяция модуля";
?>
\ No newline at end of file
<?php
$MESS["ZK_VEP_STEP_BEFORE"] = "Модуль";
$MESS["ZK_VEP_STEP_AFTER"] = "установлен";
$MESS["ZK_VEP_STEP_SUBMIT_BACK"] = "Вернуться к списку модулей";
?>
\ No newline at end of file
<?php
$MESS["ZK_VEP_UNSTEP_BEFORE"] = "Модуль";
$MESS["ZK_VEP_UNSTEP_AFTER"] = "удален";
$MESS["ZK_VEP_UNSTEP_SUBMIT_BACK"] = "Вернуться к списку модулей";
?>
\ No newline at end of file
<?php
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment