$col_value) { if ($col_value == "") { unset($array[$key]); } } return $array; } // Ende unsetEmptyArray function telcleaner($text) { $text = str_replace ('+', '00', $text); $text = str_replace (' ', '', $text); return $text; } function ersetzen($text) { $text = str_replace ('/', '-', $text); $text = str_replace ('+', '-', $text); $text = str_replace (',', '-', $text); $text = str_replace ('.', '', $text); $text = str_replace (' ', '-', $text); $text = str_replace ('ä', 'ae', $text); $text = str_replace ('ä', 'ae', $text); $text = str_replace ('ö', 'oe', $text); $text = str_replace ('ö', 'oe', $text); $text = str_replace ('ü', 'ue', $text); $text = str_replace ('ü', 'ue', $text); $text = str_replace ('Ä', 'Ae', $text); $text = str_replace ('Ö', 'Oe', $text); $text = str_replace ('Ü', 'Ue', $text); $text = str_replace ('ß', 'ss', $text); $text = str_replace ('\'', '', $text); $text = str_replace ('&', 'und', $text); $text = str_replace ('*', 'stern', $text); $text = str_replace ('(', '-', $text); $text = str_replace (')', '-', $text); $text = str_replace ('[', '-', $text); $text = str_replace (']', '-', $text); $text = str_replace ('%', '-', $text); $text = str_replace ('=', '-', $text); $text = str_replace ('"', '-', $text); $text = ereg_replace ("!","-",$text) ; $text = ereg_replace ("\?","-",$text); return $text; } function ersetzenUmlaute($text) { $text = str_replace ('ä', 'ä', $text); $text = str_replace ('ö', 'ö', $text); $text = str_replace ('ü', 'ü', $text); $text = str_replace ('ß', 'ß', $text); return $text; } function ersetzenTitleTag($text) { $text = str_replace ('_', ' ', $text); $text = str_replace ('-', ' ', $text); return ucwords($text); } function showBildklein($bild,$style) { if($bild!="") { //$bild = makeGoodURL($bild); $html_img=''.$bild.''; } else { $html_img='empty-image'; } return $html_img; } function makeGoodUrl($ordner) { global $ordner2showClean; $ordner2showClean = ""; $ordner_array = explode("/",$ordner); while(list($key1,$val1) = each($ordner_array)) { if($val1!="") { $ordner2showClean .= "/".rawurlencode($val1); } } return $ordner2showClean; } function makeGoodUrl4Zoom($ordner) { global $ordner2showClean; $ordner2showClean = ""; if(substr($ordner,0,4)=="http") { $ordner = parse_url($ordner); $ordner = $ordner[path]; } $ordner_array = explode("/",$ordner); while(list($key1,$val1) = each($ordner_array)) { if($val1!="") { $ordner2showClean .= "/".utf8_decode($val1); } } return $ordner2showClean; //unlink ($ordner2showClean); } function umlauteersetzen($text) { $text = str_replace ("ä", "ä", $text); $text = str_replace ("Ä", "¨", $text); $text = str_replace ("ö", "ö", $text); $text = str_replace ("Ö", "Ö", $text); $text = str_replace ("ü", "ü", $text); $text = str_replace ("Ü", "Ü", $text); $text = str_replace ("ß", "ß", $text); $text = str_replace ('/', '-', $text); $text = str_replace ('+', '-', $text); $text = str_replace (',', '-', $text); $text = str_replace (' ', '-', $text); $text = str_replace ('ä', 'ae', $text); $text = str_replace ('ö', 'oe', $text); $text = str_replace ('ü', 'ue', $text); $text = str_replace ('ß', 'ss', $text); $text = str_replace ('\'', '', $text); $text = str_replace ('&', 'und', $text); $text = str_replace ('*', 'stern', $text); $text = str_replace ('(', '-', $text); $text = str_replace (')', '-', $text); $text = str_replace ('[', '-', $text); $text = str_replace (']', '-', $text); $text = str_replace ('%', '-', $text); $text = str_replace ('=', '-', $text); $text = str_replace ('"', '-', $text); $text = ereg_replace ("!","-",$text) ; $text = ereg_replace ("\?","-",$text); return $text; } function leerraumersetzen($text) { $text = str_replace (" ", "-", $text); $text = str_replace ("%20", "-", $text); return $text; } function resizeImage($img,$outSize) { $order4name = ""; $path_parts = pathinfo($img); $path = $path_parts['dirname']; $path = explode("/",$path); while(list($key,$val) = each($path)) { $ordner4name = rawurlencode(leerraumersetzen(umlauteersetzen($val)))."-"; } $imgOrig = $img; $imgNew = leerraumersetzen(umlauteersetzen(rawurlencode(basename($img)))); $imgNew = $ordner4name."".$imgNew; $img = makeGoodUrl4Zoom($img); global $neueBreite; global $neueHoehe; $picurl = $_SERVER['DOCUMENT_ROOT'].$img; $PicPathOut = $_SERVER['DOCUMENT_ROOT']."/UserFiles/Resized/".$outSize."/"; $PicPathUrl = "/UserFiles/Resized/".$outSize."/"; $size = getimagesize($picurl); $breite = $size[0]; $hoehe = $size[1]; //$neueHoehe = 75; if($hoehe>$breite) { $neueHoehe = $outSize; $neueBreite = intval($breite*$neueHoehe/$hoehe); $makeHoehe = "ok"; } else { $neueBreite = $outSize; $neueHoehe = intval($hoehe*$neueBreite/$breite); $makeBreite = "ok"; } if($makeHoehe=="ok" && $hoehe>$neueHoehe OR $makeBreite=="ok" && $breite>$neueBreite) { if(file_exists($PicPathOut."".$imgNew)) {} else { if($size[2] == 1) { // GIF $altesBild = ImageCreateFromGIF("$picurl"); $neuesBild = ImageCreateTrueColor($neueBreite,$neueHoehe); imageCopyResized($neuesBild, $altesBild, 0, 0, 0, 0,$neueBreite, $neueHoehe, $breite, $hoehe); imageGIF($neuesBild,"$PicPathOut"."".$imgNew); } if($size[2] == 2) { // JPG $neuesBild = imagecreatetruecolor($neueBreite,$neueHoehe); $altesBild = imagecreatefromjpeg("$picurl"); imagecopyresampled($neuesBild, $altesBild, 0, 0, 0, 0, $neueBreite, $neueHoehe, $breite, $hoehe); ImageJPEG($neuesBild,"$PicPathOut"."".$imgNew,90); } if($size[2] == 3) { // PNG $altesBild = ImageCreateFromPNG("$picurl"); $neuesBild = ImageCreateTrueColor($neueBreite,$neueHoehe); imagealphablending($neuesBild, false); imagesavealpha($neuesBild, true); imageCopyResized($neuesBild, $altesBild, 0, 0, 0, 0,$neueBreite, $neueHoehe, $breite, $hoehe); ImagePNG($neuesBild,"$PicPathOut"."".$imgNew); } } // End if file $img = $PicPathUrl."".$imgNew; } else { $img = makeGoodUrl($img); } return $img; } function showFotogalerien ($fotogalerien,$link,$anzahlBilder,$animiert = 0,$zimmername,$id4layer,$size,$output) { $fotogalerien_array = explode("|",$fotogalerien); reset($fotogalerien_array); if($anzahlBilder>1) { $html_outer = "
"; while(list($key,$val) = each($fotogalerien_array)) { if($val!="") { $query_gallery = "select * from gallery_thema where id = '$val'"; $result_gallery = mysql_query($query_gallery); $num_gallery = mysql_num_rows($result_gallery); $caption = ucfirst(@mysql_result($result_gallery,$i,"gallery_thema")); $query_gallery = "select * from gallery where gallery_thema = '$val' order by gallery_reihenfolge"; $result_gallery = mysql_query($query_gallery); $num_gallery = mysql_num_rows($result_gallery); $html_inner .= ''; } else { } } $html_outer1 = "
"; $html_script = " "; if($output=="") { echo $html_outer; echo $html_gallery1; echo $html_inner; echo $html_gallery2; echo $html_gallery; echo $html_gallery3; echo $html_outer1; echo $html_script; } else { $html_total = $html_outer."".$html_gallery1."".$html_inner."".$html_gallery2."".$html_gallery."".$html_gallery3."".$html_outer1."".$html_script; return $html_total; } } //if Anzahl Bilder > 1 else { while(list($key,$val) = each($fotogalerien_array)) { if($val!="") { $query_gallery = "select * from gallery_thema where id = '$val'"; $result_gallery = mysql_query($query_gallery); $num_gallery = mysql_num_rows($result_gallery); $caption = ucfirst(@mysql_result($result_gallery,$i,"gallery_thema")); $query_gallery = "select * from gallery where gallery_thema = '$val' order by gallery_reihenfolge Limit 1"; $result_gallery = mysql_query($query_gallery); $num_gallery = mysql_num_rows($result_gallery); $bild = makeGoodUrl(@mysql_result($result_gallery,0,"gallery_bild")); echo ''.$zimmername.''; /* echo ''; echo ''; */ } // Ende if val } // Ende array fotogal }//Ende if Anzahl Bilder > 1 } function makeZimmer($text,$kurzbeschreibung,$zimmername,$zimmername_de,$textPreiseSommer,$textPreiseWinter,$fotogalerien,$link,$anzahlBilder,$animiert,$id4layer,$size,$abPreis,$abText,$onlineBuchenText,$zimmertyp,$preisberechnungText,$gastrodatKuerzel, $feratelID, $verfuegbarkeitText) { $array_zimmeranfragenlink[de] = "anfragen-buchen"; $array_zimmeranfragenlink[en] = "Inquiry_for_reservation"; $array_zimmeranfragenlink[fr] = "faire_une_demande_de-réservation"; $array_zimmeranfragenlink[nl] = "aanvraag_reserviering"; $array_zimmeranfragenlinkID[de] = "299"; $array_zimmeranfragenlinkID[en] = "109"; $array_zimmeranfragenlinkID[fr] = "171"; $array_zimmeranfragenlinkID[nl] = "168"; $array_zimmerbuchenlink[de] = "zimmer-online-buchen"; $array_zimmerbuchenlink[en] = "Online_Booking_Rooms"; $array_zimmerbuchenlink[fr] = "réservation_online_d_une_chambre"; $array_zimmerbuchenlink[nl] = "Online_Reserviering_Kamers"; $array_zimmerbuchenlinkID[de] = "284"; $array_zimmerbuchenlinkID[en] = "285"; $array_zimmerbuchenlinkID[fr] = "287"; $array_zimmerbuchenlinkID[nl] = "286"; $array_appbuchenlink[de] = "zimmer-online-ferienwohnung"; $array_appbuchenlink[en] = "Online_Booking_Flats"; $array_appbuchenlink[fr] = "réservation_online_d_un_appartement"; $array_appbuchenlink[nl] = "Online_Reserviering_Appartementen"; $array_appbuchenlinkID[de] = "288"; $array_appbuchenlinkID[en] = "639"; $array_appbuchenlinkID[fr] = "641"; $array_appbuchenlinkID[nl] = "640"; $array_abPerson[de] = "pro Person und Tag"; $array_abPerson[en] = "per person and day"; $array_abPerson[fr] = "per personne et jours"; $array_abPerson[nl] = "per persoon en dag"; $html = "
".stripslashes($text)."
"; $zimmername = urlencode($zimmername); $zimmername_de = ucwords($zimmername_de); $html .= "
".showFotogalerien($fotogalerien,$link,2,"","","","600","outputReturn")."
"; $html .= "
".$abText." € ".$abPreis.",-
".$array_abPerson[$_REQUEST[lang]]."
"; if($zimmertyp!="Ferienwohnung") { $html .= ''.$onlineBuchenText.''; $html .= ''.$preisberechnungText.''; $html .= ''.$verfuegbarkeitText.''; } else { $html .= ''.$onlineBuchenText.''; $html .= ''.$preisberechnungText.''; $html .= ''.$verfuegbarkeitText.''; } $html .= 'Tel.: 0043 5284 5374'; $html .= '
'; $html .= stripslashes($kurzbeschreibung)."
"; return $html; } function showZimmerCols($num,$id_saison,$i,$name,$tabelle,$aktiv, $zimmertyp, $anzahlPers,$preise,$showPers,$zimmerurl,$showurl,$zimfewo,$tdbackground,$lang,$kind,$standardtext) { $standardtext = strip_tags($standardtext); $preise_array = explode("|",$preise); while(list($key,$val) = each($id_saison)) { $c = 0; while($c < $num) { $preise_array_preis = explode("!",$preise_array[$c]); $preis0 = $preise_array_preis[1]; $preise_total .= $preis0; $c++;} } reset($id_saison); if($preise_total!="") { $html .=' '; if($zimmerurl!="" && $showurl!="no") {$html .='';} $html.=$name; if($zimmerurl!="" && $showurl!="no") {$html .="";} //$html.="
   ".$anzahlPers; $html .=''; if($kind=="kind") { $html .=''; } else { if($showPers=="yes") { $html .=''.$standardtext.' '.$anzahlPers.''; } } while(list($key,$val) = each($id_saison) ) { $c = 0; while($c < 10) { $preise_array_preis = explode("!",$preise_array[$c]); $preis = $preise_array_preis[0]; $preis0 = $preise_array_preis[1]; $preis0 = number_format($preis0, 2, ',', ' '); if($val == $preis) { $html .=''.$preis0.''; } $c++;} } $html .=''; } echo $html; } function makeTeaserStartseite($newsteasercontent,$newsteaserbild,$newsteaserlinktext,$newsteasertext,$newsteaserheadline,$newsteaserhauptmodul,$newsteasernavname,$newsteaselang,$fremdlinktext_teaserstartseite,$newsteaserlink) { $html_teaserStartseite =$newsteasercontent; $html_teaserStartseite .="\r"; return $html_teaserStartseite; } function makeTeaser($id2show,$lang,$link,$modul_array4,$array_langChange) { $query_teaser = "select * from content where id ='$id2show' AND lang = '$lang'"; $result_teaser = @mysql_query($query_teaser,$link); $num_teaser = @mysql_num_rows($result_teaser); $teaserheadline = @mysql_result($result_teaser,0,"teaserheadline"); $teaserbild = @mysql_result($result_teaser,0,"teaserbild"); $teaserStartseite = @mysql_result($result_teaser,0,"teaserStartseite"); $site = @mysql_result($result_teaser,0,"name"); $modul = @mysql_result($result_teaser,0,"hauptmodul"); $modul = $modul_array4[$modul]; $html_teaser .= '
