Construction of dual-functional nitrogen-enriched fluorescent porous organic polymers for detecting m-dinitrobenzene, picric acid and capturing iodine.