Guest User

Untitled

a guest
Aug 19th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. public string function check_box_list_string( required string name, required array collection, struct options = structNew(), boolean escape = true, struct baseTagData = structNew()){
  2. var str = '';
  3. var itemStr = '';
  4. var x = 0;
  5.  
  6. // generate the inner loop of li wrapped inputs
  7. for (x = 1; x LTE arrayLen(arguments.collection); x++){
  8. // clear itemStr value
  9. itemStr = '';
  10. local.opt = { nowrap = true };
  11. itemStr &= 'Line 1:' & hidden_field_tag_string( name = arguments.name & '_' & x, value = arguments.collection[x].value, options = local.opt );
  12. itemStr &= 'Line 2:' & check_box_tag_string( name = arguments.name & '_' & x, checked = arguments.collection[x].checked, options = local.opt );
  13. itemStr &= 'Line 3:' & label_tag_string( content = arguments.collection[x].name );
  14. str &= itemStr;
  15. }
  16.  
  17. return str;
  18. }
Add Comment
Please, Sign In to add comment