if (!$the_query->have_posts()) { ?>
表示できるツアーがありません。
} else { ?>
while ($the_query->have_posts()){
$the_query->the_post();
$t_targets = get_field('targets');
$t_seasons = get_field('seasons');
$t_areas = get_field('areas');
$otl_accperiod = get_field('otl_accperiod');
$otl_duration = get_field('otl_duration');
$otl_places = get_field('otl_places');
$bas_deptime = get_field('bas_deptime');
$bonuses_excerpt = get_field('bonuses_excerpt');
$bas_duration = get_field('bas_duration');
$bas_depdate = get_field('bas_depdate');
$bas_qualify = get_field('bas_qualify');
$bas_traffic = get_field('bas_traffic');
$bas_mealcond = get_field('bas_mealcond');
$bas_facility = get_field('bas_facility');
$bas_conductor = get_field('bas_conductor');
$bas_notice = get_field('bas_notice');
$bas_owner = get_field('bas_owner');
$exist = have_rows("reports");
$de_addition = get_field('de_addition');
?>
if ($otl_accperiod) { ?>
// カテゴリ類似ツアー ?>
$tours_cat = getTours_ByTax($the_query, $t_targets, $t_seasons, $t_areas, 'AND', 3, get_field('tour_id')); ?>
if ($tours_cat): ?>
endif; ?>
// 自社関連ツアー ?>
$tours_self = get_field('tours_self') ?>
if ($tours_self):?>
endif; ?>
// 他社関連ツアー ?>
$tours_other = get_field('tours_others') ?>
if ($tours_other):?>
endif; ?>
if (have_rows("bonuses")): while(have_rows('bonuses')): the_row(); ?>
if (get_field('freefield2')) : ?>
$ff2t = get_field('freefield2_title'); ?>
endwhile; endif; ?>
// 閲覧記録をDBに保存
//global $wpdb;
$browse_date = date("Y-m-d", time());
$postID = get_the_ID();
// echo $c_date;
$recs = $wpdb->get_row("SELECT * FROM popuration WHERE (browse_date='{$browse_date}') AND (tour_id={$postID})");
if (count($recs)==0){
// echo 'From:'.$id_from.' To:'.$id_to;
$ans = $wpdb->query("INSERT INTO popuration (tour_id, browse_date, browse_num) VALUES ({$postID}, '{$browse_date}', 1)");
} else {
$browse_num = $recs->browse_num + 1;
$ans = $wpdb->query("UPDATE popuration SET browse_num={$browse_num} WHERE ((browse_date='{$browse_date}') AND (tour_id={$postID}))");
}
} ?>
} ?>
= get_the_title() ?>
= get_field("tour_exerpt") ?>
設定期間 | = $otl_accperiod ?> |
---|---|
旅行期間 | = $otl_duration ?> |
出発時間 | = $bas_deptime ?> |
出発場所 | = $otl_places ?> |
特典内容 | = $bonuses_excerpt ?> |
= get_sub_field('title') ?> | = get_sub_field('content') ?> |
旅行代金 | = getPriceRange(get_field('min_stabled'), get_field('price_min'), get_field('price_max')) ?> |
-
foreach($tours_cat as $tour) { ?>
- =$tour['title'] ?> } ?>
-
foreach($tours_self as $row) { ?>
- = $row['title'] ?> } ?>
-
foreach($tours_other as $row) { ?>
- = $row['title'] ?> } ?>
= get_field('freefield1') ?>
- = get_sub_field('content') ?>
- = get_sub_field('comment') ?>
= $ff2t ? $ff2t : "コースの概要" ?>
= get_field('freefield2') ?>
endif ?>
if (have_rows("reports")): ?>
ツアーレポート・ギャラリー
endif ?>日程 | 予定 |
---|---|
= get_sub_field('day') ?> | = getKouteiString_withSymbol(get_sub_field('sched')) ?> |
= getMealString(get_sub_field('meal')) ?> |
if (have_rows("photos")): while(have_rows('photos')): the_row(); ?>
endwhile; endif; ?>
if ($de_addition): ?>
= $de_addition ?>
endif; ?>
集合・出発場所
if (have_rows('dep_places')) : while(have_rows('dep_places')): the_row(); ?>
|
= get_sub_field("title") ?>
= get_sub_field('detail') ?>
|
= get_field('cal_addition') ?>
} ?>
ツアー基本情報&ご案内
旅行期間 | = $bas_duration ?> |
---|---|
旅行出発日 | = $bas_depdate ?> |
催行条件 | = $bas_qualify ?> |
利用交通期間 | = get_field('bas_traffic') ?> |
お食事条件 | = get_field('bas_mealcond') ?> |
利用施設名称 | = get_field('bas_facility') ?> |
同行スタッフ | = $bas_conductor ?> |
注意事項 | = $bas_notice ?> |
= get_sub_field('title') ?> | = get_sub_field('content') ?> |
旅行企画実施 | = $bas_owner ?> |