Files
crm.clientright.ru/test/templates_c/v7/5f289d1f8ccf25a3c844268c234fbe6ba392282c.file.WfTaskSendmail.tpl.php

396 lines
21 KiB
PHP

<?php /* Smarty version Smarty-3.1.7, created on 2025-11-21 15:30:13
compiled from "/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Settings/Workflow2/taskforms/WfTaskSendmail.tpl" */ ?>
<?php /*%%SmartyHeaderCode:104172708269205b558be4d9-61647635%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'5f289d1f8ccf25a3c844268c234fbe6ba392282c' =>
array (
0 => '/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/Settings/Workflow2/taskforms/WfTaskSendmail.tpl',
1 => 1711810494,
2 => 'file',
),
),
'nocache_hash' => '104172708269205b558be4d9-61647635',
'function' =>
array (
),
'variables' =>
array (
'attachmentsJAVASCRIPT' => 0,
'script' => 0,
'from' => 0,
'task' => 0,
'attachmentsList' => 0,
'show_emailfrom_checkbox' => 0,
'SMTPSERVER' => 0,
'providerid' => 0,
'label' => 0,
'MAIL_TEMPLATES' => 0,
'title' => 0,
'category' => 0,
'templateid' => 0,
'templatename' => 0,
'jsAttachmentsList' => 0,
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.7',
'unifunc' => 'content_69205b558eb6e',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_69205b558eb6e')) {function content_69205b558eb6e($_smarty_tpl) {?><script src="modules/Workflow2/resources/emailtaskscript.js?v=<?php echo @WORKFLOW2_VERSION;?>
" type="text/javascript" charset="utf-8"></script>
<script src="modules/Workflow2/resources/newemailworkflow.js?v=<?php echo @WORKFLOW2_VERSION;?>
" type="text/javascript" charset="utf-8"></script>
<?php $_smarty_tpl->tpl_vars['script'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['script']->_loop = false;
$_from = $_smarty_tpl->tpl_vars['attachmentsJAVASCRIPT']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['script']->key => $_smarty_tpl->tpl_vars['script']->value){
$_smarty_tpl->tpl_vars['script']->_loop = true;
?><script type="text/javascript"><?php echo $_smarty_tpl->tpl_vars['script']->value;?>
</script><?php } ?>
<div class="SendMailHeadContainer" >
<div style="flex-grow:2;flex-basis:200px;">
<table border="0" cellpadding="5" cellspacing="0" style="width:100%;" class="small newTable sendMailFields">
<?php if ($_smarty_tpl->tpl_vars['from']->value['from_readonly']==true){?>
<tr>
<td class='dvtCellLabel' align="right" width=20% nowrap="nowrap">* From Name</td>
<td class='dvtCellInfo'><?php echo $_smarty_tpl->tpl_vars['from']->value['from_name'];?>
<input type="hidden" name="task[from_name]" value="" id="save_from_name" class="form_input" style='width: 250px;'></td>
</tr>
<tr id="from_row">
<td class='dvtCellLabel' align="right" width=20% nowrap="nowrap"><b><font color=red>*</font> From Mail</b></td>
<td class='dvtCellInfo'><?php echo $_smarty_tpl->tpl_vars['from']->value['from_mail'];?>
<input type="hidden" name="task[from_mail]" value="" id="save_from_mail" class="form_input" style='width: 250px;'></td>
</tr>
<?php }else{ ?>
<tr>
<td class='dvtCellLabel' align="right" width=20% nowrap="nowrap"><b><span style='color:red;'>*</span> <?php echo vtranslate('LBL_SENDER_NAME','Settings:Workflow2');?>
</b></td>
<td class='dvtCellInfo'>
<div class="insertTextfield" data-name="task[from_name]" data-id="from_name"><?php echo $_smarty_tpl->tpl_vars['task']->value['from_name'];?>
</div>
</tr>
<tr id="from_row">
<td class='dvtCellLabel' align="right" width=20% nowrap="nowrap"><b><span style='color:red;'>*</span> <?php echo vtranslate('LBL_SENDER_MAIL','Settings:Workflow2');?>
</b></td>
<td class='dvtCellInfo'>
<div class="insertTextfield" data-name="task[from_mail]" data-id="from_mail" data-options='{"type":"email","delimiter":","}'><?php echo $_smarty_tpl->tpl_vars['task']->value['from_mail'];?>
</div>
</tr>
<?php }?>
<tr>
<td class='dvtCellLabel' style="" align="right" width=20% nowrap="nowrap"><b><span style='color:red;'>*</span> <?php echo vtranslate('LBL_EMAIL_RECIPIENT','Settings:Workflow2');?>
</b></td>
<td class='dvtCellInfo'>
<div class="insertTextfield" data-name="task[recepient]" data-id="recepient" data-options='{"type":"email","delimiter":","}'><?php echo $_smarty_tpl->tpl_vars['task']->value['recepient'];?>
</div>
</td>
</tr>
<tr id="cc_row" style="<?php if ($_smarty_tpl->tpl_vars['task']->value['emailcc']==''){?>display: none;<?php }?>">
<td class='dvtCellLabel' align="right" width=20% nowrap="nowrap"><b> <?php echo vtranslate('LBL_EMAIL_CC','Settings:Workflow2');?>
</b></td>
<td class='dvtCellInfo'>
<div class="insertTextfield" data-name="task[emailcc]" data-id="emailcc" data-options='{"type":"email","delimiter":","}'><?php echo $_smarty_tpl->tpl_vars['task']->value['emailcc'];?>
</div>
</tr>
<tr id="bcc_row" style="<?php if ($_smarty_tpl->tpl_vars['task']->value['emailbcc']==''){?>display: none;<?php }?>">
<td class='dvtCellLabel' align="right" width=20% nowrap="nowrap"><b> <?php echo vtranslate('LBL_EMAIL_BCC','Settings:Workflow2');?>
</b></td>
<td class='dvtCellInfo'>
<div class="insertTextfield" data-name="task[emailbcc]" data-id="emailbcc" data-options='{"type":"email","delimiter":","}'><?php echo $_smarty_tpl->tpl_vars['task']->value['emailbcc'];?>
</div>
</td>
</tr>
<tr id="replyto_row" style="<?php if ($_smarty_tpl->tpl_vars['task']->value['replyto']==''){?>display: none;<?php }?>">
<td class='dvtCellLabel' align="right" width=20% nowrap="nowrap"><b> <?php echo vtranslate('LBL_EMAIL_REPLYTO','Settings:Workflow2');?>
</b></td>
<td class='dvtCellInfo'>
<div class="insertTextfield" data-name="task[replyto]" data-id="emailreplyto" data-options='{"type":"email","delimiter":","}'><?php echo $_smarty_tpl->tpl_vars['task']->value['replyto'];?>
</div>
</td>
</tr>
<tr id="confirmreading_row" style="<?php if ($_smarty_tpl->tpl_vars['task']->value['confirmreading']==''){?>display: none;<?php }?>">
<td class='dvtCellLabel' align="right" width=20% nowrap="nowrap"><b> <?php echo vtranslate('LBL_EMAIL_CONFIRMREADINGTO','Settings:Workflow2');?>
</b></td>
<td class='dvtCellInfo'>
<div class="insertTextfield" data-name="task[confirmreading]" data-id="confirmreading" data-options='{"type":"email","delimiter":","}'><?php echo $_smarty_tpl->tpl_vars['task']->value['confirmreading'];?>
</div>
</td>
</tr>
<tr id="storeid_row" style="<?php if ($_smarty_tpl->tpl_vars['task']->value['storeid']==''){?>display: none;<?php }?>">
<td class='dvtCellLabel' align="right" width=20% nowrap="nowrap"><b> <?php echo vtranslate('Store Mail to','Settings:Workflow2');?>
</b>
<a href="http://shop.stefanwarnat.de/?wf-docu=sendmail#store_mail_to" target="_blank">
<img src='modules/Workflow2/icons/question.png' border="0">
</a>
</td>
<td class='dvtCellInfo'>
<div class="insertTextfield" style="display:inline;" data-name="task[storeid]" data-id="storeid" data-options='{"type":"text","delimiter":","}'><?php echo $_smarty_tpl->tpl_vars['task']->value['storeid'];?>
</div>
</td>
</tr>
<tr>
<td class='dvtCellLabel' align="right" width=20% nowrap="nowrap"></td>
<td class='dvtCellInfo'>
<a href="#" onclick="jQuery(this).hide();jQuery('#cc_row').show();" style="<?php if ($_smarty_tpl->tpl_vars['task']->value['emailcc']!=''){?>display: none;<?php }?>padding-right:30px;">CC</a>
<a href="#" onclick="jQuery(this).hide();jQuery('#bcc_row').show();" style="<?php if ($_smarty_tpl->tpl_vars['task']->value['emailbcc']!=''){?>display: none;<?php }?>padding-right:30px;">BCC</a>
<a href="#" onclick="jQuery(this).hide();jQuery('#replyto_row').show();" style="<?php if ($_smarty_tpl->tpl_vars['task']->value['replyto']!=''){?>display: none;<?php }?>padding-right:30px;">ReplyTo</a>
<a href="#" onclick="jQuery(this).hide();jQuery('#confirmreading_row').show();" style="<?php if ($_smarty_tpl->tpl_vars['task']->value['confirmreading']!=''){?>display: none;<?php }?>padding-right:30px;">Confirm Reading</a>
</td>
</tr>
<tr>
<td class='dvtCellLabel' align="right" width=20% nowrap="nowrap"><b><span style='color:red;'>*</span> <?php echo vtranslate('LBL_EMAIL_SUBJECT','Settings:Workflow2');?>
</b></td>
<td class='dvtCellInfo'>
<div class="insertTextfield" data-name="task[subject]" data-id="subject"><?php echo $_smarty_tpl->tpl_vars['task']->value['subject'];?>
</div>
</td>
</tr>
</table>
</div>
<div style="flex-grow:1;flex-basis:100px;margin-left:10px;">
<div class="accordion" id="accordion2">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
<?php echo vtranslate('E-Mail attachments','Settings:Workflow2');?>
</a>
</div>
<div id="collapseOne" class="accordion-body collapse in">
<div class="accordion-inner">
<?php echo $_smarty_tpl->tpl_vars['attachmentsList']->value;?>
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
<?php echo vtranslate('Options','Settings:Workflow2');?>
</a>
</div>
<div id="collapseTwo" class="accordion-body collapse">
<div class="accordion-inner">
<?php if ($_smarty_tpl->tpl_vars['show_emailfrom_checkbox']->value==true){?>
<label style="line-height:28px;margin:0;">
<input style="display:inline;" id="use_mailserver_from"class="rcSwitch doInit" type="checkbox" name="task[use_mailserver_from]" <?php if ($_smarty_tpl->tpl_vars['task']->value['use_mailserver_from']=='1'){?>checked="checked"<?php }?> value="1"/>
<?php echo vtranslate('Use Sender E-Mail from Mailserver config','Settings:Workflow2');?>
</label>
<?php }else{ ?>
<input type="hidden" name="task[use_mailserver_from]" value="0" />
<?php }?>
<label style="line-height:28px;margin:0;">
<input style="display:inline;" class="rcSwitch doInit" type="checkbox" name="task[trackAccess]" <?php if ($_smarty_tpl->tpl_vars['task']->value['trackAccess']=='1'){?>checked="checked"<?php }?> value="1"/>
<?php echo vtranslate('integrate VtigerCRM Access Tracker','Settings:Workflow2');?>
</label>
<label style="line-height:28px;margin:0;">
<input style="display:inline;" type="checkbox" class="rcSwitch doInit" name="task[attachImages]" <?php if ($_smarty_tpl->tpl_vars['task']->value['attachImages']=='1'){?>checked="checked"<?php }?> value="1"/>
<?php echo vtranslate('directly embed images to mail','Settings:Workflow2');?>
</label>
<label style="line-height:28px;margin:0;">
<input style="display:inline;" type="checkbox" class="rcSwitch doInit" name="task[multiplereceiver]" <?php if ($_smarty_tpl->tpl_vars['task']->value['multiplereceiver']=='1'){?>checked="checked"<?php }?> value="1"/>
<?php echo vtranslate('single mail to all receiver','Settings:Workflow2');?>
</label>
<label style="line-height:28px;margin:0;">
<input style="display:inline;" type="checkbox" class="rcSwitch doInit" name="task[unlimitedretry]" <?php if ($_smarty_tpl->tpl_vars['task']->value['unlimitedretry']=='1'){?>checked="checked"<?php }?> value="1"/>
<?php echo vtranslate('unlimited retry on error (deactive = 6 Retry)','Settings:Workflow2');?>
</label>
<label style="line-height:28px;margin:0;">
<input style="display:inline;" type="checkbox" class="rcSwitch doInit" name="task[interactivemail]" <?php if ($_smarty_tpl->tpl_vars['task']->value['interactivemail']=='1'){?>checked="checked"<?php }?> value="1"/>
<?php echo vtranslate('request user confirmation before sending','Settings:Workflow2');?>
</label>
<?php if (!empty($_smarty_tpl->tpl_vars['SMTPSERVER']->value)){?>
<p><?php echo vtranslate('Use this SMTP Server to send','Settings:Workflow2');?>
</p>
<select name="task[provider]">
<option value=""><?php echo vtranslate('Default SMTP Server','Settings:Workflow2');?>
</option>
<?php $_smarty_tpl->tpl_vars['label'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['label']->_loop = false;
$_smarty_tpl->tpl_vars['providerid'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['SMTPSERVER']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['label']->key => $_smarty_tpl->tpl_vars['label']->value){
$_smarty_tpl->tpl_vars['label']->_loop = true;
$_smarty_tpl->tpl_vars['providerid']->value = $_smarty_tpl->tpl_vars['label']->key;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['providerid']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['task']->value['provider']==$_smarty_tpl->tpl_vars['providerid']->value){?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['label']->value;?>
</option>
<?php } ?>
</select>
<?php }?>
</div>
</div>
</div>
</div>
</div>
</div>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="small">
<tr>
<td style='padding-top: 10px;width:180px;'>
<input type="hidden" id="templateVarContainer" value="" />
<input type="button" class="btn btn-primary" value="<?php echo vtranslate('insert Fieldcontent','Settings:Workflow2');?>
" id="btn_insert_variable">
</td>
<td style="padding-top: 10px;">
<ul class="nav nav-pills" style="margin-bottom: 0;<?php if ($_smarty_tpl->tpl_vars['task']->value['storeid']!=''){?>display: none;<?php }?>">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
Options
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li style="<?php if ($_smarty_tpl->tpl_vars['task']->value['storeid']!=''){?>display: none;<?php }?>"><a href="#" onclick="jQuery(this).hide();jQuery('#storeid_row').show();">change Record to this mail will be stored</a></li>
</ul>
</li>
</ul>
</td>
<td>
</td>
<td style='padding-top: 10px;'>
<div style="float: right;">
<b><?php echo vtranslate('LBL_SELECT_MAIL_TEMPLATE','Settings:Workflow2');?>
&nbsp</b>
<select name="task[mailtemplate]" class="select2" style="width:300px;">
<option value="">- none -</option>
<?php $_smarty_tpl->tpl_vars['category'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['category']->_loop = false;
$_smarty_tpl->tpl_vars['title'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['MAIL_TEMPLATES']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['category']->key => $_smarty_tpl->tpl_vars['category']->value){
$_smarty_tpl->tpl_vars['category']->_loop = true;
$_smarty_tpl->tpl_vars['title']->value = $_smarty_tpl->tpl_vars['category']->key;
?>
<optgroup label="<?php echo $_smarty_tpl->tpl_vars['title']->value;?>
">
<?php $_smarty_tpl->tpl_vars['templatename'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['templatename']->_loop = false;
$_smarty_tpl->tpl_vars['templateid'] = new Smarty_Variable;
$_from = $_smarty_tpl->tpl_vars['category']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['templatename']->key => $_smarty_tpl->tpl_vars['templatename']->value){
$_smarty_tpl->tpl_vars['templatename']->_loop = true;
$_smarty_tpl->tpl_vars['templateid']->value = $_smarty_tpl->tpl_vars['templatename']->key;
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['templateid']->value;?>
" <?php if ($_smarty_tpl->tpl_vars['task']->value['mailtemplate']==$_smarty_tpl->tpl_vars['templateid']->value){?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['templatename']->value;?>
</option>
<?php } ?>
</optgroup>
<?php } ?>
</select>
<a href="http://shop.stefanwarnat.de/?wf-docu=sendmail" target="_blank">
<img src='modules/Workflow2/icons/question.png' border="0">
</a>
</div>
</td>
</tr>
</table>
<script type="text/javascript" src="libraries/jquery/ckeditor/ckeditor.js"></script>
<textarea style="width:90%;height:200px;" name="task[content]" rows="55" cols="40" id="save_content" class="detailedViewTextBox"> <?php echo $_smarty_tpl->tpl_vars['task']->value['content'];?>
</textarea>
<script type="text/javascript" defer="1">
var textAreaName = 'save_content';
CKEDITOR.config.protectedSource.push(/<\?php[\s\S]*?\?<?php ?>>/g);
CKEDITOR.replace( textAreaName, {
extraPlugins : 'uicolor',
uiColor: '#dfdff1',
protectedSource: [/<tex[\s\S]*?\/tex>/g]
} );
var oCKeditor = CKEDITOR.instances[textAreaName];
/* var available_attachments = <?php echo json_encode($_smarty_tpl->tpl_vars['jsAttachmentsList']->value);?>
;*/
/* var attachmentFiles = <?php echo $_smarty_tpl->tpl_vars['task']->value['attachments'];?>
; */
</script>
<style type="text/css">
table.sendMailFields td {
padding: 5px;
}
table.sendMailFields tr:hover td.dvtCellInfo {
background-color:#f8f8f8;
color:#000;
}
table.sendMailFields tr:hover td.dvtCellInfo input, table.sendMailFields tr td.dvtCellInfo input:fo {
color:#000;
}
table.sendMailFields td.dvtCellInfo {
border-top:1px solid #ddd !important;
border-bottom:1px solid #ddd !important;
border-right:1px solid #ddd !important;
padding: 2px 0 2px 5px;
}
table.sendMailFields td.dvtCellLabel {
border-top:1px solid #ddd !important;
border-bottom:1px solid #ddd !important;
padding: 2px 5px 2px 0;
}
table.sendMailFields span.templateFieldSpan {
border:none;
box-shadow: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
border-radius: 0;
-webkit-border-radius: 0;
-moz-border-radius: 0;
}
table.sendMailFields span.templateFieldBtn img {
margin-bottom:-8px;
}
table.sendMailFields span.templateFieldBtn {
border-radius: 0;
-webkit-border-radius: 0;
-moz-border-radius: 0;
margin:-2px 0 0px 0;
height:30px;
}
table.sendMailFields span.templateFieldSpan input {
border:none;
box-shadow: none;
-webkit-box-shadow: none;
-moz-box-shadow: none;
padding:5px 30px 3px 0px;
background-color:transparent;
}
div#mail_files {
margin-top:0 !important;
}
.accordion-inner {
padding:9px 5px;
}
.accordion-heading {
}
.accordion-heading {
background-color:#0060bf;
color:white;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
padding:5px 10px;
}
div.SendMailHeadContainer {
display:flex;
}
.accordion-body.in.collapse {
height:auto !important;
}
</style><?php }} ?>