✨ Features: - Migrated ALL files to new S3 structure (Projects, Contacts, Accounts, HelpDesk, Invoice, etc.) - Added Nextcloud folder buttons to ALL modules - Fixed Nextcloud editor integration - WebSocket server for real-time updates - Redis Pub/Sub integration - File path manager for organized storage - Redis caching for performance (Functions.php) 📁 New Structure: Documents/Project/ProjectName_ID/file_docID.ext Documents/Contacts/FirstName_LastName_ID/file_docID.ext Documents/Accounts/AccountName_ID/file_docID.ext 🔧 Technical: - FilePathManager for standardized paths - S3StorageService integration - WebSocket server (Node.js + Docker) - Redis cache for getBasicModuleInfo() - Predis library for Redis connectivity 📝 Scripts: - Migration scripts for all modules - Test pages for WebSocket/SSE/Polling - Documentation (MIGRATION_*.md, REDIS_*.md) 🎯 Result: 15,000+ files migrated successfully!
113 lines
4.9 KiB
PHP
113 lines
4.9 KiB
PHP
<?php /* Smarty version Smarty-3.1.7, created on 2025-10-23 18:43:31
|
|
compiled from "/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Settings/Workflow2/taskforms/WfTaskCall_webservice.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:188595488268fa4d234e4d95-63211676%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'2ff3c90cb232d9247f420b265e8818dcae281454' =>
|
|
array (
|
|
0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Settings/Workflow2/taskforms/WfTaskCall_webservice.tpl',
|
|
1 => 1711810494,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'nocache_hash' => '188595488268fa4d234e4d95-63211676',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'variables' =>
|
|
array (
|
|
'task' => 0,
|
|
'webservice_methods' => 0,
|
|
'SHOW_INVENTORY' => 0,
|
|
'cols' => 0,
|
|
'header' => 0,
|
|
),
|
|
'has_nocache_code' => false,
|
|
'version' => 'Smarty-3.1.7',
|
|
'unifunc' => 'content_68fa4d2351fa6',
|
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|
<?php if ($_valid && !is_callable('content_68fa4d2351fa6')) {function content_68fa4d2351fa6($_smarty_tpl) {?><?php if (!is_callable('smarty_function_html_options')) include '/var/www/fastuser/data/www/crm.clientright.ru/libraries/Smarty/libs/plugins/function.html_options.php';
|
|
?><table width="100%" cellspacing="0" cellpadding="0">
|
|
<tr>
|
|
<td class="dvtCellLabel" align="right" width="25%"><?php echo vtranslate('URL','Workflow2');?>
|
|
</td>
|
|
<td width="15"></td>
|
|
<td class="dvtCellInfo" align="left" style="padding:5px;">
|
|
<div class="insertTextfield" data-name="task[url]" data-id="subject"><?php echo $_smarty_tpl->tpl_vars['task']->value['url'];?>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="dvtCellLabel" align="right" width="25%"><?php echo vtranslate('Method','Workflow2');?>
|
|
</td>
|
|
<td width="15"></td>
|
|
<td class="dvtCellInfo" align="left" style="padding:5px;">
|
|
<select class="chzn-select" name="task[method]" style="width:300px;">
|
|
<?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['webservice_methods']->value,'selected'=>$_smarty_tpl->tpl_vars['task']->value['method']),$_smarty_tpl);?>
|
|
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="dvtCellLabel" align="right" width="25%"><?php echo vtranslate('Response Format','Workflow2');?>
|
|
</td>
|
|
<td width="15"></td>
|
|
<td class="dvtCellInfo" align="left" style="padding:5px;">
|
|
<select class="chzn-select" name="task[responsetype]" style="width:300px;">
|
|
<option value="">Plain Text</option>
|
|
<option value="json" <?php if ($_smarty_tpl->tpl_vars['task']->value['responsetype']=='json'){?>selected="selected"<?php }?>>JSON</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="dvtCellLabel" align="right" width="25%"><?php echo vtranslate('LBL_MYSQL_QUERY_ENV_VARIABLE','Workflow2');?>
|
|
</td>
|
|
<td width="15"></td>
|
|
<td class="dvtCellInfo" align="left" style="padding:5px;">
|
|
$env["<input type="text" required="required" name="task[envvar]" value="<?php echo $_smarty_tpl->tpl_vars['task']->value['envvar'];?>
|
|
" />"] = Response
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="dvtCellLabel" align="right" width="25%"><?php echo vtranslate('Request Content-Type','Workflow2');?>
|
|
</td>
|
|
<td width="15"></td>
|
|
<td class="dvtCellInfo" align="left" style="padding:5px;">
|
|
<select class="chzn-select" name="task[parameterformat]" style="width:100%;">
|
|
<option value="">Default (application/x-www-form-urlencoded)</option>
|
|
<option value="json" <?php if ($_smarty_tpl->tpl_vars['task']->value['parameterformat']=='json'){?>selected="selected"<?php }?>>JSON (application/json)</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<?php if ($_smarty_tpl->tpl_vars['SHOW_INVENTORY']->value==true){?>
|
|
<tr>
|
|
<td class="dvtCellLabel" align="right" width="25%"><?php echo vtranslate('Write Inventory lines into parameter','Workflow2');?>
|
|
</td>
|
|
<td width="15"></td>
|
|
<td class="dvtCellInfo" align="left" style="padding:5px;">
|
|
<input type="text" class="form-control" required="required" name="task[inventoryvar]" value="<?php echo $_smarty_tpl->tpl_vars['task']->value['inventoryvar'];?>
|
|
" />
|
|
</td>
|
|
</tr>
|
|
<?php }?>
|
|
</table>
|
|
|
|
<br/>
|
|
<button type="button" onclick="addCol();" class="btn btn-primary">add Parameter</button>
|
|
|
|
<div id="rows"></div>
|
|
|
|
<br/>
|
|
<h4>Header Values</h4>
|
|
<hr/>
|
|
<button type="button" onclick="addHeaderCol();" class="btn btn-primary">add Header</button>
|
|
|
|
<div id="header_rows"></div>
|
|
|
|
<script type="text/javascript">
|
|
var cols = <?php echo json_encode($_smarty_tpl->tpl_vars['cols']->value);?>
|
|
;
|
|
var header = <?php echo json_encode($_smarty_tpl->tpl_vars['header']->value);?>
|
|
;
|
|
</script><?php }} ?>
|