'.strip_tags(utf8_encode($array_langChange["Details-Buchung"])).''.$teaserheadline.'
'.$teaserheadline.'
'.$teaserStartseite.'
'; $html_teaser .="\r"; return $html_teaser; } function makeTeaserPauschalenStartseite($link, $array_langChange) { $query_teaser = "select * from pauschalenstartseite where aktiv ='1' order by reihenfolge"; $result_teaser = @mysql_query($query_teaser,$link); $num_teaser = @mysql_num_rows($result_teaser); $i=0; while ($i<$num_teaser) { $id = mysql_result($result_teaser,$i,"pauschalenid"); $query_teaser1 = "select * from pauschalen where id='$id' AND aktiv ='1'"; $result_teaser1 = @mysql_query($query_teaser1,$link); $num_teaser1 = @mysql_num_rows($result_teaser1); if($num_teaser1>0) { $id = mysql_result($result_teaser1,0,"id"); $saison = mysql_result($result_teaser1,0,"saison"); $showPauschalenBuchungsbutton = mysql_result($result_teaser1,0,"showPauschalenBuchungsbutton"); echo makeTeaserPauschalenTest($id,$_REQUEST['lang'],$link,$array_langChange,$saison,$_REQUEST['modul'],$_REQUEST['site'],$_REQUEST['subsite'],$showPauschalenBuchungsbutton); } $i++; } $teaserheadline = @mysql_result($result_teaser,0,"pauschalenname_".$lang); $teaserheadline_url = utf8_encode(ersetzen($teaserheadline)); $teaserbild = @mysql_result($result_teaser,0,"bild"); $ab = @mysql_result($result_teaser,0,"ab"); $teaserStartseite = @mysql_result($result_teaser,0,"kurztext_".$lang); $html_teaser .= '
'.strip_tags(utf8_encode($array_langChange["Details-Buchung"])).''.$teaserheadline_url.'
'.$teaserheadline.'
'.$teaserStartseite.'
'; if($ab!="") { $html_teaser .= '
'.strip_tags(utf8_encode($array_langChange["ab"])).' '.$ab.' €
';} else { $html_teaser .= '
 
