Files
crm.clientright.ru/test/templates_c/v7/73eb4924afe4da02e33c201ae591d930874b264a.file.GetPDFButtons.tpl.php
Fedor cd90b0d58a feat: Добавлен инструмент генерации документов для AI Ассистента
- Создан API create_document_with_text.php для создания DOCX/XLSX/PPTX с текстом от AI
- Поддержка Markdown форматирования (заголовки, жирный, курсив, списки, код)
- Установлен PHPWord для красивого форматирования документов
- Исправлены пути сохранения (crm2/CRM_Active_Files/... без /crm/ в начале)
- Замена пробелов на подчеркивания в именах папок
- Создана документация для AI и разработчиков
- Добавлены API для работы с шаблонами Nextcloud
2025-11-12 19:46:06 +03:00

45 lines
3.4 KiB
PHP

<?php /* Smarty version Smarty-3.1.7, created on 2025-11-02 18:25:19
compiled from "/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/PDFMaker/GetPDFButtons.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1789467536690777dfb9f988-60990090%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'73eb4924afe4da02e33c201ae591d930874b264a' =>
array (
0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/PDFMaker/GetPDFButtons.tpl',
1 => 1715769098,
2 => 'file',
),
),
'nocache_hash' => '1789467536690777dfb9f988-60990090',
'function' =>
array (
),
'variables' =>
array (
'ENABLE_PDFMAKER' => 0,
'CRM_TEMPLATES_EXIST' => 0,
'CRM_TEMPLATES' => 0,
'TEMPLATE_ITEM' => 0,
'TEMPLATE_KEY' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.7',
'unifunc' => 'content_690777dfbaeff',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_690777dfbaeff')) {function content_690777dfbaeff($_smarty_tpl) {?>
<?php if ($_smarty_tpl->tpl_vars['ENABLE_PDFMAKER']->value=='true'&&$_smarty_tpl->tpl_vars['CRM_TEMPLATES_EXIST']->value=='0'){?><div class="pull-right" id="PDFMakerContentDiv" style="padding-left: 5px;"><div class="clearfix"><div class="btn-group pull-right"><button class="btn btn-default selectPDFTemplates"><i title="<?php echo vtranslate('LBL_EXPORT_TO_PDF','PDFMaker');?>
" class="fa fa-file-pdf-o" aria-hidden="true"></i>&nbsp;<?php echo vtranslate('LBL_EXPORT_TO_PDF','PDFMaker');?>
</button><button type="button" class="btn btn-default dropdown-toggle dropdown-toggle-split PDFMoreAction" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><?php echo vtranslate('LBL_MORE','PDFMaker');?>
&nbsp;&nbsp;<span class="caret"></span></button></button><ul class="dropdown-menu"><li class="dropdown-header"><select class="form-control" name="use_common_template" id="use_common_template" multiple><?php $_smarty_tpl->tpl_vars['TEMPLATE_ITEM'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['TEMPLATE_ITEM']->_loop = false;
$_smarty_tpl->tpl_vars['TEMPLATE_KEY'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['CRM_TEMPLATES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['TEMPLATE_ITEM']->key => $_smarty_tpl->tpl_vars['TEMPLATE_ITEM']->value){
$_smarty_tpl->tpl_vars['TEMPLATE_ITEM']->_loop = true;
$_smarty_tpl->tpl_vars['TEMPLATE_KEY']->value = $_smarty_tpl->tpl_vars['TEMPLATE_ITEM']->key;
?><option data-export_edit_disabled="<?php echo $_smarty_tpl->tpl_vars['TEMPLATE_ITEM']->value['disable_export_edit'];?>
"value="<?php echo $_smarty_tpl->tpl_vars['TEMPLATE_KEY']->value;?>
"<?php if ($_smarty_tpl->tpl_vars['TEMPLATE_ITEM']->value['title']!=''){?> title="<?php echo $_smarty_tpl->tpl_vars['TEMPLATE_ITEM']->value['title'];?>
" <?php }?><?php if ($_smarty_tpl->tpl_vars['TEMPLATE_ITEM']->value['is_default']=='1'||$_smarty_tpl->tpl_vars['TEMPLATE_ITEM']->value['is_default']=='3'){?> selected="selected" <?php }?>><?php echo $_smarty_tpl->tpl_vars['TEMPLATE_ITEM']->value['templatename'];?>
</option><?php } ?></select></li><?php echo $_smarty_tpl->getSubTemplate (vtemplate_path("GetPDFActions.tpl",'PDFMaker'), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
</ul></div></div></div><?php }?><?php }} ?>