// ファンクション読み込み
// ベースディレクトリの設定
$basedirs = explode("/", $_SERVER["DOCUMENT_ROOT"]);
array_pop($basedirs);
$basedir = @join("/", $basedirs);
$photodir = "${basedir}/httpdocs/cuePhoto";
$val["photobase"] = "cuePhoto";
require_once("${basedir}/data/ini/database.ini");
require_once("${basedir}/data/fnc/database.fnc");
require_once("${basedir}/data/fnc/cuesearch.fnc");
$field_name_list = array(
"cue_id" => "cid",
"cue_number" => "cnu",
"cue_name" => "cna",
"price" => "prc",
"base_price" => "bpr",
"weight" => "wgt",
"pin" => "pin",
"shaft" => "sft",
"balance" => "blp",
"cue_status" => "stu",
"lucky_comment" => "lcm",
"commentator" => "cha",
"commentator_comment" => "ccm",
"display_pattern" => "dsp",
"maker_name_en" => "mne",
"maker_name_jp" => "mnj",
"newold" => "ons",
"stiffness" => "hrd",
"thumbnail" => "thb");
$pin = array("","ラジアルピン","ビッグスクリューピン","スモールピン","ユニロックピン","オリジナルピン","その他");
$newold_list = array("New","Used","Mint","Renew");
$cue = get_cue_data($_GET["cid"]);
//print_r($cue);
if($cue["cue_status"] == 1 || $cue["cue_status"] == 3 || $cue["cue_status"]==4 || $cue["cue_status"]==6 || $cue["cue_status"]==7 || $cue["cue_status"]==9) {
$cue["price"] = "NULL";
}
/*
echo "CID:{$_GET["cid"]}
\n";
echo "DSP:{$_GET["dsp"]}
\n";
echo "