extract($_REQUEST);
include("incl/sqlquery.php");
include("incl/conn.php");
include("office/variablen_berg.php");
$server = $_SERVER[HTTP_HOST];
if ($server!="localhost") {$link_index="http://www.pension-bergidyll.de";}
else {$link_index="$PHPSELF";}
if ($site_id=="")
{
$navisel=sqlquery("select * from navi where status = 1 order by rf asc limit 1");
while
($ausgabe_navi=mysql_fetch_array($navisel))
{
$site_id = $ausgabe_navi[n_id];
}
}
if ($site_id=="1")
{
if ($ag_id=="")
{
$sitesel=sqlquery("select * from ag where pg_id = $pg_id order by rf limit 1");
while
($ausgabe_site=mysql_fetch_array($sitesel))
{
$site_id = $ausgabe_site[pg_id]+$ausgabe_site[ag_id]+10000;
}
}
else
{
$sitesel=sqlquery("select * from ag where pg_id = $pg_id and ag_id = $ag_id order by rf limit 1");
while
($ausgabe_site=mysql_fetch_array($sitesel))
{
$site_id = $ausgabe_site[pg_id]+$ausgabe_site[ag_id]+10000;
}
}
}
echo"
FERIENPENSION BERGIDYLL UND DER ALLTAG BLEIBT ZU HAUS
FERIENPENSION
";
$navisel=sqlquery("select * from navi where status = 1 order by rf asc");
while
($ausgabe_navi=mysql_fetch_array($navisel))
{
if ($ausgabe_navi[n_id]==1)
{
$pgsel=sqlquery("select * from pg where status = 1 order by rf asc");
while
($ausgabe_pg=mysql_fetch_array($pgsel))
{
echo"
";
$agsel=sqlquery("select * from ag where status = 1 and pg_id = '".$pg_id."' order by rf asc");
while
($ausgabe_ag=mysql_fetch_array($agsel))
{
if (($ag_id=="")&&($ausgabe_ag[rf]==1)){$ag_id = $ausgabe_ag[ag_id];}
echo"
";
if($best=="aktiv"){include("php/kdn_best.php");}
else
{
if ($site_id=="1"){$site_id=$pg_id+$ag_id+10000;}
$picsel_info=sqlquery("select * from pic where site_id = $site_id order by rf asc");
$anz_res_pic = mysql_num_rows($picsel_info);
if ($anz_res_pic>0)
{
echo"