Пример #1
0
 public static function readDestinationCfgFile($filename)
 {
     if (file_exists($filename)) {
         $lines = file($filename);
         $cfgFile = array();
         for ($i = 0; $i < count($lines); $i++) {
             if (ReadCfgFiles::checkLine($lines[$i]) && strpos($lines[$i], "|") != false) {
                 $str = explode("|", $lines[$i]);
                 $str1 = explode("=", $str[1]);
                 $cfgFile[$str[0]][$str1[0]] = str_replace("\n", "", $str1[1]);
             }
         }
         return $cfgFile;
     } else {
         echo "{$filename} existiert nicht";
     }
 }
Пример #2
0
}
?>
                                            </select>
                                        </div>
                                        <div class="clearfix"></div>
                                        <div class="voffset2"></div>
                                        <div class="border-div">
                                            <div class="col-lg-2 col-md-2 col-sm-2 col-xs-1 input-icon nospacing"><img
                                                    src="<?php 
bloginfo('template_url');
?>
/images/guest-icon-27.png"
                                                    alt=""/></div>
                                            <select name="persons" id="persons" onsubmit="this.form.persons.options.value" class="col-lg-10 col-md-10 col-sm-10 col-xs-11 input-select nospacing persons">
                                                <?php 
$persons = ReadCfgFiles::readCfgFile("../wordpress/wp-content/themes/holidaylifestyle/LMwebSoapClient/cfgFiles/persons.cfg");
foreach ($persons as $key => $value) {
    echo "<option value=\"{$key}\">{$value}</option>";
}
?>
                                            </select>
                                        </div>
                                        <div class="clearfix"></div>
                                        <div class="voffset2"></div>
                                        <div class="border-div">
                                            <div class="col-lg-2 col-md-2 col-sm-2 col-xs-1 input-icon nospacing"><img src="<?php 
bloginfo('template_url');
?>
/images/kids-icon-29.png" alt="Kids" title="Kids" /></div>
                                            <select class="col-lg-10 col-md-10 col-sm-10 col-xs-11 input-select nospacing" id="chooseKids2">
                                                <option>0</option>
Пример #3
0
<?php

get_header();
include_once 'LMwebSoapClient/readCfgFiles/readCfgFiles.php';
$departureAirport = ReadCfgFiles::readCfgFile("../wordpress/wp-content/themes/holidaylifestyle/LMwebSoapClient/cfgFiles/departureAirport.cfg");
$region = ReadCfgFiles::readCfgFile("../wordpress/wp-content/themes/holidaylifestyle/LMwebSoapClient/cfgFiles/destination.cfg");
?>
<div class="content-outside" id="contentOutside">
    <div class="clearfix"></div>
    <div class="span12">
        <div id="owl-demo" class="owl-carousel">
            <div class="item">
                <div class="slider_heading text-center col-lg-12 col-md-12 col-sm-12 col-xs-12">EXPERIENCE</div>
                <div class="slider_subheading text-center col-lg-12 col-md-12 col-sm-12 col-xs-12">Erleben Sie auf einer
                    individuellen Reise die Vielfalt und Kultur eines<br/> Landes. Unsere Experience Reisen...
                </div>
                <img src="<?php 
bloginfo('template_url');
?>
/images/slide1-25.jpg" alt="" title=""
                     class="img-responsive full-width-img"></div>
            <div class="item">
                <div class="slider_heading text-center col-lg-12 col-md-12 col-sm-12 col-xs-12">PERFECT DAYS</div>
                <div class="slider_subheading text-center col-lg-12 col-md-12 col-sm-12 col-xs-12">Erkunden Sie während
                    einigen Tagen eine neue Stadt, <br/> entspannen Sie im Wellness-Wochenende oder lassen Sie...
                </div>
                <img src="<?php 
bloginfo('template_url');
?>
/images/slide2-25.jpg" alt="" title=""
                     class="img-responsive full-width-img"></div>
Пример #4
0
<?php

/*
Template Name: Hotel-Details
*/
// include custom Header cause of styling.
include 'detailsHeader.php';
$departureAirports = ReadCfgFiles::readCfgFile('../wordpress/wp-content/themes/holidaylifestyle/LMwebSoapClient/cfgFiles/departureAirport.cfg');
if (!isset($_GET['departureAirport'])) {
    $gid = $_GET['gid'];
    $postId = $_GET['postId'];
    $departureAirport = 'FRA';
    $destination = $_GET['aptd'];
    // default value for departure Date.
    $datetime = new DateTime('tomorrow');
    $departureDate = $datetime->format('Ymd');
    // default value for return Date.
    $date = strtotime("+8 day");
    $returnDate = date('Ymd', $date);
    $newdepartureDate = $datetime->format('d/m/Y');
    $newreturnDate = date('d/m/Y', $date);
    // Default values for Dev.
    //$zt = '0';
    $vt = '';
    $jType = '2';
    $lmin = '7';
    $lmax = '10';
    $dateType = null;
} elseif (isset($_GET['departureAirport'])) {
    $departureAirport = $_GET['departureAirport'];
    $destination = $_GET['destination'];
Пример #5
0
                </tr>
                <tr>
                    <td>Hotelname</td>
                    <td><input type="text" name="hotelname"></td>
                    <td>Hotelort</td>
                    <td><input type="text" name="hotelcity"></td>
                </tr>
            </table>
            <table>
                <tr>
                    <td>
                        <h3>Global Types</h3>
                    </td>
                </tr>
                <?php 
$gt = ReadCfgFiles::readCfgFile("cfgFiles/gt.cfg");
$count = 1;
echo '<tr>';
foreach ($gt as $key => $value) {
    echo "<td width=\"25%\"><input type=\"checkbox\" name=\"gt[]\" value=\"{$key}\">{$value}</input></td>";
    if ($count % 4 == 0) {
        echo '</tr>';
        echo '<tr>';
    }
    $count++;
}
echo '</tr>';
?>
            </table>
            <button name="submit" value="abschicken">abschicken</button>
        </form>