diff --git a/NEXTCLOUD_ИТОГОВОЕ_РЕШЕНИЕ.md b/NEXTCLOUD_ИТОГОВОЕ_РЕШЕНИЕ.md index 5e729ffa..88436554 100644 --- a/NEXTCLOUD_ИТОГОВОЕ_РЕШЕНИЕ.md +++ b/NEXTCLOUD_ИТОГОВОЕ_РЕШЕНИЕ.md @@ -220,3 +220,4 @@ docker stats nextcloud-fresh --no-stream **Хочешь настрою cron?** 😊 + diff --git a/ONLYOFFICE_NEXTCLOUD_ИНТЕГРАЦИЯ.md b/ONLYOFFICE_NEXTCLOUD_ИНТЕГРАЦИЯ.md new file mode 100644 index 00000000..55789cf8 --- /dev/null +++ b/ONLYOFFICE_NEXTCLOUD_ИНТЕГРАЦИЯ.md @@ -0,0 +1,305 @@ +# OnlyOffice + Nextcloud интеграция + +**Дата:** 1 ноября 2025 +**Цель:** Использовать OnlyOffice Document Server для редактирования файлов в Nextcloud + +--- + +## ✅ Что сделано + +### 1. Установлено приложение ONLYOFFICE +```bash +docker exec -u www-data nextcloud-fresh php occ app:install onlyoffice +# onlyoffice 9.11.0 installed ✅ +``` + +### 2. Настроен Document Server +```bash +# Адрес OnlyOffice Document Server +DocumentServerUrl: https://office.clientright.ru:9443 + +# SSL проверка отключена +verify_peer_off: true + +# JWT отключен (как в OnlyOffice) +jwt_secret: (пусто) +jwt_header: (пусто) +``` + +### 3. Отключен Collabora +```bash +# Чтобы не конфликтовал с OnlyOffice +docker exec -u www-data nextcloud-fresh php occ app:disable richdocuments +``` + +--- + +## 🎯 Теперь у тебя ДВА способа редактирования: + +### Вариант 1: **Через CRM** (OnlyOffice напрямую) +``` +CRM → open_file_v2.php → OnlyOffice (9443) → S3 +``` +**Преимущества:** +- ⚡ **Молниеносно** (прямой доступ к S3) +- ✅ Автосохранение каждые 5 сек +- ✅ Файлы в CRM сразу обновляются + +**Когда использовать:** +- Работаешь в CRM +- Нужна скорость +- Редактируешь файлы клиентов + +--- + +### Вариант 2: **Через Nextcloud** (OnlyOffice через Nextcloud) +``` +Nextcloud → OnlyOffice (9443) → WebDAV → S3 +``` +**Преимущества:** +- ✅ **Версионирование** файлов +- ✅ История изменений +- ✅ Права доступа через Nextcloud +- ✅ Интеграция с Nextcloud UI + +**Когда использовать:** +- Работаешь в Nextcloud +- Нужна история версий +- Совместное редактирование +- Управление файлами + +--- + +## 🚀 Как использовать в Nextcloud + +### Шаг 1: Открой Nextcloud +``` +https://office.clientright.ru:8443 +Логин: admin +Пароль: office +``` + +### Шаг 2: Перейди к файлам +``` +Файлы → crm/crm2/CRM_Active_Files/Documents +``` + +### Шаг 3: Открой файл для редактирования +``` +Клик на файл .docx/.xlsx/.pptx +→ Автоматически откроется OnlyOffice! +``` + +--- + +## 📊 Сравнение OnlyOffice vs Collabora + +| Характеристика | OnlyOffice | Collabora | +|----------------|------------|-----------| +| **Скорость** | ⚡⚡⚡ Молниеносно | 🐌 Медленнее | +| **Форматы** | .docx, .xlsx, .pptx | .odt, .ods, .odp + docx | +| **Совместимость** | MS Office | LibreOffice | +| **Интерфейс** | Современный | Классический | +| **Настройка** | Проще | Сложнее | +| **Автосохранение** | ✅ Есть | ✅ Есть | +| **Версионирование** | ✅ Через Nextcloud | ✅ Через Nextcloud | + +--- + +## 🔧 Настройки OnlyOffice в Nextcloud + +### Где найти: +``` +Nextcloud → Настройки → Администрирование → ONLYOFFICE +``` + +### Текущие настройки: +``` +Document Server Address: https://office.clientright.ru:9443 +Secret key (JWT): (отключен) +Verify peer off: ✅ (SSL проверка отключена) +``` + +### Что можно настроить: +- Форматы файлов для открытия +- Права доступа (просмотр/редактирование) +- Автосохранение (интервал) +- Водяные знаки +- Шаблоны документов + +--- + +## 🎨 Создание новых документов в Nextcloud + +### Теперь можно создавать файлы прямо в Nextcloud! + +**Как:** +1. Открой Nextcloud Files +2. Нажми **"+"** (New) +3. Выбери: + - 📄 **Document** (Word) → создаст .docx + - 📊 **Spreadsheet** (Excel) → создаст .xlsx + - 📽️ **Presentation** (PowerPoint) → создаст .pptx +4. Файл откроется в OnlyOffice для редактирования! + +--- + +## ⚙️ Команды для управления + +### Просмотр настроек: +```bash +# Адрес Document Server +docker exec -u www-data nextcloud-fresh php occ config:app:get onlyoffice DocumentServerUrl + +# Проверка SSL +docker exec -u www-data nextcloud-fresh php occ config:app:get onlyoffice verify_peer_off + +# JWT секрет +docker exec -u www-data nextcloud-fresh php occ config:app:get onlyoffice jwt_secret +``` + +### Изменение настроек: +```bash +# Изменить адрес Document Server +docker exec -u www-data nextcloud-fresh php occ config:app:set onlyoffice DocumentServerUrl --value="https://NEW_ADDRESS" + +# Включить/отключить SSL проверку +docker exec -u www-data nextcloud-fresh php occ config:app:set onlyoffice verify_peer_off --value="true" +``` + +### Переключение между OnlyOffice и Collabora: +```bash +# Включить OnlyOffice +docker exec -u www-data nextcloud-fresh php occ app:enable onlyoffice +docker exec -u www-data nextcloud-fresh php occ app:disable richdocuments + +# Включить Collabora +docker exec -u www-data nextcloud-fresh php occ app:disable onlyoffice +docker exec -u www-data nextcloud-fresh php occ app:enable richdocuments +``` + +--- + +## 🐛 Отладка + +### Если файл не открывается: + +**1. Проверь доступность OnlyOffice:** +```bash +curl -s https://office.clientright.ru:9443/healthcheck +# Должен вернуть: true +``` + +**2. Проверь настройки в Nextcloud:** +```bash +docker exec -u www-data nextcloud-fresh php occ config:app:get onlyoffice DocumentServerUrl +# Должно быть: https://office.clientright.ru:9443 +``` + +**3. Проверь логи OnlyOffice:** +```bash +docker logs --tail 50 onlyoffice-standalone +``` + +**4. Проверь логи Nextcloud:** +```bash +docker exec -u www-data nextcloud-fresh php occ log:tail 50 +``` + +**5. Проверь что приложение включено:** +```bash +docker exec -u www-data nextcloud-fresh php occ app:list | grep onlyoffice +# Должно быть в Enabled +``` + +--- + +## 🔒 Безопасность + +### ⚠️ Сейчас JWT отключен! + +**Что это значит:** +- Любой может использовать твой OnlyOffice сервер +- Не рекомендуется для продакшна + +**Для продакшна:** + +**1. Включи JWT в OnlyOffice:** +```bash +# Генерируй случайный секрет +SECRET=$(openssl rand -base64 32) + +# Добавь в OnlyOffice config +docker exec onlyoffice-standalone bash -c "cat > /etc/onlyoffice/documentserver/local-jwt.json << EOF +{ + \"services\": { + \"CoAuthoring\": { + \"token\": { + \"enable\": { + \"request\": { + \"inbox\": true, + \"outbox\": true + } + } + }, + \"secret\": { + \"inbox\": { + \"string\": \"$SECRET\" + }, + \"outbox\": { + \"string\": \"$SECRET\" + } + } + } + } +} +EOF +" + +# Перезапусти OnlyOffice +docker restart onlyoffice-standalone +``` + +**2. Добавь секрет в Nextcloud:** +```bash +docker exec -u www-data nextcloud-fresh php occ config:app:set onlyoffice jwt_secret --value="$SECRET" +docker exec -u www-data nextcloud-fresh php occ config:app:set onlyoffice jwt_header --value="Authorization" +``` + +--- + +## 📈 Статистика + +### Текущая конфигурация: +- ✅ OnlyOffice Document Server: **9.0.4** +- ✅ Nextcloud ONLYOFFICE app: **9.11.0** +- ✅ Nextcloud: **30.0.2** +- ✅ SSL: самоподписанный сертификат (проверка отключена) +- ⚠️ JWT: **отключен** (включи для продакшна!) + +--- + +## 🎯 Итог + +### Что работает сейчас: +1. ✅ **CRM → OnlyOffice** - прямой доступ (молниеносно) +2. ✅ **Nextcloud → OnlyOffice** - через интеграцию (с версионированием) +3. ✅ **Создание новых файлов** в Nextcloud +4. ✅ **Редактирование** docx, xlsx, pptx +5. ✅ **Автосохранение** в обоих случаях + +### Что использовать: +- **Работа в CRM** → используй прямой OnlyOffice (быстрее) +- **Работа в Nextcloud** → используй интеграцию (больше функций) +- **Создание новых файлов** → Nextcloud (удобнее) + +--- + +**Попробуй открыть файл в Nextcloud! Должно работать!** 🚀 + +**Теперь у тебя:** +- ⚡ Быстрое редактирование через CRM +- 📚 Версионирование через Nextcloud +- 🆕 Создание новых файлов +- ✅ Единый OnlyOffice для всего! + diff --git a/WORKFLOW_OCR_КАК_РАБОТАЕТ.md b/WORKFLOW_OCR_КАК_РАБОТАЕТ.md index 15a36df7..fc83423c 100644 --- a/WORKFLOW_OCR_КАК_РАБОТАЕТ.md +++ b/WORKFLOW_OCR_КАК_РАБОТАЕТ.md @@ -188,3 +188,4 @@ PDF в Documents/Project/*, размер < 10MB **Какое правило создать?** Или все три сразу? 😊 + diff --git a/WORKFLOW_ПРИЛОЖЕНИЯ_NEXTCLOUD.md b/WORKFLOW_ПРИЛОЖЕНИЯ_NEXTCLOUD.md index 24338515..045e2118 100644 --- a/WORKFLOW_ПРИЛОЖЕНИЯ_NEXTCLOUD.md +++ b/WORKFLOW_ПРИЛОЖЕНИЯ_NEXTCLOUD.md @@ -274,3 +274,4 @@ OCR создаёт дополнительные текстовые файлы = **Вам нужна автоматизация (OCR, уведомления)?** Или отключить эти приложения? 🤔 + diff --git a/crm_extensions/file_storage/api/create_nextcloud_file.php b/crm_extensions/file_storage/api/create_nextcloud_file.php new file mode 100644 index 00000000..ac6e5e82 --- /dev/null +++ b/crm_extensions/file_storage/api/create_nextcloud_file.php @@ -0,0 +1,233 @@ + 'Project', + 'Contacts' => 'Contacts', + 'Accounts' => 'Accounts', + 'Invoice' => 'Invoice', + 'Quotes' => 'Quotes', + 'SalesOrder' => 'SalesOrder', + 'PurchaseOrder' => 'PurchaseOrder', + 'HelpDesk' => 'HelpDesk', + 'Leads' => 'Leads', + 'Potentials' => 'Potentials' +]; + +$moduleFolder = $moduleFolders[$module] ?? 'Other'; + +// Формируем имя папки записи +$recordName = preg_replace('/[\/\\\\:\*\?"<>\|]/', '_', $recordName); // Убираем недопустимые символы +$folderName = $recordName . '_' . $recordId; + +// Формируем путь к файлу в Nextcloud +$ncPath = "/crm/crm2/CRM_Active_Files/Documents/{$moduleFolder}/{$folderName}/{$fileName}.{$fileType}"; +$webdavUrl = $nextcloudUrl . '/remote.php/dav/files/' . $username . $ncPath; + +error_log("=== CREATE NEXTCLOUD FILE ==="); +error_log("Module: " . $module); +error_log("Record ID: " . $recordId); +error_log("File name: " . $fileName); +error_log("File type: " . $fileType); +error_log("Nextcloud path: " . $ncPath); +error_log("WebDAV URL: " . $webdavUrl); + +// СОЗДАЁМ ФАЙЛ ЧЕРЕЗ NEXTCLOUD OCS API (Direct Editing) +// Используем встроенный API Nextcloud для создания нового файла + +$templateMap = [ + 'docx' => 'onlyoffice', + 'xlsx' => 'onlyoffice', + 'pptx' => 'onlyoffice' +]; + +$editorId = $templateMap[$fileType] ?? 'onlyoffice'; + +// Используем OCS API v2 для создания нового файла +$createUrl = $nextcloudUrl . '/ocs/v2.php/apps/files/api/v1/directEditing/create'; + +$postData = http_build_query([ + 'path' => $ncPath, + 'editorId' => $editorId, + 'templateId' => '', + 'templateType' => $fileType +]); + +error_log("Creating file via OCS API: " . $createUrl); +error_log("Post data: " . $postData); + +// Вызываем API создания +$ch = curl_init($createUrl); +curl_setopt($ch, CURLOPT_POST, true); +curl_setopt($ch, CURLOPT_POSTFIELDS, $postData); +curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); +curl_setopt($ch, CURLOPT_HTTPHEADER, [ + 'OCS-APIRequest: true', + 'Content-Type: application/x-www-form-urlencoded', + 'Accept: application/json' +]); +curl_setopt($ch, CURLOPT_USERPWD, "$username:$password"); +curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + +$response = curl_exec($ch); +$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); +curl_close($ch); + +error_log("OCS API response code: " . $httpCode); +error_log("OCS API response: " . substr($response, 0, 500)); + +// Если API сработал - парсим ответ и получаем URL редактора +if ($httpCode === 200) { + $data = json_decode($response, true); + if (isset($data['ocs']['data']['url'])) { + $editorUrl = $data['ocs']['data']['url']; + error_log("Got editor URL from API: " . $editorUrl); + header('Location: ' . $nextcloudUrl . $editorUrl); + exit; + } +} + +// Если API не сработал - создаём файл НАПРЯМУЮ В S3 и открываем через OnlyOffice! +error_log("OCS API failed, creating file directly in S3"); + +// Извлекаем S3 путь из Nextcloud пути +// /crm/crm2/CRM_Active_Files/... → crm2/CRM_Active_Files/... +$s3Path = ltrim($ncPath, '/'); + +// S3 credentials +$s3Client = new Aws\S3\S3Client([ + 'version' => 'latest', + 'region' => 'ru-1', + 'endpoint' => 'https://s3.twcstorage.ru', + 'use_path_style_endpoint' => true, + 'credentials' => [ + 'key' => EnvLoader::getRequired('S3_ACCESS_KEY'), + 'secret' => EnvLoader::getRequired('S3_SECRET_KEY') + ], + 'suppress_php_deprecation_warning' => true +]); + +$bucket = 'f9825c87-4e3558f6-f9b6-405c-ad3d-d1535c49b61c'; + +// Создаём минимальный пустой файл +$emptyContent = createEmptyFile($fileType); + +error_log("Creating file in S3: " . $s3Path . " (" . strlen($emptyContent) . " bytes)"); + +// Загружаем файл в S3 +try { + $result = $s3Client->putObject([ + 'Bucket' => $bucket, + 'Key' => $s3Path, + 'Body' => $emptyContent, + 'ContentType' => getContentType($fileType) + ]); + + error_log("✅ File created in S3!"); + +} catch (Exception $e) { + error_log("Failed to create file in S3: " . $e->getMessage()); + die("❌ Не удалось создать файл в S3: " . $e->getMessage()); +} + +// Формируем S3 URL +$s3Url = 'https://s3.twcstorage.ru/' . $bucket . '/' . $s3Path; + +error_log("S3 URL: " . $s3Url); + +// Публикуем событие в Redis для индексации Nextcloud +try { + // Используем Predis (установлен через composer) + $redis = new Predis\Client([ + 'scheme' => 'tcp', + 'host' => '147.45.146.17', + 'port' => 6379, + 'password' => 'CRM_Redis_Pass_2025_Secure!' + ]); + + $event = json_encode([ + 'type' => 'file_created', + 'source' => 'crm_create_file', + 'path' => $s3Path, + 'timestamp' => time() + ]); + + $redis->publish('crm:file:events', $event); + error_log("✅ Published event to Redis"); + +} catch (Exception $e) { + error_log("Redis publish failed: " . $e->getMessage()); +} + +// Открываем файл НАПРЯМУЮ через OnlyOffice (быстро!) +$redirectUrl = '/crm_extensions/file_storage/api/open_file_v2.php?recordId=' . urlencode($recordId) . '&fileName=' . urlencode($s3Url); + +error_log("Redirecting to OnlyOffice: " . $redirectUrl); + +// Редирект +header('Location: ' . $redirectUrl); +exit; + +/** + * Создаёт минимальное пустое содержимое для Office файла + */ +function createEmptyFile($fileType) { + // Используем готовые минимальные шаблоны + $templatePath = __DIR__ . '/../templates/empty.' . $fileType; + + if (file_exists($templatePath)) { + $content = file_get_contents($templatePath); + error_log("Using template: " . $templatePath . " (" . strlen($content) . " bytes)"); + return $content; + } + + error_log("Template not found: " . $templatePath); + + // Fallback: пустая строка (не будет работать, но хотя бы не упадёт) + return ''; +} + +/** + * Определяет Content-Type для файла + */ +function getContentType($fileType) { + $types = [ + 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', + 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', + 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', + 'doc' => 'application/msword', + 'xls' => 'application/vnd.ms-excel', + 'ppt' => 'application/vnd.ms-powerpoint' + ]; + return $types[$fileType] ?? 'application/octet-stream'; +} + +?> + diff --git a/crm_extensions/file_storage/api/nextcloud_open.php b/crm_extensions/file_storage/api/nextcloud_open.php new file mode 100644 index 00000000..3ad00b36 --- /dev/null +++ b/crm_extensions/file_storage/api/nextcloud_open.php @@ -0,0 +1,97 @@ + + + + + +'); +curl_setopt($ch, CURLOPT_USERPWD, "$username:$password"); +curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); + +$response = curl_exec($ch); +$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); +curl_close($ch); + +error_log("PROPFIND HTTP код: " . $httpCode); + +if ($httpCode !== 207) { + die("❌ Файл не найден в Nextcloud (HTTP $httpCode). Возможно, он не проиндексирован."); +} + +// Извлекаем fileId из XML +preg_match('/(\d+)<\/oc:fileid>/', $response, $matches); +if (!isset($matches[1])) { + die("❌ Не удалось получить fileId"); +} + +$fileId = $matches[1]; +error_log("Получен fileId: " . $fileId); + +// Извлекаем директорию из пути +$dirPath = dirname($ncPath); + +// Формируем URL для открытия в Nextcloud +// Nextcloud автоматически откроет OnlyOffice для редактирования +$redirectUrl = $nextcloudUrl . '/apps/files/files/' . $fileId . '?dir=' . urlencode($dirPath) . '&openfile=true'; + +error_log("Redirect to: " . $redirectUrl); + +// Редирект в Nextcloud +header('Location: ' . $redirectUrl); +exit; +?> + diff --git a/crm_extensions/file_storage/create_templates.php b/crm_extensions/file_storage/create_templates.php new file mode 100644 index 00000000..5c4d7614 --- /dev/null +++ b/crm_extensions/file_storage/create_templates.php @@ -0,0 +1,39 @@ +addSection(); +$section->addText(''); +$objWriter = \PhpOffice\PhpWord\IOFactory::createWriter($phpWord, 'Word2007'); +$objWriter->save($templatesDir . 'empty.docx'); +echo "✅ Created empty.docx\n"; + +// Создаём Excel таблицу +$spreadsheet = new Spreadsheet(); +$sheet = $spreadsheet->getActiveSheet(); +$sheet->setCellValue('A1', ''); +$writer = new \PhpOffice\PhpSpreadsheet\Writer\Xlsx($spreadsheet); +$writer->save($templatesDir . 'empty.xlsx'); +echo "✅ Created empty.xlsx\n"; + +// Создаём PowerPoint презентацию +$presentation = new PhpPresentation(); +$slide = $presentation->getActiveSlide(); +$writer = \PhpOffice\PhpPresentation\IOFactory::createWriter($presentation, 'PowerPoint2007'); +$writer->save($templatesDir . 'empty.pptx'); +echo "✅ Created empty.pptx\n"; + +echo "\n✅ Все шаблоны созданы!\n"; +?> + diff --git a/crm_extensions/file_storage/nextcloud_cache_updater.js b/crm_extensions/file_storage/nextcloud_cache_updater.js index ec2c3cc6..85196c22 100755 --- a/crm_extensions/file_storage/nextcloud_cache_updater.js +++ b/crm_extensions/file_storage/nextcloud_cache_updater.js @@ -121,3 +121,4 @@ process.on('SIGTERM', () => { process.exit(0); }); + diff --git a/crm_extensions/file_storage/templates/empty.docx b/crm_extensions/file_storage/templates/empty.docx new file mode 100644 index 00000000..d0b3b983 Binary files /dev/null and b/crm_extensions/file_storage/templates/empty.docx differ diff --git a/crm_extensions/file_storage/templates/empty.pptx b/crm_extensions/file_storage/templates/empty.pptx new file mode 100644 index 00000000..e8dd6f89 Binary files /dev/null and b/crm_extensions/file_storage/templates/empty.pptx differ diff --git a/crm_extensions/file_storage/templates/empty.xlsx b/crm_extensions/file_storage/templates/empty.xlsx new file mode 100644 index 00000000..c52a7b43 Binary files /dev/null and b/crm_extensions/file_storage/templates/empty.xlsx differ diff --git a/crm_extensions/nextcloud_editor/js/nextcloud-editor.js b/crm_extensions/nextcloud_editor/js/nextcloud-editor.js index 600739eb..621cbdd1 100644 --- a/crm_extensions/nextcloud_editor/js/nextcloud-editor.js +++ b/crm_extensions/nextcloud_editor/js/nextcloud-editor.js @@ -22,8 +22,8 @@ function openProjectFolder(projectId, projectName) { const encodedFolderName = encodeURIComponent(folderName); const nextcloudUrl = 'https://office.clientright.ru:8443'; - // URL для папки проекта в Nextcloud External Storage - const folderUrl = `${nextcloudUrl}/apps/files/?dir=/crm/crm2/CRM_Active_Files/Documents/${encodedFolderName}`; + // URL для папки проекта в Nextcloud External Storage (со структурой Project/) + const folderUrl = `${nextcloudUrl}/apps/files/?dir=/crm/crm2/CRM_Active_Files/Documents/Project/${encodedFolderName}`; console.log('🔗 Folder URL:', folderUrl); diff --git a/layouts/v7/lib/nextcloud-editor-v3.js b/layouts/v7/lib/nextcloud-editor-v3.js index 98976336..0c174fd4 100644 --- a/layouts/v7/lib/nextcloud-editor-v3.js +++ b/layouts/v7/lib/nextcloud-editor-v3.js @@ -22,8 +22,8 @@ function openProjectFolder(projectId, projectName) { const encodedFolderName = encodeURIComponent(folderName); const nextcloudUrl = 'https://office.clientright.ru:8443'; - // URL для папки проекта в Nextcloud External Storage - const folderUrl = `${nextcloudUrl}/apps/files/?dir=/crm/crm2/CRM_Active_Files/Documents/${encodedFolderName}`; + // URL для папки проекта в Nextcloud External Storage (со структурой Project/) + const folderUrl = `${nextcloudUrl}/apps/files/?dir=/crm/crm2/CRM_Active_Files/Documents/Project/${encodedFolderName}`; console.log('🔗 Folder URL:', folderUrl); diff --git a/layouts/v7/lib/nextcloud-editor.js b/layouts/v7/lib/nextcloud-editor.js index 600739eb..d0dea9fc 100644 --- a/layouts/v7/lib/nextcloud-editor.js +++ b/layouts/v7/lib/nextcloud-editor.js @@ -22,8 +22,8 @@ function openProjectFolder(projectId, projectName) { const encodedFolderName = encodeURIComponent(folderName); const nextcloudUrl = 'https://office.clientright.ru:8443'; - // URL для папки проекта в Nextcloud External Storage - const folderUrl = `${nextcloudUrl}/apps/files/?dir=/crm/crm2/CRM_Active_Files/Documents/${encodedFolderName}`; + // URL для папки проекта в Nextcloud External Storage (со структурой Project/) + const folderUrl = `${nextcloudUrl}/apps/files/?dir=/crm/crm2/CRM_Active_Files/Documents/Project/${encodedFolderName}`; console.log('🔗 Folder URL:', folderUrl); @@ -446,6 +446,82 @@ function editInNextcloud(recordId, fileName) { return openNextcloudEditor(recordId, fileName); } +/** + * Открытие файла через Nextcloud Files UI (с версионированием) + */ +function openViaNextcloud(recordId, fileName) { + console.log('📚 Opening via Nextcloud Files UI:', recordId, fileName); + + // Открываем через nextcloud_open.php (PROPFIND → Nextcloud UI) + const redirectUrl = `/crm_extensions/file_storage/api/nextcloud_open.php?recordId=${recordId}&fileName=${encodeURIComponent(fileName)}&v=${Date.now()}`; + + console.log('🎯 Opening via Nextcloud:', redirectUrl); + + // Открываем в новом окне + const win = window.open(redirectUrl, 'nextcloud_files_' + Date.now(), 'width=1400,height=900,scrollbars=yes,resizable=yes'); + + if (win) { + console.log('✅ Nextcloud opened successfully'); + } else { + console.log('❌ Failed to open window - popup blocked'); + alert('❌ Не удалось открыть Nextcloud. Проверьте блокировку всплывающих окон.'); + } +} + +/** + * Создание нового файла в Nextcloud + * @param {string} module - Модуль CRM (Project, Contacts, Accounts и т.д.) + * @param {string} recordId - ID записи + * @param {string} recordName - Название записи (для имени папки) + * @param {string} fileType - Тип файла (docx, xlsx, pptx) + */ +function createFileInNextcloud(module, recordId, recordName, fileType) { + console.log('🆕 Creating file in Nextcloud:', { module, recordId, recordName, fileType }); + + // Формируем имя файла по умолчанию + const fileTypeNames = { + 'docx': 'Документ', + 'xlsx': 'Таблица', + 'pptx': 'Презентация' + }; + + const defaultName = `${fileTypeNames[fileType]}_${new Date().toISOString().split('T')[0]}`; + + // Запрашиваем имя файла у пользователя + const fileName = prompt(`Введите название файла (без расширения):`, defaultName); + + if (!fileName) { + console.log('❌ File creation cancelled'); + return; + } + + // Показываем прогресс + if (typeof app !== 'undefined' && app.helper && app.helper.showProgress) { + app.helper.showProgress({ + message: 'Создание файла в Nextcloud...' + }); + } + + // Вызываем скрипт создания + const createUrl = `/crm_extensions/file_storage/api/create_nextcloud_file.php?module=${module}&recordId=${recordId}&recordName=${encodeURIComponent(recordName)}&fileName=${encodeURIComponent(fileName)}&fileType=${fileType}`; + + console.log('🎯 Creating file:', createUrl); + + // Открываем в новом окне (скрипт создаст файл и откроет редактор) + const win = window.open(createUrl, 'nextcloud_create_' + Date.now(), 'width=1400,height=900,scrollbars=yes,resizable=yes'); + + // Скрываем прогресс + setTimeout(function() { + if (typeof app !== 'undefined' && app.helper && app.helper.hideProgress) { + app.helper.hideProgress(); + } + }, 1000); + + if (!win) { + alert('❌ Не удалось открыть Nextcloud. Проверьте блокировку всплывающих окон.'); + } +} + // Автоматическое подключение при загрузке страницы $(document).ready(function() { console.log('Nextcloud Editor integration loaded'); diff --git a/layouts/v7/modules/Accounts/DetailViewHeaderTitle.tpl b/layouts/v7/modules/Accounts/DetailViewHeaderTitle.tpl index ae44003e..24a17891 100644 --- a/layouts/v7/modules/Accounts/DetailViewHeaderTitle.tpl +++ b/layouts/v7/modules/Accounts/DetailViewHeaderTitle.tpl @@ -40,11 +40,20 @@ {include file="DetailViewHeaderFieldsView.tpl"|vtemplate_path:$MODULE} - {* Кнопка открытия папки контрагента в Nextcloud *} + {* Кнопки Nextcloud: папка + создание файлов *} Папка в Nextcloud + + + + + + + + + {* Подключаем Nextcloud Editor JS *} diff --git a/layouts/v7/modules/Contacts/DetailViewHeaderTitle.tpl b/layouts/v7/modules/Contacts/DetailViewHeaderTitle.tpl index 068f748a..60c2dda4 100644 --- a/layouts/v7/modules/Contacts/DetailViewHeaderTitle.tpl +++ b/layouts/v7/modules/Contacts/DetailViewHeaderTitle.tpl @@ -50,11 +50,20 @@ {include file="DetailViewHeaderFieldsView.tpl"|vtemplate_path:$MODULE} - {* Кнопка открытия папки контакта в Nextcloud *} + {* Кнопки Nextcloud: папка + создание файлов *} get("lastname")|escape:javascript}')" title="Открыть папку контакта в Nextcloud"> Папка в Nextcloud + get("lastname")|escape:javascript}', 'docx')" title="Создать Word документ в Nextcloud" style="margin-left: 5px;"> + + + get("lastname")|escape:javascript}', 'xlsx')" title="Создать Excel таблицу в Nextcloud" style="margin-left: 2px;"> + + + get("lastname")|escape:javascript}', 'pptx')" title="Создать PowerPoint презентацию в Nextcloud" style="margin-left: 2px;"> + + {* Подключаем Nextcloud Editor JS *} diff --git a/layouts/v7/modules/Documents/DetailViewActions.tpl b/layouts/v7/modules/Documents/DetailViewActions.tpl index b4cb9fd5..fcca8241 100644 --- a/layouts/v7/modules/Documents/DetailViewActions.tpl +++ b/layouts/v7/modules/Documents/DetailViewActions.tpl @@ -60,7 +60,10 @@ {/foreach} {* Дополнительные кнопки для Documents *} {if $MODULE_NAME eq "Documents" && $RECORD->get("filename")} - + + Быстро + + Nextcloud diff --git a/layouts/v7/modules/Documents/DocumentsRelatedList.tpl b/layouts/v7/modules/Documents/DocumentsRelatedList.tpl index bbe548e0..750a9e28 100644 --- a/layouts/v7/modules/Documents/DocumentsRelatedList.tpl +++ b/layouts/v7/modules/Documents/DocumentsRelatedList.tpl @@ -176,7 +176,8 @@ {/if} {if $DOCUMENT_RECORD_MODEL->get('filename') && $DOCUMENT_RECORD_MODEL->get('filestatus')} - + + {/if} diff --git a/layouts/v7/modules/HelpDesk/DetailViewHeaderTitle.tpl b/layouts/v7/modules/HelpDesk/DetailViewHeaderTitle.tpl index d1c416f0..9a51fbdf 100644 --- a/layouts/v7/modules/HelpDesk/DetailViewHeaderTitle.tpl +++ b/layouts/v7/modules/HelpDesk/DetailViewHeaderTitle.tpl @@ -30,11 +30,20 @@ {include file="DetailViewHeaderFieldsView.tpl"|vtemplate_path:$MODULE} - {* Кнопка открытия папки тикета в Nextcloud *} + {* Кнопки Nextcloud: папка + создание файлов *} Папка в Nextcloud + + + + + + + + + {* Подключаем Nextcloud Editor JS *} diff --git a/layouts/v7/modules/Invoice/DetailViewHeaderTitle.tpl b/layouts/v7/modules/Invoice/DetailViewHeaderTitle.tpl index 73f94b1a..dc91b988 100644 --- a/layouts/v7/modules/Invoice/DetailViewHeaderTitle.tpl +++ b/layouts/v7/modules/Invoice/DetailViewHeaderTitle.tpl @@ -40,11 +40,20 @@ {include file="DetailViewHeaderFieldsView.tpl"|vtemplate_path:$MODULE} - {* Кнопка открытия папки счета в Nextcloud *} + {* Кнопки Nextcloud: папка + создание файлов *} Папка в Nextcloud + + + + + + + + + {* Подключаем Nextcloud Editor JS *} diff --git a/layouts/v7/modules/Leads/DetailViewHeaderTitle.tpl b/layouts/v7/modules/Leads/DetailViewHeaderTitle.tpl index 2ec3d3cc..9a23ddf3 100644 --- a/layouts/v7/modules/Leads/DetailViewHeaderTitle.tpl +++ b/layouts/v7/modules/Leads/DetailViewHeaderTitle.tpl @@ -45,11 +45,20 @@ {include file="DetailViewHeaderFieldsView.tpl"|vtemplate_path:$MODULE} - {* Кнопка открытия папки лида в Nextcloud *} + {* Кнопки Nextcloud: папка + создание файлов *} get("lastname")|escape:javascript}')" title="Открыть папку лида в Nextcloud"> Папка в Nextcloud + get("lastname")|escape:javascript}', 'docx')" title="Создать Word документ" style="margin-left: 5px;"> + + + get("lastname")|escape:javascript}', 'xlsx')" title="Создать Excel таблицу" style="margin-left: 2px;"> + + + get("lastname")|escape:javascript}', 'pptx')" title="Создать PowerPoint презентацию" style="margin-left: 2px;"> + + {* Подключаем Nextcloud Editor JS *} diff --git a/layouts/v7/modules/Potentials/DetailViewHeaderTitle.tpl b/layouts/v7/modules/Potentials/DetailViewHeaderTitle.tpl index 6aaa13f6..3a5bb6d0 100644 --- a/layouts/v7/modules/Potentials/DetailViewHeaderTitle.tpl +++ b/layouts/v7/modules/Potentials/DetailViewHeaderTitle.tpl @@ -32,11 +32,20 @@ {include file="DetailViewHeaderFieldsView.tpl"|vtemplate_path:$MODULE} - {* Кнопка открытия папки сделки в Nextcloud *} + {* Кнопки Nextcloud: папка + создание файлов *} Папка в Nextcloud + + + + + + + + + {* Подключаем Nextcloud Editor JS *} diff --git a/layouts/v7/modules/Project/DetailViewHeaderTitle.tpl b/layouts/v7/modules/Project/DetailViewHeaderTitle.tpl index 9839f24d..ac4f42be 100644 --- a/layouts/v7/modules/Project/DetailViewHeaderTitle.tpl +++ b/layouts/v7/modules/Project/DetailViewHeaderTitle.tpl @@ -30,11 +30,20 @@ {include file="DetailViewHeaderFieldsView.tpl"|vtemplate_path:$MODULE} - {* Кнопка открытия папки проекта в Nextcloud *} + {* Кнопки Nextcloud: папка + создание файлов *} Папка в Nextcloud + + + + + + + + + {* Подключаем Nextcloud Editor JS *} diff --git a/layouts/v7/modules/PurchaseOrder/DetailViewHeaderTitle.tpl b/layouts/v7/modules/PurchaseOrder/DetailViewHeaderTitle.tpl index eb53adb2..ee478fd7 100644 --- a/layouts/v7/modules/PurchaseOrder/DetailViewHeaderTitle.tpl +++ b/layouts/v7/modules/PurchaseOrder/DetailViewHeaderTitle.tpl @@ -40,11 +40,20 @@ {include file="DetailViewHeaderFieldsView.tpl"|vtemplate_path:$MODULE} - {* Кнопка открытия папки закупки в Nextcloud *} + {* Кнопки Nextcloud: папка + создание файлов *} Папка в Nextcloud + + + + + + + + + {* Подключаем Nextcloud Editor JS *} diff --git a/layouts/v7/modules/Quotes/DetailViewHeaderTitle.tpl b/layouts/v7/modules/Quotes/DetailViewHeaderTitle.tpl index d467a713..2eb782b5 100644 --- a/layouts/v7/modules/Quotes/DetailViewHeaderTitle.tpl +++ b/layouts/v7/modules/Quotes/DetailViewHeaderTitle.tpl @@ -40,11 +40,20 @@ {include file="DetailViewHeaderFieldsView.tpl"|vtemplate_path:$MODULE} - {* Кнопка открытия папки предложения в Nextcloud *} + {* Кнопки Nextcloud: папка + создание файлов *} Папка в Nextcloud + + + + + + + + + {* Подключаем Nextcloud Editor JS *} diff --git a/layouts/v7/modules/SalesOrder/DetailViewHeaderTitle.tpl b/layouts/v7/modules/SalesOrder/DetailViewHeaderTitle.tpl index 02afe707..77cf8460 100644 --- a/layouts/v7/modules/SalesOrder/DetailViewHeaderTitle.tpl +++ b/layouts/v7/modules/SalesOrder/DetailViewHeaderTitle.tpl @@ -40,11 +40,20 @@ {include file="DetailViewHeaderFieldsView.tpl"|vtemplate_path:$MODULE} - {* Кнопка открытия папки заказа в Nextcloud *} + {* Кнопки Nextcloud: папка + создание файлов *} Папка в Nextcloud + + + + + + + + + {* Подключаем Nextcloud Editor JS *} diff --git a/layouts/v7/modules/Vtiger/DocumentsSummaryWidgetContents.tpl b/layouts/v7/modules/Vtiger/DocumentsSummaryWidgetContents.tpl index e681270e..8792a76f 100644 --- a/layouts/v7/modules/Vtiger/DocumentsSummaryWidgetContents.tpl +++ b/layouts/v7/modules/Vtiger/DocumentsSummaryWidgetContents.tpl @@ -68,10 +68,13 @@ {/if} - {* Кнопка редактирования в Nextcloud *} + {* Кнопки редактирования *} {if $DOCUMENT_RECORD_MODEL->get('filestatus')} - + + + + {/if} diff --git a/storage/2025/November/week1/396858_1_заявление_потребителя_Селдушев____стр.pdf b/storage/2025/November/week1/396858_1_заявление_потребителя_Селдушев____стр.pdf new file mode 100644 index 00000000..9b48a1be Binary files /dev/null and b/storage/2025/November/week1/396858_1_заявление_потребителя_Селдушев____стр.pdf differ diff --git a/test/templates_c/v7/0160727bc29c481fa2d53c02f7147f4d149ef404.file.DetailViewBlockView.tpl.php b/test/templates_c/v7/0160727bc29c481fa2d53c02f7147f4d149ef404.file.DetailViewBlockView.tpl.php index 5ec3eb9f..a53eaa60 100644 --- a/test/templates_c/v7/0160727bc29c481fa2d53c02f7147f4d149ef404.file.DetailViewBlockView.tpl.php +++ b/test/templates_c/v7/0160727bc29c481fa2d53c02f7147f4d149ef404.file.DetailViewBlockView.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '32390630969053141d0de81-86254122', + 'nocache_hash' => '5671819946905d0d55fc265-26913218', 'function' => array ( ), @@ -44,9 +44,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_69053141d4794', + 'unifunc' => 'content_6905d0d563c51', ),false); /*/%%SmartyHeaderCode%%*/?> - + tpl_vars['PICKIST_DEPENDENCY_DATASOURCE']->value)){?>value);?> ' />tpl_vars['FIELD_MODEL_LIST'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['FIELD_MODEL_LIST']->_loop = false; diff --git a/test/templates_c/v7/025bc6ba8656ef350eb0d12a9256e90d0efb5203.file.SidebarAppMenu.tpl.php b/test/templates_c/v7/025bc6ba8656ef350eb0d12a9256e90d0efb5203.file.SidebarAppMenu.tpl.php index 8cbfc532..24a580c1 100644 --- a/test/templates_c/v7/025bc6ba8656ef350eb0d12a9256e90d0efb5203.file.SidebarAppMenu.tpl.php +++ b/test/templates_c/v7/025bc6ba8656ef350eb0d12a9256e90d0efb5203.file.SidebarAppMenu.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '13663705546905125db46e52-81056477', + 'nocache_hash' => '15005435336905d0724eb590-01905763', 'function' => array ( ), @@ -36,9 +36,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905125db5eba', + 'unifunc' => 'content_6905d07250e9b', ),false); /*/%%SmartyHeaderCode%%*/?> - + diff --git a/test/templates_c/v7/04fb8e9516a65605178b0ad74792c196d53a3fd6.file.Tag.tpl.php b/test/templates_c/v7/04fb8e9516a65605178b0ad74792c196d53a3fd6.file.Tag.tpl.php index cad5b8a7..33793f39 100644 --- a/test/templates_c/v7/04fb8e9516a65605178b0ad74792c196d53a3fd6.file.Tag.tpl.php +++ b/test/templates_c/v7/04fb8e9516a65605178b0ad74792c196d53a3fd6.file.Tag.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '15971070356905125dc356e2-46618455', + 'nocache_hash' => '15845536546905d07263b918-63398742', 'function' => array ( ), @@ -24,9 +24,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905125dc3aef', + 'unifunc' => 'content_6905d072641dc', ),false); /*/%%SmartyHeaderCode%%*/?> - + -decodeProperties(array ( - 'file_dependency' => - array ( - '0600493ad4998eb28a9fe7c21cb15102aa37b31f' => - array ( - 0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Vtiger/ListViewPreProcess.tpl', - 1 => 1711810494, - 2 => 'file', - ), - ), - 'nocache_hash' => '29342760469051982981969-50696874', - 'function' => - array ( - ), - 'variables' => - array ( - 'MODULE' => 0, - 'CURRENT_USER_MODEL' => 0, - 'LEFTPANELHIDE' => 0, - ), - 'has_nocache_code' => false, - 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_690519829d359', -),false); /*/%%SmartyHeaderCode%%*/?> - - -getSubTemplate ("modules/Vtiger/partials/Topbar.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?> - - - - - getSubTemplate (vtemplate_path("partials/SidebarHeader.tpl",$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?> - - getSubTemplate (vtemplate_path("ModuleHeader.tpl",$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?> - - - - - - - - - - - - tpl_vars['LEFTPANELHIDE'] = new Smarty_variable($_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value->get('leftpanelhide'), null, 0);?> - - - getSubTemplate (vtemplate_path("partials/Menubar.tpl",$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?> - - - - - getSubTemplate (vtemplate_path("partials/SidebarEssentials.tpl",$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?> - - - - - \ No newline at end of file diff --git a/test/templates_c/v7/0c24fe0ca3d2dd9407e0f061b9cc683d6ed7002e.file.OwnerFieldSearchView.tpl.php b/test/templates_c/v7/0c24fe0ca3d2dd9407e0f061b9cc683d6ed7002e.file.OwnerFieldSearchView.tpl.php index a823efcf..bea8037b 100644 --- a/test/templates_c/v7/0c24fe0ca3d2dd9407e0f061b9cc683d6ed7002e.file.OwnerFieldSearchView.tpl.php +++ b/test/templates_c/v7/0c24fe0ca3d2dd9407e0f061b9cc683d6ed7002e.file.OwnerFieldSearchView.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '198196667369051982c6c2e0-21354292', + 'nocache_hash' => '15834075196905d0d419d6a4-86497940', 'function' => array ( ), @@ -34,9 +34,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_69051982c7ec4', + 'unifunc' => 'content_6905d0d41ad39', ),false); /*/%%SmartyHeaderCode%%*/?> - + tpl_vars["FIELD_INFO"] = new Smarty_variable(Zend_Json::encode($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldInfo()), null, 0);?>tpl_vars['ASSIGNED_USER_ID'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name'), null, 0);?>tpl_vars['ALL_ACTIVEUSER_LIST'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->getAccessibleUsers(), null, 0);?>tpl_vars['SEARCH_VALUES'] = new Smarty_variable(explode(',',$_smarty_tpl->tpl_vars['SEARCH_INFO']->value['searchValue']), null, 0);?>tpl_vars['SEARCH_VALUES'] = new Smarty_variable(array_map("trim",$_smarty_tpl->tpl_vars['SEARCH_VALUES']->value), null, 0);?>tpl_vars['FIELD_MODEL']->value->get('uitype')=='52'||$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype')=='77'){?>tpl_vars['ALL_ACTIVEGROUP_LIST'] = new Smarty_variable(array(), null, 0);?>tpl_vars['ALL_ACTIVEGROUP_LIST'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->getAccessibleGroups(), null, 0);?>tpl_vars['ACCESSIBLE_USER_LIST'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->getAccessibleUsersForModule($_smarty_tpl->tpl_vars['MODULE']->value), null, 0);?>tpl_vars['ACCESSIBLE_GROUP_LIST'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->getAccessibleGroupForModule($_smarty_tpl->tpl_vars['MODULE']->value), null, 0);?>value, ENT_QUOTES, 'UTF-8', true);?> diff --git a/test/templates_c/v7/0c5cc8bcf7bf77f60d0b0b69bcb1572ab953a57d.file.NoComments.tpl.php b/test/templates_c/v7/0c5cc8bcf7bf77f60d0b0b69bcb1572ab953a57d.file.NoComments.tpl.php index 686127e8..1223f9a5 100644 --- a/test/templates_c/v7/0c5cc8bcf7bf77f60d0b0b69bcb1572ab953a57d.file.NoComments.tpl.php +++ b/test/templates_c/v7/0c5cc8bcf7bf77f60d0b0b69bcb1572ab953a57d.file.NoComments.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '5953182776905199c9ba1a0-53435329', + 'nocache_hash' => '9921597276905d0779dd232-51059210', 'function' => array ( ), @@ -21,8 +21,8 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905199c9bcab', + 'unifunc' => 'content_6905d0779de90', ),false); /*/%%SmartyHeaderCode%%*/?> - + tpl_vars['MODULE_NAME']->value);?> \ No newline at end of file diff --git a/test/templates_c/v7/0d6898570ac3df2cefd98ea73decd5a4383e35c5.file.Reminder.tpl.php b/test/templates_c/v7/0d6898570ac3df2cefd98ea73decd5a4383e35c5.file.Reminder.tpl.php index 9567f3fb..3dd23410 100644 --- a/test/templates_c/v7/0d6898570ac3df2cefd98ea73decd5a4383e35c5.file.Reminder.tpl.php +++ b/test/templates_c/v7/0d6898570ac3df2cefd98ea73decd5a4383e35c5.file.Reminder.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '2720818816905125f342da2-60644337', + 'nocache_hash' => '12351364056905d0767b6258-06619933', 'function' => array ( ), @@ -21,9 +21,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905125f34710', + 'unifunc' => 'content_6905d0767bbe9', ),false); /*/%%SmartyHeaderCode%%*/?> - + getSubTemplate (vtemplate_path("ReminderList.tpl","ITS4YouQuickReminder"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?> tpl_vars['MODULE']->value);?> - |tpl_vars['MODULE']->value);?> - |tpl_vars['MODULE']->value);?> - |tpl_vars['MODULE']->value);?> - |SalesPlatform.rutpl_vars['MESSAGE']->value;?> -tpl_vars['MESSAGE']->value;?> -tpl_vars['MODULE']->value);?> -tpl_vars['MODULE']->value);?> -tpl_vars['MODULE']->value);?> -tpl_vars['MODULE']->value);?> -tpl_vars['MODULE']->value);?> -E-mailtpl_vars['MODULE']->value);?> -tpl_vars['MODULE']->value);?> -tpl_vars['MODULE']->value);?> - \ No newline at end of file diff --git a/test/templates_c/v7/6b594fa767ea1062da98b55f6615d01634db561e.file.PhoneDetailView.tpl.php b/test/templates_c/v7/6b594fa767ea1062da98b55f6615d01634db561e.file.PhoneDetailView.tpl.php index 28197db2..75c67ae3 100644 --- a/test/templates_c/v7/6b594fa767ea1062da98b55f6615d01634db561e.file.PhoneDetailView.tpl.php +++ b/test/templates_c/v7/6b594fa767ea1062da98b55f6615d01634db561e.file.PhoneDetailView.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '13971278896905199bc125d0-64948356', + 'nocache_hash' => '591202396905d0d05c0ff2-28838392', 'function' => array ( ), @@ -28,9 +28,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905199bc22f0', + 'unifunc' => 'content_6905d0d05cc38', ),false); /*/%%SmartyHeaderCode%%*/?> - tpl_vars['MODULE'] = new Smarty_variable('PBXManager', null, 0);?> diff --git a/test/templates_c/v7/7285c236e70982f35aa95ea9470de5c9f3cbec3c.file.DetailViewHeaderTitle.tpl.php b/test/templates_c/v7/7285c236e70982f35aa95ea9470de5c9f3cbec3c.file.DetailViewHeaderTitle.tpl.php deleted file mode 100644 index 20aaa7a3..00000000 --- a/test/templates_c/v7/7285c236e70982f35aa95ea9470de5c9f3cbec3c.file.DetailViewHeaderTitle.tpl.php +++ /dev/null @@ -1,60 +0,0 @@ - -decodeProperties(array ( - 'file_dependency' => - array ( - '7285c236e70982f35aa95ea9470de5c9f3cbec3c' => - array ( - 0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Accounts/DetailViewHeaderTitle.tpl', - 1 => 1761324922, - 2 => 'file', - ), - ), - 'nocache_hash' => '20461892976905199bba7280-36705788', - 'function' => - array ( - ), - 'variables' => - array ( - 'SELECTED_MENU_CATEGORY' => 0, - 'RECORD' => 0, - 'IMAGE_DETAILS' => 0, - 'IMAGE_INFO' => 0, - 'MODULE_MODEL' => 0, - 'NAME_FIELD' => 0, - 'FIELD_MODEL' => 0, - 'MODULE' => 0, - 'MODULE_NAME' => 0, - ), - 'has_nocache_code' => false, - 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905199bbfe7e', -),false); /*/%%SmartyHeaderCode%%*/?> - -tpl_vars['IMAGE_DETAILS'] = new Smarty_variable($_smarty_tpl->tpl_vars['RECORD']->value->getImageDetails(), null, 0);?>tpl_vars['IMAGE_INFO'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['IMAGE_INFO']->_loop = false; - $_smarty_tpl->tpl_vars['ITER'] = new Smarty_Variable; - $_from = $_smarty_tpl->tpl_vars['IMAGE_DETAILS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} -foreach ($_from as $_smarty_tpl->tpl_vars['IMAGE_INFO']->key => $_smarty_tpl->tpl_vars['IMAGE_INFO']->value){ -$_smarty_tpl->tpl_vars['IMAGE_INFO']->_loop = true; - $_smarty_tpl->tpl_vars['ITER']->value = $_smarty_tpl->tpl_vars['IMAGE_INFO']->key; -?>tpl_vars['IMAGE_INFO']->value['url'])){?>tpl_vars['IMAGE_DETAILS']->value)){?>tpl_vars['MODULE_MODEL']->value->getModuleIcon();?> -tpl_vars['NAME_FIELD'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['NAME_FIELD']->_loop = false; - $_from = $_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getNameFields(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} -foreach ($_from as $_smarty_tpl->tpl_vars['NAME_FIELD']->key => $_smarty_tpl->tpl_vars['NAME_FIELD']->value){ -$_smarty_tpl->tpl_vars['NAME_FIELD']->_loop = true; -?>tpl_vars['FIELD_MODEL'] = new Smarty_variable($_smarty_tpl->tpl_vars['MODULE_MODEL']->value->getField($_smarty_tpl->tpl_vars['NAME_FIELD']->value), null, 0);?>tpl_vars['FIELD_MODEL']->value->getPermissions()){?>tpl_vars['RECORD']->value->get($_smarty_tpl->tpl_vars['NAME_FIELD']->value));?> - getSubTemplate (vtemplate_path("DetailViewHeaderFieldsView.tpl",$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?> - "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "" => "<\/" ));?> -')" title="Открыть папку контрагента в Nextcloud"> Папка в Nextcloud value->getModule()->getName();?> -' data-record='tpl_vars['RECORD']->value->getId();?> -'>tpl_vars['MODULE_NAME']->value);?> - \ No newline at end of file diff --git a/test/templates_c/v7/73eb4924afe4da02e33c201ae591d930874b264a.file.GetPDFButtons.tpl.php b/test/templates_c/v7/73eb4924afe4da02e33c201ae591d930874b264a.file.GetPDFButtons.tpl.php index 244a529e..4395e812 100644 --- a/test/templates_c/v7/73eb4924afe4da02e33c201ae591d930874b264a.file.GetPDFButtons.tpl.php +++ b/test/templates_c/v7/73eb4924afe4da02e33c201ae591d930874b264a.file.GetPDFButtons.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '5847201876905125f237fc7-83133085', + 'nocache_hash' => '14066889746905d0766a5918-10696321', 'function' => array ( ), @@ -25,9 +25,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905125f2416b', + 'unifunc' => 'content_6905d0766add4', ),false); /*/%%SmartyHeaderCode%%*/?> - + tpl_vars['ENABLE_PDFMAKER']->value=='true'&&$_smarty_tpl->tpl_vars['CRM_TEMPLATES_EXIST']->value=='0'){?> diff --git a/test/templates_c/v7/76f052d6cdd6457283cf76c86eab346490c69840.file.IndexPostProcess.tpl.php b/test/templates_c/v7/76f052d6cdd6457283cf76c86eab346490c69840.file.IndexPostProcess.tpl.php index e22878db..0ed1005d 100644 --- a/test/templates_c/v7/76f052d6cdd6457283cf76c86eab346490c69840.file.IndexPostProcess.tpl.php +++ b/test/templates_c/v7/76f052d6cdd6457283cf76c86eab346490c69840.file.IndexPostProcess.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,15 +11,15 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '17728586146905125ddbe913-24303012', + 'nocache_hash' => '8204671066905d0728339e6-37829533', 'function' => array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905125ddbf24', + 'unifunc' => 'content_6905d0728344c', ),false); /*/%%SmartyHeaderCode%%*/?> - + diff --git a/test/templates_c/v7/7b9a358a55cb55179c2f26d4be14eecf275e1983.file.DetailViewFullContents.tpl.php b/test/templates_c/v7/7b9a358a55cb55179c2f26d4be14eecf275e1983.file.DetailViewFullContents.tpl.php index 8690917f..1683eea4 100644 --- a/test/templates_c/v7/7b9a358a55cb55179c2f26d4be14eecf275e1983.file.DetailViewFullContents.tpl.php +++ b/test/templates_c/v7/7b9a358a55cb55179c2f26d4be14eecf275e1983.file.DetailViewFullContents.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '28417691469053141d0acd0-25539581', + 'nocache_hash' => '10149667576905d0d55f7506-16941917', 'function' => array ( ), @@ -22,9 +22,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_69053141d0cab', + 'unifunc' => 'content_6905d0d55faac', ),false); /*/%%SmartyHeaderCode%%*/?> - + diff --git a/test/templates_c/v7/7dbcb45499776dd907064489488d3da7b7b91a19.file.ModuleSummaryView.tpl.php b/test/templates_c/v7/7dbcb45499776dd907064489488d3da7b7b91a19.file.ModuleSummaryView.tpl.php index 722a7b36..50075291 100644 --- a/test/templates_c/v7/7dbcb45499776dd907064489488d3da7b7b91a19.file.ModuleSummaryView.tpl.php +++ b/test/templates_c/v7/7dbcb45499776dd907064489488d3da7b7b91a19.file.ModuleSummaryView.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '21213202866905125dcafc90-06411385', + 'nocache_hash' => '5950659976905d0726db974-39326077', 'function' => array ( ), @@ -21,9 +21,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905125dcb1f0', + 'unifunc' => 'content_6905d0726ddfd', ),false); /*/%%SmartyHeaderCode%%*/?> - + getSubTemplate (vtemplate_path('SummaryViewContents.tpl',$_smarty_tpl->tpl_vars['MODULE_NAME']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?> \ No newline at end of file diff --git a/test/templates_c/v7/834f2506132112987639a8370f784b459436e7ec.file.FieldSearchView.tpl.php b/test/templates_c/v7/834f2506132112987639a8370f784b459436e7ec.file.FieldSearchView.tpl.php index 8a0cd43e..89e38676 100644 --- a/test/templates_c/v7/834f2506132112987639a8370f784b459436e7ec.file.FieldSearchView.tpl.php +++ b/test/templates_c/v7/834f2506132112987639a8370f784b459436e7ec.file.FieldSearchView.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '29630682169051982c34dd2-72390181', + 'nocache_hash' => '19615795156905d0d417af65-69661683', 'function' => array ( ), @@ -23,9 +23,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_69051982c37fa', + 'unifunc' => 'content_6905d0d417eb1', ),false); /*/%%SmartyHeaderCode%%*/?> - + tpl_vars["FIELD_INFO"] = new Smarty_variable(Zend_Json::encode($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldInfo()), null, 0);?> -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '7561794416905125f767426-57648764', + 'nocache_hash' => '3065707746905d076ec78e9-75593315', 'function' => array ( ), @@ -21,9 +21,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905125f76ae8', + 'unifunc' => 'content_6905d076eca85', ),false); /*/%%SmartyHeaderCode%%*/?> - + tpl_vars['ENABLE_EMAILMAKER']->value=='true'){?> \ No newline at end of file diff --git a/test/templates_c/v7/8c055136ef22636e5fe62f10b7de095de8e1e788.file.OverlayDetailView.tpl.php b/test/templates_c/v7/8c055136ef22636e5fe62f10b7de095de8e1e788.file.OverlayDetailView.tpl.php deleted file mode 100644 index 6b615b28..00000000 --- a/test/templates_c/v7/8c055136ef22636e5fe62f10b7de095de8e1e788.file.OverlayDetailView.tpl.php +++ /dev/null @@ -1,28 +0,0 @@ - -decodeProperties(array ( - 'file_dependency' => - array ( - '8c055136ef22636e5fe62f10b7de095de8e1e788' => - array ( - 0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Documents/OverlayDetailView.tpl', - 1 => 1711810496, - 2 => 'file', - ), - ), - 'nocache_hash' => '21490576969053141ce9aa7-39203166', - 'function' => - array ( - ), - 'has_nocache_code' => false, - 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_69053141cecd6', -),false); /*/%%SmartyHeaderCode%%*/?> - - - -getSubTemplate (vtemplate_path('OverlayDetailView.tpl','Vtiger'), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?> - - \ No newline at end of file diff --git a/test/templates_c/v7/8c93917102dcb778f82087cde305a2537e9d2b3c.file.String.tpl.php b/test/templates_c/v7/8c93917102dcb778f82087cde305a2537e9d2b3c.file.String.tpl.php deleted file mode 100644 index f9fa3d53..00000000 --- a/test/templates_c/v7/8c93917102dcb778f82087cde305a2537e9d2b3c.file.String.tpl.php +++ /dev/null @@ -1,40 +0,0 @@ - -decodeProperties(array ( - 'file_dependency' => - array ( - '8c93917102dcb778f82087cde305a2537e9d2b3c' => - array ( - 0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Vtiger/uitypes/String.tpl', - 1 => 1711810494, - 2 => 'file', - ), - ), - 'nocache_hash' => '9550977486905199eea26a9-72552189', - 'function' => - array ( - ), - 'variables' => - array ( - 'FIELD_MODEL' => 0, - 'FIELD_NAME' => 0, - 'MODULE' => 0, - 'MODE' => 0, - 'SPECIAL_VALIDATOR' => 0, - 'FIELD_INFO' => 0, - ), - 'has_nocache_code' => false, - 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905199eeada0', -),false); /*/%%SmartyHeaderCode%%*/?> - -tpl_vars["FIELD_INFO"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldInfo(), null, 0);?>tpl_vars["SPECIAL_VALIDATOR"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getValidator(), null, 0);?>tpl_vars['FIELD_NAME']->value)){?>tpl_vars["FIELD_NAME"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldName(), null, 0);?>tpl_vars['FIELD_MODEL']->value->get('uitype')=='3'||$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('uitype')=='4'||$_smarty_tpl->tpl_vars['FIELD_MODEL']->value->isReadOnly()){?>tpl_vars['FIELD_MODEL']->value->get('uitype')!='106'){?>readonlytpl_vars['FIELD_MODEL']->value->get('uitype')=='106'&&$_smarty_tpl->tpl_vars['MODE']->value=='edit'){?>readonlytpl_vars['SPECIAL_VALIDATOR']->value)){?>data-validator="tpl_vars['SPECIAL_VALIDATOR']->value);?> -"tpl_vars['FIELD_INFO']->value["mandatory"]==true){?> data-rule-required="true" tpl_vars['FIELD_INFO']->value['validator'])){?>data-specific-rules='tpl_vars['FIELD_INFO']->value["validator"]);?> -'/> - \ No newline at end of file diff --git a/test/templates_c/v7/9652b6109edc26388c23cb0e2468e875c5f24a4c.file.DocumentsFolder.tpl.php b/test/templates_c/v7/9652b6109edc26388c23cb0e2468e875c5f24a4c.file.DocumentsFolder.tpl.php deleted file mode 100644 index f95e5d4e..00000000 --- a/test/templates_c/v7/9652b6109edc26388c23cb0e2468e875c5f24a4c.file.DocumentsFolder.tpl.php +++ /dev/null @@ -1,43 +0,0 @@ - -decodeProperties(array ( - 'file_dependency' => - array ( - '9652b6109edc26388c23cb0e2468e875c5f24a4c' => - array ( - 0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Vtiger/uitypes/DocumentsFolder.tpl', - 1 => 1711810494, - 2 => 'file', - ), - ), - 'nocache_hash' => '11072467536905199eec9cd3-64693789', - 'function' => - array ( - ), - 'variables' => - array ( - 'FIELD_MODEL' => 0, - 'SPECIAL_VALIDATOR' => 0, - 'FIELD_INFO' => 0, - 'FOLDER_VALUES' => 0, - 'FOLDER_VALUE' => 0, - 'FOLDER_NAME' => 0, - ), - 'has_nocache_code' => false, - 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905199eed2da', -),false); /*/%%SmartyHeaderCode%%*/?> - -tpl_vars["FIELD_INFO"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldInfo(), null, 0);?>tpl_vars['FOLDER_VALUES'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getDocumentFolders(), null, 0);?>tpl_vars["SPECIAL_VALIDATOR"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getValidator(), null, 0);?>tpl_vars['SPECIAL_VALIDATOR']->value)){?>data-validator="tpl_vars['SPECIAL_VALIDATOR']->value);?> -"tpl_vars['FIELD_INFO']->value["mandatory"]==true){?> data-rule-required="true" tpl_vars['FIELD_INFO']->value['validator'])){?>data-specific-rules='tpl_vars['FIELD_INFO']->value["validator"]);?> -'>tpl_vars['FOLDER_NAME'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['FOLDER_NAME']->_loop = false; - $_smarty_tpl->tpl_vars['FOLDER_VALUE'] = new Smarty_Variable; - $_from = $_smarty_tpl->tpl_vars['FOLDER_VALUES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} -foreach ($_from as $_smarty_tpl->tpl_vars['FOLDER_NAME']->key => $_smarty_tpl->tpl_vars['FOLDER_NAME']->value){ -$_smarty_tpl->tpl_vars['FOLDER_NAME']->_loop = true; - $_smarty_tpl->tpl_vars['FOLDER_VALUE']->value = $_smarty_tpl->tpl_vars['FOLDER_NAME']->key; -?>tpl_vars['FIELD_MODEL']->value->get('fieldvalue')==$_smarty_tpl->tpl_vars['FOLDER_VALUE']->value){?> selected >tpl_vars['FOLDER_NAME']->value;?> - \ No newline at end of file diff --git a/test/templates_c/v7/9767fe433bd5f8db9a3fb50e9c5cd526eb4b38d6.file.Header.tpl.php b/test/templates_c/v7/9767fe433bd5f8db9a3fb50e9c5cd526eb4b38d6.file.Header.tpl.php index 22b2a1aa..ff334559 100644 --- a/test/templates_c/v7/9767fe433bd5f8db9a3fb50e9c5cd526eb4b38d6.file.Header.tpl.php +++ b/test/templates_c/v7/9767fe433bd5f8db9a3fb50e9c5cd526eb4b38d6.file.Header.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '96220567169050dc316c365-76084075', + 'nocache_hash' => '20869985226905d07245d1a8-40888058', 'function' => array ( ), @@ -37,9 +37,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_69050dc318800', + 'unifunc' => 'content_6905d07247656', ),false); /*/%%SmartyHeaderCode%%*/?> - + tpl_vars['PAGETITLE']->value,$_smarty_tpl->tpl_vars['QUALIFIED_MODULE']->value);?> tpl_vars['INVENTORY_MODULES']->value);?> >tpl_vars['V7_THEME_PATH'] = new Smarty_variable(Vtiger_Theme::getv7AppStylePath($_smarty_tpl->tpl_vars['SELECTED_MENU_CATEGORY']->value), null, 0);?>tpl_vars['V7_THEME_PATH']->value,".less")!==false){?> -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '648976786905125dcb3c70-71849743', + 'nocache_hash' => '857680946905d0726dfb54-50844076', 'function' => array ( ), @@ -30,9 +30,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905125dcc854', + 'unifunc' => 'content_6905d0726fdc4', ),false); /*/%%SmartyHeaderCode%%*/?> - + tpl_vars['PICKIST_DEPENDENCY_DATASOURCE']->value)){?>value);?> ' />tpl_vars['FIELD_MODEL'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['FIELD_MODEL']->_loop = false; $_smarty_tpl->tpl_vars['FIELD_NAME'] = new Smarty_Variable; diff --git a/test/templates_c/v7/9fa2259d6aa10c62f3b9d080484cc7f2f6685804.file.Owner.tpl.php b/test/templates_c/v7/9fa2259d6aa10c62f3b9d080484cc7f2f6685804.file.Owner.tpl.php deleted file mode 100644 index 5c9a905e..00000000 --- a/test/templates_c/v7/9fa2259d6aa10c62f3b9d080484cc7f2f6685804.file.Owner.tpl.php +++ /dev/null @@ -1,67 +0,0 @@ - -decodeProperties(array ( - 'file_dependency' => - array ( - '9fa2259d6aa10c62f3b9d080484cc7f2f6685804' => - array ( - 0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Vtiger/uitypes/Owner.tpl', - 1 => 1711810494, - 2 => 'file', - ), - ), - 'nocache_hash' => '2259591506905199eeb2442-94156980', - 'function' => - array ( - ), - 'variables' => - array ( - 'FIELD_MODEL' => 0, - 'USER_MODEL' => 0, - 'MODULE' => 0, - 'FIELD_VALUE' => 0, - 'CURRENT_USER_ID' => 0, - 'ASSIGNED_USER_ID' => 0, - 'FIELD_INFO' => 0, - 'VIEW_SOURCE' => 0, - 'ALL_ACTIVEUSER_LIST' => 0, - 'OWNER_ID' => 0, - 'OWNER_NAME' => 0, - 'ACCESSIBLE_USER_LIST' => 0, - 'ALL_ACTIVEGROUP_LIST' => 0, - 'ACCESSIBLE_GROUP_LIST' => 0, - ), - 'has_nocache_code' => false, - 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905199eec4c9', -),false); /*/%%SmartyHeaderCode%%*/?> - -tpl_vars["SPECIAL_VALIDATOR"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getValidator(), null, 0);?>tpl_vars["FIELD_INFO"] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldInfo(), null, 0);?>tpl_vars['FIELD_MODEL']->value->get('uitype')=='53'){?>tpl_vars['ALL_ACTIVEUSER_LIST'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->getAccessibleUsers(), null, 0);?>tpl_vars['ALL_ACTIVEGROUP_LIST'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->getAccessibleGroups(), null, 0);?>tpl_vars['ASSIGNED_USER_ID'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('name'), null, 0);?>tpl_vars['CURRENT_USER_ID'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->get('id'), null, 0);?>tpl_vars['FIELD_VALUE'] = new Smarty_variable($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'), null, 0);?>tpl_vars['ACCESSIBLE_USER_LIST'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->getAccessibleUsersForModule($_smarty_tpl->tpl_vars['MODULE']->value), null, 0);?>tpl_vars['ACCESSIBLE_GROUP_LIST'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->getAccessibleGroupForModule($_smarty_tpl->tpl_vars['MODULE']->value), null, 0);?>tpl_vars['FIELD_VALUE']->value==''){?>tpl_vars['FIELD_VALUE'] = new Smarty_variable($_smarty_tpl->tpl_vars['CURRENT_USER_ID']->value, null, 0);?>tpl_vars['FIELD_INFO']->value["mandatory"]==true){?> data-rule-required="true" tpl_vars['FIELD_INFO']->value['validator'])){?>data-specific-rules='tpl_vars['FIELD_INFO']->value["validator"]);?> -'>tpl_vars['FIELD_MODEL']->value->isCustomField()||$_smarty_tpl->tpl_vars['VIEW_SOURCE']->value=='MASSEDIT'){?> - tpl_vars['OWNER_NAME'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['OWNER_NAME']->_loop = false; - $_smarty_tpl->tpl_vars['OWNER_ID'] = new Smarty_Variable; - $_from = $_smarty_tpl->tpl_vars['ALL_ACTIVEUSER_LIST']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} -foreach ($_from as $_smarty_tpl->tpl_vars['OWNER_NAME']->key => $_smarty_tpl->tpl_vars['OWNER_NAME']->value){ -$_smarty_tpl->tpl_vars['OWNER_NAME']->_loop = true; - $_smarty_tpl->tpl_vars['OWNER_ID']->value = $_smarty_tpl->tpl_vars['OWNER_NAME']->key; -?>value;?> -' tpl_vars['FIELD_VALUE']->value==$_smarty_tpl->tpl_vars['OWNER_ID']->value&&$_smarty_tpl->tpl_vars['VIEW_SOURCE']->value!='MASSEDIT'){?> selected tpl_vars['OWNER_ID']->value,$_smarty_tpl->tpl_vars['ACCESSIBLE_USER_LIST']->value)){?> data-recordaccess=true data-recordaccess=false data-userId="tpl_vars['CURRENT_USER_ID']->value;?> -">tpl_vars['OWNER_NAME']->value;?> -tpl_vars['OWNER_NAME'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['OWNER_NAME']->_loop = false; - $_smarty_tpl->tpl_vars['OWNER_ID'] = new Smarty_Variable; - $_from = $_smarty_tpl->tpl_vars['ALL_ACTIVEGROUP_LIST']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} -foreach ($_from as $_smarty_tpl->tpl_vars['OWNER_NAME']->key => $_smarty_tpl->tpl_vars['OWNER_NAME']->value){ -$_smarty_tpl->tpl_vars['OWNER_NAME']->_loop = true; - $_smarty_tpl->tpl_vars['OWNER_ID']->value = $_smarty_tpl->tpl_vars['OWNER_NAME']->key; -?>value;?> -' tpl_vars['FIELD_MODEL']->value->get('fieldvalue')==$_smarty_tpl->tpl_vars['OWNER_ID']->value){?> selected tpl_vars['OWNER_ID']->value,$_smarty_tpl->tpl_vars['ACCESSIBLE_GROUP_LIST']->value)){?> data-recordaccess=true data-recordaccess=false >tpl_vars['OWNER_NAME']->value;?> - - \ No newline at end of file diff --git a/test/templates_c/v7/b1a549b60e07f19d4dfd85e0073cc6c1c2505453.file.DocumentsRelatedList.tpl.php b/test/templates_c/v7/b1a549b60e07f19d4dfd85e0073cc6c1c2505453.file.DocumentsRelatedList.tpl.php deleted file mode 100644 index c83b79b2..00000000 --- a/test/templates_c/v7/b1a549b60e07f19d4dfd85e0073cc6c1c2505453.file.DocumentsRelatedList.tpl.php +++ /dev/null @@ -1,174 +0,0 @@ - -decodeProperties(array ( - 'file_dependency' => - array ( - 'b1a549b60e07f19d4dfd85e0073cc6c1c2505453' => - array ( - 0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Documents/DocumentsRelatedList.tpl', - 1 => 1759066364, - 2 => 'file', - ), - ), - 'nocache_hash' => '1659699404690530ec573243-37508431', - 'function' => - array ( - ), - 'variables' => - array ( - 'MODULE' => 0, - 'RELATED_HEADERS' => 0, - 'RELATED_MODULE' => 0, - 'RELATION_FIELD' => 0, - 'PAGING' => 0, - 'RELATED_MODULE_NAME' => 0, - 'ORDER_BY' => 0, - 'SORT_ORDER' => 0, - 'RELATED_ENTIRES_COUNT' => 0, - 'TOTAL_ENTRIES' => 0, - 'TAB_LABEL' => 0, - 'IS_RELATION_FIELD_ACTIVE' => 0, - 'RELATED_LIST_LINKS' => 0, - 'RELATED_LINK' => 0, - 'IS_SELECT_BUTTON' => 0, - 'IS_CREATE_PERMITTED' => 0, - 'PARENT_ID' => 0, - 'RELATED_RECORDS' => 0, - 'PARENT_RECORD' => 0, - 'IS_VIEWABLE' => 0, - 'USER_MODEL' => 0, - 'HEADER_FIELD' => 0, - 'COLUMN_NAME' => 0, - 'NEXT_SORT_ORDER' => 0, - 'FASORT_IMAGE' => 0, - 'SORT_IMAGE' => 0, - 'FIELD_UI_TYPE_MODEL' => 0, - 'SEARCH_DETAILS' => 0, - 'RELATED_RECORD' => 0, - 'DETAILVIEWPERMITTED' => 0, - 'IS_DELETABLE' => 0, - 'RECORD_ID' => 0, - 'DOCUMENT_RECORD_MODEL' => 0, - 'RELATED_HEADERNAME' => 0, - 'WIDTHTYPE' => 0, - 'CURRENCY_SYMBOL' => 0, - 'CURRENCY_VALUE' => 0, - 'RELATED_LIST_VALUE' => 0, - 'RELATED_FIELDS_INFO' => 0, - ), - 'has_nocache_code' => false, - 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_690530ec65f21', -),false); /*/%%SmartyHeaderCode%%*/?> - -getSubTemplate (vtemplate_path("PicklistColorMap.tpl",$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('LISTVIEW_HEADERS'=>$_smarty_tpl->tpl_vars['RELATED_HEADERS']->value), 0);?> -tpl_vars['RELATED_MODULE_NAME'] = new Smarty_variable($_smarty_tpl->tpl_vars['RELATED_MODULE']->value->get('name'), null, 0);?>tpl_vars['RELATION_FIELD']->value){?>tpl_vars['RELATION_FIELD']->value->isActiveField();?>tpl_vars['IS_RELATION_FIELD_ACTIVE'] = new Smarty_variable($_tmp1, null, 0);?>tpl_vars['RELATED_LINK'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['RELATED_LINK']->_loop = false; - $_from = $_smarty_tpl->tpl_vars['RELATED_LIST_LINKS']->value['LISTVIEWBASIC']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} -foreach ($_from as $_smarty_tpl->tpl_vars['RELATED_LINK']->key => $_smarty_tpl->tpl_vars['RELATED_LINK']->value){ -$_smarty_tpl->tpl_vars['RELATED_LINK']->_loop = true; -?>tpl_vars['RELATED_LINK']->value->get('linkmodule')=='Documents'){?>tpl_vars['RELATED_LINK']->value->get('_selectRelation');?> -tpl_vars['IS_SELECT_BUTTON'] = new Smarty_variable($_tmp2, null, 0);?>tpl_vars['RELATED_LINK']->value->get('linklabel');?> -tpl_vars['LINK_LABEL'] = new Smarty_variable($_tmp3, null, 0);?>tpl_vars['RELATED_LINK']->value->get('_linklabel')==='_add_event'){?>tpl_vars['RELATED_MODULE_NAME'] = new Smarty_variable('Events', null, 0);?>tpl_vars['RELATED_LINK']->value->get('_linklabel')==='_add_task'){?>tpl_vars['RELATED_MODULE_NAME'] = new Smarty_variable('Calendar', null, 0);?>tpl_vars['IS_SELECT_BUTTON']->value==true){?> data-moduleName=tpl_vars['RELATED_LINK']->value->get('_module')->get('name');?> - tpl_vars['RELATED_LINK']->value->isPageLoadLink())){?>tpl_vars['RELATION_FIELD']->value){?> data-name="tpl_vars['RELATION_FIELD']->value->getName();?> -" data-url="tpl_vars['RELATED_LINK']->value->getUrl();?> -"tpl_vars['IS_SELECT_BUTTON']->value!=true){?>name="addButton">tpl_vars['IS_SELECT_BUTTON']->value==false){?> tpl_vars['RELATED_LINK']->value->getLabel();?> -tpl_vars['RELATED_LINK']->value->getLabel()=='Vtiger'){?>tpl_vars['IS_CREATE_PERMITTED']->value){?> tpl_vars['RELATED_MODULE_NAME']->value);?> - tpl_vars['RELATED_MODULE_NAME']->value);?> -tpl_vars['RELATED_MODULE_NAME']->value);?> -tpl_vars['RELATED_MODULE_NAME']->value,$_tmp4);?> - tpl_vars['RELATED_MODULE_NAME']->value);?> - tpl_vars['RELATED_MODULE_NAME']->value);?> -tpl_vars['RELATED_MODULE_NAME']->value,$_tmp5);?> - tpl_vars['RELATED_MODULE_NAME']->value);?> -tpl_vars['RELATED_MODULE_NAME']->value,$_tmp6);?> - tpl_vars['CLASS_VIEW_ACTION'] = new Smarty_variable('relatedViewActions', null, 0);?>tpl_vars['CLASS_VIEW_PAGING_INPUT'] = new Smarty_variable('relatedViewPagingInput', null, 0);?>tpl_vars['CLASS_VIEW_PAGING_INPUT_SUBMIT'] = new Smarty_variable('relatedViewPagingInputSubmit', null, 0);?>tpl_vars['CLASS_VIEW_BASIC_ACTION'] = new Smarty_variable('relatedViewBasicAction', null, 0);?>tpl_vars['PAGING_MODEL'] = new Smarty_variable($_smarty_tpl->tpl_vars['PAGING']->value, null, 0);?>tpl_vars['RECORD_COUNT'] = new Smarty_variable(count($_smarty_tpl->tpl_vars['RELATED_RECORDS']->value), null, 0);?>tpl_vars['PAGE_NUMBER'] = new Smarty_variable($_smarty_tpl->tpl_vars['PAGING']->value->get('page'), null, 0);?>getSubTemplate (vtemplate_path("Pagination.tpl",$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('SHOWPAGEJUMP'=>true), 0);?> -tpl_vars['MODULE']->value=='Products'&&$_smarty_tpl->tpl_vars['RELATED_MODULE_NAME']->value=='Products'&&$_smarty_tpl->tpl_vars['TAB_LABEL']->value==='Product Bundles'&&$_smarty_tpl->tpl_vars['RELATED_LIST_LINKS']->value){?>tpl_vars['IS_VIEWABLE'] = new Smarty_variable($_smarty_tpl->tpl_vars['PARENT_RECORD']->value->isBundleViewable(), null, 0);?>tpl_vars['IS_VIEWABLE']->value){?>checked value="tpl_vars['IS_VIEWABLE']->value;?> -"> tpl_vars['MODULE']->value);?> -tpl_vars['WIDTHTYPE'] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->get('rowheight'), null, 0);?>tpl_vars['HEADER_FIELD'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['HEADER_FIELD']->_loop = false; - $_from = $_smarty_tpl->tpl_vars['RELATED_HEADERS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} -foreach ($_from as $_smarty_tpl->tpl_vars['HEADER_FIELD']->key => $_smarty_tpl->tpl_vars['HEADER_FIELD']->value){ -$_smarty_tpl->tpl_vars['HEADER_FIELD']->_loop = true; -?>tpl_vars['HEADER_FIELD']->value->get('column')=='time_start'||$_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('column')=='time_end'){?>tpl_vars['HEADER_FIELD']->value->get('column')=="access_count"||$_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('column')=="idlists"){?>tpl_vars['HEADER_FIELD']->value->get('label'),$_smarty_tpl->tpl_vars['RELATED_MODULE']->value->get('name'));?> -tpl_vars['COLUMN_NAME']->value==$_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('column')){?> tpl_vars['HEADER_FIELD']->value->get('label'),$_smarty_tpl->tpl_vars['RELATED_MODULE']->value->get('name'));?> - tpl_vars['COLUMN_NAME']->value==$_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('column')){?> tpl_vars['COLUMN_NAME']->value==$_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('column')){?>tpl_vars['MODULE']->value);?> -tpl_vars['HEADER_FIELD'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['HEADER_FIELD']->_loop = false; - $_from = $_smarty_tpl->tpl_vars['RELATED_HEADERS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} -foreach ($_from as $_smarty_tpl->tpl_vars['HEADER_FIELD']->key => $_smarty_tpl->tpl_vars['HEADER_FIELD']->value){ -$_smarty_tpl->tpl_vars['HEADER_FIELD']->_loop = true; -?>tpl_vars['HEADER_FIELD']->value->get('column')=='time_start'||$_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('column')=='time_end'||$_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('column')=='folderid'||$_smarty_tpl->tpl_vars['HEADER_FIELD']->value->getFieldDataType()=='reference'){?>tpl_vars['FIELD_UI_TYPE_MODEL'] = new Smarty_variable($_smarty_tpl->tpl_vars['HEADER_FIELD']->value->getUITypeModel(), null, 0);?>getSubTemplate (vtemplate_path($_smarty_tpl->tpl_vars['FIELD_UI_TYPE_MODEL']->value->getListSearchTemplateName(),$_smarty_tpl->tpl_vars['RELATED_MODULE_NAME']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('FIELD_MODEL'=>$_smarty_tpl->tpl_vars['HEADER_FIELD']->value,'SEARCH_INFO'=>$_smarty_tpl->tpl_vars['SEARCH_DETAILS']->value[$_smarty_tpl->tpl_vars['HEADER_FIELD']->value->getName()],'USER_MODEL'=>$_smarty_tpl->tpl_vars['USER_MODEL']->value), 0);?> -tpl_vars['RELATED_RECORD'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['RELATED_RECORD']->_loop = false; - $_from = $_smarty_tpl->tpl_vars['RELATED_RECORDS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} -foreach ($_from as $_smarty_tpl->tpl_vars['RELATED_RECORD']->key => $_smarty_tpl->tpl_vars['RELATED_RECORD']->value){ -$_smarty_tpl->tpl_vars['RELATED_RECORD']->_loop = true; -?>value->getId();?> -'tpl_vars['RELATED_MODULE_NAME']->value=='Calendar'){?>data-recurring-enabled='tpl_vars['RELATED_RECORD']->value->isRecurringEnabled();?> -'tpl_vars['DETAILVIEWPERMITTED'] = new Smarty_variable(isPermitted($_smarty_tpl->tpl_vars['RELATED_MODULE']->value->get('name'),'DetailView',$_smarty_tpl->tpl_vars['RELATED_RECORD']->value->getId()), null, 0);?>tpl_vars['DETAILVIEWPERMITTED']->value=='yes'){?>data-recordUrl='tpl_vars['RELATED_RECORD']->value->getDetailViewUrl();?> -'data-recordUrl='tpl_vars['RELATED_RECORD']->value->getDetailViewUrl();?> -'> tpl_vars['IS_DELETABLE']->value){?> tpl_vars['RECORD_ID'] = new Smarty_variable($_smarty_tpl->tpl_vars['RELATED_RECORD']->value->getId(), null, 0);?>tpl_vars["DOCUMENT_RECORD_MODEL"] = new Smarty_variable(Vtiger_Record_Model::getInstanceById($_smarty_tpl->tpl_vars['RECORD_ID']->value), null, 0);?>tpl_vars['DOCUMENT_RECORD_MODEL']->value->get('filename')&&$_smarty_tpl->tpl_vars['DOCUMENT_RECORD_MODEL']->value->get('filestatus')){?> tpl_vars['DOCUMENT_RECORD_MODEL']->value->get('filename')&&$_smarty_tpl->tpl_vars['DOCUMENT_RECORD_MODEL']->value->get('filestatus')){?> tpl_vars['DOCUMENT_RECORD_MODEL']->value->get('filename')&&$_smarty_tpl->tpl_vars['DOCUMENT_RECORD_MODEL']->value->get('filestatus')){?> "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "" => "<\/" ));?> -')">tpl_vars['HEADER_FIELD'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['HEADER_FIELD']->_loop = false; - $_from = $_smarty_tpl->tpl_vars['RELATED_HEADERS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} -foreach ($_from as $_smarty_tpl->tpl_vars['HEADER_FIELD']->key => $_smarty_tpl->tpl_vars['HEADER_FIELD']->value){ -$_smarty_tpl->tpl_vars['HEADER_FIELD']->_loop = true; -?>tpl_vars['RELATED_HEADERNAME'] = new Smarty_variable($_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('name'), null, 0);?>tpl_vars['RELATED_LIST_VALUE'] = new Smarty_variable($_smarty_tpl->tpl_vars['RELATED_RECORD']->value->get($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value), null, 0);?>tpl_vars['IS_DOCUMENT_SOURCE_FIELD'] = new Smarty_variable(0, null, 0);?>tpl_vars['RELATED_MODULE']->value->get('name')=='Documents'&&$_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value=='document_source'){?>tpl_vars['RELATED_RECORD']->value->get($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value)=='Vtiger'||$_smarty_tpl->tpl_vars['RELATED_RECORD']->value->get($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value)=='Google Drive'||$_smarty_tpl->tpl_vars['RELATED_RECORD']->value->get($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value)=='Dropbox'){?>tpl_vars['IS_DOCUMENT_SOURCE_FIELD'] = new Smarty_variable(1, null, 0);?>tpl_vars['RELATED_MODULE']->value->get('name')=='Documents'&&$_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value=='document_source'){?>tpl_vars['RELATED_RECORD']->value->get($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value);?> -tpl_vars['HEADER_FIELD']->value->isNameField()==true||$_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('uitype')=='4'){?>tpl_vars['RELATED_RECORD']->value->getDisplayValue($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value);?> -tpl_vars['RELATED_HEADERNAME']->value=='access_count'){?>tpl_vars['RELATED_RECORD']->value->getAccessCountValue($_smarty_tpl->tpl_vars['PARENT_RECORD']->value->getId());?> -tpl_vars['RELATED_HEADERNAME']->value=='time_start'||$_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value=='time_end'){?>tpl_vars['RELATED_MODULE_NAME']->value=='PriceBooks'&&($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value=='listprice'||$_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value=='unit_price')){?>tpl_vars['RELATED_HEADERNAME']->value=='listprice'){?>tpl_vars["LISTPRICE"] = new Smarty_variable(CurrencyField::convertToUserFormat($_smarty_tpl->tpl_vars['RELATED_RECORD']->value->get($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value),null,true), null, 0);?>tpl_vars['RELATED_RECORD']->value->get($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value),null,true);?> -tpl_vars['HEADER_FIELD']->value->get('uitype')=='71'||$_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('uitype')=='72'){?>tpl_vars['CURRENCY_SYMBOL'] = new Smarty_variable(Vtiger_RelationListView_Model::getCurrencySymbol($_smarty_tpl->tpl_vars['RELATED_RECORD']->value->get('id'),$_smarty_tpl->tpl_vars['HEADER_FIELD']->value), null, 0);?>tpl_vars['CURRENCY_VALUE'] = new Smarty_variable(CurrencyField::convertToUserFormat($_smarty_tpl->tpl_vars['RELATED_RECORD']->value->get($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value)), null, 0);?>tpl_vars['HEADER_FIELD']->value->get('uitype')=='72'){?>tpl_vars['CURRENCY_VALUE'] = new Smarty_variable(CurrencyField::convertToUserFormat($_smarty_tpl->tpl_vars['RELATED_RECORD']->value->get($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value),null,true), null, 0);?>get('currency_symbol_placement')=='$1.0'){?>tpl_vars['CURRENCY_SYMBOL']->value;?> -tpl_vars['CURRENCY_VALUE']->value;?> -tpl_vars['CURRENCY_VALUE']->value;?> -tpl_vars['CURRENCY_SYMBOL']->value;?> -tpl_vars['RELATED_HEADERNAME']->value=='listprice'){?>tpl_vars["LISTPRICE"] = new Smarty_variable(CurrencyField::convertToUserFormat($_smarty_tpl->tpl_vars['RELATED_RECORD']->value->get($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value),null,true), null, 0);?>tpl_vars['HEADER_FIELD']->value->getFieldDataType()=='picklist'){?>tpl_vars['RELATED_LIST_VALUE']->value)){?> class="picklist-color picklist-tpl_vars['HEADER_FIELD']->value->getId();?> --tpl_vars['RELATED_LIST_VALUE']->value);?> -" > tpl_vars['RELATED_RECORD']->value->getDisplayValue($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value);?> - tpl_vars['RELATED_RECORD']->value->getDisplayValue($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value);?> - - - - \ No newline at end of file diff --git a/test/templates_c/v7/b260de7573cb653d0ac69014c32dd12d4d2fc147.file.DocumentsSummaryWidgetContents.tpl.php b/test/templates_c/v7/b260de7573cb653d0ac69014c32dd12d4d2fc147.file.DocumentsSummaryWidgetContents.tpl.php index 6a19a977..5ba54369 100644 --- a/test/templates_c/v7/b260de7573cb653d0ac69014c32dd12d4d2fc147.file.DocumentsSummaryWidgetContents.tpl.php +++ b/test/templates_c/v7/b260de7573cb653d0ac69014c32dd12d4d2fc147.file.DocumentsSummaryWidgetContents.tpl.php @@ -1,17 +1,17 @@ - -decodeProperties(array ( 'file_dependency' => array ( 'b260de7573cb653d0ac69014c32dd12d4d2fc147' => array ( 0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Vtiger/DocumentsSummaryWidgetContents.tpl', - 1 => 1759066363, + 1 => 1761984213, 2 => 'file', ), ), - 'nocache_hash' => '16924820776905125ee2cff7-76462280', + 'nocache_hash' => '2788965996905d075ef7c88-46266799', 'function' => array ( ), @@ -29,9 +29,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905125ee468e', + 'unifunc' => 'content_6905d075f0ce2', ),false); /*/%%SmartyHeaderCode%%*/?> - + tpl_vars['RELATED_RECORD'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['RELATED_RECORD']->_loop = false; @@ -58,7 +58,9 @@ _Related_Record_tpl_vars['RELATED_RECORD']->value->get( " onclick="event.stopImmediatePropagation();"> tpl_vars['DOCUMENT_RECORD_MODEL']->value->get('filestatus')){?> "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "" => "<\/" ));?> -')"> "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "" => "<\/" ));?> +')"> tpl_vars['NUMBER_OF_RECORDS'] = new Smarty_variable(count($_smarty_tpl->tpl_vars['RELATED_RECORDS']->value), null, 0);?>tpl_vars['NUMBER_OF_RECORDS']->value==-1)){?>tpl_vars['MODULE_NAME']->value);?> diff --git a/test/templates_c/v7/b57cdaf480a0b1fa2d6999d71bfc8c028262eea4.file.JSResources.tpl.php b/test/templates_c/v7/b57cdaf480a0b1fa2d6999d71bfc8c028262eea4.file.JSResources.tpl.php index 6c78ef34..46a91513 100644 --- a/test/templates_c/v7/b57cdaf480a0b1fa2d6999d71bfc8c028262eea4.file.JSResources.tpl.php +++ b/test/templates_c/v7/b57cdaf480a0b1fa2d6999d71bfc8c028262eea4.file.JSResources.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '34570912769050dc31ac515-15137090', + 'nocache_hash' => '17354397956905d07283c917-52216952', 'function' => array ( ), @@ -23,9 +23,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_69050dc31b942', + 'unifunc' => 'content_6905d072849a3', ),false); /*/%%SmartyHeaderCode%%*/?> - + tpl_vars['USER_MODEL'] = new Smarty_variable(Users_Record_Model::getCurrentUserModel(), null, 0);?>tpl_vars['USER_MODEL']->value->get('language')=='ru_ru'){?> value->getModule()->getName();?> +' data-record='tpl_vars['RECORD']->value->getId();?> +'>tpl_vars['MODULE_NAME']->value);?> + \ No newline at end of file diff --git a/test/templates_c/v7/ce54060ff10fc18a9a2f047d921f99fc382eadbe.file.ReminderList.tpl.php b/test/templates_c/v7/ce54060ff10fc18a9a2f047d921f99fc382eadbe.file.ReminderList.tpl.php index fe66549d..f8d9ca5d 100644 --- a/test/templates_c/v7/ce54060ff10fc18a9a2f047d921f99fc382eadbe.file.ReminderList.tpl.php +++ b/test/templates_c/v7/ce54060ff10fc18a9a2f047d921f99fc382eadbe.file.ReminderList.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '19986168596905125f3498a9-48490357', + 'nocache_hash' => '5911760726905d0767be661-10238314', 'function' => array ( ), @@ -25,9 +25,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905125f3586a', + 'unifunc' => 'content_6905d0767cbf5', ),false); /*/%%SmartyHeaderCode%%*/?> - + tpl_vars['QUALIFIED_MODULE']->value);?> 0 tpl_vars['QUALIFIED_MODULE']->value);?> tpl_vars['QUALIFIED_MODULE']->value);?> diff --git a/test/templates_c/v7/d095618dba86998498a1ace1afa8074a98b81c6f.file.OverlayDetailView.tpl.php b/test/templates_c/v7/d095618dba86998498a1ace1afa8074a98b81c6f.file.OverlayDetailView.tpl.php index 8761ac07..d3dcfebc 100644 --- a/test/templates_c/v7/d095618dba86998498a1ace1afa8074a98b81c6f.file.OverlayDetailView.tpl.php +++ b/test/templates_c/v7/d095618dba86998498a1ace1afa8074a98b81c6f.file.OverlayDetailView.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '148549324569053141cef043-57715195', + 'nocache_hash' => '6216921366905d0d55d6ac5-59966805', 'function' => array ( ), @@ -30,9 +30,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_69053141cfaac', + 'unifunc' => 'content_6905d0d55e4f2', ),false); /*/%%SmartyHeaderCode%%*/?> - + tpl_vars['jsModel'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['jsModel']->_loop = false; $_smarty_tpl->tpl_vars['index'] = new Smarty_Variable; diff --git a/test/templates_c/v7/d16fa581c270f97702993fa802fef56e82efcb1d.file.DetailViewHeaderTitle.tpl.php b/test/templates_c/v7/d16fa581c270f97702993fa802fef56e82efcb1d.file.DetailViewHeaderTitle.tpl.php index 9eca777d..d2865f2f 100644 --- a/test/templates_c/v7/d16fa581c270f97702993fa802fef56e82efcb1d.file.DetailViewHeaderTitle.tpl.php +++ b/test/templates_c/v7/d16fa581c270f97702993fa802fef56e82efcb1d.file.DetailViewHeaderTitle.tpl.php @@ -1,17 +1,17 @@ - -decodeProperties(array ( 'file_dependency' => array ( 'd16fa581c270f97702993fa802fef56e82efcb1d' => array ( 0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Project/DetailViewHeaderTitle.tpl', - 1 => 1761324907, + 1 => 1761984810, 2 => 'file', ), ), - 'nocache_hash' => '2901145596905125dbab938-96480436', + 'nocache_hash' => '3955888626905d07257be15-05740877', 'function' => array ( ), @@ -26,9 +26,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905125dbb2cd', + 'unifunc' => 'content_6905d07258c2c', ),false); /*/%%SmartyHeaderCode%%*/?> - + tpl_vars['NAME_FIELD'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['NAME_FIELD']->_loop = false; @@ -40,4 +40,10 @@ $_smarty_tpl->tpl_vars['NAME_FIELD']->_loop = true; getSubTemplate (vtemplate_path("DetailViewHeaderFieldsView.tpl",$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?> "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "" => "<\/" ));?> -')" title="Открыть папку проекта в Nextcloud"> Папка в Nextcloud \ No newline at end of file +')" title="Открыть папку проекта в Nextcloud"> Папка в Nextcloud "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "" => "<\/" ));?> +', 'docx')" title="Создать Word документ в Nextcloud" style="margin-left: 5px;"> "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "" => "<\/" ));?> +', 'xlsx')" title="Создать Excel таблицу в Nextcloud" style="margin-left: 2px;"> "\\\\", "'" => "\\'", "\"" => "\\\"", "\r" => "\\r", "\n" => "\\n", "" => "<\/" ));?> +', 'pptx')" title="Создать PowerPoint презентацию в Nextcloud" style="margin-left: 2px;"> \ No newline at end of file diff --git a/test/templates_c/v7/d1ebeca441a7b544e01aa826ea5083db4465b7c2.file.RelatedList.tpl.php b/test/templates_c/v7/d1ebeca441a7b544e01aa826ea5083db4465b7c2.file.RelatedList.tpl.php new file mode 100644 index 00000000..d4a2be80 --- /dev/null +++ b/test/templates_c/v7/d1ebeca441a7b544e01aa826ea5083db4465b7c2.file.RelatedList.tpl.php @@ -0,0 +1,152 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + 'd1ebeca441a7b544e01aa826ea5083db4465b7c2' => + array ( + 0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Vtiger/RelatedList.tpl', + 1 => 1711810494, + 2 => 'file', + ), + ), + 'nocache_hash' => '13945897576905d0d40c0fd0-92446349', + 'function' => + array ( + ), + 'variables' => + array ( + 'RELATED_MODULE' => 0, + 'MODULE' => 0, + 'RELATED_HEADERS' => 0, + 'RELATION_FIELD' => 0, + 'PAGING' => 0, + 'RELATED_MODULE_NAME' => 0, + 'ORDER_BY' => 0, + 'SORT_ORDER' => 0, + 'RELATED_ENTIRES_COUNT' => 0, + 'TOTAL_ENTRIES' => 0, + 'TAB_LABEL' => 0, + 'IS_RELATION_FIELD_ACTIVE' => 0, + 'RELATED_LIST_LINKS' => 0, + 'PARENT_RECORD' => 0, + 'IS_VIEWABLE' => 0, + 'HEADER_FIELD' => 0, + 'COLUMN_NAME' => 0, + 'NEXT_SORT_ORDER' => 0, + 'FASORT_IMAGE' => 0, + 'SORT_IMAGE' => 0, + 'FIELD_UI_TYPE_MODEL' => 0, + 'SEARCH_DETAILS' => 0, + 'USER_MODEL' => 0, + 'RELATED_RECORDS' => 0, + 'RELATED_RECORD' => 0, + 'DETAILVIEWPERMITTED' => 0, + 'IS_EDITABLE' => 0, + 'LISTPRICE' => 0, + 'quantity' => 0, + 'IS_DELETABLE' => 0, + 'RELATED_HEADERNAME' => 0, + 'CURRENCY_SYMBOL' => 0, + 'CURRENCY_VALUE' => 0, + 'EVENT_STATUS_FIELD_MODEL' => 0, + 'RELATED_LIST_VALUE' => 0, + 'PICKLIST_FIELD_ID' => 0, + 'RECORD_ID' => 0, + 'DOCUMENT_RECORD_MODEL' => 0, + 'RELATED_FIELDS_INFO' => 0, + ), + 'has_nocache_code' => false, + 'version' => 'Smarty-3.1.7', + 'unifunc' => 'content_6905d0d4120fb', +),false); /*/%%SmartyHeaderCode%%*/?> + +tpl_vars['RELATED_MODULE_NAME'] = new Smarty_variable($_smarty_tpl->tpl_vars['RELATED_MODULE']->value->get('name'), null, 0);?>getSubTemplate (vtemplate_path("PicklistColorMap.tpl",$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('LISTVIEW_HEADERS'=>$_smarty_tpl->tpl_vars['RELATED_HEADERS']->value), 0);?> +tpl_vars['RELATION_FIELD']->value){?>tpl_vars['RELATION_FIELD']->value->isActiveField();?>tpl_vars['IS_RELATION_FIELD_ACTIVE'] = new Smarty_variable($_tmp1, null, 0);?>getSubTemplate (vtemplate_path("partials/RelatedListHeader.tpl",$_smarty_tpl->tpl_vars['RELATED_MODULE_NAME']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?> +tpl_vars['MODULE']->value=='Products'&&$_smarty_tpl->tpl_vars['RELATED_MODULE_NAME']->value=='Products'&&$_smarty_tpl->tpl_vars['TAB_LABEL']->value==='Product Bundles'&&$_smarty_tpl->tpl_vars['RELATED_LIST_LINKS']->value){?>tpl_vars['IS_VIEWABLE'] = new Smarty_variable($_smarty_tpl->tpl_vars['PARENT_RECORD']->value->isBundleViewable(), null, 0);?>tpl_vars['IS_VIEWABLE']->value){?>checked value="tpl_vars['IS_VIEWABLE']->value;?> +"> tpl_vars['MODULE']->value);?> +tpl_vars['HEADER_FIELD'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['HEADER_FIELD']->_loop = false; + $_from = $_smarty_tpl->tpl_vars['RELATED_HEADERS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} +foreach ($_from as $_smarty_tpl->tpl_vars['HEADER_FIELD']->key => $_smarty_tpl->tpl_vars['HEADER_FIELD']->value){ +$_smarty_tpl->tpl_vars['HEADER_FIELD']->_loop = true; +?>tpl_vars['HEADER_FIELD']->value->get('column')=='time_start'||$_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('column')=='time_end'){?>tpl_vars['HEADER_FIELD']->value->get('column')=="access_count"||$_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('column')=="idlists"){?>tpl_vars['HEADER_FIELD']->value->get('label'),$_smarty_tpl->tpl_vars['RELATED_MODULE_NAME']->value);?> +tpl_vars['COLUMN_NAME']->value==$_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('column')){?> tpl_vars['HEADER_FIELD']->value->get('label'),$_smarty_tpl->tpl_vars['RELATED_MODULE_NAME']->value);?> + tpl_vars['COLUMN_NAME']->value==$_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('column')){?> tpl_vars['COLUMN_NAME']->value==$_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('column')){?>tpl_vars['MODULE']->value);?> +tpl_vars['HEADER_FIELD'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['HEADER_FIELD']->_loop = false; + $_from = $_smarty_tpl->tpl_vars['RELATED_HEADERS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} +foreach ($_from as $_smarty_tpl->tpl_vars['HEADER_FIELD']->key => $_smarty_tpl->tpl_vars['HEADER_FIELD']->value){ +$_smarty_tpl->tpl_vars['HEADER_FIELD']->_loop = true; +?>tpl_vars['HEADER_FIELD']->value->get('column')=='time_start'||$_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('column')=='time_end'||$_smarty_tpl->tpl_vars['HEADER_FIELD']->value->getFieldDataType()=='reference'){?>tpl_vars['FIELD_UI_TYPE_MODEL'] = new Smarty_variable($_smarty_tpl->tpl_vars['HEADER_FIELD']->value->getUITypeModel(), null, 0);?>getSubTemplate (vtemplate_path($_smarty_tpl->tpl_vars['FIELD_UI_TYPE_MODEL']->value->getListSearchTemplateName(),$_smarty_tpl->tpl_vars['RELATED_MODULE_NAME']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('FIELD_MODEL'=>$_smarty_tpl->tpl_vars['HEADER_FIELD']->value,'SEARCH_INFO'=>$_smarty_tpl->tpl_vars['SEARCH_DETAILS']->value[$_smarty_tpl->tpl_vars['HEADER_FIELD']->value->getName()],'USER_MODEL'=>$_smarty_tpl->tpl_vars['USER_MODEL']->value), 0);?> +tpl_vars['RELATED_RECORD'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['RELATED_RECORD']->_loop = false; + $_from = $_smarty_tpl->tpl_vars['RELATED_RECORDS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} +foreach ($_from as $_smarty_tpl->tpl_vars['RELATED_RECORD']->key => $_smarty_tpl->tpl_vars['RELATED_RECORD']->value){ +$_smarty_tpl->tpl_vars['RELATED_RECORD']->_loop = true; +?>value->getId();?> +'tpl_vars['RELATED_MODULE_NAME']->value=='Calendar'){?>data-recurring-enabled='tpl_vars['RELATED_RECORD']->value->isRecurringEnabled();?> +'tpl_vars['DETAILVIEWPERMITTED'] = new Smarty_variable(isPermitted($_smarty_tpl->tpl_vars['RELATED_MODULE_NAME']->value,'DetailView',$_smarty_tpl->tpl_vars['RELATED_RECORD']->value->getId()), null, 0);?>tpl_vars['DETAILVIEWPERMITTED']->value=='yes'){?>data-recordUrl='tpl_vars['RELATED_RECORD']->value->getDetailViewUrl();?> +'data-recordUrl='tpl_vars['RELATED_RECORD']->value->getDetailViewUrl();?> +'> tpl_vars['IS_EDITABLE']->value&&$_smarty_tpl->tpl_vars['RELATED_RECORD']->value->isEditable()){?>tpl_vars['RELATED_MODULE_NAME']->value=='PriceBooks'&&(!empty($_smarty_tpl->tpl_vars['RELATED_HEADERS']->value['listprice'])||!empty($_smarty_tpl->tpl_vars['RELATED_HEADERS']->value['unit_price']))){?>tpl_vars['RELATED_HEADERS']->value['listprice'])){?>tpl_vars["LISTPRICE"] = new Smarty_variable(CurrencyField::convertToUserFormat($_smarty_tpl->tpl_vars['RELATED_RECORD']->value->get('listprice'),null,true), null, 0);?>tpl_vars['RELATED_MODULE_NAME']->value=='PriceBooks'){?>value->getId();?> +' data-list-price=tpl_vars['LISTPRICE']->value;?> +tpl_vars['MODULE']->value=='Products'&&$_smarty_tpl->tpl_vars['RELATED_MODULE_NAME']->value=='Products'&&$_smarty_tpl->tpl_vars['TAB_LABEL']->value==='Product Bundles'&&$_smarty_tpl->tpl_vars['RELATED_LIST_LINKS']->value&&$_smarty_tpl->tpl_vars['PARENT_RECORD']->value->isBundle()){?>tpl_vars['quantity'] = new Smarty_variable($_smarty_tpl->tpl_vars['RELATED_RECORD']->value->get($_smarty_tpl->tpl_vars['RELATION_FIELD']->value->getName()), null, 0);?>> tpl_vars['IS_DELETABLE']->value){?>tpl_vars['HEADER_FIELD'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['HEADER_FIELD']->_loop = false; + $_from = $_smarty_tpl->tpl_vars['RELATED_HEADERS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} +foreach ($_from as $_smarty_tpl->tpl_vars['HEADER_FIELD']->key => $_smarty_tpl->tpl_vars['HEADER_FIELD']->value){ +$_smarty_tpl->tpl_vars['HEADER_FIELD']->_loop = true; +?>tpl_vars['RELATED_HEADERNAME'] = new Smarty_variable($_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('name'), null, 0);?>tpl_vars['RELATED_LIST_VALUE'] = new Smarty_variable($_smarty_tpl->tpl_vars['RELATED_RECORD']->value->get($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value), null, 0);?>tpl_vars['RELATED_MODULE_NAME']->value=='Documents'&&$_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value=='document_source'){?>tpl_vars['RELATED_RECORD']->value->get($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value);?> +tpl_vars['HEADER_FIELD']->value->isNameField()==true||$_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('uitype')=='4'){?>tpl_vars['RELATED_RECORD']->value->getDisplayValue($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value);?> +tpl_vars['RELATED_HEADERNAME']->value=='access_count'){?>tpl_vars['RELATED_RECORD']->value->getAccessCountValue($_smarty_tpl->tpl_vars['PARENT_RECORD']->value->getId());?> +tpl_vars['RELATED_HEADERNAME']->value=='time_start'||$_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value=='time_end'){?>tpl_vars['RELATED_MODULE_NAME']->value=='PriceBooks'&&($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value=='listprice'||$_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value=='unit_price')){?>tpl_vars['RELATED_HEADERNAME']->value=='listprice'){?>tpl_vars["LISTPRICE"] = new Smarty_variable(CurrencyField::convertToUserFormat($_smarty_tpl->tpl_vars['RELATED_RECORD']->value->get($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value),null,true), null, 0);?>tpl_vars['RELATED_RECORD']->value->get($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value),null,true);?> +tpl_vars['HEADER_FIELD']->value->get('uitype')=='71'||$_smarty_tpl->tpl_vars['HEADER_FIELD']->value->get('uitype')=='72'){?>tpl_vars['CURRENCY_SYMBOL'] = new Smarty_variable(Vtiger_RelationListView_Model::getCurrencySymbol($_smarty_tpl->tpl_vars['RELATED_RECORD']->value->get('id'),$_smarty_tpl->tpl_vars['HEADER_FIELD']->value), null, 0);?>tpl_vars['CURRENCY_VALUE'] = new Smarty_variable(CurrencyField::convertToUserFormat($_smarty_tpl->tpl_vars['RELATED_RECORD']->value->get($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value)), null, 0);?>tpl_vars['HEADER_FIELD']->value->get('uitype')=='72'){?>tpl_vars['CURRENCY_VALUE'] = new Smarty_variable(CurrencyField::convertToUserFormat($_smarty_tpl->tpl_vars['RELATED_RECORD']->value->get($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value),null,true), null, 0);?>get('currency_symbol_placement')=='$1.0'){?>tpl_vars['CURRENCY_SYMBOL']->value;?> +tpl_vars['CURRENCY_VALUE']->value;?> +tpl_vars['CURRENCY_VALUE']->value;?> +tpl_vars['CURRENCY_SYMBOL']->value;?> +tpl_vars['RELATED_HEADERNAME']->value=='listprice'){?>tpl_vars["LISTPRICE"] = new Smarty_variable(CurrencyField::convertToUserFormat($_smarty_tpl->tpl_vars['RELATED_RECORD']->value->get($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value),null,true), null, 0);?>tpl_vars['HEADER_FIELD']->value->getFieldDataType()=='picklist'){?>tpl_vars['RELATED_MODULE_NAME']->value=='Calendar'||$_smarty_tpl->tpl_vars['RELATED_MODULE_NAME']->value=='Events'){?>tpl_vars['RELATED_RECORD']->value->get('activitytype')=='Task'){?>tpl_vars['HEADER_FIELD']->value->getId();?> +tpl_vars['PICKLIST_FIELD_ID'] = new Smarty_variable($_tmp2, null, 0);?>tpl_vars['HEADER_FIELD']->value->getName()=='taskstatus'){?>tpl_vars["EVENT_STATUS_FIELD_MODEL"] = new Smarty_variable(Vtiger_Field_Model::getInstance('eventstatus',Vtiger_Module_Model::getInstance('Events')), null, 0);?>tpl_vars['EVENT_STATUS_FIELD_MODEL']->value){?>tpl_vars['EVENT_STATUS_FIELD_MODEL']->value->getId();?> +tpl_vars['PICKLIST_FIELD_ID'] = new Smarty_variable($_tmp3, null, 0);?>tpl_vars['HEADER_FIELD']->value->getId();?> +tpl_vars['PICKLIST_FIELD_ID'] = new Smarty_variable($_tmp4, null, 0);?>tpl_vars['HEADER_FIELD']->value->getId();?> +tpl_vars['PICKLIST_FIELD_ID'] = new Smarty_variable($_tmp5, null, 0);?>tpl_vars['HEADER_FIELD']->value->getId();?> +tpl_vars['PICKLIST_FIELD_ID'] = new Smarty_variable($_tmp6, null, 0);?>tpl_vars['RELATED_LIST_VALUE']->value)){?> class="picklist-color picklist-tpl_vars['PICKLIST_FIELD_ID']->value;?> +-tpl_vars['RELATED_LIST_VALUE']->value);?> +" > tpl_vars['RELATED_RECORD']->value->getDisplayValue($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value);?> + tpl_vars['RELATED_RECORD']->value->getDisplayValue($_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value);?> +tpl_vars['RELATED_MODULE_NAME']->value=='Documents'&&$_smarty_tpl->tpl_vars['RELATED_HEADERNAME']->value=='filename'&&isPermitted($_smarty_tpl->tpl_vars['RELATED_MODULE_NAME']->value,'DetailView',$_smarty_tpl->tpl_vars['RELATED_RECORD']->value->getId())=='yes'){?>tpl_vars['RECORD_ID'] = new Smarty_variable($_smarty_tpl->tpl_vars['RELATED_RECORD']->value->getId(), null, 0);?>tpl_vars["DOCUMENT_RECORD_MODEL"] = new Smarty_variable(Vtiger_Record_Model::getInstanceById($_smarty_tpl->tpl_vars['RECORD_ID']->value), null, 0);?>tpl_vars['DOCUMENT_RECORD_MODEL']->value->get('filename')&&$_smarty_tpl->tpl_vars['DOCUMENT_RECORD_MODEL']->value->get('filestatus')){?> tpl_vars['DOCUMENT_RECORD_MODEL']->value->get('filename')&&$_smarty_tpl->tpl_vars['DOCUMENT_RECORD_MODEL']->value->get('filestatus')&&$_smarty_tpl->tpl_vars['DOCUMENT_RECORD_MODEL']->value->get('filelocationtype')=='I'){?> + \ No newline at end of file diff --git a/test/templates_c/v7/d4dd8665546d72b66c3632ec1aff2b616997ea87.file.GetPDFActions.tpl.php b/test/templates_c/v7/d4dd8665546d72b66c3632ec1aff2b616997ea87.file.GetPDFActions.tpl.php index 480eec97..e8fedeca 100644 --- a/test/templates_c/v7/d4dd8665546d72b66c3632ec1aff2b616997ea87.file.GetPDFActions.tpl.php +++ b/test/templates_c/v7/d4dd8665546d72b66c3632ec1aff2b616997ea87.file.GetPDFActions.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '13191104426905125f245cd1-22505733', + 'nocache_hash' => '6273404336905d0766b0fe3-98537914', 'function' => array ( ), @@ -30,9 +30,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905125f25d3d', + 'unifunc' => 'content_6905d0766c374', ),false); /*/%%SmartyHeaderCode%%*/?> - tpl_vars['ENABLE_PDFMAKER']->value=='true'){?> diff --git a/test/templates_c/v7/d8f8259fd701933b1b1baef1ead41a4f3285b77f.file.ModuleRelatedTabs.tpl.php b/test/templates_c/v7/d8f8259fd701933b1b1baef1ead41a4f3285b77f.file.ModuleRelatedTabs.tpl.php index ac69f878..ca5decdf 100644 --- a/test/templates_c/v7/d8f8259fd701933b1b1baef1ead41a4f3285b77f.file.ModuleRelatedTabs.tpl.php +++ b/test/templates_c/v7/d8f8259fd701933b1b1baef1ead41a4f3285b77f.file.ModuleRelatedTabs.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '6399572016905125dc43f20-30130159', + 'nocache_hash' => '980629786905d07264bb74-21104549', 'function' => array ( ), @@ -40,9 +40,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905125dc75b2', + 'unifunc' => 'content_6905d072696f8', ),false); /*/%%SmartyHeaderCode%%*/?> - + tpl_vars['RELATED_LINK'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['RELATED_LINK']->_loop = false; $_from = $_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEWTAB']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} diff --git a/test/templates_c/v7/de371e440c7c64b62066eb57bf1315b53ff8374a.file.PicklistColorMap.tpl.php b/test/templates_c/v7/de371e440c7c64b62066eb57bf1315b53ff8374a.file.PicklistColorMap.tpl.php index 6a785640..97de2922 100644 --- a/test/templates_c/v7/de371e440c7c64b62066eb57bf1315b53ff8374a.file.PicklistColorMap.tpl.php +++ b/test/templates_c/v7/de371e440c7c64b62066eb57bf1315b53ff8374a.file.PicklistColorMap.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '201516916469051982bbdd18-64992878', + 'nocache_hash' => '2136643896905d0d4125d13-13617990', 'function' => array ( ), @@ -34,9 +34,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_69051982bcce1', + 'unifunc' => 'content_6905d0d41387d', ),false); /*/%%SmartyHeaderCode%%*/?> - +
tpl_vars['MODULE_NAME']->value);?>