",mysql_result($result,0,"detail")); $photo = mysql_result($result,0,"photo"); $status = mysql_result($result,0,"status"); } } else { $onLoadStr = " onLoad='windowEnd();return false;'"; } if ($onLoadStr == "") { // 現在保管されている画像を取得し、表示スクリプトを作成する $image_ary = glob("./img/car_image/".$index."_*.jpg"); sort($image_ary); $thumbnail_ary = glob("./img/thumbnail/".$index."_*_thmbnail.jpg"); $immage_script = ""; $scriptValue = "var comentArray = ["; $first_image = str_replace ("car_image", "select_car_image", $image_ary[0]); if (is_array(glob("./img/car_image/".$index."_*.jpg"))) { // 画像コメント取得 $sql = " SELECT * FROM image_coment WHERE carIndex = ".$index." ORDER BY file_name;"; $result = mysql_query($sql,$db); $firstComent = ""; $immage_script = ""; $immage_script = $immage_script."
"; $imgArray = glob("./img/car_image/".$index."_*.jpg"); sort($imgArray); $cnt = 1; $firstComentFlg = false; foreach ($image_ary as $filename) { if ($filename != "") { $select_image = str_replace ("car_image", "select_car_image", $filename); $thumbnail_name = str_replace (".jpg", "_thmbnail.jpg", $filename); $thumbnail_name = str_replace ("car_image", "thumbnail", $thumbnail_name); $immage_script = $immage_script."
\n"; $immage_script = $immage_script." \n"; $immage_script = $immage_script." \n"; $immage_script = $immage_script." \n"; $immage_script = $immage_script."
\n"; $coment = mysql_result($result,$cnt-1,"coment"); $scriptValue = $scriptValue."'".$coment."', "; if (!$firstComentFlg) { $firstComent = $coment; $firstComentFlg = true; } $cnt++; } } $immage_script = $immage_script."
\n"; $scriptValue = $scriptValue."];"; //$scriptValue = nl2br($scriptValue); $scriptValue = str_replace("\r\n", "
", $scriptValue); } } ?>  <? print $title ?> 松元エンジニアリング text="black" bgcolor="#000080">

基本情報(

本体価格(税込) 排気量 cc
支払総額(税込) エンジン種別
走行距離 km
年式(初度登録年) ハンドル
車検 ミッション

詳細