In the Star Trek: The Next Generation episodes "Encounter at Farpoint" and "Lonely Among Us", we see guys in miniskirts:
Did those miniskirts inspire Zapp Branigan's outfit?
The character Zapp Brannigan was based on Star Trek's Starship captain James T. Kirk and the actor who plays him: William Shatner. He is also said to be based on comic book hero Flash Gordon. The idea of his uniform was to copy that of the women on the USS Enterprise (the Star Trek starship).
I suspect that the standard DOOP uniform isn't necessarily anything like what Zapp Brannigan chooses to wear. After all, he is a lecher, braggart, and narcissist.
This is obviously a combat uniform instead of a dress uniform, but captains of modern naval ships don't wear dress whites while on deck anyway. And the basic styles and cuts are the same, just finer cloths are used with more ornament (braids, brocades, etc).