Displays a "result count" (typically from some program).
The following parameters are recognized:
The count to be displayed - if omitted, we use 0.
The "quality" of the count, must be "Good", "Bad", or "WBad" (for bad values in warning areas). If omitted, it defaults to "Good".
Optional HTML attributes to include with <span>.
Example of using the macro:
@wuiResultCount("3") @wuiResultCount("12","Good") @wuiResultCount("400","Bad","@htmlAttr("title","This is too many errors!")") @warningMessage("The value of @wuiResultCount("12","WBad") is bad!")
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")
@wuiResultCount("3") @wuiResultCount("12","Good") @wuiResultCount("400","Bad","@htmlAttr("title","This is too many errors!")") @warningMessage("The value of @wuiResultCount("12","WBad") is bad!")
EOF
This macro is defined as:
"@htmlEntity("span","@fnb("@param(0)","0")","@htmlAttr("class","wuiResultCount@fnb("@param(1)","Good")") @param(2)")"