function jsmarty_function_html_checkboxes(R,C){var H=JSmarty.Plugin;H.add("shared.escape_special_chars",C.plugins_dir);var w=H.get("php.array_map");var G=H.get("php.array_values");var x,D,j=new JSmarty.Classes.Buffer();var z=jsmarty_function_html_checkboxes_outputf;var o="checkbox";var d=[];var W=true;var Z=null;var s=null;var q=null;var a=null;var S="";for(x in R){D=R[x];switch(x){case "assign":break;case "name":o=D;break;case "values":s=D;break;case "labels":W=D;break;case "output":Z=D;break;case "options":q=D;break;case "checked":case "selected":a=w(function(k){return k.toString();},G([D]));break;case "checkboxes":q=D;C.trigger_error("html_checkboxes: the use of the \"checkboxes\" attribute is deprecated, use \"options\" instead");break;default:if(typeof (D)!="object"){d.push(x+"=\""+D+"\"");break;}C.trigger_error("html_checkboxes: extra attribute "+x+" cannot be an array");break;}}if(q){for(x in q){if(!q.hasOwnProperty(x)){break;}j.append(z(o,x,q[x],a,d,S,W));}}else{if(s){for(x in s){if(!s.hasOwnProperty(x)){break;}j.append(z(o,x,(Z[x])?Z[x]:"",a,d,S,W));}}}if(R.assign){C.assign(R.assign,j.toString("\n"));}else{return j.toString("\n");}}function jsmarty_function_html_checkboxes_outputf(k,z,o,C,Z,x,a){var d=JSmarty.Plugin.get("php.in_array");var S=JSmarty.Plugin.get("shared.escape_special_chars");var R=new JSmarty.Classes.Buffer();R.appendIf(a)("<label>");R.append("<input type=\"checkbox\" name=\"",S(k),"[]\" value=\"",S(z),"\"");R.appendIf(d(z,C))(" checked=\"checked\"");R.append(Z.join(" ")," />",o);R.appendIf(a)("</label>");R.append(x);return R.toString("");}