<?php if ((int) $tpl['option_arr']['o_multi_lang'] === 1) : ?>
<div class="multilang b10"></div>
<?php 
endif;

$notify_arr = __('notify_arr', true);
$key_arr = array('confirm','payment','cancel','confirm_admin','payment_admin','cancel_admin','confirm_employee','payment_employee','cancel_employee');
$notify_arr = pjUtil::sortArrayByArray($notify_arr, $key_arr);
?>

<form id="frmOptConfirmation" action="<?php echo $_SERVER['PHP_SELF']; ?>?controller=pjAdminOptions&amp;action=pjActionUpdate" method="post" class="form pj-form clear_both">
	<input type="hidden" name="options_update" value="1" />
	<input type="hidden" name="next_action" value="pjActionIndex" />
	<input type="hidden" name="tab" value="<?php echo @$_GET['tab']; ?>" />
	<br/>
	<p>
		<label class="title"><?php __('tabEmailNotifications'); ?></label>
		<span class="inline-block">
			<select name="email_notify" id="email_notify" class="pj-form-field w300">
				<?php
				foreach ($notify_arr as $k => $v)
				{
					?><option value="<?php echo $k; ?>"><?php echo $v; ?></option><?php
				}
				?>
			</select>
		</span>
	</p>
	<br/>
	<div id="confirmBox" class="notifyBox" style="display:none;">
		<?php
		foreach ($tpl['lp_arr'] as $v)
		{
			?>
			<div class="pj-multilang-wrap" data-index="<?php echo $v['id']; ?>" style="display: <?php echo (int) $v['is_default'] === 0 ? 'none' : NULL; ?>">
				<p class="block t5">
					<label class="title""><?php __('confirmation_subject'); ?></label>
					<input type="text" name="i18n[<?php echo $v['id']; ?>][confirm_subject_client]" class="pj-form-field w500 b10" value="<?php echo htmlspecialchars(stripslashes(@$tpl['arr']['i18n'][$v['id']]['confirm_subject_client'])); ?>" />
					<?php if ((int) $tpl['option_arr']['o_multi_lang'] === 1): ?>
					<span class="pj-multilang-input"><img src="<?php echo PJ_INSTALL_URL . PJ_FRAMEWORK_LIBS_PATH . 'pj/img/flags/' . $v['file']; ?>" alt="" /></span>
					<?php endif; ?>
				</p>
				<p class="block t5">
					<label class="title""><?php __('confirmation_body'); ?></label>
					<span class="block t5 float_left">
						<textarea name="i18n[<?php echo $v['id']; ?>][confirm_tokens_client]" class="pj-form-field w500 h230 mceEditor"><?php echo stripslashes(@$tpl['arr']['i18n'][$v['id']]['confirm_tokens_client']); ?></textarea>
						<?php if ((int) $tpl['option_arr']['o_multi_lang'] === 1): ?>
						<span class="pj-multilang-input"><img src="<?php echo PJ_INSTALL_URL . PJ_FRAMEWORK_LIBS_PATH . 'pj/img/flags/' . $v['file']; ?>" alt="" /></span>
						<?php endif; ?>
					</span>
				</p>
			</div>
			<?php
		}
		?>
	</div>
	<div id="paymentBox" class="notifyBox" style="display:none;">
		<?php
		foreach ($tpl['lp_arr'] as $v)
		{
			?>
			<div class="pj-multilang-wrap" data-index="<?php echo $v['id']; ?>" style="display: <?php echo (int) $v['is_default'] === 0 ? 'none' : NULL; ?>">
				<p class="block t5">
					<label class="title""><?php __('confirmation_subject'); ?></label>
					<input type="text" name="i18n[<?php echo $v['id']; ?>][payment_subject_client]" class="pj-form-field w500 b10" value="<?php echo htmlspecialchars(stripslashes(@$tpl['arr']['i18n'][$v['id']]['payment_subject_client'])); ?>" />
					<?php if ((int) $tpl['option_arr']['o_multi_lang'] === 1): ?>
					<span class="pj-multilang-input"><img src="<?php echo PJ_INSTALL_URL . PJ_FRAMEWORK_LIBS_PATH . 'pj/img/flags/' . $v['file']; ?>" alt="" /></span>
					<?php endif; ?>
				</p>
				<p class="block t5">
					<label class="title""><?php __('confirmation_body'); ?></label>
					<span class="block t5 float_left">
						<textarea name="i18n[<?php echo $v['id']; ?>][payment_tokens_client]" class="pj-form-field w500 h230 mceEditor"><?php echo stripslashes(@$tpl['arr']['i18n'][$v['id']]['payment_tokens_client']); ?></textarea>
						<?php if ((int) $tpl['option_arr']['o_multi_lang'] === 1): ?>
						<span class="pj-multilang-input"><img src="<?php echo PJ_INSTALL_URL . PJ_FRAMEWORK_LIBS_PATH . 'pj/img/flags/' . $v['file']; ?>" alt="" /></span>
						<?php endif; ?>
					</span>
				</p>
			</div>
			<?php
		}
		?>
	</div>
	<div id="cancelBox" class="notifyBox" style="display:none;">
		<?php
		foreach ($tpl['lp_arr'] as $v)
		{
			?>
			<div class="pj-multilang-wrap" data-index="<?php echo $v['id']; ?>" style="display: <?php echo (int) $v['is_default'] === 0 ? 'none' : NULL; ?>">
				<p class="block t5">
					<label class="title""><?php __('confirmation_subject'); ?></label>
					<input type="text" name="i18n[<?php echo $v['id']; ?>][cancel_subject_client]" class="pj-form-field w500 b10" value="<?php echo htmlspecialchars(stripslashes(@$tpl['arr']['i18n'][$v['id']]['cancel_subject_client'])); ?>" />
					<?php if ((int) $tpl['option_arr']['o_multi_lang'] === 1): ?>
					<span class="pj-multilang-input"><img src="<?php echo PJ_INSTALL_URL . PJ_FRAMEWORK_LIBS_PATH . 'pj/img/flags/' . $v['file']; ?>" alt="" /></span>
					<?php endif; ?>
				</p>
				<p class="block t5">
					<label class="title""><?php __('confirmation_body'); ?></label>
					<span class="block t5 float_left">
						<textarea name="i18n[<?php echo $v['id']; ?>][cancel_tokens_client]" class="pj-form-field w500 h230 mceEditor"><?php echo stripslashes(@$tpl['arr']['i18n'][$v['id']]['cancel_tokens_client']); ?></textarea>
						<?php if ((int) $tpl['option_arr']['o_multi_lang'] === 1): ?>
						<span class="pj-multilang-input"><img src="<?php echo PJ_INSTALL_URL . PJ_FRAMEWORK_LIBS_PATH . 'pj/img/flags/' . $v['file']; ?>" alt="" /></span>
						<?php endif; ?>
					</span>
				</p>
			</div>
			<?php
		}
		?>
	</div>
	<div id="confirm_adminBox" class="notifyBox" style="display:none;">
		<?php
		foreach ($tpl['lp_arr'] as $v)
		{
			?>
			<div class="pj-multilang-wrap" data-index="<?php echo $v['id']; ?>" style="display: <?php echo (int) $v['is_default'] === 0 ? 'none' : NULL; ?>">
				<p class="block t5">
					<label class="title""><?php __('confirmation_subject'); ?></label>
					<input type="text" name="i18n[<?php echo $v['id']; ?>][confirm_subject_admin]" class="pj-form-field w500 b10" value="<?php echo htmlspecialchars(stripslashes(@$tpl['arr']['i18n'][$v['id']]['confirm_subject_admin'])); ?>" />
					<?php if ((int) $tpl['option_arr']['o_multi_lang'] === 1): ?>
					<span class="pj-multilang-input"><img src="<?php echo PJ_INSTALL_URL . PJ_FRAMEWORK_LIBS_PATH . 'pj/img/flags/' . $v['file']; ?>" alt="" /></span>
					<?php endif; ?>
				</p>
				<p class="block t5">
					<label class="title""><?php __('confirmation_body'); ?></label>
					<span class="block t5 float_left">
						<textarea name="i18n[<?php echo $v['id']; ?>][confirm_tokens_admin]" class="pj-form-field w500 h230 mceEditor"><?php echo stripslashes(@$tpl['arr']['i18n'][$v['id']]['confirm_tokens_admin']); ?></textarea>
						<?php if ((int) $tpl['option_arr']['o_multi_lang'] === 1): ?>
						<span class="pj-multilang-input"><img src="<?php echo PJ_INSTALL_URL . PJ_FRAMEWORK_LIBS_PATH . 'pj/img/flags/' . $v['file']; ?>" alt="" /></span>
						<?php endif; ?>
					</span>
				</p>
			</div>
			<?php
		}
		?>
	</div>
	<div id="payment_adminBox" class="notifyBox" style="display:none;">
		<?php
		foreach ($tpl['lp_arr'] as $v)
		{
			?>
			<div class="pj-multilang-wrap" data-index="<?php echo $v['id']; ?>" style="display: <?php echo (int) $v['is_default'] === 0 ? 'none' : NULL; ?>">
				<p class="block t5">
					<label class="title""><?php __('confirmation_subject'); ?></label>
					<input type="text" name="i18n[<?php echo $v['id']; ?>][payment_subject_admin]" class="pj-form-field w500 b10" value="<?php echo htmlspecialchars(stripslashes(@$tpl['arr']['i18n'][$v['id']]['payment_subject_admin'])); ?>" />
					<?php if ((int) $tpl['option_arr']['o_multi_lang'] === 1): ?>
					<span class="pj-multilang-input"><img src="<?php echo PJ_INSTALL_URL . PJ_FRAMEWORK_LIBS_PATH . 'pj/img/flags/' . $v['file']; ?>" alt="" /></span>
					<?php endif; ?>
				</p>
				<p class="block t5">
					<label class="title""><?php __('confirmation_body'); ?></label>
					<span class="block t5 float_left">
						<textarea name="i18n[<?php echo $v['id']; ?>][payment_tokens_admin]" class="pj-form-field w500 h230 mceEditor"><?php echo stripslashes(@$tpl['arr']['i18n'][$v['id']]['payment_tokens_admin']); ?></textarea>
						<?php if ((int) $tpl['option_arr']['o_multi_lang'] === 1): ?>
						<span class="pj-multilang-input"><img src="<?php echo PJ_INSTALL_URL . PJ_FRAMEWORK_LIBS_PATH . 'pj/img/flags/' . $v['file']; ?>" alt="" /></span>
						<?php endif; ?>
					</span>
				</p>
			</div>
			<?php
		}
		?>
	</div>
	<div id="cancel_adminBox" class="notifyBox" style="display:none;">
		<?php
		foreach ($tpl['lp_arr'] as $v)
		{
			?>
			<div class="pj-multilang-wrap" data-index="<?php echo $v['id']; ?>" style="display: <?php echo (int) $v['is_default'] === 0 ? 'none' : NULL; ?>">
				<p class="block t5">
					<label class="title""><?php __('confirmation_subject'); ?></label>
					<input type="text" name="i18n[<?php echo $v['id']; ?>][cancel_subject_admin]" class="pj-form-field w500 b10" value="<?php echo htmlspecialchars(stripslashes(@$tpl['arr']['i18n'][$v['id']]['cancel_subject_admin'])); ?>" />
					<?php if ((int) $tpl['option_arr']['o_multi_lang'] === 1): ?>
					<span class="pj-multilang-input"><img src="<?php echo PJ_INSTALL_URL . PJ_FRAMEWORK_LIBS_PATH . 'pj/img/flags/' . $v['file']; ?>" alt="" /></span>
					<?php endif; ?>
				</p>
				<p class="block t5">
					<label class="title""><?php __('confirmation_body'); ?></label>
					<span class="block t5 float_left">
						<textarea name="i18n[<?php echo $v['id']; ?>][cancel_tokens_admin]" class="pj-form-field w500 h230 mceEditor"><?php echo stripslashes(@$tpl['arr']['i18n'][$v['id']]['cancel_tokens_admin']); ?></textarea>
						<?php if ((int) $tpl['option_arr']['o_multi_lang'] === 1): ?>
						<span class="pj-multilang-input"><img src="<?php echo PJ_INSTALL_URL . PJ_FRAMEWORK_LIBS_PATH . 'pj/img/flags/' . $v['file']; ?>" alt="" /></span>
						<?php endif; ?>
					</span>
				</p>
			</div>
			<?php
		}
		?>
	</div>
	<div id="confirm_employeeBox" class="notifyBox" style="display:none;">
		<?php
		foreach ($tpl['lp_arr'] as $v)
		{
			?>
			<div class="pj-multilang-wrap" data-index="<?php echo $v['id']; ?>" style="display: <?php echo (int) $v['is_default'] === 0 ? 'none' : NULL; ?>">
				<p class="block t5">
					<label class="title""><?php __('confirmation_subject'); ?></label>
					<input type="text" name="i18n[<?php echo $v['id']; ?>][confirm_subject_employee]" class="pj-form-field w500 b10" value="<?php echo htmlspecialchars(stripslashes(@$tpl['arr']['i18n'][$v['id']]['confirm_subject_employee'])); ?>" />
					<?php if ((int) $tpl['option_arr']['o_multi_lang'] === 1): ?>
					<span class="pj-multilang-input"><img src="<?php echo PJ_INSTALL_URL . PJ_FRAMEWORK_LIBS_PATH . 'pj/img/flags/' . $v['file']; ?>" alt="" /></span>
					<?php endif; ?>
				</p>
				<p class="block t5">
					<label class="title""><?php __('confirmation_body'); ?></label>
					<span class="block t5 float_left">
						<textarea name="i18n[<?php echo $v['id']; ?>][confirm_tokens_employee]" class="pj-form-field w500 h230 mceEditor"><?php echo stripslashes(@$tpl['arr']['i18n'][$v['id']]['confirm_tokens_employee']); ?></textarea>
						<?php if ((int) $tpl['option_arr']['o_multi_lang'] === 1): ?>
						<span class="pj-multilang-input"><img src="<?php echo PJ_INSTALL_URL . PJ_FRAMEWORK_LIBS_PATH . 'pj/img/flags/' . $v['file']; ?>" alt="" /></span>
						<?php endif; ?>
					</span>
				</p>
			</div>
			<?php
		}
		?>
	</div>
	<div id="payment_employeeBox" class="notifyBox" style="display:none;">
		<?php
		foreach ($tpl['lp_arr'] as $v)
		{
			?>
			<div class="pj-multilang-wrap" data-index="<?php echo $v['id']; ?>" style="display: <?php echo (int) $v['is_default'] === 0 ? 'none' : NULL; ?>">
				<p class="block t5">
					<label class="title""><?php __('confirmation_subject'); ?></label>
					<input type="text" name="i18n[<?php echo $v['id']; ?>][payment_subject_employee]" class="pj-form-field w500 b10" value="<?php echo htmlspecialchars(stripslashes(@$tpl['arr']['i18n'][$v['id']]['payment_subject_employee'])); ?>" />
					<?php if ((int) $tpl['option_arr']['o_multi_lang'] === 1): ?>
					<span class="pj-multilang-input"><img src="<?php echo PJ_INSTALL_URL . PJ_FRAMEWORK_LIBS_PATH . 'pj/img/flags/' . $v['file']; ?>" alt="" /></span>
					<?php endif; ?>
				</p>
				<p class="block t5">
					<label class="title""><?php __('confirmation_body'); ?></label>
					<span class="block t5 float_left">
						<textarea name="i18n[<?php echo $v['id']; ?>][payment_tokens_employee]" class="pj-form-field w500 h230 mceEditor"><?php echo stripslashes(@$tpl['arr']['i18n'][$v['id']]['payment_tokens_employee']); ?></textarea>
						<?php if ((int) $tpl['option_arr']['o_multi_lang'] === 1): ?>
						<span class="pj-multilang-input"><img src="<?php echo PJ_INSTALL_URL . PJ_FRAMEWORK_LIBS_PATH . 'pj/img/flags/' . $v['file']; ?>" alt="" /></span>
						<?php endif; ?>
					</span>
				</p>
			</div>
			<?php
		}
		?>
	</div>
	<div id="cancel_employeeBox" class="notifyBox" style="display:none;">
		<?php
		foreach ($tpl['lp_arr'] as $v)
		{
			?>
			<div class="pj-multilang-wrap" data-index="<?php echo $v['id']; ?>" style="display: <?php echo (int) $v['is_default'] === 0 ? 'none' : NULL; ?>">
				<p class="block t5">
					<label class="title""><?php __('confirmation_subject'); ?></label>
					<input type="text" name="i18n[<?php echo $v['id']; ?>][cancel_subject_employee]" class="pj-form-field w500 b10" value="<?php echo htmlspecialchars(stripslashes(@$tpl['arr']['i18n'][$v['id']]['cancel_subject_employee'])); ?>" />
					<?php if ((int) $tpl['option_arr']['o_multi_lang'] === 1): ?>
					<span class="pj-multilang-input"><img src="<?php echo PJ_INSTALL_URL . PJ_FRAMEWORK_LIBS_PATH . 'pj/img/flags/' . $v['file']; ?>" alt="" /></span>
					<?php endif; ?>
				</p>
				<p class="block t5">
					<label class="title""><?php __('confirmation_body'); ?></label>
					<span class="block t5 float_left">
						<textarea name="i18n[<?php echo $v['id']; ?>][cancel_tokens_employee]" class="pj-form-field w500 h400 mceEditor"><?php echo stripslashes(@$tpl['arr']['i18n'][$v['id']]['cancel_tokens_employee']); ?></textarea>
						<?php if ((int) $tpl['option_arr']['o_multi_lang'] === 1): ?>
						<span class="pj-multilang-input"><img src="<?php echo PJ_INSTALL_URL . PJ_FRAMEWORK_LIBS_PATH . 'pj/img/flags/' . $v['file']; ?>" alt="" /></span>
						<?php endif; ?>
					</span>
				</p>
			</div>
			<?php
		}
		?>
	</div>
	<div id="registrationBox" class="notifyBox" style="display:none;">
		<?php
			foreach ($tpl['lp_arr'] as $v)
			{
				?>
				<div class="pj-multilang-wrap" data-index="<?php echo $v['id']; ?>" style="display: <?php echo (int) $v['is_default'] === 0 ? 'none' : NULL; ?>">
					<p class="block t5">
						<label class="title""><?php __('confirmation_subject'); ?></label>
						<input type="text" name="i18n[<?php echo $v['id']; ?>][client_subject_registration]" class="pj-form-field w500 b10" value="<?php echo htmlspecialchars(stripslashes(@$tpl['arr']['i18n'][$v['id']]['client_subject_registration'])); ?>" />
						<?php if ((int) $tpl['option_arr']['o_multi_lang'] === 1): ?>
							<span class="pj-multilang-input"><img src="<?php echo PJ_INSTALL_URL . PJ_FRAMEWORK_LIBS_PATH . 'pj/img/flags/' . $v['file']; ?>" alt="" /></span>
						<?php endif; ?>
					</p>
					<p class="block t5">
						<label class="title""><?php __('confirmation_body'); ?></label>
					<span class="block t5 float_left">
						<textarea name="i18n[<?php echo $v['id']; ?>][client_tokens_registration]" class="pj-form-field w500 h400 mceEditor"><?php echo stripslashes(@$tpl['arr']['i18n'][$v['id']]['client_tokens_registration']); ?></textarea>
						<?php if ((int) $tpl['option_arr']['o_multi_lang'] === 1): ?>
							<span class="pj-multilang-input"><img src="<?php echo PJ_INSTALL_URL . PJ_FRAMEWORK_LIBS_PATH . 'pj/img/flags/' . $v['file']; ?>" alt="" /></span>
						<?php endif; ?>
					</span>
					</p>
				</div>
				<?php
			}
		?>
	</div>
	<div id="recoveryBox" class="notifyBox" style="display:none;">
		<?php
			foreach ($tpl['lp_arr'] as $v)
			{
				?>
				<div class="pj-multilang-wrap" data-index="<?php echo $v['id']; ?>" style="display: <?php echo (int) $v['is_default'] === 0 ? 'none' : NULL; ?>">
					<p class="block t5">
						<label class="title""><?php __('confirmation_subject'); ?></label>
						<input type="text" name="i18n[<?php echo $v['id']; ?>][client_subject_recovery]" class="pj-form-field w500 b10" value="<?php echo htmlspecialchars(stripslashes(@$tpl['arr']['i18n'][$v['id']]['client_subject_recovery'])); ?>" />
						<?php if ((int) $tpl['option_arr']['o_multi_lang'] === 1): ?>
							<span class="pj-multilang-input"><img src="<?php echo PJ_INSTALL_URL . PJ_FRAMEWORK_LIBS_PATH . 'pj/img/flags/' . $v['file']; ?>" alt="" /></span>
						<?php endif; ?>
					</p>
					<p class="block t5">
						<label class="title""><?php __('confirmation_body'); ?></label>
					<span class="block t5 float_left">
						<textarea name="i18n[<?php echo $v['id']; ?>][client_tokens_recovery]" class="pj-form-field w500 h400 mceEditor"><?php echo stripslashes(@$tpl['arr']['i18n'][$v['id']]['client_tokens_recovery']); ?></textarea>
						<?php if ((int) $tpl['option_arr']['o_multi_lang'] === 1): ?>
							<span class="pj-multilang-input"><img src="<?php echo PJ_INSTALL_URL . PJ_FRAMEWORK_LIBS_PATH . 'pj/img/flags/' . $v['file']; ?>" alt="" /></span>
						<?php endif; ?>
					</span>
					</p>
				</div>
				<?php
			}
		?>
	</div>
	<p>
		<label class="title">&nbsp;</label>
		<span class="inline-block">
			<input type="submit" class="pj-button" value="<?php __('btnSave'); ?>" />
		</span>
	</p>
</form>
<?php if ((int) $tpl['option_arr']['o_multi_lang'] === 1): ?>
<?php $locale = isset($_GET['locale']) && (int) $_GET['locale'] > 0 ? (int) $_GET['locale'] : @$tpl['lp_arr'][0]['id']; ?>
<script type="text/javascript">
(function ($) {
	$(function() {
		$(".multilang").multilang({
			langs: <?php echo $tpl['locale_str']; ?>,
			flagPath: "<?php echo PJ_FRAMEWORK_LIBS_PATH; ?>pj/img/flags/",
			select: function (event, ui) {
				//callback
			}
		});
		$(".multilang").find("a[data-index='<?php echo $locale; ?>']").trigger("click");
	});
})(jQuery_1_8_2);
</script>
<?php endif; ?>