• メインページ
  • データ構造
  • ファイル
  • ファイル一覧

advanced_filters_results.php

00001 <?php
00002 /*
00003  * advanced_filters_results.php
00004  * 
00005  * Copyright (c)2010 ValueCommerce,Co.Ltd.
00006  */
00007 
00008 require_once('VCSDBDriver/VCSDBDriverHotel.php');
00009 require_once('HotelSearchPageHeader.php');
00010 require_once('PageBody.php');
00011 
00012 /*
00013  * このサンプルでは内部エンコーディングはUTF-8です。
00014  */
00015 mb_internal_encoding("UTF-8");
00016 
00017 /*
00018  * VCSDBDriverHotelクラスのインスタンスを生成します。
00019  */
00020 $hotel = new VCSDBDriverHotel();
00021 
00022 
00023 /*
00024  * ページヘッダ部分(検索フォーム)を生成します。
00025  */
00026 $pageHeader = new HotelSearchPageHeader('Views/AdvancedFiltersForm.html');
00027 
00028 /*
00029  * トラベルAPIへのパラメータは、フォームで指定するので、フォームのあるページヘッダで設定します。
00030  */
00031 $pageHeader->assignParams($hotel);
00032 
00033 /*
00034  * APIへの問い合わせ実行、パラメータが設定されていない場合は、エラーコードが返ります。
00035  */
00036 $response = $hotel->executeQuery();
00037 
00038 /*
00039  * リストパネルの生成
00040  */
00041 $pageBody = new PageBody(
00042                                         'Views/Pagination.html','Views/FormattedDetailedItem.html', 10, $response);
00043 ?>
00044 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
00045 <html xmlns="http://www.w3.org/1999/xhtml"> 
00046         <head> 
00047                 <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> 
00048                 <meta id='keywords' name='keywords' content='overview' /> 
00049                 <title>ValueCommerce - HTML Framework - SDB-F03</title> 
00050  
00051                 <link href="css/vc_default.css" rel="stylesheet" type="text/css" /> 
00052         
00053         </head>
00054  
00055         <body style="margin:15px;"> 
00056                 <?php 
00057                         
00058                         /* ここで ヘッダ部分を表示します。*/
00059                         $pageHeader->show();
00060                         
00061                         /*
00062                          * ここで検索結果を表示します。
00063                          */
00064                         $pageBody->show(); 
00065                 ?>
00066         </body>
00067 </html>

バリューコマース ウェブサービス トラベルAPIサンプル ドキュメンテーションに対してTue Jan 11 2011 19:25:14に生成されました。  doxygen 1.7.2