If $R_1,...,R_n$ are rings with identity and $I$ is an ideal in $R_1\times...\times R_n$, then $I=A_1\times...\times A_m$,where each $A_i$ is an ideal in $R_i$.
My proof:
Given $I$ let $A_k=\pi_k(I)$,where $\pi_k$ is the canonical epimorphism. Since $\pi_k$ is an epimorphism and $I$ is an ideal in $R_1\times...\times R_n$,then $A_k=\pi_k(I)$ is an ideal in $R_k$. And I can get $I$ has the form $A_1\times...\times A_m$.
I don't know why I need the condition that rings $R_i$ have identities.