Update CHtml.php

Added maxlength support for activeInputField for email & number field types. Issue #2741 from BrunoLL.