Multiple functional regression with both discrete and continuous covariates