=15&&!empty(${"a".$i})) { $insertdata .= $staticdata."\t".$i."\t"."2"."\t".ereg_replace("\t","",${"a".$i})."\n"; } } if ($enq["name"]=="on"&&!empty($namae)) { $insertdata .= $staticdata."\t"."100"."\t"."3"."\t".ereg_replace("\t","",$namae)."\n"; } if (!$insertdata) { $contents = "エラー:回答データがありません。


"; } else { //データファイル格納 // $z = fopen($file_data,"a"); // FileLock("LOCK_EX"); // fwrite($z,$insertdata); // FileLock("LOCK_UN"); // fclose($z); //回答後のコメントをコンテンツに格納 $contents .= ''; $contents .= ''; $contents .= ''; $contents .= '
'; $contents .= ''.$enq["title"].'

'; $contents .= '
'; $contents .= nl2br($enq["footercomment"]); $contents .= '
'; $contents .= '
'; } } else { //回答画面表示 //ヘッダ出力 $contents .= ''; $contents .= ''; $contents .= ''; $contents .= '
'; $contents .= ''.$enq["title"].'

'; $contents .= '
'; $contents .= nl2br($enq["headercomment"]); $contents .= '
'; $contents .= '
'; //回答部分出力 $contents .= ''; $contents .= ''; for ($i=0,$q=0;$i<20;$i++) { if ($enq[$i]=="off") { continue;} $q++; $contents .= ''; } if ($enq["name"]=="on") { $contents .= ''; } $contents .= ''; $contents .= ''; $contents .= '
'; //フォーマットに配列を読み込ませ、コンテンツを格納 if ($i<10) { $contents .= GetContents_Tansuu($enq,$i,$q); } elseif($i<15){ $contents .= GetContents_Fukusuu($enq,$i,$q); } else { $contents .= GetContents_Jiyuu($enq,$i,$q); } $contents .= '
お名前:'; $contents .= ''; $contents .= '


'; //送信ボタン $contents .= '
※サンプルのためボタンをクリックしても送信した内容は反映されません'; //回答ID生成 $contents .= ''; $contents .= '
'; $contents .= '
'; $contents .= '
'; } //出力 //ヘッダ出力 header("Content-Type: text/html; charset=x-euc-jp"); ShowHeader(); //コンテンツ出力 echo $contents; //フッタ出力 ShowFooter(); ?>