]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - modules/Campaigns/WebToLeadCreation.html
Release 6.4.0
[Github/sugarcrm.git] / modules / Campaigns / WebToLeadCreation.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  ********************************************************************************/
40 -->
41 <!-- BEGIN: main -->
42 <script type="text/javascript" src="include/javascript/popup_parent_helper.js?v={VERSION_MARK}"></script>
43 <script type="text/javascript" src="modules/Campaigns/WebToLead.js?v={VERSION_MARK}"></script>
44 <style>
45         .yui-dt table {
46                 width: 180px;
47         }
48 </style>
49
50 {JAVASCRIPT}
51 <form id="WebToLeadCreation" name="WebToLeadCreation" method="POST" action="index.php">
52     <input type="hidden" name="module" value="Campaigns">
53         <input type="hidden" name="record" value="{ID}">
54         <input type="hidden" name="action">
55         <input type="hidden" name="return_module" value="{RETURN_MODULE}">
56         <input type="hidden" name="return_id" value="{RETURN_ID}">
57         <input type="hidden" name="return_action" value="{RETURN_ACTION}">
58
59 <div id='grid_Div'>
60 <table width="100%" cellpadding="0" cellspacing="0" border="0">
61         <!--
62       <H1>Web To Lead Form generation for Campaign</H1>
63       -->
64       <tr>
65                  <td>
66                  {TITLE1}
67                 <br>
68                         <p><b>{MOD.LBL_DRAG_DROP_COLUMNS}</b></p>
69                  </td>
70           </tr>
71         <tr>
72                 <td></td>
73         </tr>
74         <tr>
75                 <td>
76                 <table width="555" border="0" cellspacing="0" cellpadding="0">
77
78                         <tr>
79                                   <td>
80                                         <table align="center" border="0" cellpadding="0" cellspacing="0" width='350'>
81                             <tbody><tr><td align="center">
82                                     {DRAG_DROP_CHOOSER_WEB_TO_LEAD}
83                             </td></tr></tbody></table>
84                              </td>
85                         </tr>
86                         <tr>
87                                 <td colspan='3'>
88                                   <div id='webformfields'></div>
89                                 </td>
90                         </tr>
91                 </table>
92
93         <table width="595" border="0" cellspacing="0" cellpadding="2">
94                 <tr>
95                 <td align="left"><input id="lead_add_remove_button" type='button' title="{APP.LBL_ADD_ALL_LEAD_FIELDS}"
96                         class="button"
97                         onclick="javascript:dragDropAllFields('{APP.LBL_ADD_ALL_LEAD_FIELDS}','{APP.LBL_REMOVE_ALL_LEAD_FIELDS}');"
98                         name="button" value="{APP.LBL_ADD_ALL_LEAD_FIELDS}">
99                 </td>
100                 <td align="right" style="padding-bottom: 2px;"><input title="{APP.LBL_CANCEL_BUTTON_TITLE}"
101                         accessKey="{APP.LBL_CANCEL_BUTTON_KEY}" class="button"
102                         onclick="this.form.action.value='{RETURN_ACTION}'; this.form.module.value='{RETURN_MODULE}'; this.form.record.value='{RETURN_ID}'"
103                         type="submit" name="button" value="{APP.LBL_CANCEL_BUTTON_LABEL}"> <input id="lead_next_button" type='button'
104                         title="{APP.LBL_NEXT_BUTTON_LABEL}" class="button"
105                         onclick="javascript:askLeadQ('next','{MOD.LBL_SELECT_REQUIRED_LEAD_FIELDS}','{MOD.LBL_SELECT_LEAD_FIELDS}');" name="button"
106                         value="{APP.LBL_NEXT_BUTTON_LABEL}">
107                 </td>
108                 </tr>
109     </table>
110         </td>
111   </tr>
112 </table>
113 </div>
114
115
116 <div id='lead_queries_Div' style="display: none">
117 <table width="100%" cellpadding="0" cellspacing="0" border="0">
118     <tr><td>
119             {TITLE2}
120            </td>
121         </tr>
122 </table>
123
124 <table width="100%" cellpadding="0" cellspacing="0" border="0" class="edit view">
125
126         <tr>
127                 <td>
128                 <table border="0" cellpadding="0" cellspacing="0" width="100%">
129                         <tr>
130                                 <td scope="row" width="20%">{MOD.LBL_DEFINE_LEAD_HEADER}</td>
131                                 <td  width="80%"><input id="web_header" name="web_header" title="Name" size="60"
132                                         value="{MOD.LBL_LEAD_DEFAULT_HEADER}" type="text"></td>
133                         </tr>
134                         <tr>
135                                 <td scope="row"><slot>{MOD.LBL_DESCRIPTION_LEAD_FORM}</slot></td>
136                                 <td ><slot><textarea tabindex='1' name='web_description' rows='2' cols='55'>{MOD.LBL_DESCRIPTION_TEXT_LEAD_FORM}</textarea></slot></td>
137                         </tr>
138                         <tr>
139                                 <td scope="row">{MOD.LBL_DEFINE_LEAD_SUBMIT}</td>
140                                 <td ><input id="web_submit" name="web_submit" title="Name" size="60"
141                                         value="{MOD.LBL_DEFAULT_LEAD_SUBMIT}" type="text"></td>
142                         </tr>
143                         <tr>
144                                 <td scope="row"><slot>{MOD.LBL_DEFINE_LEAD_POST_URL}</slot></td>
145                                 <td ><slot><input id="post_url" name="post_url" size="60"
146                                         disabled='true' value="{WEB_POST_URL}" type="text"></slot> <input
147                                         id="chk_edit_url" name="chk_edit_url" onclick="editUrl();" class='checkbox' type='checkbox'> <class ="dataLabel" width="10%">{MOD.LBL_EDIT_LEAD_POST_URL}
148                         </tr>
149                         </tr>
150                         <tr>
151                                 <td scope="row"><slot>{MOD.LBL_DEFINE_LEAD_REDIRECT_URL}</slot></td>
152                                 <td ><slot><input id="redirect_url" name="redirect_url" size="60"
153                                          value="{REDIRECT_URL_DEFAULT}" type="text"></slot></td>
154                         </tr>
155
156                         <tr>
157                                 <td scope="row"><span sugar='slot40'>{MOD.LBL_LEAD_NOTIFY_CAMPAIGN}</span sugar='slot'><span
158                                         class="required">{APP.LBL_REQUIRED_SYMBOL}</span></td>
159                                 <td ><span sugar='slot40b'> <input class="sqsEnabled" tabindex="1"
160                                         autocomplete="off" id='campaign_name' name='campaign_name' type="text" value="{CAMPAIGN_NAME}" /> <input
161                                         id='campaign_id' name='campaign_id' type="hidden" value="{CAMPAIGN_ID}" /> <input
162                                         title="{APP.LBL_SELECT_BUTTON_TITLE}" accessKey="{APP.LBL_SELECT_BUTTON_KEY}" type="button" tabindex='1'
163                                         class="button" value='{APP.LBL_SELECT_BUTTON_LABEL}' name=btn1
164                                         onclick='open_popup("Campaigns", 600, 400, "", true, false,{encoded_campaigns_popup_request_data});' /></span sugar='slot'></td>
165                         </tr>
166                         <tr>
167                          <td scope="row"><span sugar='slot45'>{APP.LBL_ASSIGNED_TO}</span sugar='slot'><span
168                                         class="required">{APP.LBL_REQUIRED_SYMBOL}</span></td>
169                          <td  ><span sugar='slot45b'><input class="sqsEnabled" tabindex="1" autocomplete="off" id="assigned_user_name" name='assigned_user_name' type="text" value="{ASSIGNED_USER_NAME}"><input id='assigned_user_id' name='assigned_user_id' type="hidden" value="{ASSIGNED_USER_ID}" />
170                          <input title="{APP.LBL_SELECT_BUTTON_TITLE}" accessKey="{APP.LBL_SELECT_BUTTON_KEY}" type="button" tabindex='1' class="button" value='{APP.LBL_SELECT_BUTTON_LABEL}' name=btn1
171                                   onclick='open_popup("Users", 600, 400, "", true, false, {encoded_users_popup_request_data});' /></span sugar='slot'>
172                                 </td>
173             </tr>
174         <!-- BEGIN: open_source -->
175         <!-- END: open_source -->
176
177                         <tr>
178                                 <td scope="row"><slot>{MOD.LBL_LEAD_FOOTER}</slot></td>
179                                 <td ><slot><textarea tabindex='1' name='web_footer' rows='2' cols='55'></textarea></slot></td>
180                         </tr>
181
182                 </table>
183                 </td>
184         </tr>
185 </table>
186 <table  width="100%" border="0" cellspacing="0" cellpadding="2">
187         <tr>
188                 <td align="right" style="padding-bottom: 2px;"><input title="{APP.LBL_BACK}" accessKey="{APP.LBL_BACK}"
189                         class="button" onclick="askLeadQ('back')" type="button" name="button" value="{APP.LBL_BACK}"> <input
190                         title="{APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{APP.LBL_CANCEL_BUTTON_KEY}" class="button"
191                         onclick="this.form.action.value='{RETURN_ACTION}'; this.form.module.value='{RETURN_MODULE}'; this.form.record.value='{RETURN_ID}'"
192                         type="submit" name="button" value="{APP.LBL_CANCEL_BUTTON_LABEL}"> <input
193                         title="{APP.LBL_GENERATE_WEB_TO_LEAD_FORM}" class="button"
194                         onclick="this.form.action.value='GenerateWebToLeadForm';return addGrids('WebToLeadCreation');" type="submit"
195                         name="button" value="{APP.LBL_GENERATE_WEB_TO_LEAD_FORM}"></td>
196         </tr>
197 </table>
198 </div>
199 </form>
200
201 <!-- <div id="ddgrid4" class="ygrid-mso" style="width:250px;height:200px;overflow:hidden;">-->
202 <!-- END: main -->