"The bonds shall be approved by the court wherein such proceeding is had, and executed and filed within such time as shall be fixed by the court." . . . .