現在開催中のキャンペーン一覧を検索結果に表示しています。
キャンペーン名のリンクを踏むことで、キャンペーン対象のゲーム一覧を表示します。
select '<A href="#" onclick="dspCampaignGames(' || c.id || ');">' || c.name || '</A>' as "キャンペーン名" ,case c.end_timestamp when '2030-01-01 23:59:00' then null else c.end_timestamp end as "キャンペーン終了日" ,'<A href="' || s.url || '" target="_blank">' || s.name || '</A>' as "ストア" from campaignlist as c inner join storelist as s on c.store = s.id where current_timestamp between c.start_timestamp and c.end_timestamp order by c.store desc ,c.end_timestamp