bpm/templates/modern/admin/praxisstellen_news.html
2022-11-28 10:24:23 +01:00

247 lines
7.8 KiB
HTML
Executable File

{if $action == ''}
<html>
<head>
<link type="text/css" rel="stylesheet" href="../templates/{$global_template}/css/styles_refill.css">
<script type='text/javascript' src='../ckeditor5/build/ckeditor.js'></script>
<!-- Add jQuery library -->
<script type="text/javascript" src="../fancybox-2.1.7/lib/jquery-1.10.2.min.js"></script>
<!-- Add mousewheel plugin (this is optional) -->
<script type="text/javascript" src="../fancybox-2.1.7/lib/jquery.mousewheel.pack.js?v=3.1.3"></script>
<!-- Add fancyBox main JS and CSS files -->
<script type="text/javascript" src="../fancybox-2.1.7/source/jquery.fancybox.pack.js?v=2.1.5"></script>
<link rel="stylesheet" type="text/css" href="../fancybox-2.1.7/source/jquery.fancybox.css?v=2.1.5" media="screen" />
<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
}
}
});
});
</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'>
{if $news_error == '1'}
<table width="70%" class="errorTable" align="center">
<tr>
<td>
<img src="../templates/{$global_template}/images/pflichtfelder/achtung_gross.gif">
</td>
<td><b>Achtung!</b><br>
{$news_error_text}
</td>
</tr>
</table>
<br />
{/if}
<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="{$news_value_headline}" size="60">
</td>
</tr>
<tr>
<td height="40" style="padding-left:5px">
Inhalt:
</td>
<td style="padding-left:5px">
<textarea id='text' name='text'>{$news_value_text}</textarea>
{literal}
<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 );
} );
</script>
{/literal}
</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>
{section name=table_data1 loop=$table_data1}
{if $smarty.section.table_data1.rownum != ''}
<tr>
<td>
{$table_data1[table_data1].pn_date_form}
</td>
<td>
{$table_data1[table_data1].pn_headline}
</td>
<td>
<a class="ButtonAnzeigen box" title="{$table_data1[table_data1].pn_headline}" href="?action=show&pn_id={$table_data1[table_data1].pn_id}">Nachricht anzeigen</a>
</td>
<td align="center">
<a href=?edit={$table_data1[table_data1].pn_id}><img title = "Termin bearbeiten" border="0" height=10 src="../templates/{$global_template}/images/edit.png"></a>
&nbsp;
<a href="?action=del&pn_id={$table_data1[table_data1].pn_id}"><img title = 'Termin l&ouml;schen' border="0" height=10 src="../templates/{$global_template}/images/drop.png"></a>
</td>
</tr>
{/if}
{/section}
</table>
</fieldset>
<br />
<br />
<br />
<br />
</body>
</html>
{/if}
{if $action == 'show'}
<html>
<head>
<link type="text/css" rel="stylesheet" href="../templates/{$global_template}/css/styles_refill.css">
</head>
<body>
<fieldset>
<legend>
<b>{$prx_show_headline}</b>
</legend>
{$prx_show_text}
<br />
<br />
<br />
</form>
</fieldset>
<br />
<br />
<br />
<br />
</body>
</html>
{/if}