Files
crm.clientright.ru/test/templates_c/v7/b6bd3601ec08853102c0b6e9a5bc634312be45d2.file.Index.module.tpl.php
Fedor cd90b0d58a feat: Добавлен инструмент генерации документов для AI Ассистента
- Создан API create_document_with_text.php для создания DOCX/XLSX/PPTX с текстом от AI
- Поддержка Markdown форматирования (заголовки, жирный, курсив, списки, код)
- Установлен PHPWord для красивого форматирования документов
- Исправлены пути сохранения (crm2/CRM_Active_Files/... без /crm/ в начале)
- Замена пробелов на подчеркивания в именах папок
- Создана документация для AI и разработчиков
- Добавлены API для работы с шаблонами Nextcloud
2025-11-12 19:46:06 +03:00

115 lines
15 KiB
PHP

<?php /* Smarty version Smarty-3.1.7, created on 2025-11-10 22:07:02
compiled from "/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Settings/Workflow2/VT7/Index.module.tpl" */ ?>
<?php /*%%SmartyHeaderCode:718856620691237d6b9c970-58143318%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'b6bd3601ec08853102c0b6e9a5bc634312be45d2' =>
array (
0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Settings/Workflow2/VT7/Index.module.tpl',
1 => 1711810493,
2 => 'file',
),
),
'nocache_hash' => '718856620691237d6b9c970-58143318',
'function' =>
array (
),
'variables' =>
array (
'SHOW_EVENT_NOTICE' => 0,
'SHOW_CRON_NOTICE' => 0,
'ERROR_HANDLER_VALUE' => 0,
'entityModules' => 0,
'tabid' => 0,
'targetModule' => 0,
'module' => 0,
'moduleWfCount' => 0,
'is_admin' => 0,
'workflows' => 0,
'workflowArray' => 0,
'visibility' => 0,
'moduleName' => 0,
'workflow' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.7',
'unifunc' => 'content_691237d6bc2bd',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_691237d6bc2bd')) {function content_691237d6bc2bd($_smarty_tpl) {?>
<div class="container-fluid" id="moduleManagerContents"><div class="editViewHeader"><h4><a href="index.php?module=Workflow2&view=Index&parent=Settings"><?php echo vtranslate('Workflow Designer','Workflow2');?>
</a></h4></div><hr><div class="listViewActionsDiv"><?php if ($_smarty_tpl->tpl_vars['SHOW_EVENT_NOTICE']->value==true){?><div class="alert alert-danger"><strong><?php echo vtranslate('The 2 Workflow Designer Eventhandlers could not be found in your system. Please check your database and run the "check DB" function.','Settings:Workflow2');?>
</strong></div><?php }?><?php if ($_smarty_tpl->tpl_vars['SHOW_CRON_NOTICE']->value==true){?><div class="alert alert-danger"><strong><?php echo vtranslate('Please check your VtigerCRM cron setup! No cron was executed in last 24 hours. Otherwise you will get problems with some functions of Workflow Designer.','Settings:Workflow2');?>
</strong>&nbsp;&nbsp;&nbsp;<a class="btn btn-primary" href="https://wiki.vtiger.com/index.php/Cron" target="_blank"><?php echo ucfirst(vtranslate('open','Settings:Workflow2'));?>
<?php echo vtranslate('Information','Settings:Workflow2');?>
</strong></a></div><?php }?><?php if (empty($_smarty_tpl->tpl_vars['ERROR_HANDLER_VALUE']->value)){?><div class="alert alert-danger"><?php echo vtranslate('Please configure Log Management to receive errors!','Settings:Workflow2');?>
&nbsp;&nbsp;&nbsp;<a class="btn btn-primary" href="index.php?module=Workflow2&view=SettingsLogging&parent=Settings"><?php echo ucfirst(vtranslate('open','Settings:Workflow2'));?>
<?php echo vtranslate('LBL_SETTINGS_LOGGING','Settings:Workflow2');?>
</strong></a></div><?php }?><div class="row" style=""><span class='btn-group col-lg-4'><button type="button" class="btn addButton btn-default module-buttons addWorkflowButton"><div class="fa fa-plus" aria-hidden="true"></div>&nbsp;&nbsp;<strong><?php echo vtranslate("Create new workflow","Settings:Workflow2");?>
</strong></button><button type="button" class="btn addButton btn-default module-buttons" onclick="importWorkflow();"><div class="fa fa-plus" aria-hidden="true"></div>&nbsp;&nbsp;<strong><?php echo vtranslate("import Workflow","Settings:Workflow2");?>
</strong></button></span><span class="btn-toolbar col-lg-5" style="display:flex;"><select class="" style="width:80%;" id="overviewModule"><option value="0"><?php echo vtranslate('all modules','Settings:Colorizer');?>
</option><?php $_smarty_tpl->tpl_vars['module'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['module']->_loop = false;
$_smarty_tpl->tpl_vars['tabid'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['entityModules']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['module']->key => $_smarty_tpl->tpl_vars['module']->value){
$_smarty_tpl->tpl_vars['module']->_loop = true;
$_smarty_tpl->tpl_vars['tabid']->value = $_smarty_tpl->tpl_vars['module']->key;
?><option value="<?php echo $_smarty_tpl->tpl_vars['tabid']->value;?>
" <?php if (($_smarty_tpl->tpl_vars['targetModule']->value==$_smarty_tpl->tpl_vars['tabid']->value)){?>selected='selected'<?php }?>><?php echo $_smarty_tpl->tpl_vars['module']->value[1];?>
(<?php if (!empty($_smarty_tpl->tpl_vars['moduleWfCount']->value[$_smarty_tpl->tpl_vars['tabid']->value])){?><?php echo $_smarty_tpl->tpl_vars['moduleWfCount']->value[$_smarty_tpl->tpl_vars['tabid']->value][0]+$_smarty_tpl->tpl_vars['moduleWfCount']->value[$_smarty_tpl->tpl_vars['tabid']->value][1];?>
/ <?php echo $_smarty_tpl->tpl_vars['moduleWfCount']->value[$_smarty_tpl->tpl_vars['tabid']->value][1];?>
<?php echo vtranslate('LBL_ACTIVE','Settings:Workflow2');?>
<?php }else{ ?>0<?php }?>)</option><?php } ?></select><i class="icon-search SearchField" style="margin-top:8px;margin-left:20px;"></i></span><span class='btn-toolbar col-lg-3'><?php if ($_smarty_tpl->tpl_vars['is_admin']->value==true){?><button class="btn btn-success pull-right UpdateCheckModule" data-module="Workflow2"><i class=" icon-white icon-asterisk"></i> <strong><?php echo vtranslate("LBL_UPDATE_MODULE","Settings:Workflow2");?>
</strong></button><?php }?></span></div><?php $_smarty_tpl->tpl_vars['workflowArray'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['workflowArray']->_loop = false;
$_smarty_tpl->tpl_vars['moduleName'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['workflows']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['workflowArray']->key => $_smarty_tpl->tpl_vars['workflowArray']->value){
$_smarty_tpl->tpl_vars['workflowArray']->_loop = true;
$_smarty_tpl->tpl_vars['moduleName']->value = $_smarty_tpl->tpl_vars['workflowArray']->key;
?><div class="workflowModuleHeader" data-target="<?php echo $_smarty_tpl->tpl_vars['workflowArray']->value[0]['module_name'];?>
"><?php if (count($_smarty_tpl->tpl_vars['workflows']->value)>1){?><div style="float:left;font-weight:bold;text-transform:uppercase;"><img src="modules/Workflow2/icons/toggle_minus.png" class="toggleImageCollapse toggleImage" style="<?php if ($_smarty_tpl->tpl_vars['visibility']->value[$_smarty_tpl->tpl_vars['workflowArray']->value[0]['module_name']]==false){?>display:none;<?php }?>" /><img src="modules/Workflow2/icons/toggle_plus.png" class="toggleImageExpand toggleImage" style="<?php if ($_smarty_tpl->tpl_vars['visibility']->value[$_smarty_tpl->tpl_vars['workflowArray']->value[0]['module_name']]==true){?>display:none;<?php }?>" />&nbsp;<b>&nbsp;<?php echo $_smarty_tpl->tpl_vars['moduleName']->value;?>
</b> (<?php echo count($_smarty_tpl->tpl_vars['workflowArray']->value);?>
)</div><?php }else{ ?><div style="float:left;font-weight:bold;text-transform:uppercase;">&nbsp;<b>&nbsp;<?php echo $_smarty_tpl->tpl_vars['moduleName']->value;?>
</b> (<?php echo count($_smarty_tpl->tpl_vars['workflowArray']->value);?>
)</div><?php }?></div><table width="100%" class="WorkflowModuleTable" cellspacing="0" cellpadding="4" style="<?php if ($_smarty_tpl->tpl_vars['visibility']->value[$_smarty_tpl->tpl_vars['workflowArray']->value[0]['module_name']]==false&&count($_smarty_tpl->tpl_vars['workflows']->value)>1){?>display:none;<?php }?>border-collapse:collapse;" id="workflowList<?php echo $_smarty_tpl->tpl_vars['workflowArray']->value[0]['module_name'];?>
" data-visible="<?php if ($_smarty_tpl->tpl_vars['visibility']->value[$_smarty_tpl->tpl_vars['workflowArray']->value[0]['module_name']]==true){?>1<?php }else{ ?>0<?php }?>"><?php $_smarty_tpl->tpl_vars['workflow'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['workflow']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['workflowArray']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['workflow']->key => $_smarty_tpl->tpl_vars['workflow']->value){
$_smarty_tpl->tpl_vars['workflow']->_loop = true;
?><tr class='workflowOverview' data-search="<?php echo strtolower($_smarty_tpl->tpl_vars['workflow']->value['title']);?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['workflow']->value['id'];?>
" style="background-color:<?php if ($_smarty_tpl->tpl_vars['workflow']->value["active"]=="0"){?>#ffffff<?php }else{ ?>#F0FFEB<?php }?>;"><td width="10" style="padding:0;margin:0;font-size:1px;background-color:transparent !important;">&nbsp;</td><td class="dvtCellInfo" style="width:30px;text-align:center;"><?php if ($_smarty_tpl->tpl_vars['workflow']->value["active"]=="0"){?><i class="fa fa-play" aria-hidden="true" style="font-size:15px;color:#1b7e5a;cursor:pointer;"alt="<?php echo vtranslate("Activate","Settings:Workflow2");?>
" title="<?php echo vtranslate("Activate","Settings:Workflow2");?>
" onclick="window.location.href='index.php?module=Workflow2&view=Index&parent=Settings&workflow=<?php echo $_smarty_tpl->tpl_vars['workflow']->value['id'];?>
&act=activate';"></i><!--<input type="button" class="button green"value="" />--><?php }else{ ?><i class="fa fa-stop" aria-hidden="true" style="font-size:15px;color:#de2550;cursor:pointer;" alt="<?php echo vtranslate("Deactivate","Settings:Workflow2");?>
" title="<?php echo vtranslate("Deactivate","Settings:Workflow2");?>
" onclick="window.location.href='index.php?module=Workflow2&view=Index&parent=Settings&workflow=<?php echo $_smarty_tpl->tpl_vars['workflow']->value['id'];?>
&act=deactivate';"></i><!--<input type="button" class="button red" value="<<?php ?>?php echo getTranslatedString("Deactivate", "Workflow2") ?<?php ?>>" />--><?php }?></td><td class="dvtCellInfo" style="width:70px;" title="<?php echo vtranslate('last modified by','Settings:Workflow2');?>
<?php echo $_smarty_tpl->tpl_vars['workflow']->value['user_name'];?>
(<?php echo $_smarty_tpl->tpl_vars['workflow']->value['modify'];?>
)">ID <?php echo $_smarty_tpl->tpl_vars['workflow']->value['id'];?>
</td><td class="dvtCellInfo" style="font-size:12px;cursor:pointer;<?php if ($_smarty_tpl->tpl_vars['workflow']->value['active']=="1"){?>font-weight:bold;<?php }?>" onclick="window.location.href='index.php?module=Workflow2&view=Config&parent=Settings&workflow=<?php echo $_smarty_tpl->tpl_vars['workflow']->value['id'];?>
'"><span style="cursor: pointer;"><?php echo $_smarty_tpl->tpl_vars['workflow']->value['title'];?>
</span><?php if ($_smarty_tpl->tpl_vars['workflow']->value['errornum']>0){?><span style="margin-left:30px;color:red;font-weight:bold;cursor:pointer;" onclick="window.open('index.php?module=Workflow2&view=ErrorLog&parent=Settings&workflow_id=<?php echo $_smarty_tpl->tpl_vars['workflow']->value['id'];?>
', '', 'width=700,height=800');"><?php echo $_smarty_tpl->tpl_vars['workflow']->value['errornum'];?>
<?php echo vtranslate('errors during last 7 days','Settings:Workflow2');?>
</span><?php }?><span style='float:right;color:#aaa;font-style:normal;'><?php echo $_smarty_tpl->tpl_vars['workflow']->value['startCondition'];?>
</span></span></td><td class="dvtCellInfo <?php if ($_smarty_tpl->tpl_vars['workflow']->value['active']=="1"){?>activeWorkflow<?php }else{ ?>inactiveWorkflow<?php }?>"><?php if ($_smarty_tpl->tpl_vars['workflow']->value['active']=="0"){?><?php echo vtranslate("LBL_INACTIVE","Settings:Workflow2");?>
<?php }else{ ?><?php echo vtranslate("LBL_ACTIVE","Settings:Workflow2");?>
<?php }?></td><td class="dvtCellInfo" style="background-color:#fff;width:40%;min-width:600px;text-align:center;"><div class="buttonbar inline" style="float: left;margin-right:20px;"><input type="button" class="btn btn-primary" onclick="window.location.href='index.php?module=Workflow2&view=Config&parent=Settings&workflow=<?php echo $_smarty_tpl->tpl_vars['workflow']->value['id'];?>
';" value="<?php echo vtranslate("Edit","Settings:Workflow2");?>
" /></div><div class="btn-group inline" style="float: left;"><input type="button" class="btn btn-default" onclick="window.location.href='index.php?module=Workflow2&view=Statistic&parent=Settings&workflow=<?php echo $_smarty_tpl->tpl_vars['workflow']->value['id'];?>
';" value="<?php echo vtranslate("Statistics","Settings:Workflow2");?>
" /><input type="button" class="btn btn-default" onclick="window.location.href='index.php?module=Workflow2&view=Authmanager&parent=Settings&workflow=<?php echo $_smarty_tpl->tpl_vars['workflow']->value['id'];?>
';" value="<?php echo vtranslate("BTN_AUTH_MANAGEMENT","Settings:Workflow2");?>
" /><input type="button" data-id="<?php echo $_smarty_tpl->tpl_vars['workflow']->value['id'];?>
" class="btn btn-default yellow exportWFBtn" value="<?php echo vtranslate("Export","Settings:Workflow2");?>
" /></div><div class="WFIconBar"><i class="fa fa-files-o fa-2x" title="<?php echo vtranslate('LBL_DUPLICATE');?>
" aria-hidden="true" onclick="window.location.href='index.php?module=Workflow2&view=Index&parent=Settings&workflow=<?php echo $_smarty_tpl->tpl_vars['workflow']->value['id'];?>
&act=duplicate';"></i><i class="fa fa-trash-o fa-2x" title="<?php echo vtranslate('Delete');?>
" aria-hidden="true" onclick="if(confirm(app.vtranslate('WF_DELETE_CONFIRM'))) window.location.href='index.php?module=Workflow2&view=Index&parent=Settings&workflow=<?php echo $_smarty_tpl->tpl_vars['workflow']->value['id'];?>
&act=delete';"></i><i class="fa fa-eye fa-2x WFChangeVisibility" aria-hidden="true" data-value="0" title="<?php echo vtranslate('Workflow is visible for Users');?>
" style="color:green; <?php if ($_smarty_tpl->tpl_vars['workflow']->value['invisible']=='1'){?>display:none;<?php }?>"></i><i class="fa fa-eye-slash fa-2x WFChangeVisibility" data-value="1" aria-hidden="true" title="<?php echo vtranslate('Workflow is invisible for Users');?>
" style="color:red; <?php if ($_smarty_tpl->tpl_vars['workflow']->value['invisible']=='0'){?>display:none;<?php }?>"></i></div></td><td width="10" style="padding:0;margin:0;font-size:1px;background-color:transparent !important;">&nbsp;</td></tr><?php } ?></table><?php } ?><div style="margin-top:5px;text-align:center;"><<?php ?>?php echo getTranslatedString("This Workflow administration needs IE9+, Google Chrome, Firefox or Safari!", "Workflow2"); ?<?php ?>><br><strong><<?php ?>?php echo getTranslatedString("Don't open a Workflow with IE < 9!"); ?<?php ?>></strong></div><link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" type="text/css"/><link href="modules/Workflow2/views/resources/js/notifications/main.css" rel="stylesheet" type="text/css" media="screen" /><script src="modules/Workflow2/views/resources/js/notifications/js/notification-min.js"></script><script type="text/javascript">var exportPromptText = "<?php echo vtranslate("You could set a password to protect the export file.","Settings:Workflow2");?>
";</script>
<?php }} ?>