';}; $html_teaser .= '
'; $html_teaser .="\r"; return $html_teaser; } function makeTeaserPauschalen($id2show,$lang,$link,$array_langChange,$saison,$modul,$site,$siteid,$showPauschalenBuchungsbutton) { $query_teaser = "select * from pauschalen where id ='$id2show'"; $result_teaser = @mysql_query($query_teaser,$link); $num_teaser = @mysql_num_rows($result_teaser); $teaserheadline = @mysql_result($result_teaser,0,"pauschalenname_".$lang); $teaserheadline_url = utf8_encode(ersetzen($teaserheadline)); $teaserbild = @mysql_result($result_teaser,0,"bild"); $ab = @mysql_result($result_teaser,0,"ab"); $teaserStartseite = @mysql_result($result_teaser,0,"kurztext_".$lang); $html_teaser .= '
'.strip_tags(utf8_encode($array_langChange["Details-Buchung"])).''.$teaserheadline_url.'
'.$teaserheadline.'
'.$teaserStartseite.'
'; if($ab!="") { $html_teaser .= '
'.strip_tags(utf8_encode($array_langChange["ab"])).' '.$ab.' €
';} else { $html_teaser .= '
 
';}; $html_teaser .= '
'; $html_teaser .="\r"; return $html_teaser; } function makeTeaserPauschalenTest($id2show,$lang,$link,$array_langChange,$saison,$modul,$site,$siteid,$showPauschalenBuchungsbutton) { $query_teaser = "select * from pauschalen where id ='$id2show'"; $result_teaser = @mysql_query($query_teaser,$link); $num_teaser = @mysql_num_rows($result_teaser); $teaserheadline = @mysql_result($result_teaser,0,"pauschalenname_".$lang); $teaserheadline_url = utf8_encode(ersetzen($teaserheadline)); $teaserbild = @mysql_result($result_teaser,0,"bild"); $ab = @mysql_result($result_teaser,0,"ab"); $teaserStartseite = @mysql_result($result_teaser,0,"kurztext_".$lang); if($teaserheadline!="") { $html_teaser .= '
'.$teaserheadline.'
'.strip_tags(utf8_encode($array_langChange["Details-Buchung"])).''.$teaserheadline_url.'
'.strip_tags($teaserStartseite,'


