Ejemplo n.º 1
0
<?php

$cruis = GetPageInfo(mysql_escape_string($_GET['cruis_id']));
$ship = GetPageInfo($cruis->parent);
//$prices=$this->GetCruisPriceList($cruis->id);
$cauta_list = $this->GetCautaList($cruis->id);
/*
Request URL:http://www.riverlines.ru/remote/js/order.js?
host=berg-cruis-develop.about-seo.info
&id=281880&name=elelxdsdd
&phone=2322323&email=elext@gm.com
&info=wewe&cabins[9724][9724-1][name]=
&cabins[9724][9724-1][number]=
&cabins[9724][9724-1][birthday]=
&cabins[9724][9724-2][name]=
&cabins[9724][9724-2][number]=
&cabins[9724][9724-2][birthday]=
&_=0.05300467601045966

Query:
host:berg-cruis-develop.about-seo.info
id:281880
name:test33
phone:333333
email:elextraza@gmail.com
info:text
cabins[9724][9724-1][name]:
cabins[9724][9724-1][number]:
cabins[9724][9724-1][birthday]:
cabins[9724][9724-2][name]:
cabins[9724][9724-2][number]:
Ejemplo n.º 2
0
 function z_add()
 {
     $obj = new stdClass();
     $today = date("Y-m-d H:i:s");
     echo $today;
     $obj->parent = $this->ZayavkaParent;
     $obj->template = $this->ZayavkaTemplate;
     $obj->TV['z_cauta_nomer'] = $_GET['z_cauta_nomer'];
     $obj->TV['z_cruis_id'] = $_GET['z_cruis_id'];
     $obj->TV['z_info'] = $_GET['z_info'];
     $obj->TV['z_user_email'] = $_GET['z_user_email'];
     $obj->TV['z_user_name'] = $_GET['z_user_name'];
     $obj->TV['z_user_phone'] = $_GET['z_user_phone'];
     $obj->TV['z_date'] = $today;
     $obj->TV['z_status'] = 'Новая';
     $cruis = GetPageInfo($obj->TV['z_cruis_id']);
     $ship = GetPageInfo($cruis->parent);
     $obj->TV['z_ship_id'] = $ship->id;
     $obj->pagetitle = "z_" . rand(5, 60) . "_" . $obj->TV['z_user_name'] . "_" . $obj->TV['z_ship_id'] . "_" . $obj->TV['z_cruis_id'] . "_" . $obj->TV['z_cauta_nomer'];
     //$obj->pagetitle=$ship;
     $obj->alias = encodestring($obj->pagetitle);
     $obj->url = "zayavki/" . $obj->alias . ".html";
     IncertPage($obj);
 }
Ejemplo n.º 3
0
 function ConstructorAddToCard()
 {
     $base = $_GET['base'] + 0;
     $topping = $_GET['topping'];
     $topping = explode('||', $topping);
     //Высчитываем цену
     $price = 0;
     if ($base > 0) {
         $base = GetPageInfo($base);
         $price = $base->TV['c_price'] + 0;
     }
     if ($topping[0] + 0 > 0) {
         $tp = GetPageInfo($topping[0] + 0);
         $price += $tp->TV['c_price'] + 0;
     }
     if ($topping[1] + 0 > 0) {
         $tp = GetPageInfo($topping[1] + 0);
         $price += $tp->TV['c_price'] + 0;
     }
     if ($topping[2] + 0 > 0) {
         $tp = GetPageInfo($topping[2] + 0);
         $price += $tp->TV['c_price'] + 0;
     }
     if ($topping[3] + 0 > 0) {
         $tp = GetPageInfo($topping[3] + 0);
         $price += $tp->TV['c_price'] + 0;
     }
     if ($price > 0) {
         $_SESSION['k_product_' . rand(10, 300)] = $price;
     }
 }
Ejemplo n.º 4
0
$topping_item = '';
$i = 1;
if ($topping[0] + 0 > 0) {
    $topping_img = GetPageInfo($topping[0]);
    $topping_item .= ' <div class="constopping topping1" style="background:url(' . "'" . $topping_img->TV['c_img'] . "'" . ') no-repeat;"></div>';
}
if ($topping[1] + 0 > 0) {
    $topping_img = GetPageInfo($topping[1]);
    $topping_item .= ' <div class="constopping topping2" style="background:url(' . "'" . $topping_img->TV['c_img'] . "'" . ') no-repeat;"></div>';
}
if ($topping[2] + 0 > 0) {
    $topping_img = GetPageInfo($topping[2]);
    $topping_item .= ' <div class="constopping topping3" style="background:url(' . "'" . $topping_img->TV['c_img'] . "'" . ') no-repeat;"></div>';
}
if ($topping[3] + 0 > 0) {
    $topping_img = GetPageInfo($topping[3]);
    $topping_item .= ' <div class="constopping topping4" style="background:url(' . "'" . $topping_img->TV['c_img'] . "'" . ') no-repeat;"></div>';
}
?>
<div class="w-clearfix centecenter">
    <!-- главный контейнер конструктора -->
    <div class="constructorcontainer">
        <!-- этот див показывается когда ещё ничего не выбрано и содержит в качестве фона картинку пустой коробки -->
        <div class="consempty">
            <!-- этот див показывается когда уже что-то выбрано — так как это подложка, задняя стенка коробки -->
            <div class="consfullbackground">
                <!-- конструктор сделан из «основы», «топпинга» и соусов. Это див «основы». Основа может быть только одна. -->
               <?php 
echo $base_item;
?>
               <?php