findrecentmodels — creates rows in a table managed form with pull-down menus containing
details of recently added models and a search box to be fed to
findmodel
use Wacs;
use Wacs::WacsStd;
findrecentmodels( | ...); |
| parameter | description |
|---|---|
| offset | the number of days in the past to consider as recent. Defaults to
the current value of layout->newperiod if not specified.
|
| default | The default model number if known. |
| dbhandle | pointer to the currently active database handle |
| cgihandle | pointer to the currently active CGI object |
The findrecentmodels function creates rows in
a table managed form with pull-down menus containing details of recently
added models and a search box to be fed to findmodel.
The method selected by the user for specifying their response will be
stored in a CGI variable called modmeth
which will have one of these values: specify,
recent or search.
If their response is specify the modelno will be in a
CGI variable called spec_modelno.
If their response is recent, the modelno will be in a CGI
variable called recent_mod. If the value is
search the findmodel function
should be called passing the CGI variable search as
the mname parameter.