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

462 lines
20 KiB
Plaintext
Raw Blame History

{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">
{literal}
<script type="text/javascript">
function neu(string) {
document.forms['searchform'].elements['q'].value =string;
if(document.searchform)document.searchform.textwort.focus();
}
</script>
<script type='text/javascript' src='ajax.js'></script>
<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 <20>bergeben. Wurde ersetzt durch ausf<73>hrliche Schreibweise oben, da diese Funktion beim body=onlad auch gestartet wird, falls man im Browser auf zur<75>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>
<script language='JavaScript' type='text/javascript'>
<!--
function start() {
getCityList();
}
//-->
</script>
{/literal}
<style type="text/css">
{literal}
select{
width:250px;
}
/* Big box with list of options */
#ajax_listOfOptions{
position:absolute; /* Never change this one */
width:250px; /* Width of box */
height:200px; /* Height of box */
overflow:auto; /* Scrolling features */
border:1px solid #6487DC; /* Dark blue border */
background-color:#FFF; /* White background color */
text-align:left;
font-family : verdana, arial;
z-index:10000;
}
#ajax_listOfOptions div{ /* General rule for both .optionDiv and .optionDivSelected */
margin:1px;
padding:1px;
cursor:pointer;
font-size:0.9em;
}
#ajax_listOfOptions .optionDiv{ /* Div for each item in list */
}
#ajax_listOfOptions .optionDivSelected{ /* Selected item in the list */
background-color:#D6DFF7;
color:#002276;
font-family : verdana, arial;
font-weight : bold;
}
#ajax_listOfOptions_iframe{
background-color:#F00;
position:absolute;
z-index:500;
}
form{
display:inline;
}
{/literal}
</style>
{literal}
<script type="text/javascript" src="livesearch/ajax.js"></script>
<script type="text/javascript" src="livesearch/ajax-dynamic-list.js">
/************************************************************************************************************
(C) www.dhtmlgoodies.com, April 2006
This is a script from www.dhtmlgoodies.com. You will find this and a lot of other scripts at our website.
Terms of use:
You are free to use this script as long as the copyright message is kept intact. However, you may not
redistribute, sell or repost it without our permission.
Thank you!
www.dhtmlgoodies.com
Alf Magne Kalleland
************************************************************************************************************/
</script>
{/literal}
<title>{$suche_titel}</title>
</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="75%" 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">{$suche_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=suche method="POST" name="searchform">
<br>
<br>
<table border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse" bordercolor="#E7E8ED" width="100%" id="AutoNumber1">
<tr>
<td width="30%" align="left" height="18">
<b>{$suche_field_thema}</b>
</td>
<td width="70%" align="left" height="18">
<!--[if lt IE 7]><div id="kategorie"><![endif]-->
<select id='thema' name='thema'>
<option value=''>Select</option>
{section name=table_data loop=$table_data}
<option value="{$table_data[table_data].tid}">{$table_data[table_data].bezeichnung}&nbsp;&nbsp;&nbsp;</option>
{/section}
</select>
</td>
</tr>
<tr>
<td width="30%" align="left" height="18">
<b>{$suche_field_headline}</b>
</td>
<td width="70%" align="left" height="18">
<input type="text" name="ueberschrift" size="30">
</td>
</tr>
<tr>
<td width="30%" align="left" height="18">
<b>{$suche_field_stelle}</b>
</td>
<td width="70%" align="left" height="18">
<input type="text" id="textstelle" name="textstelle" value="" onkeyup="ajax_showOptions(this,'getWord',event)" size="30">
<input type="hidden" id="textstelle_hidden" name="textstelle_ID"><!-- THE ID OF the textstelle will be inserted into this hidden input -->
</td>
</tr>
<tr>
<td width="30%" align="left" height="18">
<b>{$suche_field_wort}</b>
</td>
<td width="70%" align="left" height="18">
<input type="text" name="textwort" size="30">
</td>
</tr>
<tr>
<td width="30%" align="left" height="18">
<b>{$suche_field_inhalt}</b>
</td>
<td width="70%" align="left" height="18">
<input type="text" name="inhalt" size="30">
</td>
</tr>
<tr>
<td width="30%" align="left" height="18">
<b>{$suche_field_datum}</b>
</td>
<td width="70%" align="left" height="18">
<input type="text" name="tag" ID="text" size="1" value='TT' onFocus="{literal}if(this.value=='TT'){ this.value='';}{/literal}">.<input type="text" name="monat" value='MM' ID="text1" size="1" onFocus="{literal}if(this.value=='MM'){ this.value='';}{/literal}">.<input type="text" name="jahr" ID="text2" value='JJJJ' size="3" onFocus="{literal}if(this.value=='JJJJ'){ this.value='';}{/literal}">
</td>
</tr>
<tr>
<td width="30%" align="left" height="18">
<b>{$suche_field_stapgd}</b>
</td>
<td width="70%" align="left" height="18">
<input type='Checkbox' name='stapgd' value='Y'>
</td>
</tr>
<tr>
<td width="30%" align="left" height="18">
<b>{$suche_field_cat}</b>
</td>
<td width="70%" align="left" height="18">
<!--[if lt IE 7]><div id="kategorie"><![endif]-->
<select 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;</option>
{/section}
</select>
</td>
</tr>
<tr>
<td width="30%" align="left" height="18">
<b>{$suche_field_subcat}</b>
</td>
<td width="70%" align="left" height="18">
<!--[if lt IE 7]><div id="unterkategorie"><![endif]-->
<select id='dhtmlgoodies_city' name='dhtmlgoodies_city'>
</select>
</td>
</tr>
</div>
<tr>
<td width="30%" align="left" height="18">
<b>{$suche_field_art}</b>
</td>
<td width="70%" align="left" height="18">
<label for="r3"><input type="radio" name="art" checked value="exact" id="r3"> {$suche_field_art_opt_ext}</label><br>
<label for="r4"><input type="radio" name="art" value="any" id="r4"> {$suche_field_art_opt_sim}</label>
</td>
</tr>
</table>
</div>
<br>
<br>
<input type="submit" value="Abschicken">
</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>
</td>
</tr>
</table>
</body>
</html>
{/if}
{if $action == 'suche'}
{if $suche_nomatch == '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>{$suche_nomatch_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">{$suche_nomatch_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>{$suche_nomatch_text}</b>
<p align="center"><a href="javascript:history.back()">
<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 $suche_match == '1'}
<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>{$suche_match_titel}</title>
<style>
{literal}
<!--
.sl,.r{font-weight:normal;margin:0;display:inline}
.r{font-size:1em}
.g{margin-top:1em;margin-bottom:1em}
.a,.a:link{color:green}
body,td,div,.p,a{font-family:arial,sans-serif}
-->
{/literal}
</style>
</head>
<body>
<table align="center" border="0" style="border-collapse: collapse" width="100%" cellpadding="0" height="95%" id="table1">
<tr>
<td>
<div align="center">
<table valign="top" 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">{$suche_match_titel}</font><br>
<span class="sh">Treffer: {$anzahltreffer}</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>
<table valign="top" border="0" cellpadding="4" cellspacing="0" style="border-collapse: collapse" bordercolor="#E7E8ED" width="60%" id="AutoNumber1">
{section name=table_data3 loop=$table_data3}
<tr>
<td>
<h2 class=r><a class=l href=ausgabe.php?lid={$table_data3[table_data3].lid}&suchart={$table_data3[table_data3].suchart}&inhalt_hig={$table_data3[table_data3].inhalt_hig}><b>{$table_data3[table_data3].ueberschrift}</b></a></h2>
<br>
{$table_data3[table_data3].preview}
<br>
<span class=a>Kategorie: {$table_data3[table_data3].kategorie}
{if $table_data3[table_data3].unterkategorie != ''}
/ {$table_data3[table_data3].unterkategorie}
{/if}
<br>
Datum: {$table_data3[table_data3].wochentag}, {$table_data3[table_data3].tag}.{$table_data3[table_data3].monat}.{$table_data3[table_data3].jahr}
</span>
<p>
<p>
</td>
</tr>
{/section}
</table>
</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}