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 "Forward To"; }
16 $res = "function(Node, data) {\n"
19 . " var select = document.createElement('select');\n"
20 . " select.setAttribute('name', Node.name+'[1]');\n"
22 . " for(i=0,j=0; i<mail_pool.length; i++) {\n"
23 . " if(data[1]==i) sel = j;\n"
24 . " if(mail_pool[i])\n"
25 . " select.options[j++] = new Option(mail_pool[i],i,false,(data[1]==i));\n"
27 . " select.selectedIndex = sel;\n"
29 . " Node.appendChild(document.createTextNode(' email : '));\n"
30 . " Node.appendChild(select);\n"
37 /********************************************************************************
39 * vim: set expandtab shiftwidth=4 tabstop=4 softtabstop=4 textwidth=100:
40 ********************************************************************************/