{$cstitle}
"; $body .= "
"; $body .= "ご希望のプレゼントを選択して次へボタンをクリックして下さい。
"; $body .= "
"; $body .= "
"; $prelist_rows = pg_numrows($prelist_exe_id = pg_exec($cn,"select pre_mst.pno,pre_mst.pname,pre_mst.pinfo,pre_mst.pimgpath,pre_bunrui.bunname from pre_mst,pre_bunrui where (pre_mst.pbuncd1=pre_bunrui.buncd1 and pre_mst.pbuncd2=pre_bunrui.buncd2) order by pre_mst.pno;")); for($counter = 0;$counter < $prelist_rows;$counter++) { $preitem_obj = pg_fetch_object($prelist_exe_id,$counter); $pno = mb_convert_encoding($preitem_obj->pno, 'Shift_JIS', 'EUC-JP'); $pname = mb_convert_encoding($preitem_obj->pname, 'Shift_JIS', 'EUC-JP'); $body .= "".strip_tags($pname)."
"; $body .= '
'; } $body .= "
"; $body .= ""; $body .= "
"; } else { $body = "プレゼントのご応募は締め切りました。
"; $body .= "
"; $body .= "次回の読者プレゼントをお楽しみに!"; $body .= "
"; } pg_close($cn); // テンプレート出力 $templete = array( 'css' => 'vote.css', 'title' => "プレゼント一覧
", 'body' => $body, 'footer' => $footer, 'index' => true ); include('templete.php'); echo $html; ?>