bpm/templates_c/3961dd0fe7eb6d6ca13e78d1e9c060159a936e4e_0.file.praxisstellen_news.html.php
2022-11-28 10:24:23 +01:00

314 lines
12 KiB
PHP
Executable File

<?php
/* Smarty version 3.1.29, created on 2020-07-23 09:32:39
from "/srv/www/htdocs-hvf/kurs/bpm/templates/modern/admin/praxisstellen_news.html" */
if ($_smarty_tpl->smarty->ext->_validateCompiled->decodeProperties($_smarty_tpl, array (
'has_nocache_code' => false,
'version' => '3.1.29',
'unifunc' => 'content_5f193d1775a473_17348633',
'file_dependency' =>
array (
'3961dd0fe7eb6d6ca13e78d1e9c060159a936e4e' =>
array (
0 => '/srv/www/htdocs-hvf/kurs/bpm/templates/modern/admin/praxisstellen_news.html',
1 => 1595482408,
2 => 'file',
),
),
'includes' =>
array (
),
),false)) {
function content_5f193d1775a473_17348633 ($_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">
<?php echo '<script'; ?>
type='text/javascript' src='../ckeditor5/build/ckeditor.js'><?php echo '</script'; ?>
>
<!-- Add jQuery library -->
<?php echo '<script'; ?>
type="text/javascript" src="../fancybox-2.1.7/lib/jquery-1.10.2.min.js"><?php echo '</script'; ?>
>
<!-- Add mousewheel plugin (this is optional) -->
<?php echo '<script'; ?>
type="text/javascript" src="../fancybox-2.1.7/lib/jquery.mousewheel.pack.js?v=3.1.3"><?php echo '</script'; ?>
>
<!-- Add fancyBox main JS and CSS files -->
<?php echo '<script'; ?>
type="text/javascript" src="../fancybox-2.1.7/source/jquery.fancybox.pack.js?v=2.1.5"><?php echo '</script'; ?>
>
<link rel="stylesheet" type="text/css" href="../fancybox-2.1.7/source/jquery.fancybox.css?v=2.1.5" media="screen" />
<?php echo '<script'; ?>
type="text/javascript">
$(document).ready(function() {
$('.box').fancybox({
'width' : '100%',
'height' : '100%',
'autoScale' : true,
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'type' : 'iframe',
helpers: {
overlay : {
closeClick: true
}
}
});
});
<?php echo '</script'; ?>
>
<style>
.ck-editor__editable {
min-height: 300px;
}
p {
margin: 0;
}
.ButtonAnzeigen {
box-shadow: 0px 10px 14px -7px #3e7327;
background:linear-gradient(to bottom, #77b55a 5%, #72b352 100%);
background-color:#77b55a;
border-radius:4px;
border:1px solid #4b8f29;
display:inline-block;
cursor:pointer;
color:#ffffff;
font-family:Arial;
font-size:13px;
font-weight:bold;
padding:0px 20px;
text-decoration:none;
text-shadow:0px 1px 0px #5b8a3c;
}
.ButtonAnzeigen:hover {
background:linear-gradient(to bottom, #72b352 5%, #77b55a 100%);
background-color:#72b352;
}
.ButtonAnzeigen:active {
position:relative;
top:1px;
}
</style>
</head>
<body>
<form action="?action=save" method='post' name='save'>
<?php if ($_smarty_tpl->tpl_vars['news_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['news_error_text']->value;?>
</td>
</tr>
</table>
<br />
<?php }?>
<fieldset>
<legend>
<b>Ausbildungsstellen News</b>
</legend>
<br />
<br />
<table width="100%" border="1" cellspacing="0" cellpadding="0" rules="all">
<tr>
<td height="40" style="padding-left:5px">
Überschrift:
</td>
<td style="padding-left:5px">
<input type="text" id="headline" name="headline" value="<?php echo $_smarty_tpl->tpl_vars['news_value_headline']->value;?>
" size="60">
</td>
</tr>
<tr>
<td height="40" style="padding-left:5px">
Inhalt:
</td>
<td style="padding-left:5px">
<textarea id='text' name='text'><?php echo $_smarty_tpl->tpl_vars['news_value_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'; ?>
>
</td>
</tr>
</table>
</p>
<br />
<br />
<p align='center'>
<input type='submit' name='senden' value="Speichern">
</p>
<br />
</form>
</fieldset>
<br />
<br />
<br />
<br />
<fieldset>
<legend>
<b>Erfasste News</b>
</legend>
<table cellspacing="0" cellpadding="2" width="100%" border="1">
<tr>
<td>
<b>Datum - Zeit</b>
</td>
<td>
<b>Überschrift</b>
</td>
<td>
<b>Anzeige</b>
</td>
<td align="center">
<b>Edit</b>
</td>
<tr>
<?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']++){
$_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] = $__section_table_data1_0_iteration;
?>
<?php if ((isset($_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum']) ? $_smarty_tpl->tpl_vars['__smarty_section_table_data1']->value['rownum'] : null) != '') {?>
<tr>
<td>
<?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)]['pn_date_form'];?>
</td>
<td>
<?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)]['pn_headline'];?>
</td>
<td>
<a class="ButtonAnzeigen box" title="<?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)]['pn_headline'];?>
" href="?action=show&pn_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)]['pn_id'];?>
">Nachricht anzeigen</a>
</td>
<td align="center">
<a href=?edit=<?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)]['pn_id'];?>
><img title = "Termin bearbeiten" border="0" height=10 src="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/images/edit.png"></a>
&nbsp;
<a href="?action=del&pn_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)]['pn_id'];?>
"><img title = 'Termin l&ouml;schen' border="0" height=10 src="../templates/<?php echo $_smarty_tpl->tpl_vars['global_template']->value;?>
/images/drop.png"></a>
</td>
</tr>
<?php }?>
<?php
}
}
if ($__section_table_data1_0_saved) {
$_smarty_tpl->tpl_vars['__smarty_section_table_data1'] = $__section_table_data1_0_saved;
}
?>
</table>
</fieldset>
<br />
<br />
<br />
<br />
</body>
</html>
<?php }?>
<?php if ($_smarty_tpl->tpl_vars['action']->value == 'show') {?>
<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><?php echo $_smarty_tpl->tpl_vars['prx_show_headline']->value;?>
</b>
</legend>
<?php echo $_smarty_tpl->tpl_vars['prx_show_text']->value;?>
<br />
<br />
<br />
</form>
</fieldset>
<br />
<br />
<br />
<br />
</body>
</html>
<?php }
}
}