Please note this:
In my textbook theta is angle from Z-axis to the vector-r
Phi is the angle from the x-axis to the vector projection on the x-y plane
Compute the total flux...of the vector field...out through sphere
This provides an example of computing flux of a vector field.