Tunable bi-functional photonic device based on one-dimensional photonic crystal infiltrated with a bistable liquid-crystal layer.