Пример #1
0
<?php

$out = search_class::destination_city("MHD");
var_dump($out);
Пример #2
0
    $r = new Request();
    //$rbt=new robotsource_class();
    $data = $r->get_robot_source();
    //$rbt->save($data);
    $_SESSION['robotsource'] = $data;
}
//var_dump($data);
//exit;
if (isset($_REQUEST['err']) && trim($_REQUEST['err'])) {
    $e = trim($_REQUEST['err']);
    $err = <<<ERR
            alert('{$e}');
ERR;
}
if (isset($_REQUEST['sfrom_city'])) {
    $cout = search_class::destination_city($_REQUEST['sfrom_city']);
    die($cout);
}
$my = new mysql_class();
$query = "SELECT * FROM ads_img WHERE is_home=1 ORDER BY tartib";
$my->ex_sql($query, $outs);
$adsRes = "";
foreach ($outs as $out) {
    $url = $out['url'];
    $tmp = "<img class='img-responsive' src=\"%url%\">";
    $adsRes .= str_replace("%url%", $url, $tmp);
}
$tour_tmp = <<<TTMP
                <div class="col-sm-6" style="#padding# margin-bottom:5px;">
                    <div style="border: 1px solid #34363d; border-radius: 5px;">
                        <img src="#url#" width="100%" >