2 /*********************************************************************************
3 * SugarCRM is a customer relationship management program developed by
4 * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
6 * This program is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU Affero General Public License version 3 as published by the
8 * Free Software Foundation with the addition of the following permission added
9 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
10 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
11 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
13 * This program is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
18 * You should have received a copy of the GNU Affero General Public License along with
19 * this program; if not, see http://www.gnu.org/licenses or write to the Free
20 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
24 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
26 * The interactive user interfaces in modified source and object code versions
27 * of this program must display Appropriate Legal Notices, as required under
28 * Section 5 of the GNU Affero General Public License version 3.
30 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
31 * these Appropriate Legal Notices must retain the display of the "Powered by
32 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
33 * technical reasons, the Appropriate Legal Notices must display the words
34 * "Powered by SugarCRM".
35 ********************************************************************************/
37 /*********************************************************************************
38 * {APP.LBL_CURRENCY_SYM}Header: /cvsroot/sugarcrm/sugarcrm/modules/Contacts/EditView.html,v 1.22 2004/07/16 04:04:42 sugarclint Exp {APP.LBL_CURRENCY_SYM}
39 ********************************************************************************/
43 <form enctype="multipart/form-data" id="SubsForm" name="SubsForm" method="POST" action="index.php">
44 <input type="hidden" name="module" value="Campaigns">
45 <input type="hidden" name="action" value="Subscriptions">
46 <input type="hidden" name="return_module" value="{RETURN_MODULE}">
47 <input type="hidden" name="return_id" value="{RETURN_ID}">
48 <input type="hidden" name="return_action" value="{RETURN_ACTION}">
49 <input type="hidden" name="record" value="{RECORD}">
50 <input type="hidden" name="subs_action" value="process">
51 <input type="hidden" name="orig_grid0values" id="orig_grid0values" value="{ORIG_SUBS_VALUES}">
52 <input type="hidden" name="grid0values" id="grid0values" value="">
53 <input type="hidden" name="orig_grid1values" id="orig_grid1values" value="{ORIG_UNSUBS_VALUES}">
54 <input type="hidden" name="grid1values" id="grid1values" value="">
56 <table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view">
61 <table border="0" cellspacing="0" cellpadding="0">
63 <th align="left" scope="row" colspan="4"><h4 class="">{APP.LBL_MANAGE_SUBSCRIPTIONS_FOR}{FOCUS_NAME}</h4></th>
65 <tr><td> </td></tr>
67 <table align="center" border="0" cellpadding="0" cellspacing="0" width='350'>
68 <tbody><tr><td align="center">
70 </td></tr></tbody></table>
77 <tr><td> </td></tr>
79 <input type='submit' class='button' onclick='checkSubs();' value='{APP.LBL_SAVE_BUTTON_LABEL}'>
80 <input title="{APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="this.form.action.value='{RETURN_ACTION}'; this.form.module.value='{RETURN_MODULE}'; this.form.record.value='{RETURN_ID}'" type="submit" name="button" value="{APP.LBL_CANCEL_BUTTON_LABEL}">
86 var webFormDiv = document.getElementById('SubsForm');
87 var grid0values = Array();
88 var grid1values = Array();
89 var grid0keys = Array();
90 var grid1keys = Array();
92 for(var i=0; i<{CLASSNAME}_grid0.getRecordSet().getLength(); i++){
94 var webField = document.createElement('input');
95 webField.setAttribute('id', 'pl'+i);
96 webField.setAttribute('name',grid3.getDataModel().getRow(i)[0]);
97 webField.setAttribute('type', 'hidden');
98 webField.setAttribute('value',grid3.getDataModel().getRow(i)[1]);
99 webFormDiv.appendChild(webField);
101 grid0keys[i] = {CLASSNAME}_grid0.getRecord(i).getData()[0];
102 grid0values[i] = {CLASSNAME}_grid0.getRecord(i).getData()[1];
105 for(var i=0; i<{CLASSNAME}_grid1.getRecordSet().getLength(); i++){
106 grid1keys[i] = {CLASSNAME}_grid1.getRecord(i).getData()[0];
107 grid1values[i] = {CLASSNAME}_grid1.getRecord(i).getData()[1];
109 document.getElementById('grid0values').value = grid0values.toString() ;
110 document.getElementById('grid1values').value = grid1values.toString() ;