Example #1
0
>
				<td colspan="2">&nbsp;</td>
			</tr>

			<tr class="adm-detail-required-field hidden-when-show-template-list" <?php 
    echo empty($str_MESSAGE) ? 'style="display: none;"' : '';
    ?>
>
				<td colspan="2" align="left">
					<div class="adm-detail-content-item-block">
						<span class="adm-detail-content-item-block-span"><?php 
    echo GetMessage("sender_chain_edit_field_message");
    ?>
</span>
						<?php 
    echo \Bitrix\Sender\TemplateTable::initEditor(array('FIELD_VALUE' => $str_MESSAGE, 'HAVE_USER_ACCESS' => $isUserHavePhpAccess));
    ?>
						<input type="hidden" name="IS_TEMPLATE_LIST_SHOWN" id="IS_TEMPLATE_LIST_SHOWN" value="<?php 
    echo empty($str_MESSAGE) ? "Y" : "N";
    ?>
">
					</div>
				</td>
			</tr>


			<tr class="hidden-when-show-template-list" <?php 
    echo empty($str_MESSAGE) ? 'style="display: none;"' : '';
    ?>
>
				<td colspan="2">&nbsp;</td>
?>
</span>
					</span>
				</div>
			</div>

			<div id="SENDER_TRIGGER_CHAIN_CONTAINER" class="trigger_chain">
				<?php 
$i = 0;
foreach ($chainFieldsList as $chain) {
    $i++;
    echo str_replace(array('%SENDER_LETTER_TEMPLATE_BODY_NUM%', '%SENDER_LETTER_TEMPLATE_MESSAGE%'), array($i, \Bitrix\Sender\TemplateTable::initEditor(array('FIELD_NAME' => 'CHAIN_MESSAGE_' . $i, 'FIELD_VALUE' => $chain['MESSAGE'], 'HAVE_USER_ACCESS' => !$isUserHavePhpAccess, 'SHOW_SAVE_TEMPLATE' => false, 'PERSONALIZE_LIST' => $personalizeList))), getSenderItemContainer($ID, $chain));
}
if (count($chainFieldsList) <= 0) {
    // fix for load editor when no letters
    \Bitrix\Sender\TemplateTable::initEditor(array('FIELD_NAME' => 'EMPTY_CHAIN_MESSAGE', 'FIELD_VALUE' => '', 'HAVE_USER_ACCESS' => !$isUserHavePhpAccess, 'SHOW_SAVE_TEMPLATE' => false, 'PERSONALIZE_LIST' => $personalizeList));
}
?>

			</div>
			<div class="sender-trigger-add-letter">
				<input type="button" onclick="senderLetterContainer.addItem();" value="<?php 
echo GetMessage("sender_chain_edit_list_add");
?>
">
			</div>

			<div class="sender-trigger-status-mailing sender-trigger-status-mailing-finish">
				<div class="sender-trigger-status-mailing-title"><?php 
echo GetMessage("sender_chain_edit_list_event_end");
?>
Example #3
0
		</tr>
	<?php 
}
?>

	<tr class="adm-detail-required-field hidden-when-show-template-list" <?php 
echo empty($str_CONTENT) ? 'style="display: none;"' : '';
?>
>
		<td colspan="2" align="left">
			<b><?php 
echo GetMessage("sender_tmpl_edit_field_message");
?>
</b>
			<?php 
echo \Bitrix\Sender\TemplateTable::initEditor(array('FIELD_NAME' => 'MESSAGE', 'FIELD_VALUE' => $str_CONTENT, 'HAVE_USER_ACCESS' => $isUserHavePhpAccess, 'SHOW_SAVE_TEMPLATE' => false));
?>
			<input type="hidden" name="IS_TEMPLATE_LIST_SHOWN" id="IS_TEMPLATE_LIST_SHOWN" value="<?php 
echo empty($str_CONTENT) ? "Y" : "N";
?>
">
		</td>
	</tr>
<?php 
$tabControl->Buttons(array("disabled" => $POST_RIGHT < "W", "back_url" => "sender_template_admin.php?lang=" . LANG));
echo bitrix_sessid_post();
?>
<input type="hidden" name="lang" value="<?php 
echo LANG;
?>
">
Example #4
0
?>
>
		<td colspan="2">&nbsp;</td>
	</tr>

	<tr class="adm-detail-required-field hidden-when-show-template-list" <?php 
echo empty($str_MESSAGE) ? 'style="display: none;"' : '';
?>
>
		<td colspan="2" align="left">
			<b><?php 
echo GetMessage("sender_chain_edit_field_message");
?>
</b>
			<?php 
