A Vietnamese court on Friday jailed two senior police officials found guilty of running an underground online gambling ring which raised millions of dollars, state media said.