This uses a filter template to reformat the search form vertically. The phpLens search
form is very flexible. Try the following:
- Search for all product id's greater than 30: >30
- All product id's between 10 to 30: 10 (to) 30
- All product names beginning with V: V
ProductID
ProductName
Supplier
Category
Qty/Unit
77
Original Frankfurter grüne Soße Plutzer Lebensmittel Condiments 12 boxes
76
Lakkalikööri Karkki Oy Beverages 500 ml
75
Rhönbräu Klosterbier Plutzer Lebensmittel Beverages 24 - 0.5 l bottles
74
Longlife Tofu Tokyo Traders Produce 5 kg pkg.
73
Röd Kaviar Svensk Sjöföda AB Seafood 24 - 150 g jars
72
Mozzarella di Giovanni Formaggi Fortini s.r Dairy Products 24 - 200 g pkgs.
71
Fløtemysost Norske Meierier Dairy Products 10 - 500 g pkgs.
70
Outback Lager Pavlova, Ltd. Beverages 24 - 355 ml bottles
69
Gudbrandsdalsost Norske Meierier Dairy Products 10 kg pkg.
68
Scottish Longbreads Specialty Biscuits, Confections 10 boxes x 8 pieces
67
Laughing Lumberjack Lager Bigfoot Breweries Beverages 24 - 12 oz bottles
66
Louisiana Hot Spiced Okra New Orleans Cajun De Condiments 24 - 8 oz jars
65
Louisiana Fiery Hot Pepper Sauce New Orleans Cajun De Condiments 32 - 8 oz bottles
64
Wimmers gute Semmelknödel Plutzer Lebensmittel Grains/Cereals 20 bags x 4 pieces
63
Vegie-spread Pavlova, Ltd. Condiments 15 - 625 g jars
62
Tarte au sucre Forêts d'érables Confections 48 pies
61
Sirop d'érable Forêts d'érables Condiments 24 - 500 ml bottles
60
Camembert Pierrot Gai pâturage Dairy Products 15 - 300 g rounds
59
Raclette Courdavault Gai pâturage Dairy Products 5 kg pkg.
58
Escargots de Bourgogne Escargots Nouveaux Seafood 24 pieces
57
Ravioli Angelo Pasta Buttini s.r.l. Grains/Cereals 24 - 250 g pkgs.
56
Gnocchi di nonna Alice Pasta Buttini s.r.l. Grains/Cereals 24 - 250 g pkgs.
55
Pâté chinois Ma Maison Meat/Poultry 24 boxes x 2 pies
54
Tourtière Ma Maison Meat/Poultry 16 pies
53
Perth Pasties G'day, Mate Meat/Poultry 48 pieces
52
Filo Mix G'day, Mate Grains/Cereals 16 - 2 kg boxes
51
Manjimup Dried Apples G'day, Mate Produce 50 - 300 g pkgs.
50
Valkoinen suklaa Karkki Oy Confections 12 - 100 g bars
49
Maxilaku Karkki Oy Confections 24 - 50 g pkgs.
48
Chocolade Zaanse Snoepfabriek Confections 10 pkgs.
47
Zaanse koeken Zaanse Snoepfabriek Confections 10 - 4 oz boxes
46
Spegesild Lyngbysild Seafood 4 - 450 g glasses
45
Røgede sild Lyngbysild Seafood 1k pkg.
44
Gula Malacca Leka Trading Condiments 20 - 2 kg bags
43
Ipoh Coffee Leka Trading Beverages 16 - 500 g tins
42
Singaporean Hokkien Fried Mee Leka Trading Grains/Cereals 32 - 1 kg pkgs.
41
Jack's New England Clam Chowder New England Seafood Seafood 12 - 12 oz cans
40
Boston Crab Meat New England Seafood Seafood 24 - 4 oz tins
39
Chartreuse verte Aux joyeux ecclésias Beverages 750 cc per bottle
38
Côte de Blaye Aux joyeux ecclésias Beverages 12 - 75 cl bottles
37
Gravad lax Svensk Sjöföda AB Seafood 12 - 500 g pkgs.
36
Inlagd Sill Svensk Sjöföda AB Seafood 24 - 250 g jars
35
Steeleye Stout Bigfoot Breweries Beverages 24 - 12 oz bottles
34
Sasquatch Ale Bigfoot Breweries Beverages 24 - 12 oz bottles
33
Geitost Norske Meierier Dairy Products 500 g
32
Mascarpone Fabioli Formaggi Fortini s.r Dairy Products 24 - 200 g pkgs.
31
Gorgonzola Telino Formaggi Fortini s.r Dairy Products 12 - 100 g pkgs
30
Nord-Ost Matjeshering Nord-Ost-Fisch Hande Seafood 10 - 200 g glasses
29
Thüringer Rostbratwurst Plutzer Lebensmittel Meat/Poultry 50 bags x 30 sausgs.
28
Rössle Sauerkraut Plutzer Lebensmittel Produce 25 - 825 g cans
Notes
This example demonstrates using a template to change the search screen:
$lens->templateFilter = 'ex311.tpl';
The contents of the template:
{$_FORMBEGIN_ }
<table width="100%" border="1">
<tr bgcolor="#333333">
<td colspan=5 align=right><font color="#FFFFFF"> {$_SUBMIT_ }</font> {$_DYNEDIT_ } </td>
</tr>
<tr bgcolor="#666666">
<td><b><font color="#FFFFFF">{$PRODUCTID_T }</font></b></td>
<td><b><font color="#FFFFFF">{$PRODUCTNAME_T } </font></b></td>
<td><b><font color="#FFFFFF">{$SUPPLIERID_T }</font></b></td>
<td><b><font color="#FFFFFF">{$CATEGORYID_T }</font></b></td>
<td><b><font color="#FFFFFF">{$QUANTITYPERUNIT_T }</font></b></td>
</tr>
<tr>
<td>{$PRODUCTID }</td>
<td>{$PRODUCTNAME }</td>
<td>{$SUPPLIERID }</td>
<td>{$CATEGORYID }</td>
<td>{$QUANTITYPERUNIT }
</td>
</tr>
</table>
{$_FORMEND_ }
The template consists of the fields ,eg {$PRODUCTID}, and the captions {$PRODUCTID_T}. And we also
have the buttons {$_SUBMIT_} and {$_CANCEL_}, though the cancel button has been removed. The
{$_DYNEDIT_} tag holds the green "e" editor button.
Finally we have the form management tags {$_FORMBEGIN_} and {$_FORMEND_}.
Other features include exporting to Excel [which requires the ob_start() call at the beginning of the page)] and setting the firstState to FILTERVIEW, so the search screen appears on startup.
$lens->exportLens = 'PRODUCTID;PRODUCTNAME;SUPPLIERID;CATEGORYID;QUANTITYPERUNIT';
$lens->firstState = 'FILTERVIEW';