#! /usr/local/bin/php-cgi
0){
$query = sprintf("select * from reviews where review_id=%d limit 1;", $review_id);
$result = $db->find($query);
if($result){
$params["review"] = $result;
}
}
if($salon_id > 0){
$query = sprintf("select * from shop_detail where shop_id=%d limit 1;", $salon_id);
$result = $db->find($query);
if($result){
$params["shop_detail"] = $result;
}
$query = sprintf("SELECT c_web FROM shop_search WHERE shop_id = %d LIMIT 1;", $salon_id);
$result = $db -> find($query);
if ($result["c_web"] == 0) :
$title_name = "course";
else :
$title_name = "web";
endif;
for($i=1;$i<=20;$i++){
if($title=$params["shop_detail"]["{$title_name}{$i}_title"]){
$param = NULL;
$param["coupon_id"] = $i;
$param["title"] = $title;
$param["coupon_outid"] = $params["shop_detail"]["{$title_name}{$i}_out_coupon_id"];
$params["coupons"][] = $param;
}
}
}
//セッションロード。
if($review_id == $_SESSION["request"]["review_id"]){
$params["request"] = $_SESSION["request"];
}
include("salon/review/review.tmp");
?>