Inserts HTML form (single button) to take user to man page of PROGRAM.
The following parameters are recognized:
The program (item) to display the man page for.
The text to appear on the button (defaults to PROGRAM if omitted).
Optional title attribute to appear as a tooltip to the user when their mouse hovers over the button.
Optional set of attributes to apply to input entity.
Example of using the macro:
@manPageButton("ls")
@manPageButton("kismet","kismet_server")
Assuming the com.ccg.macros.at.All
class is within your CLASSPATH and the
config/html.at macros file has been
generated (Hint: run make atmacros in the
wui directory), a developer should be able to
run the above example by copy/pasting from below:
[root@probe root]#java com.ccg.macros.at.All <<EOF@include("config/html.at",,"d")@manPageButton("ls") @manPageButton("kismet","kismet_server")EOF
This macro is defined as:
<form@htmlAttr("action","@systemCgi()/man.cgi")@htmlAttr("target","_blank")>
@wuiInputHidden("action","man")
@wuiInputHidden("page","@param(0)")
@wuiInputButton("show","@fnb("@param(1)","@param(0)")","@ifEqual("@param(2)",""," onmouseover=\"domTT_activate(this, event, 'content', '@jsn("View") the @jstc("Man Page","@toolTipEmphasis()") for: @jsdh("@param(0)")', 'width', calcDomTTLen('@param(0)', 180));\"","@param(2)")","@param(3)")</form>