fc3ac95562d4ca810821987d60f0e13b339639c9
2 /********************************************************************************
3 * include/plugin_forward.inc.php : The class for forwards
4 * ------------------------------
6 * This file is part of the philter distribution
7 * Copyright: See COPYING files that comes with this distribution
8 ********************************************************************************/
10 class FwdPlugin
extends ActionPlugin
{
11 function FwdPlugin() { $this->ActionPlugin(); }
12 function rtti() { return 1; }
13 function name() { return _i18n('1_fwd_to'); }
17 function(Node, data) {
20 var select = document.createElement('select');
21 select.setAttribute('name', Node.name+'[1]');
22 Node.appendChild(document.createTextNode(' '));
24 // OG: must insert select node before creating options because of IE5 bug
25 Node.appendChild(select);
27 for(i=0,j=0; i<mail_pool.length; i++) {
28 if(data[1]==i) sel = j;
30 select.options[j++] = new Option(mail_pool[i],i,false,(data[1]==i));
32 select.selectedIndex = sel;
37 function to_string($_data) {
40 . " ! ".$mail_pool->emails
[$_data[1]]->email
."\n\n";
44 /********************************************************************************
46 * vim: set expandtab shiftwidth=4 tabstop=4 softtabstop=4 textwidth=100:
47 ********************************************************************************/