PHPLens: 4.9.2 Data: 0.02 DB: mysql adodb: 4.62 Compat: 2 PHP: 5.2.17 OS: Linux License Type: Enterprise ID: (Natsoft;John Lim;jlim@natsoft.com) Valid Till: Never Expires
Notes
When editing or creating new records, userid and password are set as must fill fields. Age only
accepts numbers (this is automatic, no programming required), and email addresses are validated.
create table lensusers (
USERID char(16) not null,
PASSWORD char(16) not null,
FIRSTNAME char(24) ,
LASTNAME char(24) not null,
EMAIL char(48) not null,
ADDRESS1 char(48) not null,
ADDRESS2 char(48) ,
POSTCODE char(12) ,
CITY char(24) ,
STATE char(24) ,
COUNTRY char(24) not null,
AGE integer,
CREATED datetime not null,
LASTMOD datetime not null,
primary key (userid)
);
This demo also shows you Google style scrolling. In this case, this is enabled by setting
$lens->scrollLinks = 9
which sets the number of scrolling links to 9.
sameRowLens
Also notice that the fields FirstName/LastName and PostCode/City are on the same line in the Details Grid, and New/Edit
record forms. This is configured by checking "2 Fields in 1 Row" in the column settings for PostCode.
sectionLens
We also have section breaks with "Misc" and "Address" using the sectionLens property.