🔧 Исправления: - Исправлены пути к папкам проектов: теперь /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 теперь открывается по правильному пути!
91 lines
4.9 KiB
PHP
91 lines
4.9 KiB
PHP
<?php /* Smarty version Smarty-3.1.7, created on 2025-11-01 12:20:20
|
|
compiled from "/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Vtiger/Pagination.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:13903061416905d0d4169863-32819651%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'4c7020682a4f10b78a5e67171b608967d8e43a32' =>
|
|
array (
|
|
0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Vtiger/Pagination.tpl',
|
|
1 => 1711810494,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'nocache_hash' => '13903061416905d0d4169863-32819651',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'variables' =>
|
|
array (
|
|
'CLASS_VIEW_ACTION' => 0,
|
|
'PAGING_MODEL' => 0,
|
|
'SHOWPAGEJUMP' => 0,
|
|
'moduleName' => 0,
|
|
'CLASS_VIEW_BASIC_ACTION' => 0,
|
|
'PAGE_NUMBER' => 0,
|
|
'MODULE' => 0,
|
|
'CLASS_VIEW_PAGING_INPUT' => 0,
|
|
'CLASS_VIEW_PAGING_INPUT_SUBMIT' => 0,
|
|
'RECORD_COUNT' => 0,
|
|
),
|
|
'has_nocache_code' => false,
|
|
'version' => 'Smarty-3.1.7',
|
|
'unifunc' => 'content_6905d0d417756',
|
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|
<?php if ($_valid && !is_callable('content_6905d0d417756')) {function content_6905d0d417756($_smarty_tpl) {?>
|
|
<?php if (!$_smarty_tpl->tpl_vars['CLASS_VIEW_ACTION']->value){?>
|
|
<?php $_smarty_tpl->tpl_vars['CLASS_VIEW_ACTION'] = new Smarty_variable('listViewActions', null, 0);?>
|
|
<?php $_smarty_tpl->tpl_vars['CLASS_VIEW_PAGING_INPUT'] = new Smarty_variable('listViewPagingInput', null, 0);?>
|
|
<?php $_smarty_tpl->tpl_vars['CLASS_VIEW_PAGING_INPUT_SUBMIT'] = new Smarty_variable('listViewPagingInputSubmit', null, 0);?>
|
|
<?php $_smarty_tpl->tpl_vars['CLASS_VIEW_BASIC_ACTION'] = new Smarty_variable('listViewBasicAction', null, 0);?>
|
|
<?php }?>
|
|
<div class = "<?php echo $_smarty_tpl->tpl_vars['CLASS_VIEW_ACTION']->value;?>
|
|
">
|
|
<div class="btn-group pull-right">
|
|
<button type="button" id="PreviousPageButton" class="btn btn-default" <?php if (!$_smarty_tpl->tpl_vars['PAGING_MODEL']->value->isPrevPageExists()){?> disabled <?php }?>><i class="fa fa-caret-left"></i></button>
|
|
<?php if ($_smarty_tpl->tpl_vars['SHOWPAGEJUMP']->value){?>
|
|
<button type="button" id="PageJump" data-toggle="dropdown" class="btn btn-default">
|
|
<i class="fa fa-ellipsis-h icon" title="<?php echo vtranslate('LBL_LISTVIEW_PAGE_JUMP',$_smarty_tpl->tpl_vars['moduleName']->value);?>
|
|
"></i>
|
|
</button>
|
|
<ul class="<?php echo $_smarty_tpl->tpl_vars['CLASS_VIEW_BASIC_ACTION']->value;?>
|
|
dropdown-menu" id="PageJumpDropDown">
|
|
<li>
|
|
<div class="listview-pagenum">
|
|
<span ><?php echo vtranslate('LBL_PAGE',$_smarty_tpl->tpl_vars['moduleName']->value);?>
|
|
</span>
|
|
<strong><span><?php echo $_smarty_tpl->tpl_vars['PAGE_NUMBER']->value;?>
|
|
</span></strong>
|
|
<span ><?php echo vtranslate('LBL_OF',$_smarty_tpl->tpl_vars['moduleName']->value);?>
|
|
</span>
|
|
<strong><span id="totalPageCount"></span></strong>
|
|
</div>
|
|
<div class="listview-pagejump">
|
|
|
|
|
|
<input type="text" id="pageToJump" placeholder="<?php echo vtranslate('LBL_JUMP_TO',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
" class="<?php echo $_smarty_tpl->tpl_vars['CLASS_VIEW_PAGING_INPUT']->value;?>
|
|
text-center"/>
|
|
<button type="button" id="pageToJumpSubmit" class="btn btn-success <?php echo $_smarty_tpl->tpl_vars['CLASS_VIEW_PAGING_INPUT_SUBMIT']->value;?>
|
|
text-center"><?php echo vtranslate('LBL_GO',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
</button>
|
|
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
<?php }?>
|
|
<button type="button" id="NextPageButton" class="btn btn-default" <?php if (!$_smarty_tpl->tpl_vars['PAGING_MODEL']->value->isNextPageExists()){?>disabled<?php }?>><i class="fa fa-caret-right"></i></button>
|
|
</div>
|
|
<span class="pageNumbers pull-right" style="position:relative;top:7px;">
|
|
<span class="pageNumbersText">
|
|
<?php if ($_smarty_tpl->tpl_vars['RECORD_COUNT']->value){?><?php echo $_smarty_tpl->tpl_vars['PAGING_MODEL']->value->getRecordStartRange();?>
|
|
<?php echo vtranslate('LBL_to',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
<?php echo $_smarty_tpl->tpl_vars['PAGING_MODEL']->value->getRecordEndRange();?>
|
|
<?php }else{ ?>
|
|
<?php }?>
|
|
</span>
|
|
<span class="totalNumberOfRecords cursorPointer<?php if (!$_smarty_tpl->tpl_vars['RECORD_COUNT']->value){?> hide<?php }?>" title="<?php echo vtranslate('LBL_SHOW_TOTAL_NUMBER_OF_RECORDS',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
"><?php echo vtranslate('LBL_OF',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
<i class="fa fa-question showTotalCountIcon"></i></span>
|
|
</span>
|
|
</div><?php }} ?>
|