').'

'; if($ab!="") { $html_teaser .= '
'.strip_tags(utf8_encode($array_langChange["ab"])).' '.$ab.' €
';} else { $html_teaser .= '
 
';}; $html_teaser .= '
'; $html_teaser .="\r"; return $html_teaser; } } function makePauschale($id2show,$lang,$link,$array_langChange,$saison,$modul,$site,$siteid,$onlineBuchenText) { // hardencoded Zusatzinfos holen - siehe zeile 779 $id4zusatzinfos = "76"; $spalte2 = "text_".$lang; $query1 = "select $spalte2 from textincludes where id ='$id4zusatzinfos'"; $result1 = @mysql_query($query1,$link); $num1 = @mysql_num_rows($resul1); $zusatzinfostext = @mysql_result($result1,0,$spalte2); $query_teaser = "select * from pauschalen where id ='$id2show'"; $result_teaser = @mysql_query($query_teaser,$link); $num_teaser = @mysql_num_rows($result_teaser); $teaserheadline = @mysql_result($result_teaser,0,"pauschalenname_".$lang); $teaserbild = @mysql_result($result_teaser,0,"bild"); $teaserStartseite = @mysql_result($result_teaser,0,"kurztext_".$lang); $text = @mysql_result($result_teaser,0,"text_".$lang); $showPauschalenBuchungsbutton = @mysql_result($result_teaser,0,"showPauschalenBuchungsbutton"); $array_zimmeranfragenlink[de] = "anfragen-buchen"; $array_zimmeranfragenlink[en] = "Inquiry_for_reservation"; $array_zimmeranfragenlink[fr] = "faire_une_demande_de-réservation"; $array_zimmeranfragenlink[nl] = "aanvraag_reserviering"; $array_zimmeranfragenlinkID[de] = "299"; $array_zimmeranfragenlinkID[en] = "109"; $array_zimmeranfragenlinkID[fr] = "171"; $array_zimmeranfragenlinkID[nl] = "168"; $html .= '
'.$teaserheadline.'
'; $html .= ''.$onlineBuchenText.''; $html .= '
'.$text.'
'; $html .= '

 

