Upon collection by the proper officer of the court, 75 percent of the fines or forfeitures of bail in any case in which any person is charged with a violation of the provisions of this chapter shall be paid to the executive officer of the board and the balance, or 25 percent of the fines or forfeitures of bail, shall be paid to the county where the action is tried.