102 lines
12 KiB
PHP
102 lines
12 KiB
PHP
<?php /* Smarty version Smarty-3.1.7, created on 2025-11-21 15:31:08
|
|
compiled from "/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/EMAILMaker/Edit.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:122301141069205b8ce45802-88126978%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'07fbbbc93977d330a0fbb79364812a2c3836ef82' =>
|
|
array (
|
|
0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/EMAILMaker/Edit.tpl',
|
|
1 => 1715769019,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'nocache_hash' => '122301141069205b8ce45802-88126978',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'variables' =>
|
|
array (
|
|
'PARENTTAB' => 0,
|
|
'SAVETEMPLATEID' => 0,
|
|
'THEME_MODE' => 0,
|
|
'MODULE' => 0,
|
|
'EMAIL_TEMPLATE_RESULT' => 0,
|
|
'SUBJECT_FIELDS' => 0,
|
|
'TEMPLATEID' => 0,
|
|
'SELECTMODULE' => 0,
|
|
'SELECT_MODULE_FIELD_SUBJECT' => 0,
|
|
'ITS4YOUSTYLE_FILES' => 0,
|
|
'STYLES_CONTENT' => 0,
|
|
'STYLE_DATA' => 0,
|
|
'VATBLOCK_TABLE' => 0,
|
|
'CHARGESBLOCK_TABLE' => 0,
|
|
'COMPANY_HEADER_SIGNATURE' => 0,
|
|
'COMPANY_STAMP_SIGNATURE' => 0,
|
|
'COMPANYLOGO' => 0,
|
|
),
|
|
'has_nocache_code' => false,
|
|
'version' => 'Smarty-3.1.7',
|
|
'unifunc' => 'content_69205b8ce65c3',
|
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|
<?php if ($_valid && !is_callable('content_69205b8ce65c3')) {function content_69205b8ce65c3($_smarty_tpl) {?><?php if (!is_callable('smarty_function_html_options')) include '/var/www/fastuser/data/www/crm.clientright.ru/libraries/Smarty/libs/plugins/function.html_options.php';
|
|
?>
|
|
<div class="contents tabbable ui-sortable" style="width: 99%;"><form class="form-horizontal recordEditView" id="EditView" name="EditView" method="post" action="index.php" enctype="multipart/form-data"><input type="hidden" name="module" value="EMAILMaker"><input type="hidden" name="parenttab" value="<?php echo $_smarty_tpl->tpl_vars['PARENTTAB']->value;?>
|
|
"><input type="hidden" name="templateid" id="templateid" value="<?php echo $_smarty_tpl->tpl_vars['SAVETEMPLATEID']->value;?>
|
|
"><input type="hidden" name="action" value="SaveEMAILTemplate"><input type="hidden" name="redirect" value="true"><input type="hidden" name="return_module" value="<?php echo $_REQUEST['return_module'];?>
|
|
"><input type="hidden" name="return_view" value="<?php echo $_REQUEST['return_view'];?>
|
|
"><input type="hidden" name="is_theme" value="<?php if ($_smarty_tpl->tpl_vars['THEME_MODE']->value=="true"){?>1<?php }else{ ?>0<?php }?>"><input type="hidden" name="selectedTab" id="selectedTab" value="properties"><input type="hidden" name="selectedTab2" id="selectedTab2" value="body"><ul class="nav nav-tabs layoutTabs massEditTabs"><li class="detailviewTab active"><a data-toggle="tab" href="#pdfContentEdit" aria-expanded="true"><strong><?php echo vtranslate('LBL_PROPERTIES_TAB',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
</strong></a></li><li class="detailviewTab"><a data-toggle="tab" href="#pdfContentOther" aria-expanded="false"><strong><?php echo vtranslate('LBL_OTHER_INFO',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
</strong></a></li><li class="detailviewTab"><a data-toggle="tab" href="#pdfContentLabels" aria-expanded="false"><strong><?php echo vtranslate('LBL_LABELS',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
</strong></a></li><?php if ($_smarty_tpl->tpl_vars['THEME_MODE']->value!="true"){?><li class="detailviewTab"><a data-toggle="tab" href="#pdfContentProducts" aria-expanded="false"><strong><?php echo vtranslate('LBL_ARTICLE',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
</strong></a></li><?php }?><li class="detailviewTab"><a data-toggle="tab" href="#editTabSettings" aria-expanded="false"><strong><?php echo vtranslate('LBL_SETTINGS_TAB',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
</strong></a></li><?php if ($_smarty_tpl->tpl_vars['THEME_MODE']->value!="true"){?><li class="detailviewTab"><a data-toggle="tab" href="#editTabSharing" aria-expanded="false"><strong><?php echo vtranslate('LBL_SHARING_TAB',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
</strong></a></li><?php }?></ul><div><div><div class="row"><div class="left-block col-xs-4"><div><div class="tab-content layoutContent themeTableColor overflowVisible"><?php echo $_smarty_tpl->getSubTemplate (vtemplate_path('tabs/Properties.tpl',$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
|
|
<?php echo $_smarty_tpl->getSubTemplate (vtemplate_path('tabs/Other.tpl',$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
|
|
<?php echo $_smarty_tpl->getSubTemplate (vtemplate_path('tabs/Labels.tpl',$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
|
|
<?php echo $_smarty_tpl->getSubTemplate (vtemplate_path('tabs/ProductBlock.tpl',$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
|
|
<?php echo $_smarty_tpl->getSubTemplate (vtemplate_path('tabs/Settings.tpl',$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
|
|
<?php echo $_smarty_tpl->getSubTemplate (vtemplate_path('tabs/Sharing.tpl',$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
|
|
</div></div></div><div class="middle-block col-xs-8"><?php if ($_smarty_tpl->tpl_vars['THEME_MODE']->value!="true"){?><div><table class="table no-border"><tbody id="properties_div"><tr><td class="fieldLabel alignMiddle" nowrap="nowrap"><label class="muted pull-right"><?php echo vtranslate('LBL_EMAIL_SUBJECT','EMAILMaker');?>
|
|
: </label></td><td class="fieldValue"><input name="subject" id="subject" type="text" value="<?php echo $_smarty_tpl->tpl_vars['EMAIL_TEMPLATE_RESULT']->value['subject'];?>
|
|
" class="inputElement nameField" tabindex="1"></td><td class="fieldValue"><select name="subject_fields" id="subject_fields" class="select2 form-control" onchange="EMAILMaker_EditJs.insertFieldIntoSubject(this.value);"><option value=""><?php echo vtranslate('LBL_SELECT_MODULE_FIELD','EMAILMaker');?>
|
|
</option><optgroup label="<?php echo vtranslate('LBL_COMMON_EMAILINFO','EMAILMaker');?>
|
|
"><?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['SUBJECT_FIELDS']->value),$_smarty_tpl);?>
|
|
</optgroup><?php if ($_smarty_tpl->tpl_vars['TEMPLATEID']->value!=''||$_smarty_tpl->tpl_vars['SELECTMODULE']->value!=''){?><?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['SELECT_MODULE_FIELD_SUBJECT']->value),$_smarty_tpl);?>
|
|
<?php }?></select></td></tr></table></div><?php }?><div class="tab-content"><div class="tab-pane active" id="body_div2" style="margin-bottom: 2em"><textarea name="body" id="body" style="width: 100%; height:700px" class=small tabindex="5"><?php echo $_smarty_tpl->tpl_vars['EMAIL_TEMPLATE_RESULT']->value['body'];?>
|
|
</textarea></div><?php if ($_smarty_tpl->tpl_vars['ITS4YOUSTYLE_FILES']->value!=''){?><div class="tab-pane" id="cssstyle_div2"><?php $_smarty_tpl->tpl_vars['STYLE_DATA'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['STYLE_DATA']->_loop = false;
|
|
$_from = $_smarty_tpl->tpl_vars['STYLES_CONTENT']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['STYLE_DATA']->key => $_smarty_tpl->tpl_vars['STYLE_DATA']->value){
|
|
$_smarty_tpl->tpl_vars['STYLE_DATA']->_loop = true;
|
|
?><div class="hide"><textarea class="CodeMirrorContent" id="CodeMirrorContent<?php echo $_smarty_tpl->tpl_vars['STYLE_DATA']->value['id'];?>
|
|
" style="border: 1px solid black; " class="CodeMirrorTextarea " tabindex="5"><?php echo $_smarty_tpl->tpl_vars['STYLE_DATA']->value['stylecontent'];?>
|
|
</textarea></div><table class="table table-bordered"><thead><tr class="listViewHeaders"><th><div class="pull-left"><a href="index.php?module=ITS4YouStyles&view=Detail&record=<?php echo $_smarty_tpl->tpl_vars['STYLE_DATA']->value['id'];?>
|
|
" target="_blank"><?php echo $_smarty_tpl->tpl_vars['STYLE_DATA']->value['name'];?>
|
|
</a></div><div class="pull-right actions"><a href="index.php?module=ITS4YouStyles&view=Detail&record=<?php echo $_smarty_tpl->tpl_vars['STYLE_DATA']->value['id'];?>
|
|
" target="_blank"><i title="<?php echo vtranslate('LBL_SHOW_COMPLETE_DETAILS',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
" class="icon-th-list alignMiddle"></i></a> <?php if ($_smarty_tpl->tpl_vars['STYLE_DATA']->value['iseditable']=="yes"){?><a href="index.php?module=ITS4YouStyles&view=Edit&record=<?php echo $_smarty_tpl->tpl_vars['STYLE_DATA']->value['id'];?>
|
|
" target="_blank" class="cursorPointer"><i class="icon-pencil alignMiddle" title="<?php echo vtranslate('LBL_EDIT',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
"></i></a><?php }?></div></th></tr></thead><tbody><tr><td id="CodeMirrorContent<?php echo $_smarty_tpl->tpl_vars['STYLE_DATA']->value['id'];?>
|
|
Output" class="cm-s-default"></td></tr></tbody></table><br><?php } ?></div><?php }?></div><script type="text/javascript"> jQuery(document).ready(function () {<?php if ($_smarty_tpl->tpl_vars['ITS4YOUSTYLE_FILES']->value!=''){?>//CKEDITOR.config.contentsCss = [<?php echo $_smarty_tpl->tpl_vars['ITS4YOUSTYLE_FILES']->value;?>
|
|
];
|
|
jQuery('.CodeMirrorContent').each(function (index, Element) {
|
|
var stylecontent = jQuery(Element).val();
|
|
CKEDITOR.addCss(stylecontent);
|
|
});
|
|
<?php }?>
|
|
CKEDITOR.replace('body', {height: '1000'});
|
|
})</script></div></div></div></div><div class="modal-overlay-footer row-fluid"><div class="textAlignCenter "><button class="btn" type="submit" onclick="document.EditView.redirect.value = 'false';"><strong><?php echo vtranslate('LBL_APPLY',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
</strong></button> <button class="btn btn-success" type="submit"><strong><?php echo vtranslate('LBL_SAVE',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
</strong></button><?php if ($_REQUEST['return_view']!=''){?><a class="cancelLink" type="reset" onclick="window.location.href = 'index.php?module=<?php if ($_REQUEST['return_module']!=''){?><?php echo $_REQUEST['return_module'];?>
|
|
<?php }else{ ?>EMAILMaker<?php }?>&view=<?php echo $_REQUEST['return_view'];?>
|
|
<?php if ($_REQUEST['templateid']!=''&&$_REQUEST['return_view']!="List"){?>&templateid=<?php echo $_REQUEST['templateid'];?>
|
|
<?php }?>';"><?php echo vtranslate('LBL_CANCEL',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
</a><?php }else{ ?><a class="cancelLink" type="reset" onclick="window.history.back();"><?php echo vtranslate('LBL_CANCEL',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
</a><?php }?></div></div><div class="hide" style="display: none"><div id="div_vat_block_table"><?php echo $_smarty_tpl->tpl_vars['VATBLOCK_TABLE']->value;?>
|
|
</div><div id="div_charges_block_table"><?php echo $_smarty_tpl->tpl_vars['CHARGESBLOCK_TABLE']->value;?>
|
|
</div><div id="div_company_header_signature"><?php echo $_smarty_tpl->tpl_vars['COMPANY_HEADER_SIGNATURE']->value;?>
|
|
</div><div id="div_company_stamp_signature"><?php echo $_smarty_tpl->tpl_vars['COMPANY_STAMP_SIGNATURE']->value;?>
|
|
</div><div id="div_company_logo"><?php echo $_smarty_tpl->tpl_vars['COMPANYLOGO']->value;?>
|
|
</div></div></form></div><script type="text/javascript">var selectedTab = 'properties';var selectedTab2 = 'body';var module_blocks = [];var selected_module = '<?php echo $_smarty_tpl->tpl_vars['SELECTMODULE']->value;?>
|
|
';var constructedOptionValue;var constructedOptionName;jQuery(document).ready(function () {jQuery.fn.scrollBottom = function () {return jQuery(document).height() - this.scrollTop() - this.height();};var $el = jQuery('.edit-template-content');var $window = jQuery(window);var top = 127;$window.bind("scroll resize", function () {var gap = $window.height() - $el.height() - 20;var scrollTop = $window.scrollTop();if (scrollTop < top - 125) {$el.css({top: (top - scrollTop) + "px",bottom: "auto"});} else {$el.css({top: top + "px",bottom: "auto"});}}).scroll();});</script>
|
|
<?php }} ?>
|