Leitgedanken/templates/standard/wort_bearbeiten.html
2022-11-21 09:47:28 +01:00

695 lines
33 KiB
HTML

{if $action == ''}
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="templates/{$global_template}/css/styles_pc.php" type="text/css">
<title>{$wort_bearbeiten_titel}</title>
<style type='text/css'>
{literal}
select{
width:750px;
}
{/literal}
</style>
</head>
<body>
<table border="0" style="border-collapse: collapse" width="100%" cellpadding="0" height="100%" id="table1">
<tr>
<td>
<div align="center">
<table cellspacing="0" cellpadding="0" width="30%" border="0">
<tr>
<td width="10" background="templates/{$global_template}/images/box_e1.gif">
<img height="40" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
<td nowrap="nowrap" align="left" width="3%" background="templates/{$global_template}/images/box_top.gif" valign="top"></td>
<td width="95%" background="templates/{$global_template}/images/box_top.gif">
<img height="10" src="templates/{$global_template}/images/blank.gif" width="1"><br>
<font class="hd">{$wort_bearbeiten_titel}</font><br>
<img height="5" src="templates/{$global_template}/images/blank.gif" width="1">
</td>
<td nowrap="nowrap" align="right" width="1%" background="templates/{$global_template}/images/box_e2.gif">
<img height="40" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
</tr>
<tr>
<td width="1%" background="templates/{$global_template}/images/box_l.gif">
<img height="1" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
<td colspan="2">
<br>
<form action=?action=bearbeiten1 method="POST">
<p align="center">
<select size="20" name="wort">
{section name=table_data loop=$table_data}
<option value="{$table_data[table_data].lid}">{$table_data[table_data].datum}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$table_data[table_data].ueberschrift}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
{/section}
</select>
<br>
<br>
<p align="center">
<input type="submit" value="Abschicken" name="B1">
</p>
</form>
<p></p>
<p></p>
<p></p>
<p><br>
</p>
</td>
<td width="1%" background="templates/{$global_template}/images/box_r.gif">
<img height="1" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
</tr>
<tr>
<td nowrap="nowrap" align="left" width="1%" background="templates/{$global_template}/images/box_e3.gif">
<img height="16" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
<td nowrap="nowrap" align="left" width="98%" background="templates/{$global_template}/images/box_bottom.gif" colspan="2">
<img height="16" src="templates/{$global_template}/images/blank.gif" width="8">
</td>
<td nowrap="nowrap" align="right" width="1%" background="templates/{$global_template}/images/box_e4.gif">
<img height="16" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>
{/if}
{if $action == 'bearbeiten1'}
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="templates/{$global_template}/css/styles_pc.php" type="text/css">
<script type="text/javascript" src="jquery.min.js"></script>
<style type='text/css'>
{literal}
select{
width:250px;
}
{/literal}
</style>
{literal}
<script type="text/javascript">
function fetch_select()
{
var kid = document.getElementById('kid').options[document.getElementById('kid').options.selectedIndex].value;
$.ajax({
type: 'POST',
url: 'fetch_data.php',
data: {
get_option:kid
},
success: function (response) {
document.getElementById("ukid").innerHTML=response;
}
});
}
</script>
{/literal}
{literal}
<script language='JavaScript' type='text/javascript'>
<!--
function start() {
fetch_select();
if(document.wort_erf)document.wort_erf.uberschrift.focus();return false;
}
//-->
</script>
{/literal}
<title>{$wort_bearbeiten_titel}</title>
{literal}
<script type='text/javascript' src='CKEditor_4.6.1/ckeditor.js'></script>
{/literal}
</head>
<body onload="start();">
<table border="0" style="border-collapse: collapse" width="100%" cellpadding="0" height="100%" id="table1">
<tr>
<td>
<div align="center">
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
<td width="10" background="templates/{$global_template}/images/box_e1.gif">
<img height="40" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
<td nowrap="nowrap" align="left" width="98%" background="templates/{$global_template}/images/box_top.gif" valign="top">
<img height="10" src="templates/{$global_template}/images/blank.gif" width="1"><br>
<font class="hd">{$wort_bearbeiten_titel}</font><br>
<img height="5" src="templates/{$global_template}/images/blank.gif" width="1"></font>
</td>
<td nowrap="nowrap" align="right" width="1%" background="templates/{$global_template}/images/box_e2.gif">
<img height="40" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
</tr>
<tr>
<td width="1%" background="templates/{$global_template}/images/box_l.gif">
<img height="1" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
<td>
<form action=?action=bearbeiten2 method="POST" name="wort_erf">
<table border="0" cellpadding="4" cellspacing="0" style="border-width:0; border-collapse: collapse" bordercolor="#111111" width="102%" id="AutoNumber1" height="18">
<tr>
<td width="20%">
<b>{$wort_bearbeiten_field_date}*</b><br>
<font size="1">{$wort_bearbeiten_field_subdate}</font>
</td>
<td width="80%" align="left">
<input type="text" name="beg_tag" value="{$wort_bearbeiten_tag}" size="1">.<input type="text" name="beg_mon" value="{$wort_bearbeiten_monat}" size="1">.<input type="text" name="beg_jahr" value="{$wort_bearbeiten_jahr}" size="3">
</td>
</tr>
<tr>
<td width="20%">
&nbsp;
</td>
<td width="80%" align="left">
&nbsp;
</td>
</tr>
<tr>
<td width="20%" valign="top">
<b>{$wort_bearbeiten_field_thema}</b><br>
</td>
<td width="80%" align="left">
<select size="1" name="themasel" onchange="this.form.thema.value = this.value;this.form.thema.focus();">
<option value=""></option>
{section name=table_data loop=$table_data}
<option value="{$table_data[table_data].bezeichnung}">{$table_data[table_data].bezeichnung}&nbsp;&nbsp;&nbsp;&nbsp;</option>
{/section}
</select>
</td>
</tr>
<tr>
<td width="20%" align="left">
&nbsp;
</td>
<td width="80%" valign="top">
<input type="text" id="thema" name="thema" value="{$wort_bearbeiten_thema}" size="40">
</td>
<tr>
<tr>
<td width="20%" valign="top">
<b>{$wort_bearbeiten_field_subthema}</b><br>
</td>
<td width="80%" align="left">
<input type="text" id="unterthema" name="unterthema" value="{$wort_bearbeiten_subthema}" size="40">
</td>
<tr>
<tr>
<td width="20%" valign="top">
<b>{$wort_bearbeiten_field_headline}</b><br>
</td>
<td width="80%" align="left">
<input type="text" id="uberschrift" name="uberschrift" value="{$wort_bearbeiten_headline}" size="40">
</td>
<tr>
<tr>
<td width="20%">
<b>{$wort_bearbeiten_field_wort}</b>
</td>
<td width="80%" align="left">
<textarea id='wort' name='wort'>{$wort_bearbeiten_textwort}</textarea>
{literal}
<script type='text/javascript'>
CKEDITOR.replace( 'wort', {
height: 80,
width: "90%",
enterMode : CKEDITOR.ENTER_BR
} );
</script>
{/literal}
</td>
</tr>
<tr>
<td width="20%">
<b>{$wort_bearbeiten_field_stelle}</b>
</td>
<td width="80%" align="left">
<input type="text" name="textstelle" value="{$wort_bearbeiten_textstelle}" size="40">
</td>
</tr>
<tr>
<td width="20%">
&nbsp;
</td>
<td width="80%" align="left">
&nbsp;
</td>
</tr>
<tr>
<td width="20%">
<b>{$wort_bearbeiten_field_vorwort}</b>
</td>
<td width="80%" align="left">
<textarea id='vorwort' name='vorwort'>{$wort_bearbeiten_vorwort}</textarea>
{literal}
<script type='text/javascript'>
CKEDITOR.replace( 'vorwort', {
height: 80,
width: "90%",
enterMode : CKEDITOR.ENTER_BR
} );
</script>
{/literal}
</td>
</tr>
<tr>
<td width="20%">
<b>{$wort_bearbeiten_field_botschaft}</b>
</td>
<td width="80%" align="left">
<textarea id='botschaft' name='botschaft'>{$wort_bearbeiten_botschaft}</textarea>
{literal}
<script type='text/javascript'>
CKEDITOR.replace( 'botschaft', {
height: 80,
width: "90%",
enterMode : CKEDITOR.ENTER_BR
} );
</script>
{/literal}
</td>
</tr>
<tr>
<td width="20%">
<b>{$wort_bearbeiten_field_ausf}</b>
</td>
<td width="80%" align="left">
<textarea id='inhalt' name='inhalt'>{$wort_bearbeiten_inhalt}</textarea>
{literal}
<script type='text/javascript'>
CKEDITOR.replace( 'inhalt', {
width: "90%",
enterMode : CKEDITOR.ENTER_BR
} );
</script>
{/literal}
</td>
</tr>
<tr>
<td width="20%">
<b>{$wort_bearbeiten_field_stapgd}</b>
</td>
<td width="80%" align="left">
<input type='Checkbox' name='stapgd' value='Y' {if $wort_bearbeiten_stapgd == 'Y'} checked {/if} >
</td>
</tr>
<tr>
<td width="20%">
&nbsp;
</td>
<td width="80%" align="left">
&nbsp;
</td>
</tr>
<tr>
<td width="20%">
<b>{$wort_bearbeiten_field_zusammenfassung}</b>
</td>
<td width="80%" align="left">
<textarea id='zusammenfassung' name='zusammenfassung'>{$wort_bearbeiten_zusammenfassung}</textarea>
{literal}
<script type='text/javascript'>
CKEDITOR.replace( 'zusammenfassung', {
height: 100,
width: "90%",
enterMode : CKEDITOR.ENTER_BR
} );
</script>
{/literal}
</td>
</tr>
<tr>
<td width="20%">
<b>{$wort_bearbeiten_field_kontext}</b>
</td>
<td width="80%" align="left">
<textarea id='kontext' name='kontext'>{$wort_bearbeiten_kontext}</textarea>
{literal}
<script type='text/javascript'>
CKEDITOR.replace( 'kontext', {
height: 100,
width: "90%",
enterMode : CKEDITOR.ENTER_BR
} );
</script>
{/literal}
</td>
</tr>
<tr>
<td width="20%">
&nbsp;
</td>
<td width="80%" align="left">
&nbsp;
</td>
</tr>
<tr>
<td width="20%">
<b>{$wort_bearbeiten_field_cat}*</b>
</td>
<td width="80%" align="left">
<select id='kid' name='kid' onchange="fetch_select();">
<option value="">Select</option>
{section name=table_data1 loop=$table_data1}
<option value="{$table_data1[table_data1].kid}" {if $table_data1[table_data1].select == 'Y'} selected {/if} >{$table_data1[table_data1].bezeichnung}&nbsp;&nbsp;&nbsp;&nbsp;</option>
{/section}
</select>
</td>
</tr>
<tr>
<td width="20%">
<b>{$wort_bearbeiten_field_subcat}</b>
</td>
<td width="80%" align="left">
<select id='ukid' name='ukid'>
</select>
</td>
</tr>
</tr>
<tr>
<td width="20%">
* = Pflichtfelder
</td>
<td width="80%" align="left">
&nbsp;
</td>
</tr>
<tr>
<td width="20%">
&nbsp;
</td>
<td width="80%" align="left">
&nbsp;
</td>
</tr>
</table>
&nbsp; <input type="submit" value="Abschicken" name="B1">
<input type="reset" value="Zur&uuml;cksetzen" name="B2">
</form>
</td>
<td width="1%" background="templates/{$global_template}/images/box_r.gif">
<img height="1" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
</tr>
<tr>
<td nowrap="nowrap" align="left" width="1%" background="templates/{$global_template}/images/box_e3.gif">
<img height="16" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
<td nowrap="nowrap" align="left" width="98%" background="templates/{$global_template}/images/box_bottom.gif">
<img height="16" src="templates/{$global_template}/images/blank.gif" width="8">
</td>
<td nowrap="nowrap" align="right" width="1%" background="templates/{$global_template}/images/box_e4.gif">
<img height="16" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>
{/if}
{if $action == 'bearbeiten2'}
{if $wort_bearbeiten_checkdate_err == '1'}
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="templates/{$global_template}/css/styles_pc.php" type="text/css">
<title>{$wort_bearbeiten_date_err_titel}</title>
</head>
<body>
<table border="0" style="border-collapse: collapse" width="100%" cellpadding="0" height="100%" id="table1">
<tr>
<td>
<div align="center">
<table cellspacing="0" cellpadding="0" width="550" border="0">
<tr>
<td width="10" background="templates/{$global_template}/images/box_e1.gif">
<img height="40" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
<td nowrap="nowrap" align="left" width="3%" background="templates/{$global_template}/images/box_top.gif" valign="top"></td>
<td width="95%" background="templates/{$global_template}/images/box_top.gif">
<img height="10" src="templates/{$global_template}/images/blank.gif" width="1"><br>
<span class="sh">{$wort_bearbeiten_date_err_titel}</span><br>
<img height="5" src="templates/{$global_template}/images/blank.gif" width="1">
</td>
<td nowrap="nowrap" align="right" width="1%" background="templates/{$global_template}/images/box_e2.gif">
<img height="40" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
</tr>
<tr>
<td width="1%" background="templates/{$global_template}/images/box_l.gif">
<img height="1" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
<td colspan="2">
<br>
<p align="center"><b>{$wort_bearbeiten_date_err_text}</p>
</b>
</p>
<p align="center"><a href="javascript:history.back()">
<img border="0" src="templates/{$global_template}/images/zurueck.gif" width="77" height="22"></a><br>
</p>
<p></p>
<p></p>
<p></p>
<p></p>
<p><br>
</p>
</td>
<td width="1%" background="templates/{$global_template}/images/box_r.gif">
<img height="1" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
</tr>
<tr>
<td nowrap="nowrap" align="left" width="1%" background="templates/{$global_template}/images/box_e3.gif">
<img height="16" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
<td nowrap="nowrap" align="left" width="98%" background="templates/{$global_template}/images/box_bottom.gif" colspan="2">
<img height="16" src="templates/{$global_template}/images/blank.gif" width="8">
</td>
<td nowrap="nowrap" align="right" width="1%" background="templates/{$global_template}/images/box_e4.gif">
<img height="16" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>
{/if}
{if $wort_bearbeiten_sql_err1 == '1'}
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="templates/{$global_template}/css/styles_pc.php" type="text/css">
<title>{$wort_bearbeiten_inserterr_titel}</title>
</head>
<body>
<table border="0" style="border-collapse: collapse" width="100%" cellpadding="0" height="100%" id="table1">
<tr>
<td>
<div align="center">
<table cellspacing="0" cellpadding="0" width="550" border="0">
<tr>
<td width="10" background="templates/{$global_template}/images/box_e1.gif">
<img height="40" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
<td nowrap="nowrap" align="left" width="3%" background="templates/{$global_template}/images/box_top.gif" valign="top"></td>
<td width="95%" background="templates/{$global_template}/images/box_top.gif">
<img height="10" src="templates/{$global_template}/images/blank.gif" width="1"><br>
<span class="sh">{$wort_bearbeiten_inserterr_titel}</span><br>
<img height="5" src="templates/{$global_template}/images/blank.gif" width="1">
</td>
<td nowrap="nowrap" align="right" width="1%" background="templates/{$global_template}/images/box_e2.gif">
<img height="40" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
</tr>
<tr>
<td width="1%" background="templates/{$global_template}/images/box_l.gif">
<img height="1" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
<td colspan="2">
<br>
<p align="center"><b>{$wort_bearbeiten_inserterr_text}</b>
</p>
<p align="center"><a href="javascript:history.back()">
<img border="0" src="templates/{$global_template}/images/zurueck.gif" width="77" height="22"></a><br>
</p>
<p></p>
<p></p>
<p></p>
<p></p>
<p><br>
</p>
</td>
<td width="1%" background="templates/{$global_template}/images/box_r.gif">
<img height="1" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
</tr>
<tr>
<td nowrap="nowrap" align="left" width="1%" background="templates/{$global_template}/images/box_e3.gif">
<img height="16" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
<td nowrap="nowrap" align="left" width="98%" background="templates/{$global_template}/images/box_bottom.gif" colspan="2">
<img height="16" src="templates/{$global_template}/images/blank.gif" width="8">
</td>
<td nowrap="nowrap" align="right" width="1%" background="templates/{$global_template}/images/box_e4.gif">
<img height="16" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>
{/if}
{if $wort_bearbeiten_sql_err2 == '1'}
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="templates/{$global_template}/css/styles_pc.php" type="text/css">
<title>{$wort_bearbeiten_formaterr_titel}</title>
</head>
<body>
<table border="0" style="border-collapse: collapse" width="100%" cellpadding="0" height="100%" id="table1">
<tr>
<td>
<div align="center">
<table cellspacing="0" cellpadding="0" width="550" border="0">
<tr>
<td width="10" background="templates/{$global_template}/images/box_e1.gif">
<img height="40" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
<td nowrap="nowrap" align="left" width="3%" background="templates/{$global_template}/images/box_top.gif" valign="top"></td>
<td width="95%" background="templates/{$global_template}/images/box_top.gif">
<img height="10" src="templates/{$global_template}/images/blank.gif" width="1"><br>
<span class="sh">{$wort_bearbeiten_formaterr_titel}</span><br>
<img height="5" src="templates/{$global_template}/images/blank.gif" width="1">
</td>
<td nowrap="nowrap" align="right" width="1%" background="templates/{$global_template}/images/box_e2.gif">
<img height="40" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
</tr>
<tr>
<td width="1%" background="templates/{$global_template}/images/box_l.gif">
<img height="1" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
<td colspan="2">
<br>
<p align="center">{$wort_bearbeiten_formaterr_text}
<p align="center"><a href="javascript:history.back()">
<img border="0" src="templates/{$global_template}/images/zurueck.gif" width="77" height="22"></a>
</p>
<p></p>
<p></p>
<p></p>
<p></p>
<p><br>
</p>
</td>
<td width="1%" background="templates/{$global_template}/images/box_r.gif">
<img height="1" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
</tr>
<tr>
<td nowrap="nowrap" align="left" width="1%" background="templates/{$global_template}/images/box_e3.gif">
<img height="16" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
<td nowrap="nowrap" align="left" width="98%" background="templates/{$global_template}/images/box_bottom.gif" colspan="2">
<img height="16" src="templates/{$global_template}/images/blank.gif" width="8">
</td>
<td nowrap="nowrap" align="right" width="1%" background="templates/{$global_template}/images/box_e4.gif">
<img height="16" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>
{/if}
{if $wort_bearbeiten_success == '1'}
<meta http-equiv="refresh" content="1; URL=wort_bearbeiten.php">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="templates/{$global_template}/css/styles_pc.php" type="text/css">
<title>{$wort_bearbeiten_success_titel}</title>
</head>
<body>
<table border="0" style="border-collapse: collapse" width="100%" cellpadding="0" height="100%" id="table1">
<tr>
<td>
<div align="center">
<table cellspacing="0" cellpadding="0" width="550" border="0">
<tr>
<td width="10" background="templates/{$global_template}/images/box_e1.gif">
<img height="40" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
<td nowrap="nowrap" align="left" width="3%" background="templates/{$global_template}/images/box_top.gif" valign="top"></td>
<td width="95%" background="templates/{$global_template}/images/box_top.gif">
<img height="10" src="templates/{$global_template}/images/blank.gif" width="1"><br>
<span class="sh">{$wort_bearbeiten_success_titel}</span><br>
<img height="5" src="templates/{$global_template}/images/blank.gif" width="1">
</td>
<td nowrap="nowrap" align="right" width="1%" background="templates/{$global_template}/images/box_e2.gif">
<img height="40" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
</tr>
<tr>
<td width="1%" background="templates/{$global_template}/images/box_l.gif">
<img height="1" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
<td colspan="2">
<br>
<p align="center"><b>{$wort_bearbeiten_success_text}</b>
<p align="center"><a href="hauptframe.php">
<img border="0" src="templates/{$global_template}/images/zurueck.gif"></a>
</p>
<p></p>
<p></p>
<p></p>
<p></p>
<p><br>
</p>
</td>
<td width="1%" background="templates/{$global_template}/images/box_r.gif">
<img height="1" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
</tr>
<tr>
<td nowrap="nowrap" align="left" width="1%" background="templates/{$global_template}/images/box_e3.gif">
<img height="16" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
<td nowrap="nowrap" align="left" width="98%" background="templates/{$global_template}/images/box_bottom.gif" colspan="2">
<img height="16" src="templates/{$global_template}/images/blank.gif" width="8">
</td>
<td nowrap="nowrap" align="right" width="1%" background="templates/{$global_template}/images/box_e4.gif">
<img height="16" src="templates/{$global_template}/images/blank.gif" width="22">
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>
{/if}
{if $wort_bearbeiten_success == '2'}
<meta http-equiv="refresh" content="0; URL=ausgabe.php?lid={$wort_bearbeiten_lid}">
{/if}
{/if}