addrelicons — adds a small table containing icons from related sets
use Wacs;
use Wacs::WacsUI;
scalar addrelicons( | ...) ; |
parameter | description |
---|---|
setno | The set number of this set |
stype | The type of this set |
sformat | The format of this set - mostly useful for videos |
layout | How to layout the resulting output - specify table
for HTML table, div for appropriate DIVs for CSS formating.
|
size | Size of the icons to use - mini, std, etc. |
perrow | Specifies how many icons should be included in each row of the table when displaying continuation icons (see addconticons below) |
destloc | Which configuration variable to use for location of link destination application - typically cgiurl for perl scripts, siteurl for php scripts, or wacsurl for wacs GUI elements (like glyphs, javascript files or stylesheets) |
destapp | The stem of the URL to link to around the icon, something like
wacsindex/page, needs to include any parameter
introducers like page or setid= |
destext | The extension of the URL to link to, or null, ie .html or .php.
From Wacs 0.9.0 onwards this can also be |
destinfo | The stem of the URL to link around a link to more information,
something like wacsindex/info, needs to include any
parameter introducers like page or setid=
|
dbhandle | Handle to the current database connection for query |
The addrelicons
function returns the HTML to
generate a small table with icons with hyperlinks for duplicate and/or
continuation sets. It arranges the duplicate sets it rows, adding any
appropriate continuation icons within each row as needed. It calls
the function addconticons
to produce each row of
icons.
Various optional parameters control how this HTML segment is generated.