diff options
author | ivan <ivan> | 2010-02-21 03:16:02 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-02-21 03:16:02 +0000 |
commit | 259eacca8b815b2bf159e7ee14385e2ac28ed9ee (patch) | |
tree | de35289c365cc1e3b0c47a8193454f22e2ec25c7 /httemplate/elements | |
parent | d2e5d9d1f65fc94eb87eae45b675645e92087f49 (diff) |
communigate, RT#7083
Diffstat (limited to 'httemplate/elements')
-rw-r--r-- | httemplate/elements/communigate_pro-accessmodes.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/httemplate/elements/communigate_pro-accessmodes.html b/httemplate/elements/communigate_pro-accessmodes.html new file mode 100644 index 000000000..6ce9ca587 --- /dev/null +++ b/httemplate/elements/communigate_pro-accessmodes.html @@ -0,0 +1,30 @@ +<% include( 'checkboxes.html', + 'element_name_prefix' => 'cgp_accessmodes_', + 'names_list' => \@names, + 'checked_callback' => $callback, + %opt, + ) +%> +<%once> + +my @names = (qw( + Mail Relay Signal Mobile TLS POP IMAP MAPI + AirSync SIP XMPP WebMail XIMSS FTP ACAP PWD + LDAP RADIUS S/MIME WebCAL WebSite PBX HTTP +)); + +</%once> +<%init> + +my %opt = @_; +my $curr_value = $opt{'curr_value'}; + +$curr_value = { map { $_=>1 } split(/\s+/, $curr_value) } + unless ref($curr_value); + +my $callback = sub { + my( $cgi, $name ) = @_; + $curr_value->{$name}; +}; + +</%init> |