Files
crm.clientright.ru/layouts/v7/modules/ModComments/FilePreview.tpl
Fedor ac7467f0b4 Major CRM updates: AI Assistant, Court Status API, S3 integration improvements, and extensive file storage system
- Added comprehensive AI Assistant system (aiassist/ directory):
  * Vector search and embedding capabilities
  * Typebot proxy integration
  * Elastic search functionality
  * Message classification and chat history
  * MCP proxy for external integrations

- Implemented Court Status API (GetCourtStatus.php):
  * Real-time court document status checking
  * Integration with external court systems
  * Comprehensive error handling and logging

- Enhanced S3 integration:
  * Improved file backup system with metadata
  * Batch processing capabilities
  * Enhanced error logging and recovery
  * Copy operations with URL fixing

- Added Telegram contact creation API
- Improved error logging across all modules
- Enhanced callback system for AI responses
- Extensive backup file storage with timestamps
- Updated documentation and README files

- File storage improvements:
  * Thousands of backup files with proper metadata
  * Fix operations for broken file references
  * Project-specific backup and recovery systems
  * Comprehensive file integrity checking

Total: 26,461+ files added/modified including AWS SDK, vendor dependencies, and extensive backup system.
2025-10-16 11:17:21 +03:00

59 lines
3.0 KiB
Smarty

{*+**********************************************************************************
* The contents of this file are subject to the vtiger CRM Public License Version 1.1
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
* The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
************************************************************************************}
{strip}
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title">{vtranslate('LBL_FILE_PREVIEW', 'ModComments')}: {$FILE_NAME}</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-12">
{if strpos($FILE_TYPE, 'image/') === 0}
{* Для изображений показываем картинку *}
<img src="{$VIEW_URL}" class="img-responsive" style="max-width: 100%; height: auto;" />
{elseif $FILE_TYPE == 'application/pdf'}
{* Для PDF показываем в iframe *}
<iframe src="{$VIEW_URL}" width="100%" height="600px" style="border: none;">
<p>Ваш браузер не поддерживает iframe. <a href="{$VIEW_URL}" target="_blank">Открыть файл в новом окне</a></p>
</iframe>
{elseif strpos($FILE_TYPE, 'text/') === 0}
{* Для текстовых файлов показываем в iframe *}
<iframe src="{$VIEW_URL}" width="100%" height="400px" style="border: 1px solid #ccc;">
<p>Ваш браузер не поддерживает iframe. <a href="{$VIEW_URL}" target="_blank">Открыть файл в новом окне</a></p>
</iframe>
{else}
{* Для других типов файлов показываем ссылку на скачивание *}
<div class="alert alert-info">
<h4>Предварительный просмотр недоступен</h4>
<p>Файл типа <strong>{$FILE_TYPE}</strong> не может быть отображен в браузере.</p>
<p>
<a href="index.php?module=ModComments&action=DownloadFile&record={$RECORD_ID}&fileid={$ATTACHMENT_ID}" class="btn btn-primary">
<i class="fa fa-download"></i> Скачать файл
</a>
</p>
</div>
{/if}
</div>
</div>
</div>
<div class="modal-footer">
<div class="pull-left">
<a href="index.php?module=ModComments&action=DownloadFile&record={$RECORD_ID}&fileid={$ATTACHMENT_ID}" class="btn btn-default">
<i class="fa fa-download"></i> {vtranslate('LBL_DOWNLOAD_FILE', 'ModComments')}
</a>
</div>
<button type="button" class="btn btn-default" data-dismiss="modal">
{vtranslate('LBL_CLOSE', 'ModComments')}
</button>
</div>
</div>
</div>
{/strip}