Topological phases of photonic crystals under crystalline symmetries