2 /*********************************************************************************
3 * SugarCRM Community Edition is a customer relationship management program developed by
4 * SugarCRM, Inc. Copyright (C) 2004-2012 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 ********************************************************************************/
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}">
55 <table width="100%" border="0" cellspacing="0" cellpadding="0" class="edit view">
58 <table border="0" width="100%" cellspacing="0" cellpadding="0">
60 <th align="left" scope="row" colspan="5"><h4 class="">{MOD.LBL_STEP_1}</h4></th>
62 <tr><td width="5%"><slot> </slot></td></tr>
64 <td scope="row" width="20%"><slot>{MODULE_SELECT}</slot>
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>
70 <td > <slot><em><span id="numObjects">{MAILMERGE_NUM_SELECTED_OBJECTS}</span></em></slot></td>
71 <td ><slot> </slot></td>
72 <td ><slot> </slot></td>
73 <td ><slot> </slot></td>
76 <td ><slot> </slot></td>
77 <td ><slot> </slot></td>
78 <td ><slot> </slot></td>
79 <td ><slot> </slot></td>
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> </slot></td>
85 <td align="right"><slot> </slot></td>
87 <tr><td colspan"4"><slot> </slot></td></tr>
94 <p><table width="100%" cellpadding="2" cellspacing="0" border="0"><tr>
96 <input title="{MOD.LBL_NEXT}" class="button" type="submit" id="btnNext" name="button" value=" {MOD.LBL_NEXT}" onClick="return validateForm();" {DISABLE_NEXT_BUTTON}></td>
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>
109 function browserCheck()
113 button = document.getElementById("btnNext");
114 button.disabled = true;
115 alert("This requires IE 6.0 or greater for Windows.");
117 else if(document.layers || (!document.all && document.getElementById))
119 button = document.getElementById("btnNext");
120 button.disabled = true;
121 alert("This requires IE 6.0 or greater for Windows.");
126 document.getElementById("numObjects").innerHTML = "";
127 document.getElementById("step").value = "2";
131 function validateForm()
133 var templates = document.getElementById("document_id");
134 for (i=0;i<templates.options.length;i++)
136 if(templates[i].selected)
138 if(templates[i].value != "None")
144 alert("Please select a template.");
148 function disableModuleDropDown(){
149 var selectBox = document.getElementById("mailmerge_module");
150 selectBox.disabled = true;
153 {MAILMERGE_DISABLE_DROP_DOWN}