require("../../system/include/common.ini"); $id = GET('id'); $result = $mysqli->query("SELECT * FROM item WHERE id = '".$id."' AND shop_flg != '3' AND s_ymd <= '".date("Ymd")."' AND e_ymd >= '".date("Ymd")."'"); if(!$result->rowCount()) header('Location: ../index.php'); $customer = $result->fetch(); $no = $customer['no']; $name = $customer['name']; $name2 = $customer['name2']; $u_price = $customer['u_price']; $det = $customer['det']; $shop_flg = $customer['shop_flg']; $u_price = number($u_price); $det = tag_check($det); $add_button = '
※この商品は予約商品となります。発送時期が近づきましたら、事前にご連絡させていただきます。
'; break; case '5': $add_button = ''; $shop_flg = ''; $shop_flg2 = ''; $text = '※この商品は現在販売しておりません。
'; break; default: $shop_flg = ''; $shop_flg2 = ''; $text = ''; } //関連ファイル $f_list = ''; $dresult = $mysqli->query("SELECT * FROM topics_data WHERE page = 'item' AND cate = 'file' AND no = '".$no."' ORDER BY CAST(num AS SIGNED)"); while($dcustomer = $dresult->fetch()){ $f_det1 = $dcustomer['det1']; $f_list .= '