123 lines
13 KiB
PHP
123 lines
13 KiB
PHP
<?php /* Smarty version Smarty-3.1.7, created on 2025-11-21 15:30:47
|
|
compiled from "/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/EMAILMaker/Detail.tpl" */ ?>
|
|
<?php /*%%SmartyHeaderCode:43953371669205b77d25ef8-39898725%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
|
|
$_valid = $_smarty_tpl->decodeProperties(array (
|
|
'file_dependency' =>
|
|
array (
|
|
'54c985d94d00b10d6a5d37f4fb1fcdafd17f3689' =>
|
|
array (
|
|
0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/EMAILMaker/Detail.tpl',
|
|
1 => 1715769019,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'nocache_hash' => '43953371669205b77d25ef8-39898725',
|
|
'function' =>
|
|
array (
|
|
),
|
|
'variables' =>
|
|
array (
|
|
'TEMPLATEID' => 0,
|
|
'PARENTTAB' => 0,
|
|
'TEMPLATENAME' => 0,
|
|
'DESCRIPTION' => 0,
|
|
'MODULENAME' => 0,
|
|
'IS_ACTIVE' => 0,
|
|
'IS_DEFAULT' => 0,
|
|
'MODULE' => 0,
|
|
'ISSTYLESACTIVE' => 0,
|
|
'STYLES_LIST' => 0,
|
|
'style_data' => 0,
|
|
'ISDOCUMENTSACTIVE' => 0,
|
|
'DOCUMENTS_RECORDS' => 0,
|
|
'IS_DELETABLE' => 0,
|
|
'DOCUMENTS_HEADERS' => 0,
|
|
'WIDTHTYPE' => 0,
|
|
'HEADER_LABEL' => 0,
|
|
'DOCUMENTS_RECORD' => 0,
|
|
'HEADER_FIELD' => 0,
|
|
'SUBJECT' => 0,
|
|
'BODY' => 0,
|
|
),
|
|
'has_nocache_code' => false,
|
|
'version' => 'Smarty-3.1.7',
|
|
'unifunc' => 'content_69205b77d451f',
|
|
),false); /*/%%SmartyHeaderCode%%*/?>
|
|
<?php if ($_valid && !is_callable('content_69205b77d451f')) {function content_69205b77d451f($_smarty_tpl) {?>
|
|
<div class="detailview-content container-fluid"><div class="details row"><form id="detailView" method="post" action="index.php" name="etemplatedetailview" onsubmit="VtigerJS_DialogBox.block();"><input type="hidden" name="action" value=""><input type="hidden" name="view" value=""><input type="hidden" name="module" value="EMAILMaker"><input type="hidden" name="retur_module" value="EMAILMaker"><input type="hidden" name="return_action" value="EMAILMaker"><input type="hidden" name="return_view" value="Detail"><input type="hidden" name="record" value="<?php echo $_smarty_tpl->tpl_vars['TEMPLATEID']->value;?>
|
|
"><input type="hidden" name="templateid" value="<?php echo $_smarty_tpl->tpl_vars['TEMPLATEID']->value;?>
|
|
"><input type="hidden" name="parenttab" value="<?php echo $_smarty_tpl->tpl_vars['PARENTTAB']->value;?>
|
|
"><input type="hidden" name="isDuplicate" value="false"><input type="hidden" name="subjectChanged" value=""><input id="recordId" value="<?php echo $_smarty_tpl->tpl_vars['TEMPLATEID']->value;?>
|
|
" type="hidden"><div class="col-lg-12"><div class="left-block col-lg-4"><div class="summaryView"><div class="summaryViewHeader"><h4 class="display-inline-block"><?php echo vtranslate('LBL_TEMPLATE_INFORMATIONS','EMAILMaker');?>
|
|
</h4></div><div class="summaryViewFields"><div class="recordDetails"><table class="summary-table no-border"><tbody><tr class="summaryViewEntries"><td class="fieldLabel"><label class="muted textOverflowEllipsis"><?php echo vtranslate('LBL_EMAIL_NAME','EMAILMaker');?>
|
|
</label></td><td class="fieldValue"><?php echo $_smarty_tpl->tpl_vars['TEMPLATENAME']->value;?>
|
|
</td></tr><tr class="summaryViewEntries"><td class="fieldLabel"><label class="muted textOverflowEllipsis"><?php echo vtranslate('LBL_DESCRIPTION','EMAILMaker');?>
|
|
</label></td><td class="fieldValue" valign=top><?php echo $_smarty_tpl->tpl_vars['DESCRIPTION']->value;?>
|
|
</td></tr><?php if ($_smarty_tpl->tpl_vars['MODULENAME']->value!=''){?><tr class="summaryViewEntries"><td class="fieldLabel"><label class="muted textOverflowEllipsis"><?php echo vtranslate('LBL_MODULENAMES','EMAILMaker');?>
|
|
</label></td><td class="fieldValue" valign=top><?php echo $_smarty_tpl->tpl_vars['MODULENAME']->value;?>
|
|
</td></tr><?php }?><tr class="summaryViewEntries"><td class="fieldLabel"><label class="muted textOverflowEllipsis"><?php echo vtranslate('Status');?>
|
|
</label></td><td class="fieldValue" valign=top><?php echo $_smarty_tpl->tpl_vars['IS_ACTIVE']->value;?>
|
|
</td></tr><tr class="summaryViewEntries"><td class="fieldLabel"><label class="muted textOverflowEllipsis"><?php echo vtranslate('LBL_SETASDEFAULT','EMAILMaker');?>
|
|
</label></td><td class="fieldValue" valign=top><?php echo $_smarty_tpl->tpl_vars['IS_DEFAULT']->value;?>
|
|
</td></tr></tbody></table></div></div></div><br><?php if ($_smarty_tpl->tpl_vars['MODULENAME']->value!=''){?><div class="summaryView"><div class="summaryViewHeader"><h4 class="display-inline-block"><?php echo vtranslate('LBL_DISPLAY_TAB',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
</h4><div class="pull-right"><button type="button" class="btn btn-default editDisplayConditions" data-url="index.php?module=EMAILMaker&view=EditDisplayConditions&record=<?php echo $_smarty_tpl->tpl_vars['TEMPLATEID']->value;?>
|
|
"> <?php echo vtranslate('LBL_EDIT',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
<?php echo vtranslate('LBL_CONDITIONS',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
</button></div></div><div class="summaryViewFields"><div class="recordDetails"><?php echo $_smarty_tpl->getSubTemplate (vtemplate_path('DetailDisplayConditions.tpl',$_smarty_tpl->tpl_vars['MODULE']->value), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
|
|
</div></div></div><br><?php }?><?php if ($_smarty_tpl->tpl_vars['ISSTYLESACTIVE']->value=="yes"){?><div class="summaryView"><div class="summaryViewHeader"><h4 class="display-inline-block"><?php echo vtranslate('LBL_CSS_STYLE_TAB',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
</h4><div class="pull-right"><button type="button" class="btn btn-default addButton addStyleContentBtn" data-modulename="ITS4YouStyles"><?php echo vtranslate('LBL_ADD');?>
|
|
<?php echo vtranslate('SINGLE_ITS4YouStyles','ITS4YouStyles');?>
|
|
</button> <button type="button" class="btn btn-default addButton selectTemplateRelation" data-modulename="ITS4YouStyles"> <?php echo vtranslate('LBL_SELECT');?>
|
|
<?php echo vtranslate('SINGLE_ITS4YouStyles','ITS4YouStyles');?>
|
|
</button></div></div><br><div class="summaryWidgetContainer noContent"><?php if ($_smarty_tpl->tpl_vars['STYLES_LIST']->value){?><div id="table-content" class="table-container"><table id="listview-table" class="table listview-table"><thead><tr class="listViewContentHeader"><th style="width:55px;"></th><th nowrap><?php echo vtranslate('Name','ITS4YouStyles');?>
|
|
</th><th nowrap><?php echo vtranslate('Priority','ITS4YouStyles');?>
|
|
</th></tr></thead><tbody class="overflow-y"><?php $_smarty_tpl->tpl_vars['style_data'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['style_data']->_loop = false;
|
|
$_from = $_smarty_tpl->tpl_vars['STYLES_LIST']->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;
|
|
?><tr class="" data-id="<?php echo $_smarty_tpl->tpl_vars['style_data']->value['id'];?>
|
|
" data-module="ITS4YouStyles"><td style="width:55px"><?php if ($_smarty_tpl->tpl_vars['style_data']->value['iseditable']=="yes"){?><span class="actionImages"> <a name="styleEdit" data-url="index.php?module=ITS4YouStyles&view=Edit&record=<?php echo $_smarty_tpl->tpl_vars['style_data']->value['id'];?>
|
|
"><i title="Edit" class="fa fa-pencil"></i></a> <a class="relationDelete"><i title="<?php echo vtranslate('LBL_UNLINK',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
" class="vicon-linkopen"></i></a></span><?php }?></td><td class="listViewEntryValue textOverflowEllipsis " width="%" nowrap><a name="styleEdit" data-url="index.php?module=ITS4YouStyles&view=Detail&record=<?php echo $_smarty_tpl->tpl_vars['style_data']->value['id'];?>
|
|
"><?php echo $_smarty_tpl->tpl_vars['style_data']->value['name'];?>
|
|
</a></td><td class="listViewEntryValue textOverflowEllipsis " width="%" nowrap><?php echo $_smarty_tpl->tpl_vars['style_data']->value['priority'];?>
|
|
</td></tr><?php } ?></tbody></table></div><?php }else{ ?><p class="textAlignCenter"><?php echo vtranslate('LBL_NO_RELATED',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
<?php echo vtranslate('LBL_STYLES',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
</p><?php }?></div></div><br><?php }?><?php if ($_smarty_tpl->tpl_vars['ISDOCUMENTSACTIVE']->value=="yes"){?><div class="summaryView"><div class="summaryViewHeader"><h4 class="display-inline-block"><?php echo vtranslate('Documents',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
</h4><div class="pull-right"><button type="button" class="btn btn-default addButton selectTemplateRelation" data-modulename="Documents"> <?php echo vtranslate('LBL_SELECT');?>
|
|
<?php echo vtranslate('SINGLE_Documents','Documents');?>
|
|
</button></div></div><br><div class="summaryWidgetContainer noContent"><?php if ($_smarty_tpl->tpl_vars['DOCUMENTS_RECORDS']->value!=''){?><div id="table-content" class="table-container"><table id="listview-table" class="table listview-table"><thead><tr class="listViewContentHeader"><?php if ($_smarty_tpl->tpl_vars['IS_DELETABLE']->value){?><th style="width:20px"></th><?php }?><?php $_smarty_tpl->tpl_vars['HEADER_LABEL'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['HEADER_LABEL']->_loop = false;
|
|
$_smarty_tpl->tpl_vars['HEADER_FIELD'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->tpl_vars['DOCUMENTS_HEADERS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
$_smarty_tpl->tpl_vars['HEADER_LABEL']->total= $_smarty_tpl->_count($_from);
|
|
$_smarty_tpl->tpl_vars['HEADER_LABEL']->iteration=0;
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['HEADER_LABEL']->key => $_smarty_tpl->tpl_vars['HEADER_LABEL']->value){
|
|
$_smarty_tpl->tpl_vars['HEADER_LABEL']->_loop = true;
|
|
$_smarty_tpl->tpl_vars['HEADER_FIELD']->value = $_smarty_tpl->tpl_vars['HEADER_LABEL']->key;
|
|
$_smarty_tpl->tpl_vars['HEADER_LABEL']->iteration++;
|
|
$_smarty_tpl->tpl_vars['HEADER_LABEL']->last = $_smarty_tpl->tpl_vars['HEADER_LABEL']->iteration === $_smarty_tpl->tpl_vars['HEADER_LABEL']->total;
|
|
$_smarty_tpl->tpl_vars['smarty']->value['foreach']["docforeach"]['last'] = $_smarty_tpl->tpl_vars['HEADER_LABEL']->last;
|
|
?><th <?php if ($_smarty_tpl->getVariable('smarty')->value['foreach']['docforeach']['last']){?> colspan="2" <?php }?> nowrap class="<?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;?>
|
|
"><?php echo vtranslate($_smarty_tpl->tpl_vars['HEADER_LABEL']->value,$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
</th><?php } ?></tr></thead><tbody class="overflow-y"><?php $_smarty_tpl->tpl_vars['DOCUMENTS_RECORD'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['DOCUMENTS_RECORD']->_loop = false;
|
|
$_from = $_smarty_tpl->tpl_vars['DOCUMENTS_RECORDS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['DOCUMENTS_RECORD']->key => $_smarty_tpl->tpl_vars['DOCUMENTS_RECORD']->value){
|
|
$_smarty_tpl->tpl_vars['DOCUMENTS_RECORD']->_loop = true;
|
|
?><tr class="listViewEntries" data-module="Documents" data-id="<?php echo $_smarty_tpl->tpl_vars['DOCUMENTS_RECORD']->value['id'];?>
|
|
" data-recordurl="index.php?module=Documents&view=Detail&record=<?php echo $_smarty_tpl->tpl_vars['DOCUMENTS_RECORD']->value['id'];?>
|
|
"><?php if ($_smarty_tpl->tpl_vars['IS_DELETABLE']->value){?><td nowrap style="width:20px"><span class="actionImages"><a class="relationDelete"><i title="<?php echo vtranslate('LBL_UNLINK',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
" class="vicon-linkopen alignMiddle"></i></a></span></td><?php }?><?php $_smarty_tpl->tpl_vars['HEADER_LABEL'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['HEADER_LABEL']->_loop = false;
|
|
$_smarty_tpl->tpl_vars['HEADER_FIELD'] = new Smarty_Variable;
|
|
$_from = $_smarty_tpl->tpl_vars['DOCUMENTS_HEADERS']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
|
|
foreach ($_from as $_smarty_tpl->tpl_vars['HEADER_LABEL']->key => $_smarty_tpl->tpl_vars['HEADER_LABEL']->value){
|
|
$_smarty_tpl->tpl_vars['HEADER_LABEL']->_loop = true;
|
|
$_smarty_tpl->tpl_vars['HEADER_FIELD']->value = $_smarty_tpl->tpl_vars['HEADER_LABEL']->key;
|
|
?><td class="<?php echo $_smarty_tpl->tpl_vars['WIDTHTYPE']->value;?>
|
|
" nowrap><?php echo $_smarty_tpl->tpl_vars['DOCUMENTS_RECORD']->value[$_smarty_tpl->tpl_vars['HEADER_FIELD']->value];?>
|
|
</td><?php } ?></tr><?php } ?></tbody></table></div><?php }else{ ?><p class="textAlignCenter"><?php echo vtranslate('LBL_NO_RELATED',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
<?php echo vtranslate('Documents',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
</p><?php }?></div></div><br><?php }?></div><div class="middle-block col-lg-8"><div class="summaryView"><div class="summaryViewFields"><div class="recordDetails"><b><?php echo vtranslate('LBL_EMAIL_SUBJECT',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
:</b> <?php echo $_smarty_tpl->tpl_vars['SUBJECT']->value;?>
|
|
</div></div></div><div id="ContentEditorTabs"><ul class="nav nav-pills"><li class="active" data-type="body"><a href="#body_div2" aria-expanded="false" style="margin-right: 5px" data-toggle="tab"><?php echo vtranslate('LBL_BODY',$_smarty_tpl->tpl_vars['MODULE']->value);?>
|
|
</a></li></ul></div><div class="tab-content"><div class="tab-pane active" id="body_div2"><div id="previewcontent_body" class="hide"><?php echo $_smarty_tpl->tpl_vars['BODY']->value;?>
|
|
</div><iframe id="preview_body" class="col-lg-12" style="height:1200px;"></iframe></div></div></div></div></form></div></div><script type="text/javascript">jQuery(document).ready(function () {EMAILMaker_Detail_Js.setPreviewContent('body');});</script><?php }} ?>
|