'.$array_langChange["Inklusivleistungen"].'
'.$array_langChange["Zusatzinformationen"].'
'.$array_langChange["Anfrageformular"].'
'; if($showPauschalenBuchungsbutton=="1") { $html .= '
'.strip_tags($array_langChange["Online-anfragen-buchen"]).'
'; } //$html .= '
'.$array_langChange["Inklusivleistungen-Total"].'
'; $html .= '
'.$zusatzinfostext.'
'; $html .="\r"; return $html; } function makeStartseitenani($link,$lang,$modul_array4) { $query_teasercarousel = "select * from content where newsteaseraktiv ='1' AND lang = '$lang'"; $result_teasercarousel = @mysql_query($query_teasercarousel,$link); $num_teasercarousel = @mysql_num_rows($result_teasercarousel); if($num_teasercarousel>0) { $html_startseitenani ='
    '; $i_teasercarousel=0; while ( $i_teasercarousel < $num_teasercarousel) { $newsteaserid = @mysql_result($result_teasercarousel,$i_teasercarousel,"id"); $newsteaserlang = @mysql_result($result_teasercarousel,$i_teasercarousel,"lang"); $newsteaserbild = @mysql_result($result_teasercarousel,$i_teasercarousel,"newsteaserbild"); $newsteaserheadline = @mysql_result($result_teasercarousel,$i_teasercarousel,"newsteaserheadline"); $newsteaserlinktext = @mysql_result($result_teasercarousel,$i_teasercarousel,"linktext"); $newsteasername = @mysql_result($result_teasercarousel,$i_teasercarousel,"name"); $newsteaserhauptmodul = @mysql_result($result_teasercarousel,$i_teasercarousel,"hauptmodul"); $html_startseitenani .='
  • '.$newsteaserheadline.'
    >'.$newsteaserlinktext.'
    '.$newsteasernavname.'
  • '; $i_teasercarousel++;}$html_startseitenani .='
