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