input function for smarty