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 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: папка + создание файлов *}
+ + +
{* Подключаем 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 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 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: папка + создание файлов *}
+ + +
{* Подключаем 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 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 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 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 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 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);?> -
- -
- -
- - \ 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);?> - \ No newline at end of file diff --git a/test/templates_c/v7/1f024992e0a448687c11c8db8533f7b4ecc96062.file.RelatedListHeader.tpl.php b/test/templates_c/v7/1f024992e0a448687c11c8db8533f7b4ecc96062.file.RelatedListHeader.tpl.php new file mode 100644 index 00000000..65f7a04e --- /dev/null +++ b/test/templates_c/v7/1f024992e0a448687c11c8db8533f7b4ecc96062.file.RelatedListHeader.tpl.php @@ -0,0 +1,67 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '1f024992e0a448687c11c8db8533f7b4ecc96062' => + array ( + 0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Vtiger/partials/RelatedListHeader.tpl', + 1 => 1711810494, + 2 => 'file', + ), + ), + 'nocache_hash' => '4898927836905d0d414db56-71833914', + 'function' => + array ( + ), + 'variables' => + array ( + 'RELATED_LIST_LINKS' => 0, + 'RELATED_LINK' => 0, + 'DROPDOWNS' => 0, + 'RELATED_MODULE_NAME' => 0, + 'DROPDOWN' => 0, + 'IS_SELECT_BUTTON' => 0, + 'IS_CREATE_PERMITTED' => 0, + 'RELATION_FIELD' => 0, + 'SELECTED_MENU_CATEGORY' => 0, + 'PAGING' => 0, + 'RELATED_RECORDS' => 0, + 'MODULE' => 0, + ), + 'has_nocache_code' => false, + 'version' => 'Smarty-3.1.7', + 'unifunc' => 'content_6905d0d416640', +),false); /*/%%SmartyHeaderCode%%*/?> + + +
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['DROPDOWNS'] = new Smarty_variable($_smarty_tpl->tpl_vars['RELATED_LINK']->value->get('linkdropdowns'), null, 0);?>tpl_vars['DROPDOWNS']->value)>0){?><?php echo $_smarty_tpl->tpl_vars['RELATED_LINK']->value->getLabel();?>
+tpl_vars['RELATED_LINK']->value->get('_selectRelation');?> +tpl_vars['IS_SELECT_BUTTON'] = new Smarty_variable($_tmp1, null, 0);?>tpl_vars['RELATED_LINK']->value->get('linklabel');?> +tpl_vars['LINK_LABEL'] = new Smarty_variable($_tmp2, 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||$_smarty_tpl->tpl_vars['IS_CREATE_PERMITTED']->value){?>
 
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);?> +
\ No newline at end of file diff --git a/test/templates_c/v7/261893edf6005dd49d5f1ec2f72d8edc46da6f3d.file.ListViewPostProcess.tpl.php b/test/templates_c/v7/261893edf6005dd49d5f1ec2f72d8edc46da6f3d.file.ListViewPostProcess.tpl.php deleted file mode 100644 index 8e1c594c..00000000 --- a/test/templates_c/v7/261893edf6005dd49d5f1ec2f72d8edc46da6f3d.file.ListViewPostProcess.tpl.php +++ /dev/null @@ -1,26 +0,0 @@ - -decodeProperties(array ( - 'file_dependency' => - array ( - '261893edf6005dd49d5f1ec2f72d8edc46da6f3d' => - array ( - 0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Vtiger/ListViewPostProcess.tpl', - 1 => 1711810494, - 2 => 'file', - ), - ), - 'nocache_hash' => '50732216269051982cb3e08-45790479', - 'function' => - array ( - ), - 'has_nocache_code' => false, - 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_69051982cb46d', -),false); /*/%%SmartyHeaderCode%%*/?> - -
-
- - \ No newline at end of file diff --git a/test/templates_c/v7/2768de8d02dfd5660da1c2f2a25be94f982e1859.file.DetailViewPostProcess.tpl.php b/test/templates_c/v7/2768de8d02dfd5660da1c2f2a25be94f982e1859.file.DetailViewPostProcess.tpl.php index ea544c44..34746692 100644 --- a/test/templates_c/v7/2768de8d02dfd5660da1c2f2a25be94f982e1859.file.DetailViewPostProcess.tpl.php +++ b/test/templates_c/v7/2768de8d02dfd5660da1c2f2a25be94f982e1859.file.DetailViewPostProcess.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,15 +11,15 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '7127235346905125ddbc870-06224218', + 'nocache_hash' => '14471908826905d072830dd5-18934506', 'function' => array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905125ddbd25', + 'unifunc' => 'content_6905d072831cb', ),false); /*/%%SmartyHeaderCode%%*/?> - + diff --git a/test/templates_c/v7/2a48827157f0c608262296b06559a08bcc0b8b4a.file.SalutationDetailView.tpl.php b/test/templates_c/v7/2a48827157f0c608262296b06559a08bcc0b8b4a.file.SalutationDetailView.tpl.php new file mode 100644 index 00000000..ea2c089c --- /dev/null +++ b/test/templates_c/v7/2a48827157f0c608262296b06559a08bcc0b8b4a.file.SalutationDetailView.tpl.php @@ -0,0 +1,34 @@ + +decodeProperties(array ( + 'file_dependency' => + array ( + '2a48827157f0c608262296b06559a08bcc0b8b4a' => + array ( + 0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Vtiger/uitypes/SalutationDetailView.tpl', + 1 => 1711810494, + 2 => 'file', + ), + ), + 'nocache_hash' => '20063905616905d0d0691917-10894444', + 'function' => + array ( + ), + 'variables' => + array ( + 'RECORD' => 0, + 'FIELD_MODEL' => 0, + ), + 'has_nocache_code' => false, + 'version' => 'Smarty-3.1.7', + 'unifunc' => 'content_6905d0d0694b3', +),false); /*/%%SmartyHeaderCode%%*/?> + + + +tpl_vars['RECORD']->value->getDisplayValue('salutationtype');?> + + +tpl_vars['FIELD_MODEL']->value->getDisplayValue($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->get('fieldvalue'),$_smarty_tpl->tpl_vars['RECORD']->value->getId(),$_smarty_tpl->tpl_vars['RECORD']->value);?> + \ No newline at end of file diff --git a/test/templates_c/v7/2b64f4369928fad4fc740cd9ca09bbc8f0bf89a4.file.SummaryWidgets.tpl.php b/test/templates_c/v7/2b64f4369928fad4fc740cd9ca09bbc8f0bf89a4.file.SummaryWidgets.tpl.php index be390ec7..2dd9ceaa 100644 --- a/test/templates_c/v7/2b64f4369928fad4fc740cd9ca09bbc8f0bf89a4.file.SummaryWidgets.tpl.php +++ b/test/templates_c/v7/2b64f4369928fad4fc740cd9ca09bbc8f0bf89a4.file.SummaryWidgets.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '6363855226905125edec8b9-94596471', + 'nocache_hash' => '4751970006905d075eedb27-14764938', 'function' => array ( ), @@ -25,9 +25,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905125ee2a89', + 'unifunc' => 'content_6905d075ef57f', ),false); /*/%%SmartyHeaderCode%%*/?> - + -decodeProperties(array ( - 'file_dependency' => - array ( - '2d44e412af10bf1d892a1d28b4518b3866e0396c' => - array ( - 0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Documents/QuickCreate.tpl', - 1 => 1711810496, - 2 => 'file', - ), - ), - 'nocache_hash' => '15127128036905199ee567f2-09868473', - 'function' => - array ( - ), - 'variables' => - array ( - 'SCRIPTS' => 0, - 'jsModel' => 0, - 'FILE_LOCATION_TYPE' => 0, - 'MODULE' => 0, - 'FIELDS_INFO' => 0, - ), - 'has_nocache_code' => false, - 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905199ee6193', -),false); /*/%%SmartyHeaderCode%%*/?> - - -tpl_vars['jsModel'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['jsModel']->_loop = false; - $_smarty_tpl->tpl_vars['index'] = new Smarty_Variable; - $_from = $_smarty_tpl->tpl_vars['SCRIPTS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} -foreach ($_from as $_smarty_tpl->tpl_vars['jsModel']->key => $_smarty_tpl->tpl_vars['jsModel']->value){ -$_smarty_tpl->tpl_vars['jsModel']->_loop = true; - $_smarty_tpl->tpl_vars['index']->value = $_smarty_tpl->tpl_vars['jsModel']->key; -?>tpl_vars['FILE_LOCATION_TYPE']->value=='I'){?>getSubTemplate (vtemplate_path("UploadDocument.tpl",$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?> -getSubTemplate (vtemplate_path("CreateDocument.tpl",$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?> -tpl_vars['FIELDS_INFO']->value!=null){?>
- \ No newline at end of file diff --git a/test/templates_c/v7/2ed97106d1bc524f1cc38eedb4bf6fd51a9d95b2.file.SummaryWidgets.tpl.php b/test/templates_c/v7/2ed97106d1bc524f1cc38eedb4bf6fd51a9d95b2.file.SummaryWidgets.tpl.php index 9a25d3d2..6043451f 100644 --- a/test/templates_c/v7/2ed97106d1bc524f1cc38eedb4bf6fd51a9d95b2.file.SummaryWidgets.tpl.php +++ b/test/templates_c/v7/2ed97106d1bc524f1cc38eedb4bf6fd51a9d95b2.file.SummaryWidgets.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '5532775096905199ca67654-57754362', + 'nocache_hash' => '18452128626905d0d13ec360-21054471', 'function' => array ( ), @@ -25,9 +25,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905199caa0d1', + 'unifunc' => 'content_6905d0d142a40', ),false); /*/%%SmartyHeaderCode%%*/?> - + diff --git a/test/templates_c/v7/3065a97908f31faf4f1c354525759a2091d302dd.file.ListViewRecordActions.tpl.php b/test/templates_c/v7/3065a97908f31faf4f1c354525759a2091d302dd.file.ListViewRecordActions.tpl.php deleted file mode 100644 index cc8c8da6..00000000 --- a/test/templates_c/v7/3065a97908f31faf4f1c354525759a2091d302dd.file.ListViewRecordActions.tpl.php +++ /dev/null @@ -1,50 +0,0 @@ - -decodeProperties(array ( - 'file_dependency' => - array ( - '3065a97908f31faf4f1c354525759a2091d302dd' => - array ( - 0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Vtiger/ListViewRecordActions.tpl', - 1 => 1711810494, - 2 => 'file', - ), - ), - 'nocache_hash' => '209299376469051982c837a0-49555325', - 'function' => - array ( - ), - 'variables' => - array ( - 'SEARCH_MODE_RESULTS' => 0, - 'LISTVIEW_ENTRY' => 0, - 'QUICK_PREVIEW_ENABLED' => 0, - 'SELECTED_MENU_CATEGORY' => 0, - 'MODULE' => 0, - 'MODULE_MODEL' => 0, - 'STARRED' => 0, - 'RECORD_ACTIONS' => 0, - ), - 'has_nocache_code' => false, - 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_69051982c9090', -),false); /*/%%SmartyHeaderCode%%*/?> - -
tpl_vars['SEARCH_MODE_RESULTS']->value){?>tpl_vars['LISTVIEW_ENTRY']->value->getRaw('starred')==1){?>tpl_vars['STARRED'] = new Smarty_variable(true, null, 0);?>tpl_vars['STARRED'] = new Smarty_variable(false, null, 0);?>tpl_vars['QUICK_PREVIEW_ENABLED']->value=='true'){?>tpl_vars['MODULE_MODEL']->value->isStarredEnabled()){?>
- \ No newline at end of file diff --git a/test/templates_c/v7/358deb40a6f14b97efbca345f9978b2b17b57858.file.SummaryViewWidgets.tpl.php b/test/templates_c/v7/358deb40a6f14b97efbca345f9978b2b17b57858.file.SummaryViewWidgets.tpl.php index b6f47831..8152a40b 100644 --- a/test/templates_c/v7/358deb40a6f14b97efbca345f9978b2b17b57858.file.SummaryViewWidgets.tpl.php +++ b/test/templates_c/v7/358deb40a6f14b97efbca345f9978b2b17b57858.file.SummaryViewWidgets.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '11623008926905125dd01694-50713073', + 'nocache_hash' => '12834546996905d07274bd86-53794247', 'function' => array ( ), @@ -44,9 +44,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905125dd4721', + 'unifunc' => 'content_6905d0727ada5', ),false); /*/%%SmartyHeaderCode%%*/?> - + tpl_vars['DETAIL_VIEW_WIDGET'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['DETAIL_VIEW_WIDGET']->_loop = false; $_from = $_smarty_tpl->tpl_vars['DETAILVIEW_LINKS']->value['DETAILVIEWWIDGET']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} diff --git a/test/templates_c/v7/388710c41ec632d9c45ecebf3414b38e8c0dabde.file.DetailViewPreProcess.tpl.php b/test/templates_c/v7/388710c41ec632d9c45ecebf3414b38e8c0dabde.file.DetailViewPreProcess.tpl.php index a8e337c1..3f8f5c6c 100644 --- a/test/templates_c/v7/388710c41ec632d9c45ecebf3414b38e8c0dabde.file.DetailViewPreProcess.tpl.php +++ b/test/templates_c/v7/388710c41ec632d9c45ecebf3414b38e8c0dabde.file.DetailViewPreProcess.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '1337425096905125da99250-59204675', + 'nocache_hash' => '6925159696905d0723e0099-34343707', 'function' => array ( ), @@ -22,9 +22,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905125daa0d0', + 'unifunc' => 'content_6905d0724132a', ),false); /*/%%SmartyHeaderCode%%*/?> - + diff --git a/test/templates_c/v7/3e55d84b89c3e0cc65893e5111e8eb7f8dd36c6e.file.DateFieldSearchView.tpl.php b/test/templates_c/v7/3e55d84b89c3e0cc65893e5111e8eb7f8dd36c6e.file.DateFieldSearchView.tpl.php index c488470b..6a02bd2e 100644 --- a/test/templates_c/v7/3e55d84b89c3e0cc65893e5111e8eb7f8dd36c6e.file.DateFieldSearchView.tpl.php +++ b/test/templates_c/v7/3e55d84b89c3e0cc65893e5111e8eb7f8dd36c6e.file.DateFieldSearchView.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '34860751269051982c3c627-93583651', + 'nocache_hash' => '21436158116905d0d41b1778-10591278', 'function' => array ( ), @@ -25,9 +25,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_69051982c41e3', + 'unifunc' => 'content_6905d0d41b58c', ),false); /*/%%SmartyHeaderCode%%*/?> - + tpl_vars["FIELD_INFO"] = new Smarty_variable(Zend_Json::encode($_smarty_tpl->tpl_vars['FIELD_MODEL']->value->getFieldInfo()), null, 0);?>tpl_vars["dateFormat"] = new Smarty_variable($_smarty_tpl->tpl_vars['USER_MODEL']->value->get('date_format'), null, 0);?>
-decodeProperties(array ( - 'file_dependency' => - array ( - '3ea0b7253a4f061ce3fc84cde6e29959e74dba7a' => - array ( - 0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Vtiger/DetailViewHeaderTitle.tpl', - 1 => 1711810494, - 2 => 'file', - ), - ), - 'nocache_hash' => '28758005069053141cfc913-25699226', - 'function' => - array ( - ), - 'variables' => - array ( - 'MODULE' => 0, - 'MODULE_NAME' => 0, - 'SELECTED_MENU_CATEGORY' => 0, - 'MODULE_MODEL' => 0, - 'RECORD' => 0, - 'NAME_FIELD' => 0, - 'FIELD_MODEL' => 0, - ), - 'has_nocache_code' => false, - 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_69053141d0674', -),false); /*/%%SmartyHeaderCode%%*/?> - - -
tpl_vars['MODULE']->value){?>tpl_vars['MODULE'] = new Smarty_variable($_smarty_tpl->tpl_vars['MODULE_NAME']->value, null, 0);?>

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);?> -
\ No newline at end of file diff --git a/test/templates_c/v7/3f993a1160dc2b0e5b37b0e6551b79fc1fc75622.file.ListViewContents.tpl.php b/test/templates_c/v7/3f993a1160dc2b0e5b37b0e6551b79fc1fc75622.file.ListViewContents.tpl.php deleted file mode 100644 index a102f852..00000000 --- a/test/templates_c/v7/3f993a1160dc2b0e5b37b0e6551b79fc1fc75622.file.ListViewContents.tpl.php +++ /dev/null @@ -1,441 +0,0 @@ - -decodeProperties(array ( - 'file_dependency' => - array ( - '3f993a1160dc2b0e5b37b0e6551b79fc1fc75622' => - array ( - 0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Vtiger/ListViewContents.tpl', - 1 => 1711810494, - 2 => 'file', - ), - ), - 'nocache_hash' => '47524369969051982b60537-08324584', - 'function' => - array ( - ), - 'variables' => - array ( - 'MODULE' => 0, - 'SEARCH_MODE_RESULTS' => 0, - 'CURRENT_USER_MODEL' => 0, - 'LEFTPANELHIDE' => 0, - 'VIEW' => 0, - 'VIEWID' => 0, - 'PAGING_MODEL' => 0, - 'MODULE_MODEL' => 0, - 'OPERATOR' => 0, - 'LISTVIEW_COUNT' => 0, - 'PAGE_NUMBER' => 0, - 'LISTVIEW_ENTRIES_COUNT' => 0, - 'SEARCH_DETAILS' => 0, - 'TAG_DETAILS' => 0, - 'NO_SEARCH_PARAMS_CACHE' => 0, - 'ORDER_BY' => 0, - 'SORT_ORDER' => 0, - 'LIST_HEADER_FIELDS' => 0, - 'CURRENT_TAG' => 0, - 'FOLDER_ID' => 0, - 'FOLDER_VALUE' => 0, - 'VIEWTYPE' => 0, - 'SELECTED_MENU_CATEGORY' => 0, - 'PICKIST_DEPENDENCY_DATASOURCE' => 0, - 'CURRENT_CV_MODEL' => 0, - 'CURRENT_CV_USER_ID' => 0, - 'LISTVIEW_HEADERS' => 0, - 'LISTVIEW_HEADER' => 0, - 'COLUMN_NAME' => 0, - 'NO_SORTING' => 0, - 'NEXT_SORT_ORDER' => 0, - 'FASORT_IMAGE' => 0, - 'FIELD_UI_TYPE_MODEL' => 0, - 'LISTVIEW_ENTRIES' => 0, - 'LISTVIEW_ENTRY' => 0, - 'RELATED_TO' => 0, - 'DATA_ID' => 0, - 'DATA_URL' => 0, - 'IS_GOOGLE_DRIVE_ENABLED' => 0, - 'IS_DROPBOX_ENABLED' => 0, - 'LISTVIEW_HEADERNAME' => 0, - 'LISTVIEW_ENTRY_RAWVALUE' => 0, - 'CURRENCY_SYMBOL_PLACEMENT' => 0, - 'LISTVIEW_ENTRY_VALUE' => 0, - 'CURRENCY_SYMBOL' => 0, - 'EVENT_STATUS_FIELD_MODEL' => 0, - 'PICKLIST_FIELD_ID' => 0, - 'MULTI_PICKLIST_VALUES' => 0, - 'MULTI_PICKLIST_VALUE' => 0, - 'ALL_MULTI_PICKLIST_VALUES' => 0, - 'MULTI_PICKLIST_INDEX' => 0, - 'COLSPAN_WIDTH' => 0, - 'IS_CREATE_PERMITTED' => 0, - 'LIST_VIEW_MODEL' => 0, - 'SINGLE_MODULE' => 0, - ), - 'has_nocache_code' => false, - 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_69051982bb8ec', -),false); /*/%%SmartyHeaderCode%%*/?> - - - - -getSubTemplate (vtemplate_path("PicklistColorMap.tpl",$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?> - - -
- tpl_vars['MODULE']->value!='EmailTemplates'&&$_smarty_tpl->tpl_vars['SEARCH_MODE_RESULTS']->value!=true){?> - tpl_vars['LEFTPANELHIDE'] = new Smarty_variable($_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value->get('leftpanelhide'), null, 0);?> -
- -
- - - - - - - - - - - - - - - - - - - value;?> -'/> - - - - - - - tpl_vars['PICKIST_DEPENDENCY_DATASOURCE']->value)){?> - value);?> -' /> - - tpl_vars['SEARCH_MODE_RESULTS']->value){?> - getSubTemplate (vtemplate_path("ListViewActions.tpl",$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?> - - - -
-
- - - - - tpl_vars['LISTVIEW_HEADER'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->_loop = false; - $_from = $_smarty_tpl->tpl_vars['LISTVIEW_HEADERS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} -foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->key => $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value){ -$_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->_loop = true; -?> - tpl_vars['SEARCH_MODE_RESULTS']->value||($_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->getFieldDataType()=='multipicklist')){?> - tpl_vars['NO_SORTING'] = new Smarty_variable(1, null, 0);?> - - tpl_vars['NO_SORTING'] = new Smarty_variable(0, null, 0);?> - - - - - - tpl_vars['MODULE_MODEL']->value->isQuickSearchEnabled()&&!$_smarty_tpl->tpl_vars['SEARCH_MODE_RESULTS']->value){?> - - - tpl_vars['LISTVIEW_HEADER'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->_loop = false; - $_from = $_smarty_tpl->tpl_vars['LISTVIEW_HEADERS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} -foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->key => $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value){ -$_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->_loop = true; -?> - - - - - - - tpl_vars['LISTVIEW_ENTRY'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->_loop = false; - $_from = $_smarty_tpl->tpl_vars['LISTVIEW_ENTRIES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} - $_smarty_tpl->tpl_vars['smarty']->value['foreach']['listview']['index']=-1; -foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->key => $_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value){ -$_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->_loop = true; - $_smarty_tpl->tpl_vars['smarty']->value['foreach']['listview']['index']++; -?> - tpl_vars['DATA_ID'] = new Smarty_variable($_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->getId(), null, 0);?> - tpl_vars['DATA_URL'] = new Smarty_variable($_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->getDetailViewUrl(), null, 0);?> - tpl_vars['SEARCH_MODE_RESULTS']->value&&$_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->getModuleName()=="ModComments"){?> - tpl_vars['RELATED_TO'] = new Smarty_variable($_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->get('related_to_model'), null, 0);?> - tpl_vars['DATA_ID'] = new Smarty_variable($_smarty_tpl->tpl_vars['RELATED_TO']->value->getId(), null, 0);?> - tpl_vars['DATA_URL'] = new Smarty_variable($_smarty_tpl->tpl_vars['RELATED_TO']->value->getDetailViewUrl(), null, 0);?> - - value;?> -' data-recordUrl='tpl_vars['DATA_URL']->value;?> -&app=tpl_vars['SELECTED_MENU_CATEGORY']->value;?> -' id="tpl_vars['MODULE']->value;?> -_listView_row_getVariable('smarty')->value['foreach']['listview']['index']+1;?> -" tpl_vars['MODULE']->value=='Calendar'){?>data-recurring-enabled='tpl_vars['LISTVIEW_ENTRY']->value->isRecurringEnabled();?> -'> - - tpl_vars['LISTVIEW_ENTRY']->value->get('document_source')=='Google Drive'&&$_smarty_tpl->tpl_vars['IS_GOOGLE_DRIVE_ENABLED']->value)||($_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->get('document_source')=='Dropbox'&&$_smarty_tpl->tpl_vars['IS_DROPBOX_ENABLED']->value)){?> - - - tpl_vars['LISTVIEW_HEADER'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->_loop = false; - $_from = $_smarty_tpl->tpl_vars['LISTVIEW_HEADERS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} -foreach ($_from as $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->key => $_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value){ -$_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->_loop = true; -?> - tpl_vars['LISTVIEW_HEADERNAME'] = new Smarty_variable($_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('name'), null, 0);?> - tpl_vars['LISTVIEW_ENTRY_RAWVALUE'] = new Smarty_variable($_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->getRaw($_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('column')), null, 0);?> - tpl_vars['LISTVIEW_HEADER']->value->getFieldDataType()=='currency'||$_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->getFieldDataType()=='text'){?> - tpl_vars['LISTVIEW_ENTRY_RAWVALUE'] = new Smarty_variable($_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->getTitle($_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value), null, 0);?> - - tpl_vars['LISTVIEW_ENTRY_VALUE'] = new Smarty_variable($_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->get($_smarty_tpl->tpl_vars['LISTVIEW_HEADERNAME']->value), null, 0);?> - - - - - tpl_vars['LISTVIEW_ENTRIES_COUNT']->value=='0'){?> - - tpl_vars['LISTVIEW_HEADERS']->value);?> -tpl_vars['COLSPAN_WIDTH'] = new Smarty_variable($_tmp6+1, null, 0);?> - - - - -
- tpl_vars['SEARCH_MODE_RESULTS']->value){?> -
- - tpl_vars['MODULE_MODEL']->value->isFilterColumnEnabled()){?> -
-
tpl_vars['CURRENT_CV_MODEL']->value->isCvEditable()){?> - title="tpl_vars['MODULE']->value);?> -" - - tpl_vars['CURRENT_CV_MODEL']->value->get('viewname')=='All'&&!$_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value->isAdminUser()){?> - title="tpl_vars['MODULE']->value);?> -" - tpl_vars['CURRENT_CV_MODEL']->value->isMine()){?> - tpl_vars['CURRENT_CV_USER_ID'] = new Smarty_variable($_smarty_tpl->tpl_vars['CURRENT_CV_MODEL']->value->get('userid'), null, 0);?> - tpl_vars['CURRENT_CV_USER_ID']->value)){?> - tpl_vars['CURRENT_CV_USER_ID'] = new Smarty_variable(Users::getActiveAdminId(), null, 0);?> - - title="tpl_vars['MODULE']->value,getUserFullName($_smarty_tpl->tpl_vars['CURRENT_CV_USER_ID']->value));?> -" - - - tpl_vars['MODULE']->value=='Documents'){?>style="width: 10%;" - data-toggle="tooltip" data-placement="bottom" data-container="body"> - -
-
- -
- tpl_vars['SEARCH_MODE_RESULTS']->value){?> - tpl_vars['MODULE']->value);?> - - -
tpl_vars['COLUMN_NAME']->value==$_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('name')){?> nowrap="nowrap" > - tpl_vars['NO_SORTING']->value){?>data-nextsortorderval="tpl_vars['COLUMN_NAME']->value==$_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('name')){?>tpl_vars['NEXT_SORT_ORDER']->value;?> -ASC" data-columnname="tpl_vars['LISTVIEW_HEADER']->value->get('name');?> -" data-field-id='tpl_vars['LISTVIEW_HEADER']->value->getId();?> -'> - tpl_vars['NO_SORTING']->value){?> - tpl_vars['COLUMN_NAME']->value==$_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('name')){?> - - - - - -  tpl_vars['LISTVIEW_HEADER']->value->get('label'),$_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->getModuleName());?> -  - - tpl_vars['COLUMN_NAME']->value==$_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('name')){?> - - -
-
- -
-
- tpl_vars['FIELD_UI_TYPE_MODEL'] = new Smarty_variable($_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->getUITypeModel(), null, 0);?> - getSubTemplate (vtemplate_path($_smarty_tpl->tpl_vars['FIELD_UI_TYPE_MODEL']->value->getListSearchTemplateName(),$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array('FIELD_MODEL'=>$_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value,'SEARCH_INFO'=>$_smarty_tpl->tpl_vars['SEARCH_DETAILS']->value[$_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->getName()],'USER_MODEL'=>$_smarty_tpl->tpl_vars['CURRENT_USER_MODEL']->value), 0);?> - - -
- getSubTemplate (vtemplate_path("ListViewRecordActions.tpl",$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?> - - - - - tpl_vars['LISTVIEW_HEADER']->value->isNameField()==true||$_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->get('uitype')=='4')&&$_smarty_tpl->tpl_vars['MODULE_MODEL']->value->isListViewNameFieldNavigationEnabled()==true){?> - tpl_vars['LISTVIEW_ENTRY']->value->get($_smarty_tpl->tpl_vars['LISTVIEW_HEADERNAME']->value);?> - - tpl_vars['MODULE']->value=='Products'&&$_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->isBundle()){?> -  - tpl_vars['MODULE']->value);?> - - - tpl_vars['MODULE_MODEL']->value->getName()=='Documents'&&$_smarty_tpl->tpl_vars['LISTVIEW_HEADERNAME']->value=='document_source'){?> - tpl_vars['LISTVIEW_ENTRY']->value->get($_smarty_tpl->tpl_vars['LISTVIEW_HEADERNAME']->value);?> - - - tpl_vars['LISTVIEW_HEADER']->value->get('uitype')=='72'){?> - tpl_vars['CURRENT_USER_MODEL']->value->get('currency_symbol_placement');?> -tpl_vars['CURRENCY_SYMBOL_PLACEMENT'] = new Smarty_variable($_tmp1, null, 0);?> - tpl_vars['CURRENCY_SYMBOL_PLACEMENT']->value=='1.0$'){?> - tpl_vars['LISTVIEW_ENTRY_VALUE']->value;?> -tpl_vars['LISTVIEW_ENTRY']->value->get('currencySymbol');?> - - - tpl_vars['LISTVIEW_ENTRY']->value->get('currencySymbol');?> -tpl_vars['LISTVIEW_ENTRY_VALUE']->value;?> - - - tpl_vars['LISTVIEW_HEADER']->value->get('uitype')=='71'){?> - tpl_vars['CURRENCY_SYMBOL'] = new Smarty_variable($_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->get('userCurrencySymbol'), null, 0);?> - tpl_vars['LISTVIEW_ENTRY']->value->get($_smarty_tpl->tpl_vars['LISTVIEW_HEADERNAME']->value)!=null){?> - tpl_vars['LISTVIEW_ENTRY']->value->get($_smarty_tpl->tpl_vars['LISTVIEW_HEADERNAME']->value),$_smarty_tpl->tpl_vars['CURRENCY_SYMBOL']->value);?> - - - tpl_vars['LISTVIEW_HEADER']->value->getFieldDataType()=='picklist'){?> - - - tpl_vars['LISTVIEW_ENTRY']->value->getRaw('activitytype')=='Task'){?> - - tpl_vars['LISTVIEW_HEADER']->value->getId();?> -tpl_vars['PICKLIST_FIELD_ID'] = new Smarty_variable($_tmp2, null, 0);?> - - tpl_vars['LISTVIEW_HEADER']->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['LISTVIEW_HEADER']->value->getId();?> -tpl_vars['PICKLIST_FIELD_ID'] = new Smarty_variable($_tmp4, null, 0);?> - - - tpl_vars['LISTVIEW_HEADER']->value->getId();?> -tpl_vars['PICKLIST_FIELD_ID'] = new Smarty_variable($_tmp5, null, 0);?> - - - tpl_vars['LISTVIEW_ENTRY_VALUE']->value)){?> class="picklist-color picklist-tpl_vars['PICKLIST_FIELD_ID']->value;?> --tpl_vars['LISTVIEW_ENTRY_RAWVALUE']->value);?> -" > tpl_vars['LISTVIEW_ENTRY_VALUE']->value;?> - - tpl_vars['LISTVIEW_HEADER']->value->getFieldDataType()=='multipicklist'){?> - tpl_vars['MULTI_RAW_PICKLIST_VALUES'] = new Smarty_variable(explode('|##|',$_smarty_tpl->tpl_vars['LISTVIEW_ENTRY']->value->getRaw($_smarty_tpl->tpl_vars['LISTVIEW_HEADERNAME']->value)), null, 0);?> - tpl_vars['MULTI_PICKLIST_VALUES'] = new Smarty_variable(explode(',',$_smarty_tpl->tpl_vars['LISTVIEW_ENTRY_VALUE']->value), null, 0);?> - tpl_vars['ALL_MULTI_PICKLIST_VALUES'] = new Smarty_variable(array_flip($_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->getPicklistValues()), null, 0);?> - tpl_vars['MULTI_PICKLIST_VALUE'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['MULTI_PICKLIST_VALUE']->_loop = false; - $_smarty_tpl->tpl_vars['MULTI_PICKLIST_INDEX'] = new Smarty_Variable; - $_from = $_smarty_tpl->tpl_vars['MULTI_PICKLIST_VALUES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');} -foreach ($_from as $_smarty_tpl->tpl_vars['MULTI_PICKLIST_VALUE']->key => $_smarty_tpl->tpl_vars['MULTI_PICKLIST_VALUE']->value){ -$_smarty_tpl->tpl_vars['MULTI_PICKLIST_VALUE']->_loop = true; - $_smarty_tpl->tpl_vars['MULTI_PICKLIST_INDEX']->value = $_smarty_tpl->tpl_vars['MULTI_PICKLIST_VALUE']->key; -?> - tpl_vars['LISTVIEW_ENTRY_VALUE']->value)){?> class="picklist-color picklist-tpl_vars['LISTVIEW_HEADER']->value->getId();?> --tpl_vars['ALL_MULTI_PICKLIST_VALUES']->value[trim($_smarty_tpl->tpl_vars['MULTI_PICKLIST_VALUE']->value)]));?> -" > - tpl_vars['MULTI_PICKLIST_VALUES']->value[$_smarty_tpl->tpl_vars['MULTI_PICKLIST_INDEX']->value])==vtranslate('LBL_NOT_ACCESSIBLE',$_smarty_tpl->tpl_vars['MODULE']->value)){?> - - tpl_vars['MULTI_PICKLIST_VALUES']->value[$_smarty_tpl->tpl_vars['MULTI_PICKLIST_INDEX']->value]);?> - - - - tpl_vars['MULTI_PICKLIST_VALUES']->value[$_smarty_tpl->tpl_vars['MULTI_PICKLIST_INDEX']->value]);?> - - - tpl_vars['MULTI_PICKLIST_VALUES']->value[$_smarty_tpl->tpl_vars['MULTI_PICKLIST_INDEX']->value+1])){?>, - - - - tpl_vars['LISTVIEW_ENTRY_VALUE']->value;?> - - - - - - tpl_vars['LISTVIEW_HEADER']->value->isEditable()=='true'&&$_smarty_tpl->tpl_vars['LISTVIEW_HEADER']->value->isAjaxEditable()=='true'){?> - - - -
-
- tpl_vars['SINGLE_MODULE'] = new Smarty_variable("SINGLE_".($_smarty_tpl->tpl_vars['MODULE']->value), null, 0);?> - - - tpl_vars['MODULE']->value,$_smarty_tpl->tpl_vars['MODULE']->value);?> -. - - - tpl_vars['IS_CREATE_PERMITTED']->value){?> - - - tpl_vars['MODULE']->value,'Import')&&$_smarty_tpl->tpl_vars['LIST_VIEW_MODEL']->value->isImportEnabled()){?> - tpl_vars['MODULE']->value);?> - - tpl_vars['MODULE']->value);?> - - tpl_vars['MODULE']->value,$_smarty_tpl->tpl_vars['MODULE']->value);?> - - - tpl_vars['SINGLE_MODULE']->value,$_smarty_tpl->tpl_vars['MODULE']->value);?> - - - -
-
-
-
-
-
-
-
- \ No newline at end of file diff --git a/test/templates_c/v7/d03f13544987f1ed19d64811e5a6b24e6b02e473.file.DetailViewSummaryContents.tpl.php b/test/templates_c/v7/435f2effec66f0205a580873f1ebf25eb8aaac84.file.DetailViewSummaryContents.tpl.php similarity index 62% rename from test/templates_c/v7/d03f13544987f1ed19d64811e5a6b24e6b02e473.file.DetailViewSummaryContents.tpl.php rename to test/templates_c/v7/435f2effec66f0205a580873f1ebf25eb8aaac84.file.DetailViewSummaryContents.tpl.php index 0222ec48..18880cfd 100644 --- a/test/templates_c/v7/d03f13544987f1ed19d64811e5a6b24e6b02e473.file.DetailViewSummaryContents.tpl.php +++ b/test/templates_c/v7/435f2effec66f0205a580873f1ebf25eb8aaac84.file.DetailViewSummaryContents.tpl.php @@ -1,17 +1,17 @@ - - +decodeProperties(array ( 'file_dependency' => array ( - 'd03f13544987f1ed19d64811e5a6b24e6b02e473' => + '435f2effec66f0205a580873f1ebf25eb8aaac84' => array ( - 0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Accounts/DetailViewSummaryContents.tpl', - 1 => 1711810496, + 0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Contacts/DetailViewSummaryContents.tpl', + 1 => 1711810495, 2 => 'file', ), ), - 'nocache_hash' => '20652225646905199bcf2cf2-82063270', + 'nocache_hash' => '20974419356905d0d06bf4a4-29286564', 'function' => array ( ), @@ -21,9 +21,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905199bcf478', + 'unifunc' => 'content_6905d0d06c223', ),false); /*/%%SmartyHeaderCode%%*/?> - +
getSubTemplate (vtemplate_path('SummaryViewWidgets.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/482313996a0409b6d0e1d2324de12d4657ed4bd3.file.DetailViewSummaryContents.tpl.php b/test/templates_c/v7/482313996a0409b6d0e1d2324de12d4657ed4bd3.file.DetailViewSummaryContents.tpl.php index f638addd..dd461677 100644 --- a/test/templates_c/v7/482313996a0409b6d0e1d2324de12d4657ed4bd3.file.DetailViewSummaryContents.tpl.php +++ b/test/templates_c/v7/482313996a0409b6d0e1d2324de12d4657ed4bd3.file.DetailViewSummaryContents.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '5188457016905125dcfd188-66904224', + 'nocache_hash' => '18012038996905d072747434-63076788', 'function' => array ( ), @@ -21,8 +21,8 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905125dcff60', + 'unifunc' => 'content_6905d072749cc', ),false); /*/%%SmartyHeaderCode%%*/?> - +
getSubTemplate (vtemplate_path('SummaryViewWidgets.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/4bc57e97d6866b8631384df5b43216b07f3436ea.file.UploadDocument.tpl.php b/test/templates_c/v7/4bc57e97d6866b8631384df5b43216b07f3436ea.file.UploadDocument.tpl.php deleted file mode 100644 index b47f40d7..00000000 --- a/test/templates_c/v7/4bc57e97d6866b8631384df5b43216b07f3436ea.file.UploadDocument.tpl.php +++ /dev/null @@ -1,100 +0,0 @@ - -decodeProperties(array ( - 'file_dependency' => - array ( - '4bc57e97d6866b8631384df5b43216b07f3436ea' => - array ( - 0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Documents/UploadDocument.tpl', - 1 => 1711810496, - 2 => 'file', - ), - ), - 'nocache_hash' => '5578438886905199ee64211-80511471', - 'function' => - array ( - ), - 'variables' => - array ( - 'MODULE' => 0, - 'HEADER_TITLE' => 0, - 'PICKIST_DEPENDENCY_DATASOURCE' => 0, - 'RELATION_OPERATOR' => 0, - 'PARENT_MODULE' => 0, - 'PARENT_ID' => 0, - 'RELATION_FIELD_NAME' => 0, - 'MAX_UPLOAD_LIMIT_BYTES' => 0, - 'MAX_UPLOAD_LIMIT_MB' => 0, - 'FIELD_MODELS' => 0, - 'FIELD_MODEL' => 0, - 'FIELD_VALUE' => 0, - 'ALLOWED_FIELD_MODELS' => 0, - 'FIELD_NAME' => 0, - 'HARDCODED_FIELDS' => 0, - 'referenceList' => 0, - 'COUNTER' => 0, - 'isReferenceField' => 0, - 'referenceListCount' => 0, - 'DISPLAYID' => 0, - 'REFERENCED_MODULE_STRUCT' => 0, - 'value' => 0, - 'REFERENCED_MODULE_NAME' => 0, - 'TAXCLASS_DETAILS' => 0, - 'taxCount' => 0, - ), - 'has_nocache_code' => false, - 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905199ee9de5', -),false); /*/%%SmartyHeaderCode%%*/?> - - - - \ No newline at end of file diff --git a/test/templates_c/v7/4c7020682a4f10b78a5e67171b608967d8e43a32.file.Pagination.tpl.php b/test/templates_c/v7/4c7020682a4f10b78a5e67171b608967d8e43a32.file.Pagination.tpl.php index 23f0061b..1dda906a 100644 --- a/test/templates_c/v7/4c7020682a4f10b78a5e67171b608967d8e43a32.file.Pagination.tpl.php +++ b/test/templates_c/v7/4c7020682a4f10b78a5e67171b608967d8e43a32.file.Pagination.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '6553656269051982c254f5-18714150', + 'nocache_hash' => '13903061416905d0d4169863-32819651', 'function' => array ( ), @@ -30,9 +30,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_69051982c3040', + 'unifunc' => 'content_6905d0d417756', ),false); /*/%%SmartyHeaderCode%%*/?> - + tpl_vars['CLASS_VIEW_ACTION']->value){?> tpl_vars['CLASS_VIEW_ACTION'] = new Smarty_variable('listViewActions', null, 0);?> tpl_vars['CLASS_VIEW_PAGING_INPUT'] = new Smarty_variable('listViewPagingInput', null, 0);?> diff --git a/test/templates_c/v7/5806d66c6e3c1a3b3b3fba9c2001458a981b4676.file.Topbar.tpl.php b/test/templates_c/v7/5806d66c6e3c1a3b3b3fba9c2001458a981b4676.file.Topbar.tpl.php index 9886093f..043feb5b 100644 --- a/test/templates_c/v7/5806d66c6e3c1a3b3b3fba9c2001458a981b4676.file.Topbar.tpl.php +++ b/test/templates_c/v7/5806d66c6e3c1a3b3b3fba9c2001458a981b4676.file.Topbar.tpl.php @@ -1,6 +1,6 @@ - -decodeProperties(array ( 'file_dependency' => array ( @@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array ( 2 => 'file', ), ), - 'nocache_hash' => '2135012956905125daa3011-43860625', + 'nocache_hash' => '1259268226905d072416912-11969619', 'function' => array ( ), @@ -38,9 +38,9 @@ $_valid = $_smarty_tpl->decodeProperties(array ( ), 'has_nocache_code' => false, 'version' => 'Smarty-3.1.7', - 'unifunc' => 'content_6905125dad3e3', + 'unifunc' => 'content_6905d0724596c', ),false); /*/%%SmartyHeaderCode%%*/?> - + getSubTemplate ("modules/Vtiger/Header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?> tpl_vars['APP_IMAGE_MAP'] = new Smarty_variable(Vtiger_MenuStructure_Model::getAppIcons(), null, 0);?>
- - - \ 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)){?>
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);?>
\ No newline at end of file +')" title="Открыть папку проекта в Nextcloud"> Папка в Nextcloud
\ 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['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'] = 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_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['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['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['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_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%%*/?> - +