9 CModule::IncludeModule(
"bizproc");
14 $dbSites = CSite::GetList(
"",
"", [
"ACTIVE" =>
"Y"]);
23 $aSubTabs[] = [
"DIV" =>
"opt_site_" .
$site[
"ID"],
"TAB" =>
"(" .
$site[
"ID"] .
") " .
$site[
"NAME"],
'TITLE' =>
''];
29 COption::RemoveOption(
"bizproc");
34 [
"log_cleanup_days",
GetMessage(
"BIZPROC_LOG_CLEANUP_DAYS"),
"90", [
"text", 3]],
35 [
"search_cleanup_days",
GetMessage(
"BIZPROC_SEARCH_CLEANUP_DAYS"),
"180", [
"text", 3]],
36 [
"log_skip_types",
GetMessage(
"BIZPROC_LOG_SKIP_TYPES"),
"1,2", [
"checkboxlist", [
40 [
"automation_no_forced_tracking",
GetMessage(
"BIZPROC_AUTOMATION_NO_FORCED_TRACKING"),
"N", [
"checkbox"]],
41 [
"limit_simultaneous_processes",
GetMessage(
"BIZPROC_LIMIT_SIMULTANEOUS_PROCESSES"),
"", [
"text", 3]],
42 [
"employee_compatible_mode",
GetMessage(
"BIZPROC_EMPLOYEE_COMPATIBLE_MODE"),
"N", [
"checkbox"]],
43 [
"limit_while_iterations",
GetMessage(
"BIZPROC_LIMIT_WHILE_ITERATIONS"),
"1000", [
"text", 5]],
50 COption::SetOptionString(
"bizproc",
"log_cleanup_days", ($log_cleanup_days ?? 0));
51 if ($log_cleanup_days > 0)
53 CAgent::AddAgent(
"CBPTrackingService::ClearOldAgent();",
"bizproc",
"N", 86400);
57 CAgent::RemoveAgent(
"CBPTrackingService::ClearOldAgent();",
"bizproc");
60 COption::SetOptionString(
"bizproc",
"search_cleanup_days", ($search_cleanup_days ?? 0));
61 if ($search_cleanup_days > 0)
63 CAgent::AddAgent(\
Bitrix\Bizproc\Worker\Workflow\ClearFilterAgent::getName(),
"bizproc",
"N", 86400);
64 CAgent::AddAgent(\
Bitrix\Bizproc\Worker\Task\ClearSearchContentAgent::getName(),
"bizproc",
"N", 86400);
68 CAgent::RemoveAgent(\
Bitrix\Bizproc\Worker\Workflow\ClearFilterAgent::getName(),
"bizproc");
69 CAgent::RemoveAgent(\
Bitrix\Bizproc\Worker\Task\ClearSearchContentAgent::getName(),
"bizproc");
72 COption::SetOptionString(
"bizproc",
"employee_compatible_mode", ($employee_compatible_mode ??
'N') ===
"Y" ?
"Y" :
"N");
73 COption::SetOptionString(
"bizproc",
"limit_simultaneous_processes", ($limit_simultaneous_processes ?? 0) ? $limit_simultaneous_processes : 0);
74 COption::SetOptionString(
"bizproc",
"limit_while_iterations", ($limit_while_iterations ?? 1000));
75 COption::SetOptionString(
"bizproc",
"log_skip_types", ($log_skip_types ??
'') ? implode(
',', $log_skip_types) :
"");
76 COption::SetOptionString(
"bizproc",
"automation_no_forced_tracking", ($automation_no_forced_tracking ??
'N') ===
"Y" ?
"Y" :
"N");
77 COption::SetOptionString(
'bizproc',
'enable_getdocument_select', ($enable_getdocument_select ??
'N') ===
'Y' ?
'Y' :
'N');
86 if (isset($_POST[
"name_template_" .
$site[
"LID"]]))
88 if (empty($_POST[
"name_template_" .
$site[
"LID"]]))
89 COption::RemoveOption(
"bizproc",
"name_template",
$site[
"LID"]);
91 COption::SetOptionString(
"bizproc",
"name_template", $_POST[
"name_template_" .
$site[
"LID"]],
false,
$site[
"LID"]);
100 [
"DIV" =>
"edit1",
"TAB" =>
GetMessage(
"BIZPROC_TAB_SET"),
"ICON" =>
"",
"TITLE" =>
GetMessage(
"BIZPROC_TAB_SET_ALT")],
106 name=
"bizproc_opt_form"
107 action=
"<?= $APPLICATION->GetCurPage() ?>?mid=<?= htmlspecialcharsbx($mid ?? 'bizproc') ?>&lang=<?= LANGUAGE_ID ?>"
108 ENCTYPE=
"multipart/form-data"><?php
119 <td
width=
"50%" valign=
"top"><?php
120 if (
$type[0] ==
"checkbox")
126 <td
width=
"50%" valign=
"top">
128 if (
$type[0] ==
"checkbox"):?>
129 <input type=
"checkbox" name=
"<?php
130 echo htmlspecialcharsbx($Option[0]) ?>" id=
"<?php
131 echo htmlspecialcharsbx($Option[0]) ?>" value=
"Y"<?php
136 <input type=
"text" size=
"<?php
137 echo $type[1] ?>" value=
"<?php
138 echo htmlspecialcharsbx($val) ?>" name=
"<?php
139 echo htmlspecialcharsbx($Option[0]) ?>">
142 <textarea rows=
"<?php
143 echo $type[1] ?>" cols=
"<?php
144 echo $type[2] ?>" name=
"<?php
145 echo htmlspecialcharsbx($Option[0]) ?>"><?php
153 foreach (
$type[1] as
$k => $v):?>
154 <input type=
"checkbox" name=
"<?php
155 echo htmlspecialcharsbx($Option[0]) ?>[]" id=
"<?php
156 echo htmlspecialcharsbx($Option[0] . '_' . $k) ?>" value=
"<?= $k ?>"<?php
159 <label
for=
"<?= htmlspecialcharsbx($Option[0] . '_' . $k) ?>"><?php
170 <td
width=
"50%" valign=
"top"><?=
GetMessage(
"BIZPROC_OPT_USE_GZIP_COMPRESSION") ?>:</td>
171 <td
width=
"50%" valign=
"top">
172 <
select name=
"use_gzip_compression">
175 <option value=
"" <?php
177 echo
"selected"; ?>><?=
GetMessage(
"BIZPROC_OPT_USE_GZIP_COMPRESSION_EMPTY") ?></option>
178 <option value=
"Y" <?php
180 echo
"selected"; ?>><?=
GetMessage(
"BIZPROC_OPT_USE_GZIP_COMPRESSION_Y") ?></option>
181 <option value=
"N" <?php
183 echo
"selected"; ?>><?=
GetMessage(
"BIZPROC_OPT_USE_GZIP_COMPRESSION_N") ?></option>
188 <td
width=
"50%" valign=
"top"><?=
GetMessage(
"BIZPROC_OPT_LOCKED_WI_PATH") ?>:</td>
189 <td
width=
"50%" valign=
"top">
192 <input type=
"text" size=
"40" name=
"locked_wi_path" value=
"<?= htmlspecialcharsbx($path) ?>">
196 <td
width=
"50%" valign=
"top"><?=
GetMessage(
"BIZPROC_OPT_TIME_LIMIT") ?>:</td>
197 <td
width=
"50%" valign=
"top">
201 <input type=
"text" name=
"delay_min_limit" value=
"<?= $delayTime ?>" size=
"5" />
202 <
select name=
"delay_min_limit_type">
203 <option value=
"s"<?= ($delayType ==
"s") ?
" selected" :
"" ?>><?=
GetMessage(
"BIZPROC_OPT_TIME_LIMIT_S") ?></option>
204 <option value=
"m"<?= ($delayType ==
"m") ?
" selected" :
"" ?>><?=
GetMessage(
"BIZPROC_OPT_TIME_LIMIT_M") ?></option>
205 <option value=
"h"<?= ($delayType ==
"h") ?
" selected" :
"" ?>><?=
GetMessage(
"BIZPROC_OPT_TIME_LIMIT_H") ?></option>
206 <option value=
"d"<?= ($delayType ==
"d") ?
" selected" :
"" ?>><?=
GetMessage(
"BIZPROC_OPT_TIME_LIMIT_D") ?></option>
211 <td valign=
"top" colspan=
"2" align=
"center">
217 $curVal = COption::GetOptionString(
"bizproc",
"name_template",
"",
$site[
"LID"]);
219 <label><?=
GetMessage(
"BIZPROC_NAME_TEMPLATE") ?></label>:
220 <
select name=
"name_template_<?php
221 echo $site["LID
"] ?>">
223 $arNameTemplates = CSite::GetNameTemplates();
224 $arNameTemplates = array_reverse($arNameTemplates,
true);
225 $arNameTemplates[
""] =
GetMessage(
"BIZPROC_OPTIONS_NAME_IN_SITE_FORMAT");
226 $arNameTemplates = array_reverse($arNameTemplates,
true);
227 foreach ($arNameTemplates as
$template => $phrase)
231 <option value=
"<?= $template ?>" <?= ((
$template == $curVal) ?
" selected" :
"") ?> ><?= $phrase ?></option><?php
244 function RestoreDefaults()
246 if (confirm(
'<?= AddSlashes(GetMessage("MAIN_HINT_RESTORE_DEFAULTS_WARNING"))?>'))
247 window.location =
"<?= $APPLICATION->GetCurPage() ?>?RestoreDefaults=Y&lang=<?= LANG ?>&mid=<?= urlencode($mid) ?>&<?= bitrix_sessid_get() ?>";
251 <input type=
"submit" class=
"adm-btn-save" <?php
253 echo
"disabled" ?> name=
"Update" value=
"<?php
254 echo GetMessage("MAIN_SAVE
") ?>">
255 <input type=
"hidden" name=
"Update" value=
"Y">
256 <input type=
"reset" name=
"reset" value=
"<?php
257 echo GetMessage("MAIN_RESET
") ?>">
258 <input type=
"button" <?php
260 echo
"disabled" ?>
title=
"<?php
261 echo GetMessage("MAIN_HINT_RESTORE_DEFAULTS
") ?>" OnClick=
"RestoreDefaults();" value=
"<?php
262 echo GetMessage("MAIN_RESTORE_DEFAULTS
") ?>">
while($site=$dbSites->Fetch()) $subTabControl
if($_SERVER $defaultValue['REQUEST_METHOD']==="GET" &&!empty($RestoreDefaults) && $bizprocPerms==="W" &&check_bitrix_sessid())
if($canUseYandexMarket) $strWarning
if($_SERVER $arAllOptions['REQUEST_METHOD']=='GET' &&!empty($_REQUEST['RestoreDefaults']) &&! $bReadOnly &&check_bitrix_sessid())
static get($moduleId, $name, $default="", $siteId=false)
static set($moduleId, $name, $value="", $siteId="")
static isModuleInstalled($moduleName)
static ShowMessage($message)
static getDelayMinLimit($withType=false)
static setDelayMinLimit($limit, $type='s')
bx popup label bx width30 PAGE_NEW_MENU_NAME text width
$_SERVER["DOCUMENT_ROOT"]
bitrix_sessid_post($varname='sessid', $returnInvocations=false)
check_bitrix_sessid($varname='sessid')
htmlspecialcharsbx($string, $flags=ENT_COMPAT, $doubleEncode=true)
IncludeModuleLangFile($filepath, $lang=false, $bReturnArray=false)
GetMessage($name, $aReplace=null)
global_menu_<?echo $menu["menu_id"]?> adm main menu item icon adm main menu item text text adm main menu hover adm submenu menucontainer menu_id menu_id items_id items_id desktop menu_id block none adm global submenu<?=($subMenuDisplay=="block" ? " adm-global-submenu-active" :"")?> global_submenu_<?echo $menu["menu_id"]?> text MAIN_PR_ADMIN_FAV items adm submenu items wrap adm submenu items stretch wrap BX adminMenu itemsStretchScroll()"> <table class if (!empty( $menu["items"])) elseif ( $menu[ 'menu_id']=='desktop') if ( $menu[ 'menu_id']=='desktop') endforeach
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
<? endif;?> window document title
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"