]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Campaigns/Subscriptions.html
Release 6.5.0
[Github/sugarcrm.git] / modules / Campaigns / Subscriptions.html
1 <!--
2 /*********************************************************************************
3  * SugarCRM Community Edition is a customer relationship management program developed by
4  * SugarCRM, Inc. Copyright (C) 2004-2012 SugarCRM Inc.
5  * 
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.
12  * 
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
16  * details.
17  * 
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
21  * 02110-1301 USA.
22  * 
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.
25  * 
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.
29  * 
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  ********************************************************************************/
36
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  ********************************************************************************/
40 -->
41 <!-- BEGIN: main -->
42 <span>
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="">                                                                      
55
56 <table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view">
57         <tr>
58                 <td>
59
60
61                         <table  border="0" cellspacing="0" cellpadding="0">
62                         <tr>
63                           <th align="left" scope="row" colspan="4"><h4 class="">{APP.LBL_MANAGE_SUBSCRIPTIONS_FOR}{FOCUS_NAME}</h4></th>
64                         </tr>
65                         <tr><td>&nbsp;</td></tr>
66                           <td>
67                                         <table align="center" border="0" cellpadding="0" cellspacing="0" width='350'>
68                             <tbody><tr><td align="center">
69                                   {DRAG_DROP_CHOOSER}
70                             </td></tr></tbody></table>
71                           </td>
72                         </tr>
73                         </table>
74                 
75                 </td>
76         </tr>
77         <tr><td>&nbsp;</td></tr>
78         <tr><td>
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}">
81         </td></tr>
82 </table></p></form>
83
84 <script>
85 function checkSubs(){
86         var webFormDiv = document.getElementById('SubsForm');
87         var grid0values = Array();
88         var grid1values = Array();        
89         var grid0keys = Array();
90         var grid1keys = Array();
91              
92                  for(var i=0; i<{CLASSNAME}_grid0.getRecordSet().getLength(); i++){
93                         /*
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); 
100                      */
101                      grid0keys[i] = {CLASSNAME}_grid0.getRecord(i).getData()[0];                     
102                      grid0values[i] = {CLASSNAME}_grid0.getRecord(i).getData()[1];
103                  }
104
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];
108                  }
109                 document.getElementById('grid0values').value = grid0values.toString() ;
110                 document.getElementById('grid1values').value = grid1values.toString() ;         
111
112 }
113
114 </script>
115
116 <!-- END: main -->
117