We present the design of a tunable two-dimensional photonic crystal that exhibits multiple topological phases, including a conventional insulator phase, a quantum spin Hall phase, and a quantum anomalous Hall phase under different combinations of geometric parameters and external magnetic fields. Our photonic crystal enables a platform to study the topology evolution attributed to the interplay between crystalline symmetry and time-reversal symmetry. A four-band tight-binding model unambiguously reveals that the topological property is associated with the pseudospin orientations and that it is characterized by the spin Chern number. The emerging quantum anomalous Hall phase features a single helical edge state that is locked by a specific pseudospin. Simulation results demonstrate that the propagation of such a single helical edge state is robust against magnetic impurities. Potential applications, such as spin splitters, are described.