add some new files,change template.class.php.