echo \Bitrix\Sender\TemplateTable::initEditor(array('FIELD_NAME' => 'MESSAGE', 'FIELD_VALUE' => $str_MESSAGE, 'TEMPLATE_TYPE' => $str_TEMPLATE_TYPE, 'TEMPLATE_ID' => $str_TEMPLATE_ID, 'HAVE_USER_ACCESS' => $isUserHavePhpAccess, 'SITE' => $mailingSite['SITE_ID'], 'CHARSET' => $chainCharset));
?>
			<input type="hidden" name="IS_TEMPLATE_LIST_SHOWN" id="IS_TEMPLATE_LIST_SHOWN" value="<?php 
echo empty($str_MESSAGE) ? "Y" : "N";
?>
">
		</td>
	</tr>

	<tr class="hidden-when-show-template-list" <?php 
echo empty($str_MESSAGE) ? 'style="display: none;"' : '';
?>
>
		<td colspan="2">&nbsp;</td>
	</tr>
Example #5
0
		</tr>
	<?php 
}
?>

	<tr class="adm-detail-required-field hidden-when-show-template-list" <?php 
echo empty($str_CONTENT) ? 'style="display: none;"' : '';
?>
>
		<td colspan="2" align="left">
			<b><?php 
echo GetMessage("sender_tmpl_edit_field_message");
?>
</b>
			<?php 
echo \Bitrix\Sender\TemplateTable::initEditor(array('FIELD_NAME' => 'MESSAGE', 'FIELD_VALUE' => $str_CONTENT, 'CONTENT_URL' => '/bitrix/admin/sender_template_admin.php?action=get_template&template_type=USER&template_id=' . $ID . '&lang=' . LANGUAGE_ID . '&' . bitrix_sessid_get(), 'HAVE_USER_ACCESS' => $isUserHavePhpAccess, 'SHOW_SAVE_TEMPLATE' => false, 'IS_TEMPLATE_MODE' => false));
?>
			<input type="hidden" name="IS_TEMPLATE_LIST_SHOWN" id="IS_TEMPLATE_LIST_SHOWN" value="<?php 
echo empty($str_CONTENT) ? "Y" : "N";
?>
">
		</td>
	</tr>
<?php 
$tabControl->Buttons(array("disabled" => $POST_RIGHT < "W", "back_url" => "sender_template_admin.php?lang=" . LANG));
echo bitrix_sessid_post();
?>
<input type="hidden" name="lang" value="<?php 
echo LANG;
?>
">
Example #6
0
?>
</span>
					</span>
				</div>
			</div>

			<div id="SENDER_TRIGGER_CHAIN_CONTAINER" class="trigger_chain">
				<?php 
$i = 0;
foreach ($chainFieldsList as $chain) {
    $i++;
    echo str_replace(array('%SENDER_LETTER_TEMPLATE_BODY_NUM%', '%SENDER_LETTER_TEMPLATE_MESSAGE%', '%sender_letter_template_message%'), array($i, \Bitrix\Sender\TemplateTable::initEditor(array('FIELD_NAME' => 'CHAIN_MESSAGE_' . $i, 'FIELD_VALUE' => $chain['MESSAGE'], 'TEMPLATE_TYPE_INPUT' => 'CHAIN[' . $i . '][TEMPLATE_TYPE]', 'TEMPLATE_TYPE' => $chain['TEMPLATE_TYPE'], 'TEMPLATE_ID_INPUT' => 'CHAIN[' . $i . '][TEMPLATE_ID]', 'TEMPLATE_ID' => $chain['TEMPLATE_ID'], 'HAVE_USER_ACCESS' => !$isUserHavePhpAccess, 'SHOW_SAVE_TEMPLATE' => false))), getSenderItemContainer($ID, $chain));
}
if (count($chainFieldsList) <= 0) {
    // fix for load editor when no letters
    \Bitrix\Sender\TemplateTable::initEditor(array('FIELD_NAME' => 'EMPTY_CHAIN_MESSAGE', 'FIELD_VALUE' => '', 'HAVE_USER_ACCESS' => !$isUserHavePhpAccess, 'SHOW_SAVE_TEMPLATE' => false));
}
?>

			</div>
			<div class="sender-trigger-add-letter">
				<input type="button" onclick="senderLetterContainer.addItem();" value="<?php 
echo GetMessage("sender_chain_edit_list_add");
?>
">
			</div>

			<div class="sender-trigger-status-mailing sender-trigger-status-mailing-finish">
				<div class="sender-trigger-status-mailing-title"><?php 
echo GetMessage("sender_chain_edit_list_event_end");
?>