bpm/templates_c/135579b5d59c9a58c58cb9fe3922b72708a2aa89_0.file.mail_test.html.php
2022-11-28 10:24:23 +01:00

273 lines
9.7 KiB
PHP
Executable File

<?php
/* Smarty version 3.1.29, created on 2020-07-24 09:06:00
from "/srv/www/htdocs-hvf/kurs/bpm/templates/modern/admin/mail_test.html" */
if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
'has_nocache_code' => false,
'version' => '3.1.29',
'unifunc' => 'content_5f1a88589366d9_04353588',
'file_dependency' =>
array (
'135579b5d59c9a58c58cb9fe3922b72708a2aa89' =>
array (
0 => '/srv/www/htdocs-hvf/kurs/bpm/templates/modern/admin/mail_test.html',
1 => 1592565762,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_5f1a88589366d9_04353588 ($_smarty_tpl) {
if ($_smarty_tpl->tpl_vars['action']->value == '') {?>
<html>
<head>
<link type="text/css" rel="stylesheet" href="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/css/styles_refill.css">
<style>
select{
width:330px;
}
</style>
</head>
<body>
<form action="?action=mailsenden_test" method='post' name='ausgabe'>
<?php if ($_smarty_tpl->tpl_vars['termine_error']->value == '1') {?>
<table width="70%" class="errorTable" align="center">
<tr>
<td>
<img src="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/images/pflichtfelder/achtung_gross.gif">
</td>
<td><b>Achtung!</b><br>
<?php echo $_smarty_tpl->tpl_vars['termine_error_text']->value;?>
</td>
</tr>
</table>
<br />
<?php }?>
<fieldset>
<legend>
<b>Mail an Testteilnehmer</b>
</legend>
<br />
<br />
<p align="center">
<select name="testtermin" size=15>
<?php
$__section_table_data1_0_saved = isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1'] : false;
$__section_table_data1_0_loop = (is_array(@$_loop=$_smarty_tpl->tpl_vars['table_data1']->value) ? count($_loop) : max(0, (int) $_loop));
$__section_table_data1_0_total = $__section_table_data1_0_loop;
$_smarty_tpl->tpl_vars['__smarty_section_table_data1'] = new Smarty_Variable(array());
if ($__section_table_data1_0_total != 0) {
for ($__section_table_data1_0_iteration = 1, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] = 0; $__section_table_data1_0_iteration <= $__section_table_data1_0_total; $__section_table_data1_0_iteration++, $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']++){
?>
<option value="<?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['tm_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['tm_datum_form'];?>
- <?php echo $_smarty_tpl->tpl_vars['table_data1']->value[(isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['index'] : null)]['tm_standort'];?>
</option>
<?php
}
}
if ($__section_table_data1_0_saved) {
$_smarty_tpl->tpl_vars['__smarty_section_table_data1'] = $__section_table_data1_0_saved;
}
?>
</select>
</p>
<br />
<p align='center'>
<input type='submit' name='senden' value="Liste drucken">
</p>
<br />
</fieldset>
</form>
<br />
<br />
<br />
<br />
</body>
</html>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['action']->value == 'mailsenden_test') {?>
<html>
<head>
<link type="text/css" rel="stylesheet" href="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/css/styles_refill.css">
<?php echo '<script'; ?>
type='text/javascript' src='../ckeditor5/build/ckeditor.js'><?php echo '</script'; ?>
>
<style>
.ck-editor__editable {
min-height: 300px;
}
p {
margin: 0;
}
</style>
</head>
<body>
<fieldset>
<legend>
<b>E-Mail bearbeiten</b>
</legend>
<br />
<br />
<form action="?action=mailsenden2_test" method='post' name='mailsenden2_sonst'>
<table width="100%" border="1" cellspacing="0" cellpadding="0" rules="all">
<tr>
<td width="200" height="40" style="padding-left:5px">
Absender:
</td>
<td style="padding-left:5px">
<?php echo $_smarty_tpl->tpl_vars['mail_sender']->value;?>
- <?php echo $_smarty_tpl->tpl_vars['mail_sendermail']->value;?>
<input type="hidden" name="mail_sender" id="mail_sender" size="101" value="<?php echo $_smarty_tpl->tpl_vars['mail_sender']->value;?>
">
</td>
</tr>
<tr>
<td height="40" style="padding-left:5px">
Empfänger:
</td>
<td style="padding-left:5px">
<textarea style="width:745px; height:120px; font-family:monospace;" id='mail_mail' name='mail_mail'><?php echo $_smarty_tpl->tpl_vars['empfaenger']->value;?>
</textarea>
</td>
</tr>
<tr>
<td height="40" style="padding-left:5px">
Betreff:
</td>
<td style="padding-left:5px">
<input type="text" id="betreff" name="betreff" value="<?php echo $_smarty_tpl->tpl_vars['mail_betreff']->value;?>
" size="120">
</td>
</tr>
<tr>
<td height="40" style="padding-left:5px">
Mailtext:
</td>
<td style="padding-left:5px">
<textarea id='text' name='text'><?php echo $_smarty_tpl->tpl_vars['mail_text']->value;?>
</textarea>
<?php echo '<script'; ?>
>ClassicEditor
.create( document.querySelector( '#text' ), {
toolbar: {
items: [
'heading',
'|',
'fontSize',
'fontFamily',
'fontBackgroundColor',
'fontColor',
'|',
'bold',
'italic',
'link',
'bulletedList',
'numberedList',
'|',
'alignment',
'indent',
'outdent',
'|',
'imageUpload',
'blockQuote',
'insertTable',
'mediaEmbed',
'undo',
'redo'
]
},
language: 'de',
image: {
toolbar: [
'imageTextAlternative',
'imageStyle:full',
'imageStyle:side'
]
},
table: {
contentToolbar: [
'tableColumn',
'tableRow',
'mergeTableCells',
'tableCellProperties',
'tableProperties'
]
},
licenseKey: '',
} )
.then( editor => {
window.editor = editor;
} )
.catch( error => {
console.error( error );
} );
<?php echo '</script'; ?>
>
<input type="hidden" name="smid" id="smid" size="101" value="<?php echo $_smarty_tpl->tpl_vars['mail_smid']->value;?>
">
</td>
</tr>
</table>
</p>
<br />
<br />
<p align='center'>
<input type='submit' name='senden' value="Mail senden"><br><br>
<font color="red" style="font-size:20px">Bitte nur einmal klicken. Rückmeldung dauert 30-60 Sekunden bis alle Mails verschickt wurden!</font>
</p>
<br />
</form>
</fieldset>
<br />
<br />
<br />
<br />
</body>
</html>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['action']->value == 'mailsenden2_test') {?>
<html>
<head>
<link type="text/css" rel="stylesheet" href="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/css/styles_refill.css">
</head>
<body>
<fieldset>
<legend>
<b>Ergebnis</b>
</legend>
<br />
<br />
<?php echo $_smarty_tpl->tpl_vars['mail_senderg']->value;?>
<br>
<br>
Sie können das Fenster nun schließen.
</fieldset>
<br />
<br />
<br />
<br />
</body>
</html>
<?php }
}
}