if ($sid->assigned("order_my")) { $order_temp = $sid->fetch("order_my"); $order->Tour = $order_temp->Tour; $order->Tour_Date = $order_temp->Tour_Date; $order->Tour_Language = $order_temp->Tour_Language; $order->Adults = $order_temp->Adults; $order->Childs = $order_temp->Childs; if (isset($order_temp->SpecialComments)) { $order->SpecialComments = $order_temp->SpecialComments; } /*if (isset($order_temp->Tour_Price)) { $order->Tour_Price = $order_temp->Tour_Price; } if (isset($order_temp->Tour_Room)) { $order->Tour_Room = $order_temp->Tour_Room; } if (isset($order_temp->Prices)) { $order->Prices = $order_temp->Prices; } if (isset($order_temp->StepID)) { $order->StepID = $order_temp->StepID; }*/ if (isset($order_temp->Specials)) { $order->Specials = $order_temp->Specials; } $sid->assign("order_my", $order); } $selected_options = array( "cat_id" => -1, "sub_cat_id" => -1, "language_id" => -1, "date" => -1 ); if ($sid->assigned("tour_my")) { $tour = $sid->fetch("tour_my"); $selected_options["cat_id"] = $tour->Cat_ID; $selected_options["sub_cat_id"] = $tour->SubCat_ID; $selected_options["language_id"] = $tour->Lang_ID; } else if ((isset($tour_id)) && (!empty($tour_id))) { $tour = $db->selectObject("SELECT * FROM {$tblPref}Tours WHERE Tour_ID = ".$tour_id); if (($tour !== false) && ($tour !== null)) { $selected_options["cat_id"] = $tour->Cat_ID; $selected_options["sub_cat_id"] = $tour->SubCat_ID; } } if ((isset($tour_id)) && (!empty($tour_id)) && (!$sid->assigned("order_my"))) { } if ((isset($tour_date)) && (!empty($tour_date)) && (!$sid->assigned("order_my"))) { } if ($sid->assigned("order_my")) { $order = $sid->fetch("order_my"); $selected_options["cat_id"] = $order->Tour->Cat_ID; $selected_options["sub_cat_id"] = $order->Tour->SubCat_ID; $selected_options["language_id"] = $order->Tour_Language; $selected_options["date"] = $order->Tour_Date; $categories = $db->selectObjects( "select Cat_ID, t.Translation ". "from {$tblPref}Category sb ". "inner join {$tblPref}StrConst s on (sb.Cat_ID = s.Index_ID and s.VarName = 'CatTitle') ". "inner join {$tblPref}StrConstTranslation t on (s.Constant_ID = t.Constant_ID and t.Encoding_ID = ".$encoding_id.") ". "order by Cat_ID" ); } else { $order = null; $categories = $db->selectObjects( "select Cat_ID, t.Translation ". "from {$tblPref}Category sb ". "inner join {$tblPref}StrConst s on (sb.Cat_ID = s.Index_ID and s.VarName = 'CatTitle') ". "inner join {$tblPref}StrConstTranslation t on (s.Constant_ID = t.Constant_ID and t.Encoding_ID = ".$encoding_id.") ". "order by Cat_ID" ); } $tpl->assign('categories_tours', $categories); $tpl->assign('order', $order); $tpl->assign('selected_options', $selected_options); ?> AmeTours.com Order

EN |  RU   
Tour Details
Travelers Info
Hotel Rooms
Pre & Post Hotels
My Account
Payment
Select Tour
Category:
 
Type:
 
Title:
 
Tour Language:
 
Select Tour date
 
    - - available
 
    - - require confirmation
 
    - - not available
Confirm