![]() |
|
首页 │ Apache │ Linux│ Java│ MySQL│ 注册│帮助 | |||
Formcat 1.02 表单客户校验代码生成类今日发布
[B][点击下载Formcat 1.02版本][/B][/SIZE]
[Formcat官方网站]
[B]中文介绍:[/B]
Formcat 是来自中国广州PHP爱好者黄俊研(Joey Wong)先生开发的类.主要用于WEB工程中,生成HTML表单客户端校验代码.它能非常快速,准确地通过formcat标记,自动生成校验所需的javascript.表单校验的繁琐工作,从此成为统一的,简单的小工作.
Formcat提供大量检验器,以适应主流校验的需要,例如可以检验"不为空"(notEmpty),"数值范围"(isRange),"字符长度"(isLength),"正确email"(isEmail),"是否选择了单选钮"等等.还提供了自定义校验器等扩展功能.自Formcat 1.02版后,还将提供catform扩展属性,以提供多元化校验及视觉导向相结合的功能.
Formcat支持单页面多表单校验.Formcat只提供客户端校验,而服务器端校验,推荐使用SmartyValite,结合Smarty官方发布的SmartyValidate, 是不二的客户端及服务器端校验强劲组合.
Formcat是PigCat PHP Development Framework开发框架(未公开)的一部分.Formcat只运行在Smarty模版引擎环境.
[B]英文介绍:[/B]
Formcat is a class for performing form validation on the client side.Its goal is to generate Javascript code to validate forms before they are submited to the server.
It works as a plug-in for the Smarty template engine. It is a good complement SmartyValidate plug-in that performs server side validation.It supports many built-in validation criteria: empty, range, length,checkbox, radio button, integer, float, email, credit card, list menu,date, date comparison, equality between fields, file size, file type, custom validator calls.
{formcat ...} tags can be located anywhere in the templates, regardless of where the corresponding fields are located in the form