'; } return $html_startseitenani; } function makeTeaserAngebot ($link,$unterkunft_id,$array_langChange,$lang) { $query_teaserunterkunftsite = "select * from angebote where unterkunft='$unterkunft_id'"; $result_teaserunterkunftsite = @mysql_query($query_teaserunterkunftsite,$link); $num_teaserunterkunftsite = @mysql_num_rows($result_teaserunterkunftsite); $i_teaserunterkunftsite=0; while ( $i_teaserunterkunftsite < $num_teaserunterkunftsite) { $bild1 = @mysql_result($result_teaserunterkunftsite,$i_teaserunterkunftsite,"bild1"); $unterkunft_name = @mysql_result($result_teaserunterkunftsite,$i_teaserunterkunftsite,"name_".$lang); $id = @mysql_result($result_teaserunterkunftsite,$i_teaserunterkunftsite,"id"); $name = @mysql_result($result_teaserunterkunftsite,$i_teaserunterkunftsite,"name"); $html_teaserangebot .= '
'.$unterkunft_name.'
'; if($bild1!="") { $bild1 = makeGoodUrl($bild1); $html_teaserangebot .='
'.$unterkunft_name.'
'; } $html_teaserangebot .='
'; $i_teaserunterkunftsite++;} return $html_teaserangebot; } function makeTextincludesSingle($id,$link,$lang,$key1,$text4button) { $spalte1 = "headline_".$lang; $spalte2 = "text_".$lang; $query1 = "select $spalte1,$spalte2,bild from textincludes where id ='$id'"; $result1 = @mysql_query($query1,$link); $num1 = @mysql_num_rows($resul1); $headline = @mysql_result($result1,0,$spalte1); $text = @mysql_result($result1,0,$spalte2); $bild = @mysql_result($result1,0,"bild"); echo '
'; if($bild!="") { echo '
'; echo ''.$text4button.'
'; } echo '
'.$headline.'
'; echo '
'.$text.'
'; echo '
'; echo '
'; echo '
'; } function makeTextincludesTextOnly($id,$link,$lang) { $spalte2 = "text_".$lang; $query1 = "select $spalte2 from textincludes where id ='$id'"; $result1 = @mysql_query($query1,$link); $num1 = @mysql_num_rows($resul1); echo $text = @mysql_result($result1,0,$spalte2); } function makeTextincludes($id,$link,$lang,$key1,$text4button,$counter) { if($counter<=33) {$key1="10";} if($counter<=30) {$key1="9";} if($counter<=27) {$key1="8";} if($counter<=24) {$key1="7";} if($counter<=21) {$key1="6";} if($counter<=18) {$key1="5";} if($counter<=15) {$key1="4";} if($counter<=12) {$key1="3";} if($counter<=9) {$key1="2";} if($counter<=6) {$key1="1";} if($counter<=3) {$key1="0";} $spalte1 = "headline_".$lang; $spalte2 = "text_".$lang; $query1 = "select $spalte1,$spalte2,bild from textincludes where id ='$id'"; $result1 = @mysql_query($query1,$link); $num1 = @mysql_num_rows($resul1); $headline = @mysql_result($result1,0,$spalte1); $text = @mysql_result($result1,0,$spalte2); $bild = @mysql_result($result1,0,"bild"); echo '
'; if($bild=="") {$add_class=" textonly";} if($bild!="") { echo '
'; echo ''.$text4button.'
'; } echo '
'.$headline.'
'; echo '
'.$text.'
'; echo '
'; echo '
'; } function makeTextincludesBausteine($textincludes_bausteine,$link,$lang,$array_langChange) { global $array_langChange; $text4button = strip_tags(utf8_encode($array_langChange["mehr"])); $textincludes_bausteine_array = explode("|",$textincludes_bausteine); $textincludes_bausteine_array = unsetEmptyArray($textincludes_bausteine_array); while(list($key,$val) = each($textincludes_bausteine_array) ) { $query = "select textincludes from textincludes_gallery where id ='$val'"; $result = @mysql_query($query,$link); $num = @mysql_num_rows($result); $textincludes_array = explode("|", @mysql_result($result,0,"textincludes")); $textincludes_array = unsetEmptyArray($textincludes_array); $anzahl_divs = count($textincludes_array); $counter=1; $key2=0; while(list($key1,$val1) = each($textincludes_array) ) { makeTextincludes($val1,$link,$lang,$key1,$text4button,$counter); if($counter<=33) {$key1="10";} if($counter<=30) {$key1="9";} if($counter<=27) {$key1="8";} if($counter<=24) {$key1="7";} if($counter<=21) {$key1="6";} if($counter<=18) {$key1="5";} if($counter<=15) {$key1="4";} if($counter<=12) {$key1="3";} if($counter<=9) {$key1="2";} if($counter<=6) {$key1="1";} if($counter<=3) {$key1="0";} if($counter%3==0 && $key2=="2") {echo '
';} if($counter%3==0 && $key2=="5") {echo '
';} if($counter%3==0 && $key2=="8") {echo '
';} if($counter%3==0 && $key2=="11"){echo '
';} if($counter%3==0 && $key2=="14"){echo '
';} if($counter%3==0 && $key2=="17"){echo '
';} if($counter%3==0 && $key2=="20"){echo '
';} if($counter%3==0 && $key2=="23"){echo '
';} if($counter%3==0 && $key2=="26"){echo '
';} if($counter%3==0 && $key2=="29"){echo '
';} if($counter%3==0 && $key2=="32"){echo '
';} if($counter%3==1 && $key2==($anzahl_divs-1)){echo '
';} if($counter%3==2 && $key2==($anzahl_divs-1)){echo '
';} if($counter%3==3 && $key2==($anzahl_divs-1)){echo '
';} $key2++; $counter++; }// Ende while textincludes_array } // Ende while textincludes_bausteine_array } // Ende makeTextincludesBausteine function makeZimmerDiv ($id,$i,$name,$tabelle,$aktiv,$zimmertyp,$ds_delete,$zimmerkuerzel) { $html .= '
'.strip_tags($zimmertyp).' ('.$zimmerkuerzel.')
'.$name.' '; if($aktiv=="1") { $html .= ''; } else { $html .= ''; } $html .= ' '; if($ds_delete=="1") { $html .= ' Seite löschen'; } $html .= '
'; echo $html; } function makeSaisonDiv ($id,$i,$saisonkurz,$tabelle,$aktiv,$saisonjahr,$ds_delete,$saison1,$saisonjahreszeit) { $html .= '
'.$saisonjahr.' - '.ucfirst($saisonjahreszeit).' - '.ucfirst($saisonkurz).' - '.$saison1.'
'; if($aktiv=="1") { $html .= ''; } else { $html .= ''; } $html .= ' '; if($ds_delete=="1") { $html .= ' Seite löschen'; } $html .= '
'; echo $html; } function makeSaisonDivForm ($preise,$id,$i,$saisonkurz,$tabelle,$aktiv,$saisonjahr,$ds_delete,$saison1,$saisonjahreszeit) { $preise_array = explode("|",$preise); $preise_array_preis = explode("!",$preise_array[$i]); if($saison1!="") {$saison1 = substr($saison1,6,2).'.'.substr($saison1,4,2).' - '.substr($saison1,17,2).'.'.substr($saison1,15,2); } $html .= '
'.$saisonjahr.' - '.ucfirst($saisonjahreszeit).' - '.ucfirst($saisonkurz).' - '.$saison1.'
'; $html .= '
'; $html .= '
'; echo $html; } function makeSaisonDivFormPauschalen ($preise,$id,$i,$saisonkurz,$tabelle,$aktiv,$saisonjahr,$ds_delete,$saison1,$saisonjahreszeit) { $preise_array = explode("|",$preise); $preise_array_preis = explode("!",$preise_array[$i]); if($saison1!="") {$saison1 = substr($saison1,6,2).'.'.substr($saison1,4,2).' - '.substr($saison1,17,2).'.'.substr($saison1,15,2); } $html .= '
'.$saisonjahr.' - '.ucfirst($saisonjahreszeit).' - '.ucfirst($saisonkurz).' - '.$saison1.'
'; $html .= '
'; $html .= '
'; echo $html; } function makePreiseSaisonzeiten($zimmerid,$link) { $query = "select preise from zimmer where id='$zimmerid'"; $result = @mysql_query($query,$link); $num = @mysql_num_rows($result); $preise = @mysql_result($result,$i,"preise"); //$query = "select * from saisonzeiten order by saisonjahr,saisonjahreszeit,reihenfolge"; $query = "select * from saisonzeiten"; $result = @mysql_query($query,$link); $num = @mysql_num_rows($result); $i=0; while ( $i < $num) { makeSaisonDivForm($preise,mysql_result($result,$i,"id"),$i,mysql_result($result,$i,"saisonkurz"),$tabelle,mysql_result($result,$i,"aktiv"), mysql_result($result,$i,"saisonjahr"),$ds_delete, mysql_result($result,$i,"saison1"), mysql_result($result,$i,"saisonjahreszeit")); $i++; }; } function makePauschalPreiseSaisonzeiten($zimmerid,$link) { $query = "select pauschalpreise from zimmer where id='$zimmerid'"; $result = @mysql_query($query,$link); $num = @mysql_num_rows($result); $preise = @mysql_result($result,$i,"pauschalpreise"); //$query = "select * from saisonzeiten order by saisonjahr,saisonjahreszeit,reihenfolge"; $query = "select * from saisonzeiten"; $result = @mysql_query($query,$link); $num = @mysql_num_rows($result); $i=0; while ( $i < $num) { makeSaisonDivFormPauschalen($preise,mysql_result($result,$i,"id"),$i,mysql_result($result,$i,"saisonkurz"),$tabelle,mysql_result($result,$i,"aktiv"), mysql_result($result,$i,"saisonjahr"),$ds_delete, mysql_result($result,$i,"saison1"), mysql_result($result,$i,"saisonjahreszeit")); $i++; }; } function aendern($id, $modul, $tabelle, $link) { $query = "select * from $tabelle where id = '$id' or modul = '$modul'"; $result = mysql_query($query,$link); $num = mysql_num_rows($result); echo $num; $i=0; while ( $i < $num) { include ("inc.felder_$tabelle.php"); echo $id; echo $modul; $i++; }; } function show_inforechts($val,$hauptmodul,$lang,$backgroundcolor,$browser,$version) { @include($_SERVER['DOCUMENT_ROOT']."/redaktion/setup.php"); $query_inforechts = "select * from content where id = '$val'"; $result_inforechts = @mysql_query($query_inforechts,$link); $inforechtsid = @mysql_result($result_inforechts,0,"id"); $nameinforechts = @mysql_result($result_inforechts,0,"name"); $hauptmodul = @mysql_result($result_inforechts,0,"hauptmodul"); echo "
"; } ?>