Files
crm.clientright.ru/test/templates_c/v7/89488679bbd6194c6c75426b7806d5f57720f70d.file.Settings.tpl.php

103 lines
10 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/tabs/Settings.tpl" */ ?>
<?php /*%%SmartyHeaderCode:143985009069205b8cea86e0-82237131%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'89488679bbd6194c6c75426b7806d5f57720f70d' =>
array (
0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/EMAILMaker/tabs/Settings.tpl',
1 => 1715769019,
2 => 'file',
),
),
'nocache_hash' => '143985009069205b8cea86e0-82237131',
'function' =>
array (
),
'variables' =>
array (
'MODULE' => 0,
'EMAIL_TEMPLATE_RESULT' => 0,
'THEME_MODE' => 0,
'EMAIL_CATEGORY' => 0,
'DEFAULT_FROM_OPTIONS' => 0,
'SELECTED_DEFAULT_FROM' => 0,
'IGNORE_PICKLIST_VALUES' => 0,
'STATUS' => 0,
'IS_ACTIVE' => 0,
'DECIMALS' => 0,
'margin_input_width' => 0,
'IS_DEFAULT_DV_CHECKED' => 0,
'IS_DEFAULT_LV_CHECKED' => 0,
'ORDER' => 0,
'LOAD_RELATED_DOCUMENTS' => 0,
'DOCUMENTS_FOLDERS' => 0,
'DOCUMENT_FOLDER' => 0,
'RELATED_DOCUMENTS_FOLDERS' => 0,
'DOCUMENTS_FIELDS' => 0,
'DOCUMENT_FIELD_NAME' => 0,
'RELATED_DOCUMENTS_FIELDS' => 0,
'DOCUMENT_FIELD_LABEL' => 0,
'RELATED_MODULES' => 0,
'RelMod' => 0,
'RELATED_DOCUMENTS_FIELD' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.7',
'unifunc' => 'content_69205b8cebd2a',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_69205b8cebd2a')) {function content_69205b8cebd2a($_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="tab-pane" id="editTabSettings"><br><div id="settings_div"><div class="form-group"><label class="control-label fieldLabel col-sm-3" style="font-weight: normal"><?php echo vtranslate('LBL_DESCRIPTION',$_smarty_tpl->tpl_vars['MODULE']->value);?>
:</label><div class="controls col-sm-9"><input name="description" type="text" value="<?php echo $_smarty_tpl->tpl_vars['EMAIL_TEMPLATE_RESULT']->value['description'];?>
" class="inputElement" tabindex="2"></div></div><?php if ($_smarty_tpl->tpl_vars['THEME_MODE']->value!="true"){?><div class="form-group"><label class="control-label fieldLabel col-sm-3" style="font-weight: normal"><?php echo vtranslate('Category');?>
:</label><div class="controls col-sm-9"><input type="text" name="email_category" value="<?php echo $_smarty_tpl->tpl_vars['EMAIL_CATEGORY']->value;?>
" class="inputElement"/></div></div><div class="form-group"><label class="control-label fieldLabel col-sm-3" style="font-weight: normal"><?php echo vtranslate('LBL_DEFAULT_FROM','EMAILMaker');?>
:</label><div class="controls col-sm-9"><select name="default_from_email" class="select2 form-control"><?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['DEFAULT_FROM_OPTIONS']->value,'selected'=>$_smarty_tpl->tpl_vars['SELECTED_DEFAULT_FROM']->value),$_smarty_tpl);?>
</select></div></div><div class="form-group"><label class="control-label fieldLabel col-sm-3" style="font-weight: normal"><?php echo vtranslate('LBL_IGNORE_PICKLIST_VALUES',$_smarty_tpl->tpl_vars['MODULE']->value);?>
:</label><div class="controls col-sm-9"><input type="text" name="ignore_picklist_values" value="<?php echo $_smarty_tpl->tpl_vars['IGNORE_PICKLIST_VALUES']->value;?>
" class="inputElement"/></div></div><div class="form-group"><label class="control-label fieldLabel col-sm-3" style="font-weight: normal"><?php echo vtranslate('LBL_STATUS',$_smarty_tpl->tpl_vars['MODULE']->value);?>
:</label><div class="controls col-sm-9"><select name="is_active" id="is_active" class="select2 form-control" onchange="EMAILMaker_EditJs.templateActiveChanged(this);"><?php echo smarty_function_html_options(array('options'=>$_smarty_tpl->tpl_vars['STATUS']->value,'selected'=>$_smarty_tpl->tpl_vars['IS_ACTIVE']->value),$_smarty_tpl);?>
</select></div></div><div class="form-group"><label class="control-label fieldLabel col-sm-3" style="font-weight: normal"><?php echo vtranslate('LBL_DECIMALS',$_smarty_tpl->tpl_vars['MODULE']->value);?>
:</label><div class="controls col-sm-9"><table class="table table-bordered"><tr><td align="right" nowrap><?php echo vtranslate('LBL_DEC_POINT',$_smarty_tpl->tpl_vars['MODULE']->value);?>
</td><td><input type="text" maxlength="2" name="dec_point" class="inputElement" value="<?php echo $_smarty_tpl->tpl_vars['DECIMALS']->value['point'];?>
" style="width:<?php echo $_smarty_tpl->tpl_vars['margin_input_width']->value;?>
"/></td></tr><tr><td align="right" nowrap><?php echo vtranslate('LBL_DEC_DECIMALS',$_smarty_tpl->tpl_vars['MODULE']->value);?>
</td><td><input type="text" maxlength="2" name="dec_decimals" class="inputElement" value="<?php echo $_smarty_tpl->tpl_vars['DECIMALS']->value['decimals'];?>
" style="width:<?php echo $_smarty_tpl->tpl_vars['margin_input_width']->value;?>
"/></td></tr><tr><td align="right" nowrap><?php echo vtranslate('LBL_DEC_THOUSANDS',$_smarty_tpl->tpl_vars['MODULE']->value);?>
</td><td><input type="text" maxlength="2" name="dec_thousands" class="inputElement" value="<?php echo $_smarty_tpl->tpl_vars['DECIMALS']->value['thousands'];?>
" style="width:<?php echo $_smarty_tpl->tpl_vars['margin_input_width']->value;?>
"/></td></tr></table></div></div><div class="form-group"><label class="control-label fieldLabel col-sm-3" style="font-weight: normal"><?php echo vtranslate('LBL_SETASDEFAULT',$_smarty_tpl->tpl_vars['MODULE']->value);?>
:</label><div class="controls col-sm-9"><?php echo vtranslate('LBL_FOR_DV',$_smarty_tpl->tpl_vars['MODULE']->value);?>
&nbsp;&nbsp;<input type="checkbox" id="is_default_dv" name="is_default_dv" <?php echo $_smarty_tpl->tpl_vars['IS_DEFAULT_DV_CHECKED']->value;?>
/>&nbsp;&nbsp;<?php echo vtranslate('LBL_FOR_LV',$_smarty_tpl->tpl_vars['MODULE']->value);?>
&nbsp;&nbsp;<input type="checkbox" id="is_default_lv" name="is_default_lv" <?php echo $_smarty_tpl->tpl_vars['IS_DEFAULT_LV_CHECKED']->value;?>
/><input type="hidden" name="tmpl_order" value="<?php echo $_smarty_tpl->tpl_vars['ORDER']->value;?>
"/></div></div><div class="form-group"><label class="control-label fieldLabel col-sm-3" style="font-weight: normal"><?php echo vtranslate('LBL_LOAD_RELATED_DOCUMENTS',$_smarty_tpl->tpl_vars['MODULE']->value);?>
:</label><div class="controls col-sm-9"><input type="hidden" name="load_related_documents" value="0"/><input type="checkbox" id="load_related_documents" name="load_related_documents" <?php if ($_smarty_tpl->tpl_vars['LOAD_RELATED_DOCUMENTS']->value){?>checked="checked"<?php }?>/></div></div><div class="form-group"><label class="control-label fieldLabel col-sm-3" style="font-weight: normal"><?php echo vtranslate('LBL_RELATED_DOCUMENTS_BY_FOLDER',$_smarty_tpl->tpl_vars['MODULE']->value);?>
:</label><div class="controls col-sm-9"><select name="folders_related_documents[]" id="folders_related_documents" class="select2 form-control inputElement" multiple="multiple"><?php $_smarty_tpl->tpl_vars['DOCUMENT_FOLDER'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['DOCUMENT_FOLDER']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['DOCUMENTS_FOLDERS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['DOCUMENT_FOLDER']->key => $_smarty_tpl->tpl_vars['DOCUMENT_FOLDER']->value){
$_smarty_tpl->tpl_vars['DOCUMENT_FOLDER']->_loop = true;
?><option value="<?php echo $_smarty_tpl->tpl_vars['DOCUMENT_FOLDER']->value->getId();?>
" <?php if (in_array($_smarty_tpl->tpl_vars['DOCUMENT_FOLDER']->value->getId(),$_smarty_tpl->tpl_vars['RELATED_DOCUMENTS_FOLDERS']->value)){?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['DOCUMENT_FOLDER']->value->getName();?>
</option><?php } ?></select></div></div><div class="form-group"><label class="control-label fieldLabel col-sm-3" style="font-weight: normal"><?php echo vtranslate('LBL_RELATED_DOCUMENTS_BY_FIELD',$_smarty_tpl->tpl_vars['MODULE']->value);?>
:</label><div class="controls col-sm-9"><select name="fields_related_documents[]" id="fields_related_documents" class="select2 form-control inputElement" multiple="multiple"><?php $_smarty_tpl->tpl_vars['DOCUMENT_FIELD_LABEL'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['DOCUMENT_FIELD_LABEL']->_loop = false;
$_smarty_tpl->tpl_vars['DOCUMENT_FIELD_NAME'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['DOCUMENTS_FIELDS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['DOCUMENT_FIELD_LABEL']->key => $_smarty_tpl->tpl_vars['DOCUMENT_FIELD_LABEL']->value){
$_smarty_tpl->tpl_vars['DOCUMENT_FIELD_LABEL']->_loop = true;
$_smarty_tpl->tpl_vars['DOCUMENT_FIELD_NAME']->value = $_smarty_tpl->tpl_vars['DOCUMENT_FIELD_LABEL']->key;
?><option value="<?php echo $_smarty_tpl->tpl_vars['DOCUMENT_FIELD_NAME']->value;?>
" <?php if (in_array($_smarty_tpl->tpl_vars['DOCUMENT_FIELD_NAME']->value,$_smarty_tpl->tpl_vars['RELATED_DOCUMENTS_FIELDS']->value)){?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['DOCUMENT_FIELD_LABEL']->value;?>
</option><?php } ?><?php $_smarty_tpl->tpl_vars['RelMod'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['RelMod']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['RELATED_MODULES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['RelMod']->key => $_smarty_tpl->tpl_vars['RelMod']->value){
$_smarty_tpl->tpl_vars['RelMod']->_loop = true;
?><?php $_smarty_tpl->tpl_vars['RELATED_DOCUMENTS_FIELD'] = new Smarty_variable(implode('|',array($_smarty_tpl->tpl_vars['RelMod']->value[3],$_smarty_tpl->tpl_vars['RelMod']->value[0])), null, 0);?><option value="<?php echo $_smarty_tpl->tpl_vars['RELATED_DOCUMENTS_FIELD']->value;?>
" <?php if (in_array($_smarty_tpl->tpl_vars['RELATED_DOCUMENTS_FIELD']->value,$_smarty_tpl->tpl_vars['RELATED_DOCUMENTS_FIELDS']->value)){?>selected="selected"<?php }?> data-module="<?php echo $_smarty_tpl->tpl_vars['RelMod']->value[3];?>
"><?php echo $_smarty_tpl->tpl_vars['RelMod']->value[1];?>
(<?php echo $_smarty_tpl->tpl_vars['RelMod']->value[2];?>
)</option><?php } ?></select></div></div><?php }?></div></div><?php }} ?>