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

630 lines
31 KiB
Plaintext

{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">
<style type='text/css'>
{literal}
select{
width:250px;
}
{/literal}
</style>
{literal}
<script type='text/javascript' src='ajax.js'></script>
{/literal}
{literal}
<script type='text/javascript'>
/************************************************************************************************************
Ajax chained select
Copyright (C) 2006 DTHMLGoodies.com, Alf Magne Kalleland
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Dhtmlgoodies.com., hereby disclaims all copyright interest in this script
written by Alf Magne Kalleland.
Alf Magne Kalleland, 2006
Owner of DHTMLgoodies.com
************************************************************************************************************/
var ajax = new sack();
function getCityList(sel)
{
var countryCode = document.getElementById('dhtmlgoodies_country').options[document.getElementById('dhtmlgoodies_country').options.selectedIndex].value
// var countryCode = sel.options[sel.selectedIndex].value; // --> Parameter 'this' von Selectbox wird Funktion übergeben. Wurde ersetzt durch ausführliche Schreibweise oben, da diese Funktion beim body=onlad auch gestartet wird, falls man im Browser auf zurück klickt, dass dann die Unterkategorie auch angezeigt wird.
document.getElementById('dhtmlgoodies_city').options.length = 0; // Empty city select box
if(countryCode.length>0){
ajax.requestFile = 'getSubCat.php?countryCode='+countryCode; // Specifying which file to get
ajax.onCompletion = createCities; // Specify function that will be executed after file has been found
ajax.runAJAX(); // Execute AJAX function
}
}
function createCities()
{
var obj = document.getElementById('dhtmlgoodies_city');
eval(ajax.response); // Executing the response from Ajax as Javascript code
}
</script>
{/literal}
{literal}
<script language='JavaScript' type='text/javascript'>
<!--
function start() {
getCityList();
if(document.wort_erf)document.wort_erf.beg_tag.focus();return false;
}
//-->
</script>
{/literal}
<title>{$wort_erfassen_titel}</title>
<script type='text/javascript' src='CKEditor_4.6.1/ckeditor.js'></script>
</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_erfassen_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=erfassen1 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_erfassen_field_date}*</b><br>
<font size="1">{$wort_erfassen_field_subdate}</font>
</td>
<td width="80%" align="left">
<input type="text" name="beg_tag" size="1">.<input type="text" name="beg_mon" size="1">.<input type="text" name="beg_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_erfassen_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" size="40">
</td>
<tr>
<tr>
<td width="20%" valign="top">
<b>{$wort_erfassen_field_subthema}</b><br>
</td>
<td width="80%" align="left">
<input type="text" id="unterthema" name="unterthema" size="40">
</td>
<tr>
</tr>
<tr>
<td width="20%" valign="top">
<b>{$wort_erfassen_field_headline}</b><br>
</td>
<td width="80%" align="left">
<input type="text" id="VerArt" name="uberschrift" size="40">
</td>
<tr>
<tr>
<td width="20%">
<b>{$wort_erfassen_field_wort}</b>
</td>
<td width="80%" align="left">
<textarea id='wort' name='wort'></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_erfassen_field_stelle}</b>
</td>
<td width="80%" align="left">
<input type="text" name="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_erfassen_field_vorwort}</b>
</td>
<td width="80%" align="left">
<textarea id='vorwort' name='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_erfassen_field_botschaft}</b>
</td>
<td width="80%" align="left">
<textarea id='botschaft' name='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_erfassen_field_ausf}</b>
</td>
<td width="80%" align="left">
<textarea id='inhalt' name='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_erfassen_field_stapgd}</b>
</td>
<td width="80%" align="left">
<input type='Checkbox' name='stapgd' value='Y'>
</td>
</tr>
<tr>
<td width="20%">
&nbsp;
</td>
<td width="80%" align="left">
&nbsp;
</td>
</tr>
<tr>
<td width="20%">
<b>{$wort_erfassen_field_zusammenfassung}</b>
</td>
<td width="80%" align="left">
<textarea id='zusammenfassung' name='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_erfassen_field_kontext}</b>
</td>
<td width="80%" align="left">
<textarea id='kontext' name='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_erfassen_field_cat}*</b>
</td>
<td width="80%" align="left">
<select size="1" id='dhtmlgoodies_country' name='dhtmlgoodies_country' onchange='{literal}getCityList(this){/literal}'>
<option value="">Select</option>
{section name=table_data1 loop=$table_data1}
<option value="{$table_data1[table_data1].kid}">{$table_data1[table_data1].bezeichnung}&nbsp;&nbsp;&nbsp;&nbsp;</option>
{/section}
</select>
</td>
</tr>
<tr>
<td width="20%">
<b>{$wort_erfassen_field_subcat}</b>
</td>
<td width="80%" align="left">
<select id='dhtmlgoodies_city' name='dhtmlgoodies_city'>
</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 == 'erfassen1'}
{if $wort_erfassen_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_erfassen_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_erfassen_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_erfassen_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_erfassen_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_erfassen_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_erfassen_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_erfassen_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_erfassen_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_erfassen_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_erfassen_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_erfassen_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_erfassen_success == '1'}
<meta http-equiv="refresh" content="1; URL=wort_erfassen.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_erfassen_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_erfassen_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_erfassen_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}