";
}
return $message;
}
//サム画像表示用
function image_thum($image,$width) {
if(file_exists(PHOT_DIR.$image)&&($image) ){
$image_pass= PHOT_DIR.$image ;
$message="";
}
return $message;
}
//NEWアイコン表示用
function disp_new($date,$n){
$date=str_replace('-','',$date);
$d3=date( "Ymd", mktime( 0,0,0,date("m") ,date("d")-$n, date("Y") ) );
if($date>=$d3) return "new";
}
$_SESSION[view] = 0 ;
$sql = "select * from aw_show where id =" .$id ." and show_key ='08_detroit' ";
$rs = mysql_query($sql);
if ($rs !=NULL){
$row = mysql_fetch_assoc($rs);
}
$id=$row['id'] ;
$mtext=nl2br ($row['mtext']);
$image_[0]=image_pick(PHOT_DIR,$row[image_0]);
for ($i=1;$i <=8;$i++){
$image="image_".$i;
$image=image_pick('./thumb/',$row[$image]);
if($image!=NULL){
$image_[$i]="$image"; }
}
$maker=$row['maker'];
$maker_e=$maker_e_array[$maker] ;
$maker_name=$maker_array[$maker] ;
$car_name=$row['cname'];
$car_name=$maker_name." ".$car_name;
$maker_e_img =$row ['maker'].".gif";
$maker_e_img=image_pick('./maker_img/',$maker_e_img );
//前後のページへリンク
if ($row[id] !=NULL){
$sql = "select id,disp_date,disp,cname,maker,image_1 from aw_show where show_key ='08_detroit' and disp=0 order by 'maker' ,'disp_date' desc";
$rs = mysql_query($sql);
while ($ar=mysql_fetch_row($rs)){
$ar_amr=array_merge_recursive($ar[0],$ar_amr);
}
$num=array_search($id,$ar_amr);
$next_id=$num-1;
$before_id=$num+1;
if ($ar_amr[$next_id] !=NULL){
$next=$ar_amr[$next_id];
$next="
";
}else {
$next="
";
}
if ($ar_amr[$before_id] !=NULL){
$before=$ar_amr[$before_id];
$before="
";
}else{
$before="
";
}
}
?>
= $mtext ?>
- ".$maker_array[$list_maker_name]." ".$list_row['cname']." | ".$list_row['mheader']."
\n"; } } ?>