2require_once
$_SERVER[
'DOCUMENT_ROOT'] .
'/bitrix/modules/workflow/include.php';
18 'HISTORY_SIMPLE_EDITING',
30 'DAYS_AFTER_PUBLISHING',
56 'ICON' =>
'workflow_settings',
62 'ICON' =>
'workflow_settings',
63 'TITLE' =>
GetMessage(
'MAIN_TAB_TITLE_RIGHTS'),
69 $request = \Bitrix\Main\Context::getCurrent()->getRequest();
77 if ((
string)
$request[
'RestoreDefaults'] !==
'')
81 while (
$zr =
$z->Fetch())
99 COption::SetOptionString(
$module_id,
'WORKFLOW_ADMIN_GROUP_ID', intval($WORKFLOW_ADMIN_GROUP_ID));
101 if ($_POST[
'DAYS_AFTER_PUBLISHING_clear'] ==
'Y')
105 if ($_POST[
'HISTORY_COPIES_clear'] ==
'Y')
109 if ($_POST[
'HISTORY_DAYS_clear'] ==
'Y')
117 require_once
$_SERVER[
'DOCUMENT_ROOT'] .
'/bitrix/modules/main/admin/group_rights.php';
122 $WORKFLOW_ADMIN_GROUP_ID = COption::GetOptionString(
$module_id,
'WORKFLOW_ADMIN_GROUP_ID');
127 ?><form method=
"POST" action=
"<?php echo htmlspecialcharsbx($APPLICATION->GetCurPage() . '?mid=' . urlencode($module_id) . '&lang=' . LANGUAGE_ID)?>"><?php
137 <td
width=
"40%" nowrap <?php echo (
$type[0] ==
'textarea') ?
'class="adm-detail-valign-top"' :
'';?>>
138 <label
for=
"<?php echo htmlspecialcharsbx($Option[0])?>"><?php echo
$Option[1]?></label>
140 <?php
if (
$type[0] ==
'checkbox')
142 ?><input type=
"hidden" name=
"<?php echo htmlspecialcharsbx($Option[0])?>" value=
"N"><?php
143 ?><input type=
"checkbox" name=
"<?php echo htmlspecialcharsbx($Option[0])?>" id=
"<?php echo htmlspecialcharsbx($Option[0])?>" value=
"Y"<?php echo (
$val ==
'Y') ?
' checked' :
'';?>><?php
147 ?><input type=
"text" size=
"<?php echo $type[1]?>" maxlength=
"255" value=
"<?php echo htmlspecialcharsbx($val)?>" name=
"<?php echo htmlspecialcharsbx($Option[0])?>"><?php
150 ?>&
nbsp;<label
for=
"<?php echo htmlspecialcharsbx($Option[0])?>_clear"><?=
GetMessage(
'FLOW_CLEAR')?>:</label><input type=
"hidden" name=
"<?php echo htmlspecialcharsbx($Option[0])?>_clear" value=
"N"><input type=
"checkbox" name=
"<?php echo htmlspecialcharsbx($Option[0])?>_clear" id=
"<?php echo htmlspecialcharsbx($Option[0])?>_clear" value=
"Y"><?php
155 ?><textarea rows=
"<?php echo $type[1]?>" cols=
"<?php echo $type[2]?>" name=
"<?php echo htmlspecialcharsbx($Option[0])?>"><?php echo
htmlspecialcharsbx(
$val)?></textarea><?php
161 <td><?php echo
GetMessage(
'FLOW_ADMIN')?></td>
167 require_once
$_SERVER[
'DOCUMENT_ROOT'] .
'/bitrix/modules/main/admin/group_rights.php';
170 <input <?php echo (
$WORKFLOW_RIGHT <
'W') ?
'disabled' :
'';?> type=
"submit" name=
"Update" value=
"<?=GetMessage('FLOW_SAVE')?>" class=
"adm-btn-save">
171 <input type=
"hidden" name=
"Update" value=
"Y">
172 <input type=
"reset" name=
"reset" value=
"<?=GetMessage('FLOW_RESET')?>">
173 <input <?php echo (
$WORKFLOW_RIGHT <
'W') ?
'disabled' :
'';?> type=
"submit" title=
"<?php echo GetMessage('MAIN_HINT_RESTORE_DEFAULTS')?>" OnClick=
"return confirm('<?php echo addslashes(GetMessage('MAIN_HINT_RESTORE_DEFAULTS_WARNING'))?>')" value=
"<?php echo GetMessage('MAIN_RESTORE_DEFAULTS')?>" name=
"RestoreDefaults">
if($_SERVER $arAllOptions['REQUEST_METHOD']=='GET' &&!empty($_REQUEST['RestoreDefaults']) &&! $bReadOnly &&check_bitrix_sessid())
if(!Loader::includeModule('catalog')) if(!AccessController::getCurrent() ->check(ActionDictionary::ACTION_PRICE_EDIT)) if(!check_bitrix_sessid()) $request
static GetList($by='c_sort', $order='asc', $arFilter=[], $SHOW_USERS_AMOUNT="N")
static GetDropDownList($strSqlSearch="and ACTIVE='Y'", $strSqlOrder="ORDER BY C_SORT, NAME, ID")
static CleanUpPublished()
static CleanUpHistoryCopies($DOCUMENT_ID=false, $HISTORY_COPIES=false)
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')
SelectBox($strBoxName, $a, $strDetText="", $strSelectedVal="", $field1="class=\"typeselect\"")
htmlspecialcharsbx($string, $flags=ENT_COMPAT, $doubleEncode=true)
IncludeModuleLangFile($filepath, $lang=false, $bReturnArray=false)
GetMessage($name, $aReplace=null)
LocalRedirect($url, $skip_security_check=false, $status="302 Found")
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
<? endif;?> window document title