Simple validation Bootstrap 4.5 theme
This is only client-side simple javascript validation. You can use default presets or create your own RegExp
HIDE CODE
<?php $xcrud = Xcrud::get_instance(); $xcrud->table('employees'); $xcrud->validation_required('lastName',2)->validation_required('firstName',2)->validation_required('jobTitle'); $xcrud->validation_required('email'); $xcrud->validation_pattern('email','email')->validation_pattern('extension','alpha_numeric')->validation_pattern('officeCode','natural'); $xcrud->limit(10); echo $xcrud->render(); ?>
Employees
# | Lastname | Firstname | Extension | Officecode | Reportsto | Jobtitle | ||
---|---|---|---|---|---|---|---|---|
1 | 234 | this is a long long text | c564 | xxx@alfa.com | 3 | View Edit Remove | ||
2 | hello how ar | 456 | koh@gmail.com | 7 | sfas | View Edit Remove | ||
3 | saMIRA | SDSDSD | EEE | SA@GG.COM | 3 | 456 | COMkkk | View Edit Remove |
4 | xxx | sdfsdfsd | 1 | View Edit Remove | ||||
5 | somesdadsa | dskadsajkdasdas | dsadsadas | View Edit Remove |