🔧 Исправления: - Исправлены пути к папкам проектов: теперь /Documents/Project/{Name}_{Id} - Исправлена функция openProjectFolder() во всех JS файлах - Добавлены кнопки создания Word/Excel/PowerPoint из CRM (10 модулей) - Создание файлов напрямую в S3 с автоиндексацией через Redis - Исправлена ошибка 'Class Redis not found' (использован Predis) 📁 Изменённые файлы: - layouts/v7/lib/nextcloud-editor.js - crm_extensions/nextcloud_editor/js/nextcloud-editor.js - layouts/v7/lib/nextcloud-editor-v3.js - crm_extensions/file_storage/api/create_nextcloud_file.php - layouts/v7/modules/*/DetailViewHeaderTitle.tpl (10 модулей) - layouts/v7/modules/Documents/*.tpl (кнопки редактирования) 🎯 Результат: - Кнопка 'Папка в Nextcloud' открывает правильную папку - Создание файлов работает молниеносно (прямо в S3) - Redis события публикуются корректно - OnlyOffice открывается для редактирования Проект 391552 теперь открывается по правильному пути!
59 lines
5.3 KiB
PHP
59 lines
5.3 KiB
PHP
<?php /* Smarty version Smarty-3.1.7, created on 2025-11-01 12:18:46
|
|
compiled from "/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/ITS4YouQuickReminder/ReminderList.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:5911760726905d0767be661-10238314%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'ce54060ff10fc18a9a2f047d921f99fc382eadbe' =>
|
|
array (
|
|
0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/ITS4YouQuickReminder/ReminderList.tpl',
|
|
1 => 1711810495,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'nocache_hash' => '5911760726905d0767be661-10238314',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'variables' =>
|
|
array (
|
|
'QUALIFIED_MODULE' => 0,
|
|
'RECORDS' => 0,
|
|
'ITEM' => 0,
|
|
'REMINDER' => 0,
|
|
'RECORD' => 0,
|
|
),
|
|
'has_nocache_code' => false,
|
|
'version' => 'Smarty-3.1.7',
|
|
'unifunc' => 'content_6905d0767cbf5',
|
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|
<?php if ($_valid && !is_callable('content_6905d0767cbf5')) {function content_6905d0767cbf5($_smarty_tpl) {?>
|
|
<div id="its4you_quickreminder_title"><div class="its4you_reminder_icon app-TOOLS"><i class="fa fa-bell"></i></div><div class="its4you_reminder_text"><?php echo vtranslate('LBL_YOU_HAVE',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
|
|
<strong class="ITS4YouQuickReminderBadge">0</strong> <?php echo vtranslate('LBL_NEW_REMINDERS',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
|
|
</div><div class="its4you_quickreminder_action showall btn addButton btn-default module-buttons"><?php echo vtranslate('LBL_SHOW_ALL',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
|
|
</div></div><div id="its4you_quickreminder_settings"><select name="" id="" class="its4you_reminder_form inputElement select2"><option value="All">All</option><option value="Mine">Mine</option></select></div><hr><div class="its4you_quickreminder_dropdown_scroll"><div id="its4you_quickreminder_dropdown_items"><div id="its4you_quickreminder_list"><?php $_smarty_tpl->tpl_vars['ITEM'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ITEM']->_loop = false;
|
|
$_from = $_smarty_tpl->tpl_vars['RECORDS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['ITEM']->key => $_smarty_tpl->tpl_vars['ITEM']->value){
|
|
$_smarty_tpl->tpl_vars['ITEM']->_loop = true;
|
|
?><?php $_smarty_tpl->tpl_vars['RECORD'] = new Smarty_variable($_smarty_tpl->tpl_vars['ITEM']->value['record'], null, 0);?><?php $_smarty_tpl->tpl_vars['REMINDER'] = new Smarty_variable($_smarty_tpl->tpl_vars['ITEM']->value['reminder'], null, 0);?><?php if ($_smarty_tpl->tpl_vars['ITEM']->value['record']['id']!=0){?><div class="its4you_quickreminder_record list <?php echo $_smarty_tpl->tpl_vars['REMINDER']->value['filter'];?>
|
|
<?php echo $_smarty_tpl->tpl_vars['REMINDER']->value['status'];?>
|
|
<?php echo $_smarty_tpl->tpl_vars['REMINDER']->value['type'];?>
|
|
" data-creator="<?php echo $_smarty_tpl->tpl_vars['REMINDER']->value['creator'];?>
|
|
" data-owner="<?php echo $_smarty_tpl->tpl_vars['REMINDER']->value['owner'];?>
|
|
"><a href="index.php?module=<?php echo $_smarty_tpl->tpl_vars['RECORD']->value['module'];?>
|
|
&view=Detail&record=<?php echo $_smarty_tpl->tpl_vars['RECORD']->value['id'];?>
|
|
" class="linktomodule"><div class="its4you_reminder_icon list" style="background: <?php echo $_smarty_tpl->tpl_vars['REMINDER']->value['typecolor'];?>
|
|
;"><i class="fa fa-<?php echo $_smarty_tpl->tpl_vars['REMINDER']->value['typeicon'];?>
|
|
"></i></div><div class='its4you_reminder_subject'><strong><?php echo $_smarty_tpl->tpl_vars['REMINDER']->value['subject'];?>
|
|
</strong><h6 class="textOverflowEllipsis"><?php echo $_smarty_tpl->tpl_vars['RECORD']->value['label'];?>
|
|
</h6><div><span class="muted displayInlineBlock"><?php echo $_smarty_tpl->tpl_vars['REMINDER']->value['date'];?>
|
|
</span> <span class="muted displayInlineBlock"><?php echo vtranslate('Related to',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
|
|
: <?php echo $_smarty_tpl->tpl_vars['RECORD']->value['module'];?>
|
|
</span> <?php if ($_smarty_tpl->tpl_vars['RECORD']->value['duedate']){?><span class="muted displayInlineBlock"><?php echo vtranslate('Due Date',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
|
|
: <?php echo $_smarty_tpl->tpl_vars['RECORD']->value['duedate'];?>
|
|
</span> <?php }?></div></div></a><span class='actions'><div><span class="rem_status" style="background: <?php echo $_smarty_tpl->tpl_vars['REMINDER']->value['color'];?>
|
|
"> <?php echo vtranslate($_smarty_tpl->tpl_vars['REMINDER']->value['status'],$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
|
|
</span></div><div><i class="its4you_quickreminder_action summary fa fa-eye cursorPointer" data-record="<?php echo $_smarty_tpl->tpl_vars['REMINDER']->value['id'];?>
|
|
" title="Reminder Summary View" style="margin: 0 10px; background: #fff"></i></div><?php if ($_smarty_tpl->tpl_vars['REMINDER']->value['owner']){?><div><i class="its4you_quickreminder_action update fa fa-check cursorPointer" data-record="<?php echo $_smarty_tpl->tpl_vars['REMINDER']->value['id'];?>
|
|
" data-value="Closed" title="<?php echo vtranslate('Close Reminder',$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?>
|
|
" style="margin: 0 10px; background: #fff"></i></div><?php }?></span><hr></div><?php }?><?php } ?></div></div></div><?php }} ?>
|