*/ if (array_key_exists('page', $_GET) && is_numeric($_GET['page'])) { $api->setParam('page', $_GET['page']); } /* * ページ本体の生成 */ $pageBody = new PageBody('Views/Pagination.html', 'Views/FormattedItem.html', 10, $api); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <meta id='keywords' name='keywords' content='overview' /> <title>ValueCommerce - HTML Framework - PDB-F01</title> <link href="css/vc_default.css" rel="stylesheet" type="text/css" /> </head> <body style="margin:15px;"> <div id="vc_container"> <h1 class="vc_title">検索結果</h1> <?php /* * ここで検索結果を表示します。 */ $pageBody->show(); ?> </div> </body> </html>
/* * APIへの問い合わせ実行 */ $response = $tour->executeQuery(); /* * ページ本体の生成 */ $pageBody = new PageBody('Views/Pagination.html', 'Views/FormattedTour.html', 10, $response); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/> <meta id='keywords' name='keywords' content='overview' /> <title>ValueCommerce - ツアー検索</title> <link href="css/vc_default.css" rel="stylesheet" type="text/css" /> </head> <body style="margin:15px;"> <div id="vc_container"> <?php /* ここで ヘッダ部分を表示します。*/ $pageHeader->show(); /* * ここで検索結果を表示します。 */ $pageBody->show(false); ?> </div> </body> </html>