Render a checkbox selection
Documentation
This function helps in rendering a checkbox given the name of a
TWikiFormAttribute
Parameters
- NAME: name of parameter
- SELECTED: list of selected values
Css
Implementation
%STARTINCLUDE%
~~~ <div class="empCheckBoxHolder emp%NAME%">
~~~
%~~ EXTRACT{topic="Applications.EmployeePortalApp.%NAME%"
~~~ pattern="\n\s*\|\s*(.*?)\s*\|\s*(.*?)\s*\|"
~~~ exclude=".*\*Name\*.*"
~~~ format="<label title='$2'>
~~~ <input type='checkbox'
~~~ name='%NAME%'
~~~ value='$1'
~~~ $percntCALC{\"
~~~ $IF($LISTSIZE($LISTIF($EXACT($item,$1),%SELECTED%)),checked='checked')
~~~ \"}$percnt
~~~ />$1</label>"
~~~ }%
~~~ <input type="hidden" name="%NAME%" value="" />
~~~ </div>
~~~
%STOPINCLUDE%
Test
Calls to 'RenderCheckBox'
Copyright
© 2007 Michael Daum
http://wikiring.de
This file is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version. For
more details read the
LICENSE.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.