]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Contacts/MailMergePicker.html
Release 6.2.0
[Github/sugarcrm.git] / modules / Contacts / MailMergePicker.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
39 <!-- BEGIN: main -->
40 <!-- BEGIN: SearchHeader -->
41 <script type="text/javascript" src="include/JSON.js?s={SUGAR_VERSION}&amp;c={JS_CUSTOM_VERSION}"></script>
42 <script type="text/javascript" src="include/javascript/popup_helper.js?s={SUGAR_VERSION}&amp;c={JS_CUSTOM_VERSION}"></script>
43 <script type="text/javascript" src="include/javascript/sugar_3.js?s={SUGAR_VERSION}&amp;c={JS_CUSTOM_VERSION}"></script>
44
45 <table cellpadding="0" cellspacing="0" border="0" width="100%" class="edit view">
46         <tr>
47                 <td>
48                         <form action="index.php" method="post" name="popup_query_form" id="popup_query_form">
49                                 <table width="100%" border="0" cellspacing="0" cellpadding="0">
50                                         <tr>
51                                                 <td scope="row" nowrap="nowrap">
52                                                         {MOD.LBL_FIRST_NAME}
53                                                 </td>
54                                                 <td  nowrap="nowrap">
55                                                         <input type="text" size="20" name="first_name"  value="{FIRST_NAME}" />
56                                                 </td>
57                                                 <td scope="row" nowrap="nowrap">
58                                                         {MOD.LBL_LAST_NAME}
59                                                 </td>
60                                                 <td  nowrap="nowrap">
61                                                         <input type="text" size="20" name="last_name"  value="{LAST_NAME}" />
62                                                 </td>
63                                                 <td valign="top" align="right">
64                                                         <input type="hidden" name="module" value="{MODULE_NAME}" />
65                                                         <input type="hidden" name="action" value="Popup" />
66                                                         
67                                                         <input type="hidden" name="query" value="true" />
68                                                         <input type="hidden" name="func_name" value="" />
69                                                         <input type="hidden" name="request_data" value="{request_data}" />
70                                                         <input type="hidden" name="populate_parent" value="false" />
71                                                         <input type="hidden" name="record_id" value="" />
72                                                         <input type="hidden" name="hide_clear_button" value="true" />
73                                                         <input type="submit" name="button" class="button" title="{APP.LBL_SEARCH_BUTTON_TITLE}" accesskey="{APP.LBL_SEARCH_BUTTON_KEY}" value="{APP.LBL_SEARCH_BUTTON_LABEL}" />
74                                                         <input type="hidden" name="mode" value="{MULTI_SELECT}" />
75                                                 </td>
76                                         </tr>
77                                         <tr>
78                                                 <td scope="row" nowrap="nowrap">
79                                                         {MOD.LBL_ACCOUNT_NAME}
80                                                 </td>
81                                                 <td >
82                                                         <input type="text" id="account_name" name="account_name"  size="20" value="{ACCOUNT_NAME}" />
83                                                 </td>
84                                                 <td>
85                                                         &nbsp;
86                                                 </td>
87                                                 <td>
88                                                         &nbsp;
89                                                 </td>
90                                                 <td>
91                                                         &nbsp;
92                                                 </td>
93                                         </tr>
94                                 </table>
95                         </form>
96                 </td>
97         </tr>
98 </table>
99
100 <script type="text/javascript">
101 <!--
102 /* initialize the popup request from the parent */
103 if(window.document.forms['popup_query_form'].request_data.value == "") {
104         window.document.forms['popup_query_form'].request_data.value
105                 = JSON.stringify(window.opener.get_popup_request_data());
106 }
107
108 // cn: bug 8104 - escaped unicode sequence printing out escaped values
109 var account_name = document.getElementById('account_name').value;
110 document.getElementById('account_name').value = unescape(account_name);
111 -->
112 </script> 
113 <p>
114 <div id='addformlink'>
115         {CREATEBUTTON}
116 </div>
117 <div id='addform' style='display:none;position:relative;z-index:2;left:0px;top:0px;'>
118 <form name="ContactSave" onsubmit="return check_form('ContactSave');" method="post" action="index.php">
119         {ADDFORMHEADER} 
120         <table cellpadding="0" cellspacing="0" border="0" width="100%" class="edit view">
121                 <tr>
122                         <td>
123                                 <table width="100%" border="0" cellspacing="0" cellpadding="0">
124                                         <tr>
125                                                 <td>
126                                                         <input type="hidden" name="module" value="{MODULE_NAME}" />
127                                                         <input type="hidden" name="action" value="Popup" />
128                                                         <input type="hidden" name="doAction" value="save" />
129                                                         <input type="hidden" name="query" value="true" />
130                                                         {ADDFORM} 
131                                                 </td>
132                                         </tr>
133                                 </table>
134                         </td>
135                 </tr>
136         </table>
137 </form>
138 </div>
139 </p>
140 <!-- END: SearchHeader -->
141
142 <table width="100%" border="0" cellspacing="0" cellpadding="0" class="list view">
143 <!-- BEGIN: list_nav_row -->
144         {PAGINATION} 
145 <!-- END: list_nav_row -->
146         <tr height="20">
147                 <td scope="col"  nowrap>
148                         {CHECKALL}
149                 </td>
150                 <td scope="col" width="40%"  nowrap="nowrap">
151                         <a href="{ORDER_BY}last_name" class="listViewThLinkS1">
152                                 {MOD.LBL_LIST_CONTACT_NAME}{arrow_start}{last_name_arrow}{arrow_end}</a>
153                 </td>
154                 <td scope="col" width="20%"  nowrap="nowrap">
155                         <a href="{ORDER_BY}title" class="listViewThLinkS1">
156                                 {MOD.LBL_LIST_TITLE}{arrow_start}{title_arrow}{arrow_end}</a>
157                 </td>
158                 <td scope="col" width="40%"  nowrap="nowrap">
159                         {MOD.LBL_LIST_ACCOUNT_NAME}
160                 </td>
161         </tr>
162 <!-- BEGIN: row -->
163         <tr height="20" class="{ROW_COLOR}S1">
164                 <td valign="top">
165                         {PREROW}
166                 </td>
167                 <td scope='row' valign="top">
168                         <{TAG_TYPE} href="#" onclick="send_back('Contacts','{CONTACT.ID}');" >{CONTACT.FULL_NAME}
169                         </{tag_type}>
170                 </td>
171                 <td valign="top">
172                         {CONTACT.TITLE}
173                 </td>
174                 <td valign="top">
175                         {CONTACT.ACCOUNT_NAME}
176                 </td>
177         </tr>
178         <tr>
179                 <td colspan="20" class="listViewHRS1">
180                 </td>
181         </tr>
182 <!-- END: row -->
183 </table>
184 {ASSOCIATED_JAVASCRIPT_DATA} 
185 <!-- END: main -->