added posttype function
update admin/post and Input.class