include "./include/config.inc.php3";
include "./include/texte.php3";
include "./sys/funktion.inc";
$html_array= file("templates/suche.htm");
$html_code = implode($html_array,"");
$html_code= rubrikerstellen($html_code);
$html_code= usererlauben($html_code);
$feldtreffer="0";
$query2="SELECT * FROM $sitetable9";
$result2=mysql_db_query($dbname,$query2,$conn) or die(mysql_error());
$feldtreffer= mysql_num_rows($result2);
$htmla= explode("", "$html_code");
$htmlb= explode("", "$htmla[1]");
$html_block="$htmlb[0]";
if($feldtreffer=="0")
{
$html_code= "$htmla[0] $htmlb[1]";
}
else
{
$block_block="";
$block="";
$zahlcode="30";
$query="SELECT * FROM $sitetable9";
$result=mysql_db_query($dbname,$query,$conn) or die (mysql_error());
while($date=mysql_fetch_array($result))
{
$trefferscodes="0";
$sucheterm= $date[feldnummer];
$query2="SELECT * FROM $sitetable10 WHERE feldnummer='$sucheterm'";
$result2=mysql_db_query($dbname,$query2,$conn) or die(mysql_error());
$trefferscodes= mysql_num_rows($result2);
if($trefferscodes=="0")
{
if($date[feldtyp]=="textfeld")
{
$feldcode="";
}
else
{
$feldcode="";
}
$block="";
$mail_code= array(
"={freitext1}=si",
"={freitext2}=si"
);
$mail_text= array(
"$date[feldname]",
"$feldcode"
);
$block = preg_replace ($mail_code, $mail_text, $html_block);
if($date[art]=="ja")
{
$block_block="$block_block $block";
}
}
else
{
$block="";
$menuefeld1="";
$blockss="";
$query2="SELECT * FROM $sitetable10 WHERE feldnummer='$sucheterm'";
$result2=mysql_db_query($dbname,$query2,$conn) or die (mysql_error());
while($date2=mysql_fetch_array($result2))
{
$menuefeld2="";
$menuefeld2="";
$blockss="$blockss $menuefeld2";
}
$mail_code= array(
"={freitext1}=si",
"={freitext2}=si"
);
$mail_text= array(
"$date[feldname]",
"$menuefeld1 $blockss $menuefeld3"
);
$block = preg_replace ($mail_code, $mail_text, $html_block);
if($date[art]=="ja")
{
$block_block="$block_block $block";
}
}
$zahlcode--;
}
$html_code= "$htmla[0] $block_block $htmlb[1]";
}
$rubrikhtml= rubrikhtml();
$php_code= array(
"={rubrik}=si",
"={datum}=si",
"={session}=si",
"={coby}=si",
"={session_form}=si"
);
$php_text= array (
"$rubrikhtml",
"$seitendatum",
"?$sidname=$sidsid",
"$coby",
""
);
$html_text = preg_replace ($php_code, $php_text, $html_code);
echo("$html_text");
?>