480))): $embed="off"; endif; //タイトルと撮影場所の言語選択 if (pg_result($result,0,2)): $title=pg_result($result,$i,2); else: $title=pg_result($result,$i,20); endif; if (pg_result($result,0,27)): $location=pg_result($result,$i,27); else: $location=pg_result($result,$i,28); endif; $movieid=pg_result($result,$i,15); //詳細を表示 echo "
"; echo ""; echo ""; if ($embed=="on" and pg_result($result,0,29)>240): $width=pg_result($result,0,29); else: $width=240; endif; echo ""; echo ""; if ($embed=="on"): $height=pg_result($result,0,30)+16; echo ""; else: echo ""; endif; echo ""; echo ""; echo "
"; echo "

".$title."

"; echo "(". pg_result($result,0,9). "MB"; if (pg_result($result,0,10)=="00:00:00"): echo ")
"; else: echo ", ".pg_result($result,0,10); echo ")
"; endif; $date=pg_result($result,0,26); $appearance=pg_result($result,0,32); $dateappear=showdate($date,$appearance); if ($dateappear!=""): echo "撮影日:".$dateappear."
"; endif; if ($location): echo "撮影場所:".$location; else : echo "

"; endif; echo "

"; echo "
"; $quality=pg_result($result,$i,31); if ($quality): echo "\"*\""; endif; echo ""; echo " "; echo ""; echo ""; echo "
"; if (!pg_result($result,0,29) or pg_result($result,0,29)>480): echo ""; else: echo ""; endif; echo "\"".$title."\"
種類"; $speciesj=pg_result($result,0,18); if ($speciesj): echo "
". $speciesj. ""; endif; $species=pg_result($result,0,3); if ($species): echo "
". $species. ""; endif; echo "

キーワード
"; if (pg_result($result,0,4)): for ($c=4;$c<9;$c++){ echo pg_result($result,0,$c)."
"; } else: for ($c=21;$c<26;$c++){ echo pg_result($result,0,$c)."
"; } endif; echo "


"; //メールアドレスを埋め込むか? if (pg_result($result,0,17)=="on"): echo ""; endif; if (pg_result($result,0,12))://和名があるか echo pg_result($result,0,12)."
"; if(pg_result($result,0,13)): echo "(".pg_result($result,0,13).")
"; endif; else://なければ英名を表示 echo pg_result($result,0,13)."
"; endif; $submitday=pg_result($result,0,14); $submitday=str_replace("-","/",$submitday); echo $submitday."登録
"; //和名、学名から分類群を取得 if ($species=="unidentified" or $speciesj=="不明"): $classsql="select distinct kingdomj,phylumj,classj,ordj,familyj,genusj,specificj from class where (specific='".$species."' and specificj='".$speciesj."')"; else: $classsql="select distinct kingdomj,phylumj,classj,ordj,familyj,genusj,specificj from class where (specific='".$species."' or specificj='".$speciesj."')"; endif; $classresult=pg_exec($conn,$classsql); echo "


"; $classnumber=pg_numrows($classresult); if($classnumber): for ($j=0;$j<$classnumber;$j++){ if($j!=0): echo "
もしくは
"; endif; for ($i=0;$i <6; $i++){ $level=$level.pg_result($classresult,$j,$i)." >"; } echo $level."
"; $level=""; } echo "
"; endif; //解説を表示 $commentsfilepath=pg_result($result,0,19); $commentsfilepath=$locationprefix.$commentsfilepath; $commentstext=read_commentsfile($commentsfilepath,$movieid); $commentstext=nl2br($commentstext); $commentstext=trim($commentstext); echo $commentstext; echo "

"; if (!$commentstext): $commentsfilepathe=str_replace("text","texte",strrev(substr(strrchr(strrev($commentsfilepath),"."),1))).".txt"; $commentstexte=read_commentsfile($commentsfilepathe,$movieid); $commentstexte=nl2br($commentstexte); echo $commentstexte; endif; echo "

"; echo "

(データ番号:".$movieid.")"; echo "

映像の著作権は、登録者に属します。
映像の利用については利用規約を御覧下さい。"; else: echo "表示に失敗しました"; endif;