", "", $copy); //copy $book_detail ="
"; $book_detail .="
"; $book_detail .="
".  $booktitle .""; if(pg_result($rtn_detail,0,38) !=''){ $str = "https://viewer.yondemill.jp/?cid="; $yondemill_num = trim(pg_result($rtn_detail,0,38),$str); //echo $yondemill_num; $book_detail .="

立ち読み
YONDEMILL

続きを購入できます
"; } $book_detail .="
"; $book_detail .="
"; $book_detail .="

". $booktitle ."

"; $book_detail .="

". mb_convert_encoding(pg_result($rtn_detail,0,6),'UTF-8','EUC_JP') ."

"; $book_detail .="
"; $book_detail .="
定価:
本体". pg_result($rtn_detail,0,9). "円+税
"; $book_detail .="
"; $book_detail .="
"; $book_detail .="
まんが:
". mb_convert_encoding(pg_result($rtn_detail,0,7),'UTF-8','EUC_JP') ."
"; $book_detail .="
ISBN:
". mb_convert_encoding(pg_result($rtn_detail,0,10),'UTF-8','EUC_JP') ."
"; $date_pubulished = str_replace("-", "/", pg_result($rtn_detail,0,8)); $book_detail .="
発売日:
". $date_pubulished ."
"; $book_detail .="
"; $book_detail .="
"; $book_detail .="
"; $book_detail .="
"; $book_detail .="

内容紹介

"; $book_detail .="

". mb_convert_encoding(pg_result($rtn_detail,0,11),'UTF-8','EUC_JP') ."

"; $description = mb_convert_encoding(pg_result($rtn_detail,0,12),'UTF-8','EUC_JP'); $description = str_replace("

", "", $description); $description = str_replace("

", "", $description); $description = str_replace("", "", $description); $description = str_replace("", "", $description); if(strstr($description, '
')) { $description_word = strstr($description, "
", TRUE); $description_word = str_replace("
", "", $description_word); $description_writer = strstr($description, "
"); $description_writer = str_replace("
", "", $description_writer); }else{ $description_word = $description; $description_writer = ""; } $book_detail .="

"; $book_detail .=$description_word; $book_detail .="

"; $book_detail .="
"; $book_detail .="
"; if($description_writer !=""){ $book_detail .="
"; $book_detail .="

著者紹介

"; $book_detail .="
"; //著者名 $book_detail .="

". mb_convert_encoding(pg_result($rtn_detail,0,6),'UTF-8','EUC_JP') ."

"; $book_detail .="

" . $description_writer . "

"; $book_detail .="
"; $book_detail .="
"; } $book_detail .="
"; $book_detail .="

オンラインショップで購入

"; $book_detail .=""; $book_detail .="
"; $book_detail .="
"; $book_detail .="

電子書籍で購入

"; $book_detail .=""; $book_detail .="
"; $k_main_key = pg_result($rtn_detail,0,41); $k_sub_key = pg_result($rtn_detail,0,42); $title = pg_result($rtn_detail,0,3); if(strstr($k_main_key, ',')){ $value=explode(",",$k_main_key); $value1=explode(",",$k_sub_key); }else{ $value[0] = $k_main_key; $value1[0] = $k_sub_key; } } $writer = pg_result($rtn_detail,0,6); //**********関連書籍を取得************** //カテゴリが存在していたら開始 if($value[0] !=""){ //著者名が含まれ、カテゴリ1,2に一致する関連書籍を抽出 $query_k1 = "select serial,title,image,writer,yondemill_url from book "; $query_k1 .=" where category like '%31%' and isvalid=1 and showhide=1 "; $query_k1 .=" and serial != '" . $serial ."' and writer like '%" . $writer ."%' "; $query_k1 .=" and (sub_category01 = '" . $k_main_key . "' and sub_category02 = '" . $k_sub_key . "' ) "; $query_k1 .=" or category like '%31%' and isvalid=1 and showhide=1 "; $query_k1 .=" and serial != '" . $serial ."' "; $query_k1 .=" and (sub_category01 = '" . $k_main_key . "' and sub_category02 = '" . $k_sub_key . "' ) limit 4"; $rtn_k1 = pg_exec($con,$query_k1); $cnt_k1 = pg_numrows($rtn_k1); $kanren_line =""; if($cnt_k1>0){ $kanren_line .="
"; $kanren_line .="
"; $kanren_line .="

関連書籍

"; if($i==0){ } for($i=0; $i<$cnt_k1; $i++){ $kanren_line .="
"; $kanren_line .="

"; $kanren_line .="\"".

"; $kanren_line .="

". mb_convert_encoding(pg_result($rtn_k1,$i,1),'UTF-8','EUC_JP') ."

" .mb_convert_encoding(pg_result($rtn_k1,$i,3),'UTF-8','EUC_JP') ."

"; if(pg_result($rtn_k1,$i,4) !=''){ $kanren_line .="

立ち読み
YONDEMILL

"; }else{ // $yondemill_linek1 = ""; } $kanren_line .="
"; } }elseif($cnt_k1 ==0){ //カテゴリ一致での関連書籍 $query_k2 = "select serial,title,image,writer,yondemill_url from book "; $query_k2 .=" where category like '%31%' and isvalid=1 and showhide=1 "; $query_k2 .=" and serial != '" . $serial . "' "; if($value[1] !=''){ $query_k2 .=" and sub_category01 like '%" . $value[0] . "%' "; $query_k2 .=" and sub_category02 like '%" . $value1[0] . "%' limit 4"; }else{ $query_k2 .=" and sub_category01 ='" . $k_main_key . "' and sub_category02 = '" . $k_sub_key . "' limit 4"; } $rtn_k2 = pg_exec($con,$query_k2); $cnt_k2 = pg_numrows($rtn_k2); if($cnt_k2>0){ $kanren_line .="
"; $kanren_line .="
"; $kanren_line .="

関連書籍

"; for($i=0; $i<$cnt_k2; $i++){ $kanren_line .="
"; $kanren_line .="

"; $kanren_line .="\"".

"; $kanren_line .="

". mb_convert_encoding(pg_result($rtn_k2,$i,1),'UTF-8','EUC_JP') ."

" .mb_convert_encoding(pg_result($rtn_k2,$i,3),'UTF-8','EUC_JP') ."

"; if(pg_result($rtn_k2,$i,4) !=''){ $kanren_line .="

立ち読み
YONDEMILL

"; }else{ // $yondemill_linek2 = ""; } $kanren_line .="
"; } }//$cnt_k2>0 } $kanren_line .="
"; } ?> <? print($copy); ?>| <? print($booktitle); ?> まんがで読破

名作文学を徹底漫画化 まんがで読破 イースト・プレス

まんがで読破

まんがで読破 twitter

twitter まんがで読破

PAGE
TOP