]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/MailMerge/Step1.html
Release 6.4.0
[Github/sugarcrm.git] / modules / MailMerge / Step1.html
1 <!--
2 /*********************************************************************************
3  * SugarCRM Community Edition is a customer relationship management program developed by
4  * SugarCRM, Inc. Copyright (C) 2004-2011 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
43
44                         <form enctype="multipart/form-data" name="MailMerge" method="POST" action="index.php">
45                         <input type="hidden" name="module" value="MailMerge">
46                         <input type="hidden" name="step" id="step" value="{STEP}">
47                         <input type="hidden" name="action" value="index">
48                         <input type="hidden" name="return_module" value="{RETURN_MODULE}">
49                         <input type="hidden" name="return_id" value="{RETURN_ID}">
50                         <input type="hidden" name="return_action" value="{RETURN_ACTION}">
51                         <input type="hidden" name="record" value="{RECORD}">    
52                         <input type="hidden" name="selected_objects" value="{SELECTED_OBJECTS}">
53                         <input type="hidden" name="selected_objects_def" value="{SELECTED_OBJECTS_DEF}">                                
54 <p>
55 <table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view">
56 <tr>
57 <td>
58         <table border="0"  width="100%" cellspacing="0" cellpadding="0">
59         <tr>
60         <th align="left" scope="row" colspan="5"><h4 class="">{MOD.LBL_STEP_1}</h4></th>
61         </tr>
62         <tr><td width="5%"><slot>&nbsp;</slot></td></tr>
63         <tr>
64         <td scope="row" width="20%"><slot>{MODULE_SELECT}</slot>
65         </td>
66         <td ><slot><select tabindex='2' name='mailmerge_module' id='mailmerge_module'" style="width: 100px;" onChange="javascript:clearSpan();">{MAILMERGE_MODULE_OPTIONS}</select></slot></td>
67         <td align="right" colspan='2'><slot><em>{ADDIN_NOTICE}</em></slot></td>
68         </tr>
69         <tr>
70                         <td >&nbsp;&nbsp;<slot><em><span id="numObjects">{MAILMERGE_NUM_SELECTED_OBJECTS}</span></em></slot></td>
71                         <td ><slot>&nbsp;</slot></td>
72                         <td ><slot>&nbsp;</slot></td>
73                         <td ><slot>&nbsp;</slot></td>
74                 </tr>
75                         <tr>
76                         <td ><slot>&nbsp;</slot></td>
77                         <td ><slot>&nbsp;</slot></td>
78                         <td ><slot>&nbsp;</slot></td>
79                         <td ><slot>&nbsp;</slot></td>
80                 </tr>
81                         <tr>
82                                 <td scope="row" width="5%"><slot>{MOD.LBL_MAILMERGE_TEMPLATES}</slot></td>
83                                 <td ><slot><select id="document_id" name="document_id" style="width: 200px;">{MAILMERGE_TEMPLATES}</select></slot></td>
84                                 <td><slot>&nbsp;</slot></td>
85                                         <td align="right"><slot>&nbsp;</slot></td>
86                         </tr>
87                         <tr><td colspan"4"><slot>&nbsp;</slot></td></tr>
88                 </table>
89         </td>
90 </tr>
91 </table>
92 </p>
93
94 <p><table width="100%" cellpadding="2" cellspacing="0" border="0"><tr> 
95         <td align="right">
96         <input title="{MOD.LBL_NEXT}" accessKey="" class="button" type="submit" id="btnNext" name="button" value="  {MOD.LBL_NEXT}" onClick="return validateForm();" {DISABLE_NEXT_BUTTON}></td>
97 </tr>
98 </table> </p>
99         </form>
100 {JAVASCRIPT}
101 <script type="text/javascript">{JSON_CONFIG_JAVASCRIPT}</script>
102 <script type="text/javascript" src="include/javascript/jsclass_base.js?v={VERSION_MARK}"></script>
103 <script type="text/javascript" src="include/javascript/jsclass_async.js?v={VERSION_MARK}"></script>
104 <script>
105 var mOffset = 0;
106 var max = 10;
107
108 //browserCheck();
109 function browserCheck()
110 {
111         if(document.layers)
112         {
113                 button = document.getElementById("btnNext");
114                 button.disabled = true;
115                 alert("This requires IE 6.0 or greater for Windows.");
116         }
117         else if(document.layers || (!document.all && document.getElementById))
118         {
119                 button = document.getElementById("btnNext");
120                 button.disabled = true;
121                 alert("This requires IE 6.0 or greater for Windows.");
122         }       
123 }
124 function clearSpan()
125 {
126         document.getElementById("numObjects").innerHTML = "";
127         document.getElementById("step").value = "2";
128 }
129
130
131 function validateForm()
132 {
133         var templates = document.getElementById("document_id");
134         for (i=0;i<templates.options.length;i++)
135         {
136                 if(templates[i].selected)
137                 {
138                         if(templates[i].value != "None")
139                         {
140                                 return true;
141                         }
142                 }
143         }
144         alert("Please select a template.");
145         return false;   
146 }
147
148 function disableModuleDropDown(){
149         var selectBox = document.getElementById("mailmerge_module");
150         selectBox.disabled = true;
151 }
152
153 {MAILMERGE_DISABLE_DROP_DOWN}
154 </script>
155 <!-- END: main -->